/* ============================================
   Seminário Alto Paranaíba — compiled from SCSS
   Source: styles/_variables.scss, _base.scss, _components.scss
   ============================================ */

:root {
  /* Brand greens */
  --emerald-900: #0a3d2a;
  --emerald-800: #0f5236;
  --emerald-700: #14663f;
  --emerald-600: #1b7f4a;
  --emerald-500: #2a9b5c;
  --emerald-400: #4cba73;
  --emerald-300: #7fd199;
  --emerald-200: #b8e5c7;
  --emerald-100: #e4f5ea;

  /* Neutral */
  --ink-950: #050a08;
  --ink-900: #0c1511;
  --ink-800: #15211b;
  --ink-700: #24322b;
  --ink-600: #3c4a43;
  --ink-500: #6b7a72;
  --ink-400: #9aa8a1;
  --ink-300: #c4cec9;
  --ink-200: #e2e8e4;
  --ink-100: #f1f4f2;
  --ink-50:  #f8faf9;

  --paper: #fafaf7;
  --paper-dim: #f0f0ec;

  /* Accent */
  --ochre: #c8a24a;
  --ochre-dim: #8f733a;

  /* Semantic */
  --bg: var(--paper);
  --bg-dark: var(--ink-950);
  --text: var(--ink-900);
  --text-dim: var(--ink-500);
  --accent: var(--emerald-600);
  --accent-deep: var(--emerald-900);
  --rule: rgba(12, 21, 17, 0.1);
  --rule-dark: rgba(255, 255, 255, 0.12);

  /* Fluid type */
  --fs-xs:  clamp(12px, 0.78vw, 14px);
  --fs-sm:  clamp(14px, 0.95vw, 16px);
  --fs-base:clamp(16px, 1.1vw, 19px);
  --fs-lg:  clamp(19px, 1.3vw, 22px);
  --fs-xl:  clamp(22px, 1.65vw, 28px);
  --fs-2xl: clamp(28px, 2.2vw, 36px);
  --fs-3xl: clamp(36px, 3.4vw, 54px);
  --fs-4xl: clamp(48px, 5.2vw, 78px);
  --fs-5xl: clamp(64px, 7.8vw, 124px);
  --fs-6xl: clamp(84px, 11.5vw, 188px);

  /* Fonts */
  --font-sans: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1440px;
  --container-sm: 1120px;
  --gutter: clamp(24px, 4vw, 64px);

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emph: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------- Reset + base --------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }
img, video, iframe { max-width: 100%; height: auto; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (pointer: fine) {
  body.cursor-enabled,
  body.cursor-enabled * { cursor: none !important; }
}

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  margin: 0; font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; padding: 0; color: inherit; }

::selection { background: var(--emerald-600); color: var(--paper); }

/* --------- Type classes --------- */
.t-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.t-eyebrow {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--text-dim);
}

.t-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0;
}

/* --------- Containers --------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-sm { max-width: var(--container-sm); margin-inline: auto; padding-inline: var(--gutter); }

/* --------- Reveal on scroll --------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-emph), transform 1.1s var(--ease-emph);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

.reveal-mask { overflow: hidden; display: block; }
.reveal-mask > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-emph);
  will-change: transform;
}
.reveal-mask.reveal-delay-1 > span { transition-delay: 0.08s; }
.reveal-mask.reveal-delay-2 > span { transition-delay: 0.16s; }
.reveal-mask.reveal-delay-3 > span { transition-delay: 0.24s; }
.reveal-mask.in > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-mask > span { transform: none; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor__dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear, width 0.3s var(--ease-emph), height 0.3s var(--ease-emph);
}
.cursor__ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.14s var(--ease-out), width 0.35s var(--ease-emph), height 0.35s var(--ease-emph), border-color 0.25s;
}
.cursor.hover .cursor__ring {
  width: 64px; height: 64px;
  border-color: var(--emerald-400);
}
.cursor.hover .cursor__dot { width: 0; height: 0; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-color: var(--rule);
  padding: 14px var(--gutter);
}
.nav.on-dark:not(.scrolled) { color: var(--paper); }
.nav.on-dark:not(.scrolled) .nav__logo-mark { filter: invert(1) brightness(2); }
.nav.on-dark:not(.scrolled) .nav__logo-text { color: var(--paper); }
.nav.on-dark:not(.scrolled) .nav__link { color: rgba(255,255,255,0.82); }
.nav.on-dark:not(.scrolled) .nav__link:hover { color: #fff; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-mark {
  width: 36px; height: 36px;
  flex-shrink: 0;
}
.nav__logo-img {
  height: var(--nav-logo-h, 32px);
  width: auto;
  max-width: none;
  max-height: var(--nav-logo-h, 32px);
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  transition: height 0.4s var(--ease-out), filter 0.4s;
}
.nav.scrolled .nav__logo-img {
  height: calc(var(--nav-logo-h, 32px) - 4px);
  max-height: calc(var(--nav-logo-h, 32px) - 4px);
}
.nav.on-dark:not(.scrolled) .nav__logo-img {
  filter: brightness(0) invert(1);
}

/* Na home, esconde o logo e a busca da nav enquanto não rolou.
   Ao descer (.scrolled) reaparece junto com o fundo claro do nav. */
body[data-page="home"] .nav.on-dark:not(.scrolled) .nav__brand,
body[data-page="home"] .nav.on-dark:not(.scrolled) .nav__search {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
body[data-page="home"] .nav.scrolled .nav__brand,
body[data-page="home"] .nav.scrolled .nav__search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s var(--ease-out), visibility 0s;
}
.nav__brand { max-width: 320px; }
.nav__logo-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emerald-900);
}
.nav__logo-text span {
  display: block;
  font-weight: 400;
  color: var(--ink-500);
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-top: 2px;
}
.nav__menu {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.45s var(--ease-emph);
}
.nav__link:hover::after { right: 0; }
.nav__link.active { color: var(--emerald-700); }
.nav__link.active::after { right: 0; background: var(--emerald-600); }

.nav__cta {
  padding: 10px 20px;
  border: 1px solid var(--ink-900);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav__cta:hover {
  background: var(--emerald-700);
  color: var(--paper);
  border-color: var(--emerald-700);
}
.nav.on-dark:not(.scrolled) .nav__cta {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.nav.on-dark:not(.scrolled) .nav__cta:hover {
  background: #fff;
  color: var(--ink-900);
  border-color: #fff;
}

/* ============================================
   NAV — Mobile menu (hamburger + drawer)
   ============================================ */
.nav__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav__hamburger:hover { background: rgba(255,255,255,0.08); }
.nav.scrolled .nav__hamburger { color: var(--ink-900); }
.nav.scrolled .nav__hamburger:hover { background: rgba(0,0,0,0.06); }
.nav__hamburger svg { width: 22px; height: 22px; pointer-events: none; }
.nav__hamburger .nav__hamburger-x { display: none; }
body.mobile-menu-open .nav__hamburger .nav__hamburger-bars { display: none; }
body.mobile-menu-open .nav__hamburger .nav__hamburger-x { display: block; }

.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--ink-950);
  color: var(--paper);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 88px clamp(28px, 6vw, 56px) 40px;
  visibility: hidden;
}
body.mobile-menu-open .nav__drawer {
  transform: translateX(0);
  visibility: visible;
}
.nav__drawer-menu { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.nav__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.1;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s, padding-left 0.2s;
}
.nav__drawer-link:hover,
.nav__drawer-link:focus-visible { color: var(--emerald-400); padding-left: 8px; }
.nav__drawer-link.active { color: var(--emerald-400); }
.nav__drawer-link::after {
  content: '→';
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 18px;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}
.nav__drawer-link:hover::after { opacity: 1; transform: translateX(4px); }

.nav__drawer-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: auto;
}
.nav__drawer-auth a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1.5px solid;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav__drawer-auth .nav__drawer-cta {
  background: var(--emerald-500);
  color: #fff;
  border-color: var(--emerald-500);
}
.nav__drawer-auth .nav__drawer-cta:hover { background: var(--emerald-700); border-color: var(--emerald-700); }
.nav__drawer-auth .nav__drawer-link-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.4);
}
.nav__drawer-auth .nav__drawer-link-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--paper); }

.nav__drawer-foot {
  margin-top: 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
}

body.mobile-menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__hamburger { display: inline-flex; }
  .nav__auth { display: none !important; }
  .nav { padding: 16px clamp(16px, 4vw, 24px) !important; }
  .nav__brand { max-width: 70%; }
}
@media (min-width: 901px) {
  .nav__drawer { display: none !important; }
}

/* Hero CTAs ajustes mobile */
@media (max-width: 600px) {
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__cta { justify-content: center; padding: 14px 20px; font-size: 12px; }
}

/* ============================================
   NAV SEARCH (botão lupa que expande pra input)
   ============================================ */
/* Busca foi removida da barra de navegação — se um dia for reativada, é só apagar este display:none. */
.nav__search { display: none !important; }

.nav__search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 12px;
  margin: 0 8px 0 0;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 999px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, width 0.35s var(--ease-emph);
  width: 200px;
  max-width: 26vw;
}
.nav__search:hover {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.16);
}
.nav__search:focus-within {
  background: var(--paper, #fafaf7);
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(4,120,87,0.10);
  width: 280px;
  max-width: 32vw;
}
.nav__search-toggle {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: text;
  color: var(--ink-600, #4b5563);
  transition: color 0.25s;
  flex-shrink: 0;
}
.nav__search:focus-within .nav__search-toggle {
  color: var(--emerald-700);
}
.nav__search-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--ink-900, #0d1410);
  letter-spacing: 0.01em;
}
.nav__search-input::placeholder {
  color: var(--ink-500, #6b7280);
  letter-spacing: 0.04em;
  font-size: 12px;
  text-transform: uppercase;
}

/* ----- on dark hero (transparent, white text) ----- */
.nav.on-dark:not(.scrolled) .nav__search {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav.on-dark:not(.scrolled) .nav__search:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.32);
}
.nav.on-dark:not(.scrolled) .nav__search:focus-within {
  background: rgba(255,255,255,0.14);
  border-color: var(--emerald-300, #6ee7b7);
  box-shadow: 0 0 0 3px rgba(110,231,183,0.18);
}
.nav.on-dark:not(.scrolled) .nav__search-toggle {
  color: rgba(255,255,255,0.85);
}
.nav.on-dark:not(.scrolled) .nav__search:focus-within .nav__search-toggle {
  color: var(--emerald-300, #6ee7b7);
}
.nav.on-dark:not(.scrolled) .nav__search-input {
  color: #fff;
}
.nav.on-dark:not(.scrolled) .nav__search-input::placeholder {
  color: rgba(255,255,255,0.6);
}

@media (max-width: 900px) {
  .nav__search { width: 160px; }
  .nav__search:focus-within { width: 220px; }
}
@media (max-width: 720px) {
  .nav__search { width: 38px; padding: 6px; justify-content: center; }
  .nav__search:focus-within { width: 200px; padding: 6px 12px 6px 10px; justify-content: flex-start; }
  .nav__search:not(:focus-within) .nav__search-input { display: none; }
}

/* ============================================
   HERO (with parallax)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 160px var(--gutter) 80px;
  color: var(--paper);
  overflow: hidden;
  background: var(--ink-950);
}

.hero__bg {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  will-change: transform;
}
.hero__bg-image {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 8, 0.5) 0%, rgba(5, 10, 8, 0.35) 40%, rgba(5, 10, 8, 0.9) 100%),
    linear-gradient(90deg, rgba(5, 10, 8, 0.55) 0%, rgba(5, 10, 8, 0.15) 50%);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}

/* Layout split: logo à esquerda (centralizada vertical), info à direita */
.hero__inner--split {
  grid-template-columns: minmax(220px, 0.85fr) 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  min-height: calc(100vh - 200px); /* preenche a altura útil do hero pra centralizar bem */
}
.hero__brand {
  display: flex;
  align-items: center;        /* centro vertical */
  justify-content: flex-start; /* alinha à esquerda */
  height: 100%;
}
.hero__brand-img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  /* converte qualquer logo (mesmo colorida) em branco puro */
  filter: brightness(0) invert(1) drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}
.hero__copy { min-width: 0; }
.hero__copy .hero__sub { margin-top: 28px; }

@media (max-width: 900px) {
  .hero__inner--split {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    min-height: 0;
  }
  .hero__brand { justify-content: flex-start; height: auto; }
  .hero__brand-img { max-width: 320px; }
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
}
.hero__eyebrow::before {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--emerald-400);
}

.hero__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin-bottom: 40px;
}
.hero__title em {
  color: var(--emerald-400);
  font-style: italic;
}
.hero__title-sans {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.18em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  line-height: 1;
}

.hero__sub {
  max-width: 520px;
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin-top: 24px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 64px;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 360px;
}
.hero__meta-item { }
.hero__meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--emerald-300);
  margin-bottom: 6px;
  font-weight: 500;
}
.hero__meta-value {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  color: var(--paper);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.7);
}
.hero__scroll-line {
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--emerald-400);
  transform: translateX(-100%);
  animation: scrollIndicator 2.4s var(--ease-emph) infinite;
}
@keyframes scrollIndicator {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__meta { min-width: 0; grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   SECTION primitives
   ============================================ */
.section {
  padding: clamp(80px, 10vw, 160px) 0;
  position: relative;
}
.section--dark {
  background: var(--ink-950);
  color: var(--paper);
}
.section--emerald {
  background: var(--emerald-900);
  color: var(--paper);
}

.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 80px;
  align-items: end;
}
.section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section__num::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
}
.section__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 16px;
}
.section--dark .section__eyebrow,
.section--emerald .section__eyebrow { color: var(--emerald-300); }

.section__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-4xl);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.section__title em {
  color: var(--emerald-600);
}
.section--dark .section__title em,
.section--emerald .section__title em {
  color: var(--emerald-400);
}

@media (max-width: 720px) {
  .section__head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   COUNTERS
   ============================================ */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.counter {
  padding: 48px 32px 40px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.counter:last-child { border-right: 0; }
.counter__value {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--emerald-800);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.counter__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-600);
  max-width: 200px;
  line-height: 1.4;
  font-weight: 500;
}
.counter__suffix {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--emerald-500);
}

@media (max-width: 880px) {
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(2) { border-right: 0; }
  .counter { padding: 32px 20px 32px 0; }
}

/* ============================================
   ABOUT split
   ============================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 128px);
  align-items: start;
}
.about-split__visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--paper-dim);
  overflow: hidden;
  will-change: transform;
}
.about-split__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.2s var(--ease-out);
}
.about-split__visual::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255,255,255,0.4);
  z-index: 1;
  pointer-events: none;
}
.about-split__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
}
.about-split__body {
  position: sticky;
  top: 120px;
}
.about-split__body p {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--ink-700);
  margin-bottom: 24px;
  max-width: 48ch;
}
.about-split__body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4em;
  line-height: 0.85;
  float: left;
  margin: 4px 12px -4px 0;
  color: var(--emerald-700);
}
.about-split__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-2xl);
  line-height: 1.2;
  color: var(--ink-900);
  margin-bottom: 32px !important;
  max-width: 100% !important;
}

@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split__body { position: static; }
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
}
.timeline__track {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--rule);
}
.timeline__items {
  display: grid;
  grid-auto-flow: column;
  gap: 32px;
  overflow-x: auto;
  padding: 40px 0 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--emerald-600) transparent;
}
.timeline__items::-webkit-scrollbar { height: 4px; }
.timeline__items::-webkit-scrollbar-thumb { background: var(--emerald-600); }

.timeline__item {
  min-width: 320px;
  scroll-snap-align: start;
  position: relative;
  padding-top: 52px;
  cursor: pointer;
}
.timeline__item::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-300);
  transition: background 0.3s, transform 0.3s;
}
.timeline__item:hover::before {
  background: var(--emerald-600);
  transform: scale(1.6);
}
.timeline__item::after {
  content: '';
  position: absolute;
  top: 35px;
  left: 8px; right: 0;
  height: 1px;
  background: var(--rule);
}
.timeline__year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 48px;
  color: var(--emerald-800);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.timeline__title {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--ink-800);
  margin-bottom: 8px;
  line-height: 1.3;
}
.timeline__desc {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.55;
}

/* ============================================
   MARQUEE (partners)
   ============================================ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  border-block: 1px solid var(--rule);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 96px;
  animation: marquee 90s linear infinite;
  width: max-content;
  align-items: center;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 200px;
  transition: transform 0.4s var(--ease-emph);
}
.marquee__item:hover { transform: scale(1.05); }
.marquee__item img {
  height: 110px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  margin-inline: auto;
  /* Logos coloridos, sem filtro */
}
@media (max-width: 720px) {
  .marquee__item { width: 140px; }
  .marquee__item img { height: 80px; max-width: 140px; }
  .marquee__track { gap: 56px; }
}
/* Esconde o nome ao lado do logo (mantém pra screen-readers) */
.marquee__item-name {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================
   EVENT / PROGRAM CARD
   ============================================ */
.event-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--ink-950);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.event-card__image {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.event-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(5,10,8,0.8) 0%, transparent 40%);
}
.event-card__body {
  padding: 64px clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.event-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--emerald-300);
  align-self: flex-start;
}
.event-card__tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--emerald-400);
  border-radius: 50%;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
.event-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-top: 20px;
  max-width: 14ch;
}
.event-card__date {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.event-card__date-value {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--emerald-400);
}
.event-card__date-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-card__date-meta strong {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.event-card__date-meta span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.event-card__program {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.event-card__session {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: center;
  transition: padding-left 0.4s var(--ease-emph);
}
.event-card__session:hover { padding-left: 12px; }
.event-card__session-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--emerald-300);
  letter-spacing: 0.04em;
}
.event-card__session-title {
  font-size: 15px;
  color: var(--paper);
  font-weight: 500;
}
.event-card__session-speaker {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 880px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card__image { min-height: 320px; }
  .event-card__body { padding: 40px 24px; }
}

/* ============================================
   GALLERY / LIGHTBOX
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--paper-dim);
  cursor: pointer;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-emph);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,10,8,0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__caption {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  color: #fff;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.5s var(--ease-emph), opacity 0.5s;
}
.gallery__item:hover .gallery__caption { transform: translateY(0); opacity: 1; }
.gallery__caption-year {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--emerald-300);
}
.gallery__caption-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  margin-top: 4px;
}

/* Gallery layout shapes */
.gallery__item--xl { grid-column: span 6; grid-row: span 4; }
.gallery__item--lg { grid-column: span 6; grid-row: span 2; }
.gallery__item--md { grid-column: span 4; grid-row: span 2; }
.gallery__item--sm { grid-column: span 3; grid-row: span 2; }
.gallery__item--tall { grid-column: span 3; grid-row: span 3; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .gallery__item--xl,
  .gallery__item--lg,
  .gallery__item--md,
  .gallery__item--sm,
  .gallery__item--tall { grid-column: span 2; grid-row: span 2; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 8, 0.95);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  backdrop-filter: blur(20px);
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox__img {
  max-width: 86vw;
  max-height: 82vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: background 0.3s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.1); }
.lightbox__caption {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.3s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.08); }
.lightbox__nav--prev { left: 32px; }
.lightbox__nav--next { right: 32px; }

/* ============================================
   BOOKS
   ============================================ */
.books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.book {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
/* ============================================
   BOOKS — 3D EFFECT (perspective + spine + pages)
   ============================================ */
.book__cover {
  aspect-ratio: 2/3;
  position: relative;
  perspective: 1800px;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-emph);
  will-change: transform;
}
/* Container interno preserva o 3d */
.book__cover-3d {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-emph);
  filter: drop-shadow(20px 30px 30px rgba(0,0,0,0.25));
}
.book:hover .book__cover-3d {
  transform: rotateY(-12deg) rotateX(0deg) translateZ(20px);
}

/* Capa principal (frente) */
.book__cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 3;
  background: var(--paper-dim);
  transform: translateZ(20px);
  box-shadow:
    inset 4px 0 8px rgba(0,0,0,0.18),
    inset -1px 0 0 rgba(0,0,0,0.06);
}

/* Lombada (spine) — lateral esquerda */
.book__cover::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 40px;
  background: linear-gradient(90deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 30%,
    rgba(255,255,255,0.04) 60%,
    rgba(0,0,0,0.18) 100%);
  transform: rotateY(-90deg) translateZ(0);
  transform-origin: left center;
  z-index: 2;
}

/* Páginas (lateral direita do livro) */
.book__cover::after {
  content: '';
  position: absolute;
  top: 2px; bottom: 2px;
  right: -2px;
  width: 40px;
  background: repeating-linear-gradient(
    to right,
    #fafafa 0px,
    #f4f4f0 1px,
    #ebebe5 2px,
    #fafafa 3px
  );
  transform: rotateY(90deg) translateZ(0);
  transform-origin: right center;
  z-index: 2;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1);
}

/* Decorativo CSS-only para livros sem imagem (book__cover-inner) — escondido se há imagem */
.book__cover:has(.book__cover-img) .book__cover-inner { display: none; }
.book__cover-inner {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  color: var(--paper);
  text-align: center;
  z-index: 3;
  transform: translateZ(20px);
  padding: 24px;
}

/* Mobile: reduz a inclinação pra não cortar */
@media (max-width: 640px) {
  .book__cover-3d { transform: rotateY(-15deg) rotateX(1deg); }
  .book:hover .book__cover-3d { transform: rotateY(-6deg) rotateX(0); }
  .book__cover::before { width: 24px; }
  .book__cover::after  { width: 24px; }
  .book__cover-img { transform: translateZ(12px); }
}
.book__cover-inner {
  position: absolute;
  inset: 0;
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-900) 100%);
  color: var(--paper);
}
.book:nth-child(2) .book__cover-inner {
  background: linear-gradient(135deg, var(--ink-800) 0%, var(--ink-900) 100%);
}
.book:nth-child(3) .book__cover-inner {
  background: linear-gradient(135deg, var(--ochre-dim) 0%, #3a2f17 100%);
}
.book:nth-child(4) .book__cover-inner {
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--ink-800) 100%);
}
.book__cover-inner::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}
.book__cover-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  position: relative;
}
.book__cover-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
  position: relative;
  z-index: 2;
}
.book__cover-author {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65);
  position: relative;
}
.book__info { display: flex; flex-direction: column; gap: 4px; }
.book__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-900);
}
.book__author {
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) { .books { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   ARTICLES
   ============================================ */
.articles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.article-card {
  background: var(--bg);
  padding: 40px clamp(24px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.35s;
  cursor: pointer;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.article-card:hover { background: var(--paper-dim); }
.article-card__meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  font-weight: 500;
}
.article-card__meta strong {
  color: var(--emerald-700);
  font-weight: 500;
}
.article-card__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-2xl);
  line-height: 1.1;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  /* limita a 4 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-600);
  overflow-wrap: break-word;
  word-break: break-word;
  /* limita a 4 linhas */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__arrow {
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--emerald-700);
  font-weight: 500;
}
.article-card__arrow svg {
  transition: transform 0.4s var(--ease-emph);
}
.article-card:hover .article-card__arrow svg { transform: translateX(6px); }

@media (max-width: 720px) { .articles { grid-template-columns: 1fr; } }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.1);
}
.testimonial {
  background: var(--emerald-900);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.35;
  color: var(--paper);
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 20px;
}
.testimonial__quote::before {
  content: '"';
  position: absolute;
  top: -24px;
  left: -8px;
  font-size: 80px;
  color: var(--emerald-400);
  opacity: 0.7;
  line-height: 1;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.testimonial__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--emerald-700);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
}
.testimonial__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
}
.testimonial__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald-300);
  margin-top: 2px;
}
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }

/* ============================================
   MAP
   ============================================ */
.map-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}
.map-canvas {
  position: relative;
  aspect-ratio: 1;
  background: var(--ink-100);
  border-radius: 4px;
  overflow: hidden;
}
.map-svg {
  width: 100%; height: 100%;
}
.map__region { fill: var(--ink-200); stroke: var(--paper); stroke-width: 1; transition: fill 0.3s; }
.map__region--alto { fill: var(--emerald-600); }
.map__region--alto:hover { fill: var(--emerald-700); }
.map__city {
  fill: var(--ink-900);
  stroke: var(--paper);
  stroke-width: 1;
  cursor: pointer;
  transition: all 0.3s;
}
.map__city--active {
  fill: var(--emerald-600);
  r: 8;
}
.map__city-label {
  font-size: 9px;
  font-weight: 500;
  fill: var(--ink-800);
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.map__cities-legend {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}
.map__city-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  transition: padding-left 0.4s var(--ease-emph);
}
.map__city-item:hover { padding-left: 12px; }
.map__city-item:last-child { border-bottom: 1px solid var(--rule); }
.map__city-item-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
}
.map__city-item-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
}
.map__city-item-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--emerald-700);
}

@media (max-width: 900px) { .map-section { grid-template-columns: 1fr; } }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: var(--emerald-900);
  color: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.newsletter__bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    radial-gradient(circle at 15% 20%, var(--emerald-400) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, var(--emerald-500) 0%, transparent 40%);
}
.newsletter__inner {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}
.newsletter__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-4xl);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.newsletter__sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: 48px;
  max-width: 40ch;
  margin-inline: auto;
}
.newsletter__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  max-width: 560px;
  margin-inline: auto;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
  transition: border-color 0.3s;
}
.newsletter__form:focus-within { border-color: var(--emerald-400); }
.newsletter__input {
  background: transparent;
  border: 0;
  color: var(--paper);
  font-size: var(--fs-lg);
  padding: 12px 0;
  font-family: inherit;
  outline: none;
}
.newsletter__input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter__submit {
  padding: 10px 24px;
  background: var(--paper);
  color: var(--emerald-900);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.newsletter__submit:hover { background: var(--emerald-400); color: var(--ink-900); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink-950);
  color: var(--ink-300);
  padding: clamp(60px, 8vw, 120px) var(--gutter) 40px;
}
.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule-dark);
}
.footer__brand { }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.footer__logo-mark { width: 48px; height: 48px; filter: invert(1) brightness(2); }
.footer__logo-img {
  height: 56px !important;
  width: auto !important;
  max-width: 220px;
  max-height: 56px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer__logo-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.2;
}
.footer__logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-500);
  letter-spacing: 0.2em;
  margin-top: 4px;
}
.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--paper);
  line-height: 1.2;
  max-width: 26ch;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.footer__col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--emerald-400);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__col a {
  font-size: 14px;
  color: var(--ink-300);
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--paper); }
.footer__badges {
  max-width: var(--container);
  margin-inline: auto;
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--rule-dark);
  color: var(--ink-300);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
a.footer__badge:hover { border-color: var(--emerald-400); color: var(--paper); }
.footer__badge-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--emerald-400); }
.footer__badge-text { display: flex; flex-direction: column; gap: 2px; }
.footer__badge-text strong { font-size: 12.5px; font-weight: 500; color: var(--paper); }
.footer__badge-text small { font-size: 11px; color: var(--ink-500); }

.footer__bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-500);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom a { color: var(--ink-300); }
.footer__bottom a:hover { color: var(--paper); }

@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITY
   ============================================ */
.text-accent { color: var(--emerald-600); }
.text-dim { color: var(--text-dim); }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 32px; }
.mt-8 { margin-top: 64px; }

/* big sticky section labels */
.sticky-label {
  position: sticky;
  top: 120px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  font-family: var(--font-mono);
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}


/* ============ LOGO SIZING ============ */
.nav__brand {
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  flex-shrink: 0;
}
.nav__logo-img {
  /* Vars com fallback — admin/logo controla via :root override */
  height: var(--nav-logo-h, 32px);
  width: auto;
  max-width: none;
  max-height: var(--nav-logo-h, 32px);
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  transition: height 0.4s var(--ease-out), filter 0.4s;
}
.nav.scrolled .nav__logo-img {
  height: calc(var(--nav-logo-h, 32px) - 4px);
  max-height: calc(var(--nav-logo-h, 32px) - 4px);
}
.nav.on-dark:not(.scrolled) .nav__logo-img {
  filter: brightness(0) invert(1);
}
.footer__logo-img {
  height: var(--footer-logo-h, 56px);
  width: auto;
  max-width: 320px;
  max-height: var(--footer-logo-h, 56px);
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.nav__brand { justify-content: var(--nav-logo-align, flex-start); }
.footer__brand { align-items: var(--footer-logo-align, flex-start); }
.footer__logo { display: flex; justify-content: var(--footer-logo-align, flex-start); }


/* Fraunces optical sizing for large display text */
.hero__title em,
h1 em, h2 em { 
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  font-weight: 400;
}
/* DM Sans tightened tracking at display sizes */
.hero__title,
.section-title,
h1, h2 {
  letter-spacing: -0.02em;
}
/* Better reading tracking for body */
p { letter-spacing: -0.005em; }

/* ================================================================
   Acessibilidade: skip link + focus-visible global
   ================================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 12px 18px;
  background: var(--emerald-700);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: absolute;
  left: 8px;
  top: 8px;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--emerald-500);
  outline-offset: 2px;
  border-radius: 2px;
}
.nav__cta:focus-visible,
.hero__cta:focus-visible {
  outline: 2px solid var(--emerald-300);
  outline-offset: 4px;
}
/* Garantir que cursor customizado não mascare foco real */
body.cursor-enabled :focus-visible {
  outline: 2px solid var(--emerald-400) !important;
  outline-offset: 4px !important;
}

/* ================================================================
   Hero CTAs (home)
   ================================================================ */
.hero__ctas {
  display: flex;
  gap: 14px;
  margin-top: clamp(24px, 3vw, 40px);
  flex-wrap: wrap;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1.5px solid;
  transition: background 0.25s var(--ease-out), color 0.25s, border-color 0.25s, transform 0.25s;
}
.hero__cta--primary {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: #fff;
}
.hero__cta--primary:hover {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
  transform: translateY(-2px);
}
.hero__cta--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.hero__cta--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}
.hero__cta svg { width: 16px; height: 16px; }

/* ================================================================
   Web Share — botão e popover de fallback
   ================================================================ */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: transparent;
  border: 1px solid var(--ink-300);
  color: var(--ink-700);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.share-btn:hover { background: var(--ink-900); border-color: var(--ink-900); color: var(--paper); }
.share-btn svg { width: 16px; height: 16px; }

.share-fallback {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  padding: 24px;
  width: 280px;
  z-index: 200;
  animation: shareSlide 0.25s var(--ease-out);
}
@keyframes shareSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.share-fallback__close {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border: 0; background: transparent;
  font-size: 22px; cursor: pointer;
  color: var(--ink-500);
}
.share-fallback__close:hover { color: var(--ink-900); }
.share-fallback__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--ink-900);
}
.share-fallback__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.share-fallback__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--rule);
  background: var(--paper-dim);
  color: var(--ink-800);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.share-fallback__btn:hover { background: var(--bg); border-color: var(--ink-700); }
@media (max-width: 600px) {
  .share-fallback { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

/* ================================================================
   Download paywall hint (livros) — microcopy antes do redirect
   ================================================================ */
.download-hint {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--paper-dim);
  border-left: 3px solid var(--emerald-500);
  font-size: 14px;
  color: var(--ink-700);
  margin: 24px 0;
  border-radius: 2px;
}
.download-hint__icon {
  flex-shrink: 0;
  color: var(--emerald-700);
  margin-top: 2px;
}
.download-hint strong {
  display: block;
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.download-hint a { color: var(--emerald-700); font-weight: 500; }
.download-hint a:hover { color: var(--emerald-900); text-decoration: underline; }

/* ============================================
   RESPONSIVIDADE MOBILE — patch global 2026-05-12
   ============================================ */

/* Containers/seções nunca podem exceder o viewport */
@media (max-width: 900px) {
  .container, .section, main, header, footer { max-width: 100vw; }
  .hero__bg, .hero__bg-image { max-width: 100vw; overflow: hidden; }

  /* Hero CTAs em coluna pra evitar quebra estranha */
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__cta { width: 100%; justify-content: center; }

  /* Tipografia mais legível em telas pequenas */
  h1, .page-hero__title, .hero__title { word-break: break-word; hyphens: auto; }

  /* Logo do menu reduz proporcionalmente em telas estreitas (cap 64px) */
  .nav__logo-img {
    max-height: min(var(--nav-logo-h, 32px), 64px);
    height: min(var(--nav-logo-h, 32px), 64px);
  }
  .nav.scrolled .nav__logo-img {
    max-height: min(var(--nav-logo-h, 32px), 56px);
    height: min(var(--nav-logo-h, 32px), 56px);
  }
}

/* Mobile pequeno — livros, grids e featured-book */
@media (max-width: 640px) {
  /* Reduz a rotação do destaque pra não vazar */
  .featured-book__cover { transform: rotate(0deg) !important; }
  .featured-book__cover:hover { transform: translateY(-6px) !important; }

  /* Garante que imagens do destaque não cresçam */
  .featured-book__cover img { max-width: 100% !important; }

  /* Page hero com gutter consistente */
  .page-hero, .hero { padding-left: clamp(16px, 4vw, 24px); padding-right: clamp(16px, 4vw, 24px); }

  /* Footer em coluna */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  /* Touch targets mínimos 44px (WCAG 2.5.5) para links primários */
  .nav__drawer-link,
  .btn,
  .hero__cta,
  .download-card a,
  .book a,
  .article-card a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Tablet — corrige imagens largas e marquee */
@media (max-width: 900px) {
  .marquee { overflow: hidden; max-width: 100vw; }
  img, picture { max-width: 100%; }
}

/* Hero de páginas internas (page-hero) com padding-bottom melhor no mobile */
@media (max-width: 720px) {
  .page-hero { min-height: 60vh; padding-top: 100px; padding-bottom: 60px; }
  .section { padding: 64px clamp(16px, 4vw, 24px); }

  /* Footer touch targets — gap maior + padding-y nos links */
  .footer__col ul { gap: 4px; }
  .footer__col a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 0;
  }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Contato em institucional */
  .contact-card__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    word-break: break-word;
  }
}
