/* ===========================================================
   FACESP · tema custom · estilos globais
   Baseado no protótipo "Direção D" (prototipo-d/index.html).

   Sumário:
     1. Fontes locais
     2. Design tokens (CSS custom properties)
     3. Reset + base
     4. Layout (container)
     5. Tipografia utilitária
     6. Botões (.proto-btn + modificadores)
     7. Header / Footer
     8. Hover states
     9. Animações
    10. Responsivo
   =========================================================== */


/* ─── 1. Fontes locais ─────────────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/geist-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/geist-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/geist-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/geist-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ─── 2. Design tokens ──────────────────────────────────────── */
:root {
  /* cores */
  --color-ink:         #0f1412;
  --color-green:       #00733F;
  --color-green-dark:  #004D2A;
  --color-green-light: #a7d88e;
  --color-cream:       #f4f1ea;
  --color-cream-hover: #ebe6db;
  --color-gray-100:    #f2f3f2;
  --color-gray-200:    #e7e9e7;
  --color-gray-300:    #d6dad7;
  --color-gray-400:    #b5bab7;
  --color-gray-500:    #8a928e;
  --color-gray-700:    #4a524e;
  --color-paper:       #ffffff;

  /* tipografia */
  --font-sans:  'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono:  'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --page-pad:     48px;
  --max-width:    1440px;
  --header-h:     72px;
  --utility-h:    36px;

  /* layout — páginas internas (feature paginas-internas-home-identity) */
  --content-max:  860px;
  --sidebar-w:    320px;
  --layout-gap:   64px;
  --band-pad-y:   56px;
  --sticky-top:   96px;

  /* breakpoints — referência documental (feature responsividade-global).
     var() não resolve dentro de @media: os valores vão literais nas queries,
     sempre escolhidos desta tabela.
       --bp-sm 480px  mobile pequeno
       --bp-md 768px  tablet ↓ / mobile grande
       --bp-lg 1024px desktop ↓ / tablet (menu vira mobile aqui)
       --bp-xl 1280px desktop wide */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
}


/* ─── 3. Reset + base ─────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}


/* ─── 4. Layout ────────────────────────────────────────────── */
.proto-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  width: 100%;
}
.proto-container--flush { padding: 0; }


/* ─── 5. Tipografia utilitária ────────────────────────────── */

/* Eyebrow: rótulo pequeno, uppercase, espaçado (cabeçalho de seção) */
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-green);
  font-weight: 700;
}

/* Serif editorial usada em todos os títulos de seção (Fraunces) */
.serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1;
  margin: 0;
}
.serif--xs { font-size: 18px;                       letter-spacing: -0.3px; line-height: 1.25; }
.serif--sm { font-size: 20px;                       letter-spacing: -0.4px; line-height: 1.15; }
.serif--md { font-size: 26px;                       letter-spacing: -0.6px; line-height: 1.05; }
.serif--lg { font-size: clamp(28px, 3.4vw, 44px);   letter-spacing: -1px;   line-height: 1; }
.serif--xl { font-size: clamp(32px, 4vw,   52px);   letter-spacing: -1.2px; line-height: 0.98; }
.serif--xxl{ font-size: clamp(40px, 5.2vw, 72px);   letter-spacing: -2px;   line-height: 0.95; }

/* Section-head: cabeçalho compartilhado entre quase todas as seções */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-gray-200);
  gap: 24px;
  flex-wrap: wrap;
}
.section-head--strong { border-bottom-color: var(--color-gray-300); }
.section-head__title { margin: 0; }
.section-head__eyebrow { margin-bottom: 12px; }
.section-head__cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-gray-400);
}


/* ─── 6. Botões ────────────────────────────────────────────── */
.proto-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 160ms ease;
  border: 1px solid transparent;
}
.proto-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.proto-btn--sm { padding: 8px 14px; font-size: 12px; }
.proto-btn--md { padding: 12px 20px; font-size: 13px; }
.proto-btn--lg { padding: 16px 28px; font-size: 14px; }

.proto-btn--primary { background: var(--color-green); color: #fff; border-color: var(--color-green); }
.proto-btn--dark    { background: var(--color-ink);   color: #fff; border-color: var(--color-ink); }
.proto-btn--ghost   { background: transparent; color: var(--color-ink); border-color: var(--color-gray-400); }
.proto-btn--square  { border-radius: 0; font-weight: 500; text-transform: none; }


/* ─── 7. Header / Footer ──────────────────────────────────── */
/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; }

.site-utility {
  background: var(--color-ink);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  height: var(--utility-h);
}
.site-utility__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-utility__brand {
  font-size: 11px;
  letter-spacing: 0.5px;
  opacity: 0.7;
}
.site-utility__left  { display: flex; gap: 20px; align-items: center; }
.site-utility__right { display: flex; gap: 20px; align-items: center; }
.site-utility__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit; text-decoration: none;
}
.site-utility__divider {
  width: 1px; height: 14px; background: rgba(255,255,255,0.2);
}
.site-utility__external {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.site-utility__cta {
  display: inline-flex; gap: 6px; align-items: center;
  background: var(--color-green);
  padding: 4px 10px;
  border-radius: 3px;
  color: #fff;
  font-weight: 600;
}
.site-utility__badge {
  font-size: 9px;
  background: #fff;
  color: var(--color-green);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.site-nav {
  background: #fff;
  color: var(--color-ink);
  height: var(--header-h);
  border-bottom: 1px solid var(--color-gray-200);
  position: relative; /* âncora pro .site-mega absoluto */
}
.site-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav__logo img { height: 44px; width: auto; display: block; }
.site-nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}
.site-nav__menu {
  display: flex; gap: 28px; align-items: center; height: 100%;
}
.site-nav__search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-ink);
  cursor: pointer;
  transition: color 160ms ease;
}
.site-nav__search-toggle:hover,
.site-nav__search-toggle[aria-expanded="true"] {
  color: var(--color-green);
}
/* filete sutil separando a busca dos links de navegação (desktop) */
.site-nav__search-toggle::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 1px;
  height: 18px;
  background: var(--color-gray-200);
}
.site-nav__search-toggle { position: relative; }
.site-nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-gray-300);
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--color-ink);
  cursor: pointer;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  position: relative;
  transition: color 160ms ease;
}
.nav-link:hover,
.nav-link.is-mega-active { color: var(--color-green); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--color-green);
  transition: right 200ms ease;
}
.nav-link:hover::after,
.nav-link.is-mega-active::after { right: 0; }
.nav-link__chevron {
  opacity: 0.65;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-link--has-mega:hover:not(.is-mega-active) .nav-link__chevron {
  transform: rotate(45deg);
  opacity: 1;
}
.nav-link.is-mega-active .nav-link__chevron { transform: rotate(180deg); opacity: 1; }
.nav-link--has-mega:hover:not(.is-mega-active)::after { right: 100%; }

/* Overlay (scrim) que escurece a página quando um mega-menu abre.
   z-index 45: abaixo do .site-header (50, com seu próprio stacking context,
   inclui o painel .site-mega), acima do conteúdo da página. */
.mega-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 18, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 45;
}
body.is-mega-open .mega-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Mega-menu (dropdown ancorado embaixo de .site-nav) */
.site-mega {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15,20,18,0.28);
  /* Recorta a sombra no topo (inset top 0) para ela não vazar
     acima da borda superior por cima da barra de navegação;
     laterais e base liberadas (-80px) para a sombra aparecer. */
  clip-path: inset(0 -80px -80px -80px);
  border-top: 1px solid var(--color-gray-200);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 40;
}
.site-mega.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.site-mega__inner { padding: 32px var(--page-pad); }
.site-mega__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-gray-200);
  gap: 24px;
}
.site-mega__title {
  margin-top: 8px;
  font-size: 26px;
  color: var(--color-ink);
}
.site-mega__cta {
  font-size: 11px;
  color: var(--color-ink);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-ink);
  padding-bottom: 2px;
  white-space: nowrap;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mega-item {
  display: block;
  padding: 18px;
  background: var(--color-cream);
  color: inherit;
  border-top: 2px solid transparent;
  transition: all 160ms ease;
}
.mega-item__cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 10px;
}
.mega-item__name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--color-ink);
  line-height: 1.15;
}
.mega-item__tagline {
  font-size: 11px;
  color: var(--color-gray-700);
  margin-top: 8px;
  line-height: 1.45;
}

/* Variante "lista simples" — só nome (+ ícone externo opcional). Usada pelo Institucional. */
.mega-grid--simple {
  grid-template-columns: repeat(3, 1fr);
}
.mega-item--simple {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mega-item--simple .mega-item__name {
  font-size: 15px;
}
.mega-item__ext {
  font-size: 13px;
  color: var(--color-green);
  opacity: 0.7;
  transition: opacity 160ms ease, transform 160ms ease;
}
.mega-item--ext:hover .mega-item__ext {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Busca do header — painel dropdown ancorado embaixo de .site-nav
   (mesmo padrão posicional do .site-mega). */
.site-search {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15,20,18,0.28);
  clip-path: inset(0 -80px -80px -80px);
  border-top: 1px solid var(--color-gray-200);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 45;
}
.site-search.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.site-search__inner { padding: 28px var(--page-pad) 30px; }
.site-search__eyebrow { display: block; margin-bottom: 14px; }

/* Campo editorial: sem caixa — apenas um filete inferior que acende em verde no foco. */
.site-search__form {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--color-gray-300);
  padding-bottom: 14px;
  transition: border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-search__form:focus-within { border-color: var(--color-green); }
.site-search__icon {
  color: var(--color-gray-400);
  flex-shrink: 0;
  transition: color 220ms ease;
}
.site-search__form:focus-within .site-search__icon { color: var(--color-green); }
.site-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.5px;
  color: var(--color-ink);
  padding: 4px 0;
}
.site-search__input::placeholder { color: var(--color-gray-400); font-weight: 300; }
.site-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.site-search__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-ink);
  padding: 4px 0;
  transition: color 160ms ease;
}
.site-search__submit svg { transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.site-search__submit:hover { color: var(--color-green); }
.site-search__submit:hover svg { transform: translateX(4px); }

/* --- Footer --- */
.site-footer {
  background: var(--color-green-dark);
  color: #fff;
  padding: 64px 0 32px;
}
.site-footer__top {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__brand   { max-width: 560px; }
.site-footer__logo    { height: 36px; width: auto; display: block; filter: brightness(0) invert(1); }
.site-footer__address { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 24px; line-height: 1.7; }
.site-footer__address b { color: #fff; }
.site-footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.site-footer__social  {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}
.site-footer__social:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.site-footer__social svg { width: 16px; height: 16px; display: block; }
.site-footer__menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer__col-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-green-light);
  text-transform: uppercase;
}
.site-footer__col-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.site-footer__col-links a { color: inherit; }
.site-footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 12px;
}


/* ─── 8. Hover states (componentes da home) ───────────────── */
.mega-item:hover {
  border-top-color: var(--color-green);
  background: var(--color-cream-hover);
  transform: translateY(-2px);
}
.noticia-hero img,
.noticia-item img { transition: transform 600ms ease; }
.noticia-hero:hover img,
.noticia-item:hover img { transform: scale(1.04); }
.servico-card { transition: transform 200ms ease, box-shadow 200ms ease; }
.servico-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(15,20,18,0.08); }
.evento-std { transition: background 160ms ease; }
.evento-std:hover { background: #f9f8f4; }


/* ─── 9. Animações globais ────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes marqueeD {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); } /* exatamente 1 de 3 cópias → loop sem pulo */
}
@keyframes heroProgress {
  from { stroke-dashoffset: 144.51; } /* 2π · 23 */
  to   { stroke-dashoffset: 0; }
}


/* ─── 10. Responsivo ──────────────────────────────────────── */
@media (max-width: 1280px) { /* ≤ --bp-xl */
  :root { --page-pad: 32px; }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) { /* ≤ --bp-lg — menu vira mobile */
  :root { --page-pad: 28px; }
  .hide-mobile { display: none !important; }
  .site-nav__toggle { display: inline-flex; }
  .site-nav__search-toggle::before { display: none; } /* sem filete divisor no mobile */
  /* menu/mega/overlay no mobile = drawer (ver seção "Menu mobile" abaixo) */
  .site-footer__menu { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) { /* ≤ --bp-sm */
  :root { --page-pad: 20px; }
  .site-utility__left { display: none; }
  .site-utility__inner { justify-content: center; } /* sobra só o __right → centraliza */
  .mega-grid { grid-template-columns: 1fr; }
  .site-footer__menu { grid-template-columns: 1fr; }

  /* busca: campo enxuto no mobile — submit vira só a seta */
  .site-search__icon { width: 20px; height: 20px; }
  .site-search__form { gap: 10px; }
  .site-search__submit-label { display: none; }
  .site-search__submit svg { width: 22px; height: 22px; }
}


/* ===========================================================
   Menu mobile · drawer + acordeão (feature responsividade-global)
   Ativo só em ≤ --bp-lg (1024px). O JS (initMobileNav) reparenteia
   cada .site-mega para dentro de #site-nav-drawer no mobile.
   =========================================================== */
@media (max-width: 1024px) {
  /* trava de scroll quando o drawer está aberto */
  body.is-drawer-locked { overflow: hidden; }

  /* toggle clicável ACIMA do drawer (mesma stacking context do header) */
  .site-nav__toggle { position: relative; z-index: 70; }

  /* drawer = menu em tela cheia ABAIXO do header (uma tela só) */
  .site-nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    position: fixed;
    top: calc(var(--utility-h) + var(--header-h));
    left: 0; right: 0; bottom: 0;
    padding: 0 0 24px;
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 0s linear 220ms;
    z-index: 60;
  }
  body.is-drawer-open .site-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
  }
  /* offset da admin bar do WP quando logado (32px; 46px no mobile, abaixo) */
  body.admin-bar .site-nav__menu { top: calc(var(--utility-h) + var(--header-h) + 32px); }

  /* filhos do drawer não encolhem: mantêm altura natural e o drawer rola */
  .site-nav__menu > * { flex-shrink: 0; }

  /* item-pai: linha confortável e respirada */
  .site-nav__menu .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 60px;
    padding: 16px var(--page-pad);
    font-size: 17px;
    border-bottom: 1px solid var(--color-gray-200);
  }
  .site-nav__menu .nav-link::after { content: none; } /* sem underline animado */
  .site-nav__menu .nav-link__chevron { opacity: 0.5; }
  .site-nav__menu .nav-link.is-mega-active { color: var(--color-green); }

  /* acordeão: sem bloco cinza — sub-opções na MESMA superfície branca,
     recuadas e com um filete verde à esquerda pra indicar hierarquia */
  .site-nav__menu .site-mega {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    clip-path: none;
    border-top: none;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease;
  }
  .site-nav__menu .site-mega.is-open { max-height: 2400px; }
  .site-nav__menu .site-mega__inner { padding: 0; }
  /* só os nomes das opções: sem cabeçalho do mega, sem categoria/descrição */
  .site-nav__menu .site-mega__head,
  .site-nav__menu .mega-item__cat,
  .site-nav__menu .mega-item__tagline { display: none; }
  .site-nav__menu .mega-grid,
  .site-nav__menu .mega-grid--simple { grid-template-columns: 1fr; gap: 0; }
  .site-nav__menu .mega-item {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px var(--page-pad) 12px calc(var(--page-pad) + 16px);
    font-size: 15px;
    color: var(--color-gray-700);
    border-top: 0;        /* mata o 2px transparent herdado (degrau + filete cortado) */
    border-bottom: 1px solid var(--color-gray-200); /* divisor sutil entre os cremes */
    box-shadow: inset 3px 0 0 var(--color-green-light); /* filete verde contínuo */
  }
  .site-nav__menu .mega-item:last-child { border-bottom: 0; }
  /* pai aberto encosta na sub-lista (sem linha entre eles) */
  .site-nav__menu .nav-link.is-mega-active { border-bottom-color: transparent; }

  /* drawer cobre a tela inteira abaixo do header → scrim dispensável */
  body.is-drawer-open .mega-overlay { opacity: 0; pointer-events: none; }
}
@media (max-width: 782px) { /* admin bar do WP fica 46px no mobile */
  body.admin-bar .site-nav__menu { top: calc(var(--utility-h) + var(--header-h) + 46px); }
}


/* ===========================================================
   Erro 404 (feature responsividade-global) — centralizado e fluido
   =========================================================== */
.error-404 {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(64px, 12vw, 140px) var(--page-pad);
  text-align: center;
}
.error-404 h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--color-ink);
  margin: 0 0 16px;
}
.error-404 p {
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 1.6;
  color: var(--color-gray-700);
  margin: 0 auto 32px;
  max-width: 48ch;
}
.error-404 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--color-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 160ms ease;
}
.error-404 a:hover { background: var(--color-green-dark); }


/* ===========================================================
   Breadcrumbs (compartilhado: notícias, páginas, archives)
   =========================================================== */
.noticias-breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-bottom: 24px;
}
.noticias-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.noticias-breadcrumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--color-gray-400);
}
.noticias-breadcrumbs a {
  color: var(--color-gray-700);
  text-decoration: none;
}
.noticias-breadcrumbs a:hover { color: var(--color-green); }
.noticias-breadcrumbs li[aria-current="page"] span {
  color: var(--color-ink);
}
