/*
Theme Name: Aliança Verde Amazônia
Theme URI: https://aliancaverde.com.br
Author: Aliança Verde Amazônia
Author URI: https://aliancaverde.com.br
Description: Tema institucional one-page para apresentação institucional e captação (BNDES Fundo Clima) da Aliança Verde Amazônia.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietário — uso restrito Aliança Verde Amazônia
Text Domain: alianca-verde-amazonia

NOTA DE CONVERSÃO — ajustar os metadados acima (URI, versão, requisitos)
antes do deploy final do tema.
*/

/* ==========================================================================
   01. FONTS
   WORDPRESS: os caminhos url() abaixo são relativos ao tema. Na conversão
   final, prefixar cada um com <?php echo get_template_directory_uri(); ?>/
   ex.: url('<?php echo get_template_directory_uri(); ?>/fontes/SourceSans3-Medium.ttf')
   ========================================================================== */
@font-face {
  font-family: 'SourceSans';
  src: url('./fontes/SourceSans3-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'SourceSans';
  src: url('./fontes/SourceSans3-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ==========================================================================
   02. DESIGN TOKENS (:root)
   Tokens agrupados por categoria — Cores, Tipografia, Espaçamento/Layout e
   Bordas — para facilitar a manutenção e futuras iterações visuais.
   ========================================================================== */
:root {
  /* ---- Cores ---- */
  --verde-1:  #052c01;
  --verde-2:  #42691a;
  --verde-3:  #101c00;
  --terra:    #b18d68;
  --creme:    #f5f0e8;
  --bege:     #d9cfc0;
  --carvao:   #2c3531;
  --marrom:   #7a3b2e;
  --bronze:   #74654e;
  --branco:   #ffffff;

  /* ---- Tipografia ---- */
  --font:        'SourceSans', system-ui, -apple-system, sans-serif;
  --t-h1:        clamp(3rem, 7vw, 4.5rem);
  --t-h2:        clamp(2rem, 4vw, 2.75rem);
  --t-h2-sm:     clamp(1.5rem, 3vw, 2rem);
  --t-secondary: 1.25rem;
  --t-highlight: 1.25rem;
  --t-body:      1rem;
  --t-label:     0.875rem;
  --t-eyebrow:   0.875rem;

  /* ---- Espaçamento & Layout ---- */
  --max:   1200px;
  --pad-x: clamp(1.5rem, 5vw, 3rem);
  --pad-y: clamp(4rem, 8vw, 7rem);
  --gap:   16px;

  /* ---- Bordas ---- */
  --radius: 32px;
}

/* ==========================================================================
   03. RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--t-body);
  color: var(--carvao);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ==========================================================================
   04. LAYOUT
   ========================================================================== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--pad-y) var(--pad-x); }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* ==========================================================================
   05. TYPOGRAPHY
   ========================================================================== */
.eyebrow {
  font-family: var(--font); font-weight: 700;
  font-size: var(--t-eyebrow); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--verde-2);
  margin-bottom: 0.75rem; display: block;
}
.eyebrow--terra  { color: var(--terra); }
.eyebrow--muted  { color: rgba(245,240,232,.45); }
.heading {
  font-family: var(--font); font-weight: 700;
  font-size: var(--t-h2); line-height: 1.1;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--verde-1);
}
.heading--light { color: var(--creme); }
.heading--compact { font-size: var(--t-h2-sm); }
.lead {
  font-family: var(--font); font-weight: 500;
  font-size: var(--t-highlight); line-height: 1.7;
}
.body-text {
  font-family: var(--font); font-weight: 500;
  font-size: var(--t-body); line-height: 1.75;
}

/* ==========================================================================
   06. NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.9rem var(--pad-x);
  background: rgba(5,44,1,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(66,105,26,.22);
}
.nav-logo { height: 28px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,240,232,.62); text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--creme); }

/* Hambúrguer — 3 barras em CSS puro, vira "X" via .is-open */
.nav-toggle {
  display: none;
  position: relative;
  width: 28px; height: 20px;
  background: none; border: none; padding: 0; cursor: pointer;
}
.nav-toggle-bar {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--creme); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 9px; }
.nav-toggle-bar:nth-child(3) { top: 18px; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ==========================================================================
   07. HERO — CAROUSEL
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-carousel { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1.4s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    170deg,
    rgba(5,44,1,.68) 0%,
    rgba(5,44,1,.28) 45%,
    rgba(5,44,1,.72) 100%
  );
}
.hero-content {
  position: relative; z-index: 3; width: 100%;
  padding: var(--pad-y) var(--pad-x);
  padding-top: calc(var(--pad-y) + 60px);
  padding-bottom: var(--pad-y);
}
.hero-content > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.hero-logo { height: 240px; width: auto; margin: 0 auto 3rem; }
.hero-content > div { text-align: center; }
.hero-kicker {
  font-weight: 700; font-size: var(--t-eyebrow);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--creme); margin-bottom: 1.5rem;
}
.hero-subtitle {
  font-weight: 500; font-size: var(--t-highlight);
  color: var(--creme); max-width: 52ch; line-height: 1.7;
  margin-left: auto; margin-right: auto;
}
/* Blur fade layer — transição hero → manifesto (--verde-3) */
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 240px; z-index: 4; pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(16,28,0,.55) 52%,
    var(--verde-3) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 58%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 58%);
}
.hero-dots {
  position: absolute; bottom: 2.25rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.32);
  cursor: pointer; transition: background .3s, transform .3s;
  border: none; padding: 0;
}
.hero-dot.active { background: var(--terra); transform: scale(1.3); }

/* ==========================================================================
   08. MANIFESTO
   ========================================================================== */
.manifesto { background: var(--verde-3); }
.manifesto-intro {
  font-weight: 700; font-size: var(--t-h2);
  color: var(--creme); line-height: 1.15;
  max-width: 820px; margin-bottom: 3rem;
}
.manifesto-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
.manifesto-cols p {
  font-size: var(--t-highlight);
  color: rgba(245,240,232,.75); line-height: 1.8;
}
.manifesto-tagline {
  font-weight: 700; font-size: var(--t-secondary);
  color: var(--terra); letter-spacing: 0.08em;
  text-transform: uppercase; padding-top: 2.5rem;
  border-top: 1px solid rgba(177,141,104,.28);
}

/* ==========================================================================
   09. TESE — Problema / Abordagem
   ========================================================================== */
.tese { background: var(--creme); }
.tese-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gap); margin-top: 2.75rem;
}
/* Card sólido em --bronze; a borda superior (cor) é o único diferenciador
   entre "Contexto" (--marrom) e "Abordagem" (--verde-1, via .tese-card--solucao) */
.tese-card {
  display: flex; flex-direction: column; gap: 1.25rem;
  background: var(--bronze); padding: 2rem;
  border-top: 4px solid var(--marrom);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tese-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.16); }
.tese-card--solucao { border-top-color: var(--verde-1); }
.tese-card-head { display: flex; align-items: center; gap: 1rem; }
.tese-card-head-icone { width: 28px; height: 28px; flex-shrink: 0; filter: brightness(0) invert(1); }
.tese-card-head-titulo {
  font-weight: 700; font-size: var(--t-secondary);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--branco);
}
.tese-card-body ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.tese-card-body li {
  font-size: var(--t-body); line-height: 1.75; color: var(--creme);
  padding-left: 1.5rem; position: relative;
}
.tese-card-body li::before {
  content: '–'; position: absolute; left: 0;
  color: var(--terra); font-weight: 700;
}

/* ==========================================================================
   10. PILARES — bento 3 + 2
   ========================================================================== */
.pilares { background: var(--verde-1); }
.pilares-header { margin-bottom: 3rem; }
.pilares-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
}
.pilar { grid-column: span 2; }
.pilar:nth-child(4) { grid-column: span 3; }
.pilar:nth-child(5) { grid-column: span 3; }
.pilar {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.pilar:hover {
  background: rgba(66,105,26,.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}
.pilar-numero {
  font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--terra);
}
.pilar-icone { width: 36px; height: 36px; filter: brightness(0) invert(1); }
.pilar-name {
  font-weight: 700; font-size: var(--t-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--creme); line-height: 1.2;
}
.pilar-badge {
  display: inline-block; font-weight: 700;
  font-size: var(--t-label); letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.35em 1em;
  border-radius: 100px;
  border: 1px solid rgba(177,141,104,.4);
  color: var(--terra); align-self: flex-start;
}
.pilar-prazo {
  display: inline-block; font-weight: 700;
  font-size: var(--t-label); letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3em 0.75em;
  border-radius: 100px;
  border: 1px solid rgba(245,240,232,.18);
  color: rgba(245,240,232,.5); align-self: flex-start;
}
.pilar-descricao {
  font-weight: 500; font-size: var(--t-body);
  line-height: 1.75; color: rgba(245,240,232,.62);
}

/* ==========================================================================
   11. TERRITORIAL
   ========================================================================== */
.territorial { background: var(--verde-1); position: relative; overflow: hidden; }
.territorial-bg,
.territorial-bg-overlay { position: absolute; inset: 0; z-index: 0; max-width: none; margin: 0; }
.territorial-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.territorial-bg-overlay { z-index: 1; background: rgba(5,44,1,.6); }
.territorial .wrap { position: relative; z-index: 2; }
.territorial-inner { border-top: none; padding-top: 0; }
.territorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 2.75rem; }
.territorial-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.territorial-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.28); }
.territorial-card-head { padding: 1.75rem 2rem; }
.territorial-card-head--eixo1 { background: rgba(5,44,1,.8); }
.territorial-card-head--eixo2 { background: rgba(66,105,26,.7); }
.territorial-card-eixo {
  font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 0.5rem;
}
.territorial-card-titulo {
  font-weight: 700; font-size: var(--t-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--creme); line-height: 1.3;
}
.territorial-card-body { padding: 1.75rem 2rem; background: rgba(255,255,255,.04); }
.territorial-card-body p { font-size: var(--t-body); line-height: 1.75; color: rgba(245,240,232,.72); }

/* ==========================================================================
   12. IMPACTO
   ========================================================================== */
.impacto { background: var(--verde-2); position: relative; overflow: hidden; }
.impacto::after {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: rgba(5,44,1,.18); pointer-events: none;
}
.impacto-bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap); margin: 2.75rem 0;
}
.impacto-card:nth-child(5) { grid-column: span 2; }
.impacto-card {
  background: rgba(5,44,1,.28);
  border: 1px solid rgba(245,240,232,.1);
  border-radius: var(--radius); padding: 2rem;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.impacto-card:hover {
  background: rgba(5,44,1,.42);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}
.impacto-icone { width: 36px; height: 36px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); }
.impacto-valor {
  font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--creme); line-height: 1; margin-bottom: 0.4rem;
}
.impacto-label {
  font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,240,232,.5); margin-bottom: 0.6rem;
}
.impacto-descricao { font-weight: 500; font-size: var(--t-body); line-height: 1.75; color: rgba(245,240,232,.7); }
.comunidades-box {
  background: rgba(5,44,1,.25);
  border: 1px solid rgba(245,240,232,.1);
  border-radius: var(--radius); padding: 2rem;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.comunidades-box:hover {
  background: rgba(5,44,1,.4);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}
.comunidades-titulo {
  font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 1.5rem;
}
.comunidades-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.comunidades-nome { font-weight: 700; font-size: var(--t-secondary); color: var(--creme); margin-bottom: 0.35rem; }
.comunidades-detalhe { font-weight: 500; font-size: var(--t-body); color: rgba(245,240,232,.55); line-height: 1.6; }

/* ==========================================================================
   13. EQUIPE
   ========================================================================== */
.equipe { background: var(--creme); }
.equipe-bento {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: var(--gap); margin-top: 2.75rem;
}
.equipe-card:nth-child(1) { grid-column: span 3; }
.equipe-card:nth-child(2) { grid-column: span 3; }
.equipe-card:nth-child(3) { grid-column: span 2; }
.equipe-card:nth-child(4) { grid-column: span 2; }
.equipe-card:nth-child(5) { grid-column: span 2; }
.equipe-card:nth-child(6) { grid-column: span 6; }
.equipe-card {
  background: var(--branco);
  border: none;
  border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 2px 16px rgba(44,53,49,.08), 0 1px 4px rgba(44,53,49,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.equipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(44,53,49,.18), 0 4px 12px rgba(44,53,49,.08);
}
.equipe-nome {
  font-weight: 700; font-size: var(--t-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--verde-1); margin-bottom: 0.3rem;
}
.equipe-cargo {
  font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--verde-2); margin-bottom: 0.85rem;
}
.equipe-bio { font-weight: 500; font-size: var(--t-body); line-height: 1.75; color: rgba(44,53,49,.7); }

/* ==========================================================================
   14. ODS / ALINHAMENTO
   ========================================================================== */
.ods { background: var(--verde-1); }
.ods-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: var(--gap); margin-top: 2.5rem;
}
.ods-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem; text-align: center;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.ods-item:hover {
  background: rgba(66,105,26,.35);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}
.ods-numero { font-weight: 700; font-size: 1.5rem; color: var(--terra); margin-bottom: 0.4rem; }
.ods-name {
  font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(245,240,232,.52); line-height: 1.4; margin-bottom: 0.5rem;
}
.ods-metric { font-weight: 500; font-size: var(--t-body); color: rgba(245,240,232,.45); line-height: 1.55; }

/* ==========================================================================
   15. CTA
   ========================================================================== */
.cta { background: var(--creme); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; }
.cta-label {
  font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--marrom); margin-bottom: 0.75rem;
}
.cta-title {
  font-weight: 700; font-size: var(--t-h2);
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--verde-1); line-height: 1.1; margin-bottom: 1.25rem;
}
.cta-text { font-weight: 500; font-size: var(--t-body); line-height: 1.75; color: rgba(5,44,1,.7); }
.cta-contact {
  background: var(--verde-1); border-radius: var(--radius);
  padding: 2rem; min-width: 270px;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.cta-contact-item strong {
  display: block; font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 0.4rem;
}
.cta-contact-item p { font-size: var(--t-body); line-height: 1.65; color: rgba(245,240,232,.65); }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.footer {
  background: var(--verde-1);
  border-top: 1px solid rgba(66,105,26,.25);
  padding: 2.25rem var(--pad-x);
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.footer-logo { height: 26px; opacity: .7; }
.footer-text { font-size: var(--t-label); color: rgba(245,240,232,.3); line-height: 1.6; }
.footer-contacts {
  display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
}
.footer-contacts a {
  font-size: var(--t-label); color: rgba(245,240,232,.45);
  letter-spacing: 0.04em; text-decoration: none; transition: color .2s;
}
.footer-contacts a:hover { color: var(--creme); }
.footer-privacy {
  font-size: var(--t-label); color: rgba(245,240,232,.45);
  letter-spacing: 0.04em; text-decoration: none; transition: color .2s;
}
.footer-privacy:hover { color: var(--creme); }

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .pilares-bento { grid-template-columns: repeat(3, 1fr); }
  .pilar { grid-column: span 1 !important; }
  .impacto-bento { grid-template-columns: repeat(2, 1fr); }
  .impacto-card:nth-child(5) { grid-column: span 2; }
  .ods-grid { grid-template-columns: repeat(3, 1fr); }
  .equipe-bento { grid-template-columns: repeat(3, 1fr); }
  .equipe-card:nth-child(1), .equipe-card:nth-child(2) { grid-column: span 1; }
  .equipe-card:nth-child(3), .equipe-card:nth-child(4), .equipe-card:nth-child(5) { grid-column: span 1; }
  .equipe-card:nth-child(6) { grid-column: span 3; }
}
@media (max-width: 768px) {
  /* Header mobile: logo centralizado, toggle na extremidade direita */
  .nav { justify-content: flex-end; }
  .nav > a { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav-toggle { display: block; }

  /* Collapse do menu — desce suavemente; visibility some só ao fim do
     fechamento, então links não ficam focáveis enquanto ocultos */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5,44,1,.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility .35s ease;
  }
  .nav-links.is-open { max-height: 60vh; visibility: visible; }
  .nav-links li { border-top: 1px solid rgba(245,240,232,.08); }
  .nav-links a { display: block; padding: 1rem var(--pad-x); }

  .nav-logo { height: 20px; }
  .hero-logo { height: 192px; }
  .manifesto-cols { grid-template-columns: 1fr; }
  .tese-cols { grid-template-columns: 1fr; }
  .pilares-bento { grid-template-columns: 1fr 1fr; }
  .pilar { grid-column: span 1 !important; }
  .impacto-bento { grid-template-columns: 1fr 1fr; }
  .territorial-grid { grid-template-columns: 1fr; }
  .equipe-bento { grid-template-columns: 1fr 1fr; }
  .equipe-card { grid-column: span 1 !important; }
  .comunidades-grid { grid-template-columns: repeat(2, 1fr); }
  .ods-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-contact { min-width: unset; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-text { text-align: left; }
}
@media (max-width: 480px) {
  .hero-logo { height: 144px; }
  .pilares-bento { grid-template-columns: 1fr; }
  .impacto-bento { grid-template-columns: 1fr; }
  .impacto-card:nth-child(5) { grid-column: span 1; }
  .ods-grid { grid-template-columns: 1fr; }
  .equipe-bento { grid-template-columns: 1fr; }
  .comunidades-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   18. SCROLL REVEAL
   ========================================================================== */
/* Usa `translate` (não `transform`) para a entrada — assim os hovers dos
   cards, que animam `transform`, nunca são pisados pela classe .visible */
.reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.65s ease-out, translate 0.65s ease-out;
}
.reveal.visible {
  opacity: 1;
  translate: 0 0;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; translate: none !important; transition: none !important; }
  .nav-links, .nav-toggle-bar, .back-to-top,
  .tese-card, .pilar, .territorial-card, .impacto-card, .equipe-card,
  .comunidades-box, .ods-item {
    transition: none !important;
  }
}

/* ==========================================================================
   19. COOKIE BANNER (LGPD)
   Aviso fixo de consentimento; permanece até o aceite (ver main.js).
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1.5rem;
  background: var(--verde-1);
  padding: 1.25rem var(--pad-x);
  border-top: 1px solid rgba(177,141,104,.3);
}
.cookie-banner.is-hidden { display: none; }
.cookie-banner-text {
  font-size: var(--t-label); line-height: 1.6;
  color: rgba(245,240,232,.75); max-width: 60ch;
}
.cookie-banner-text a { color: var(--terra); text-decoration: underline; }
.cookie-banner-accept {
  flex-shrink: 0; font-weight: 700; font-size: var(--t-label);
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--terra); color: var(--verde-1);
  border: none; border-radius: 100px;
  padding: 0.65em 1.5em; cursor: pointer;
  transition: background .2s;
}
.cookie-banner-accept:hover { background: var(--creme); }

/* ==========================================================================
   20. BACK TO TOP
   Botão flutuante; fica oculto até o hero sair da tela (ver main.js).
   ========================================================================== */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 310;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--verde-1); border: 1px solid rgba(177,141,104,.4);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--verde-2); }
.back-to-top img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
