/* ==========================================================================
   PACTO PELOS RIOS — Identidade visual global
   Reproduzido a partir de pactopelosrios.com.br
   ========================================================================== */

:root {
  --azul: #32679a;            /* rgb(50,103,154)  — cor primária        */
  --azul-escuro: #235381;     /* rgb(35,83,129)   — barra do copyright  */
  --verde: #708b00;           /* rgb(112,139,0)   — cor de destaque     */
  --branco: #fbfbfb;          /* rgb(251,251,251) — títulos claros      */
  --preto: #000000;
  --grad-marca: linear-gradient(63deg, #32679a 47%, #708b00 100%);
  --fonte-titulo: "Montserrat", sans-serif;
  --fonte-hero: "Archivo", sans-serif;
  --fonte-texto: "Montserrat", sans-serif;
  --fonte-script: "Ms Madi", cursive;
  --fonte-rodape-titulo: "Poppins", sans-serif;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--fonte-texto);
  font-size: 19px;
  line-height: 1.5;
  color: #000;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   CABEÇALHO
   ========================================================================== */
.site-header {
  background: var(--grad-marca);
  position: relative;
  z-index: 100;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 158px;
}
.site-header__logo img {
  width: 150px;
  height: auto;
}
.nav-principal { display: flex; align-items: center; }
.nav-principal > ul {
  display: flex;
  align-items: center;
}
.nav-principal > ul > li { position: relative; }
.nav-principal a {
  font-family: var(--fonte-titulo);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* Itens de primeiro nível: sublinhado animado + leve elevação no hover */
.nav-principal > ul > li > a {
  position: relative;
  transition: color .3s ease, transform .3s ease;
}
.nav-principal > ul > li > a::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 7px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-principal > ul > li > a:hover,
.nav-principal > ul > li > a:focus-visible {
  transform: translateY(-2px);
}
.nav-principal > ul > li > a:hover::after,
.nav-principal > ul > li > a:focus-visible::after,
.nav-principal > ul > li > a.active::after {
  transform: scaleX(1);
  opacity: 1;
}
.nav-principal > ul > li > a.active { font-weight: 600; }

.nav-principal .seta {
  width: 10px; height: 10px;
  flex: none;
  transition: transform .25s ease;
}
.nav-principal li:hover > a .seta,
.nav-principal li.aberto > a .seta { transform: rotate(180deg); }

/* Submenu (desktop) — fundo azul com itens brancos, conforme os prints
   de referência do site original */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--azul);
  box-shadow: 0 14px 30px rgba(8, 20, 34, .30);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 50;
}
.nav-principal li:hover > .submenu,
.nav-principal li.aberto > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  color: #fff;
  padding: 14px 22px;
  font-size: 16px;
  transition: background .25s ease, padding-left .25s ease;
}
.submenu a:hover,
.submenu a:focus-visible {
  background: var(--azul-escuro);
  color: #fff;
  padding-left: 27px;
}
.submenu a.active { background: var(--azul-escuro); color: #fff; font-weight: 600; }

/* Botão do cabeçalho */
.btn-header {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-size: 17px;
  font-weight: 400;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 3px;
  padding: 12px 24px;
  margin-left: 10px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
  white-space: nowrap;
}
/* Hover conforme o print de referência: fundo verde sólido */
.btn-header:hover,
.btn-header:focus-visible {
  background: var(--verde);
  border-color: var(--verde);
  color: #fff;
}

/* Ícones dos itens do menu (só aparecem na versão mobile) */
.icone-menu { display: none; }

/* Hambúrguer (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-aberto .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-aberto .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-aberto .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  padding: 12px 24px;
  border: 2px solid transparent;
  transition: background .3s ease, color .3s ease, border-color .3s ease,
              transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 20, 34, .18);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--verde {
  background: var(--verde);
  border-color: var(--verde);
  color: #fff;
}
.btn--verde:hover { background: #5d7300; border-color: #5d7300; }
.btn--outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn--outline:hover { background: #fff; color: var(--azul); }
.btn--dark {
  background: var(--azul-escuro);
  border-color: var(--azul-escuro);
  color: #fff;
}
.btn--dark:hover { background: #16324a; border-color: #16324a; }
.btn--bloco { width: 100%; }

/* ==========================================================================
   HERO INTERNO (slideshow Ken Burns)
   ========================================================================== */
.hero-interno {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 110px 24px;
  overflow: hidden;
  isolation: isolate;
}
.hero-interno__slides { position: absolute; inset: 0; z-index: -2; }
.hero-interno__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: saturate(1.05) contrast(1.05) brightness(.97);
  transition: opacity 1.2s ease;
}
/* O primeiro slide fica visível desde o primeiro paint — elimina o
   "piscar" do topo a cada carregamento de página */
.hero-interno__slide:first-child { opacity: 1; }
.hero-interno__slide.ativo {
  opacity: 1;
  animation: kenburns 12s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.18); }
}
/* Camada de escurecimento padronizada do projeto (mesma tonalidade
   azul-marinho da Home): fica entre a imagem de fundo e o conteúdo.
   Texto centralizado → distribuição vertical uniforme, um pouco mais
   forte no topo e na base, preservando a fotografia no meio. */
.hero-interno::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 26, 44, .82) 0%,
    rgba(5, 26, 44, .60) 42%,
    rgba(5, 26, 44, .62) 58%,
    rgba(5, 26, 44, .80) 100%
  );
  z-index: -1;
}
.hero-interno h1 {
  font-family: var(--fonte-titulo);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
  max-width: 1160px;
}
.hero-interno__divisor {
  width: 64px;
  height: 3px;
  background: var(--verde);
  border-radius: 2px;
  margin: 22px 0 20px;
}
.hero-interno p {
  font-family: var(--fonte-texto);
  font-size: 19px;
  font-weight: 300;
  color: rgba(255, 255, 255, .94);
  line-height: 1.6;
  max-width: 1160px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.hero-interno__credito {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-size: 13px;
  color: #fff;
  opacity: .9;
  z-index: 2;
}

/* ==========================================================================
   CONTEÚDO
   ========================================================================== */
.secao { padding: 70px 0; }
.texto-corrido p {
  font-size: 19px;
  line-height: 1.5;
  text-align: justify;
  text-wrap: pretty;      /* evita palavra/frase órfã na última linha */
  hyphens: auto;
  margin-bottom: 28px;
}
.texto-corrido p:last-child { margin-bottom: 0; }

.titulo-secao {
  font-family: var(--fonte-titulo);
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 24px;
}

/* Barra colorida decorativa */
.barra-color {
  display: block;
  width: 100%;
  height: 8px;
  object-fit: cover;
  margin: 40px 0;
}

/* Citação manuscrita */
.citacao-script {
  font-family: var(--fonte-script);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--azul);
  border-left: 4px solid var(--verde);
  padding: 6px 0 6px 26px;
  margin: 34px 0;
}

/* Lista com ícone de água */
.lista-agua li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  font-size: 19px;
  line-height: 1.5;
}
.lista-agua li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 5px;
  fill: var(--azul);
}

/* Lista de apoiadores (com divisórias) */
.titulo-categoria {
  font-family: var(--fonte-titulo);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--azul);
  margin: 46px 0 18px;
}
.titulo-categoria:first-child { margin-top: 0; }
/* Linhas de apoio: cada linha representa uma pessoa/entidade */
.lista-apoio li {
  font-size: 17px;
  padding: 13px 16px 13px 46px;
  border-bottom: 1px solid #e8edf2;
  position: relative;
  transition: background .2s ease;
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px;
}
.lista-apoio li:nth-child(even) { background-color: #f7f9fb; }
.lista-apoio li:hover { background-color: #edf3f9; }
.lista-apoio li:last-child { border-bottom: 0; }
.lista-apoio--pessoa li {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%2332679a' d='M224 256a128 128 0 1 0 0-256 128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3 0 498.7 13.3 512 29.7 512h388.6c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3h-91.4z'/%3E%3C/svg%3E");
}
.lista-apoio--org li {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%2332679a' d='M48 0C21.5 0 0 21.5 0 48V464c0 26.5 21.5 48 48 48h96V432c0-26.5 21.5-48 48-48s48 21.5 48 48v80h96c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H48zM64 240c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V240zm112-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V240c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V240zM80 96h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V112zM272 96h32c8.8 0 16 7.2 16 16v32c0 8.8-7.2 16-16 16H272c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16z'/%3E%3C/svg%3E");
}
.titulo-partido {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--azul-escuro);
  background: #eef3f8;
  border-left: 4px solid var(--verde);
  padding: 10px 14px;
  margin: 34px 0 0;
}

/* ---------- Busca (estilo Google) da página Quem Apoia ---------- */
.busca-apoio {
  max-width: 640px;
  margin: 0 auto 54px;
}
.busca-apoio__campo {
  position: relative;
}
.busca-apoio input {
  width: 100%;
  padding: 17px 96px 17px 26px;
  font-family: var(--fonte-texto);
  font-size: 17px;
  color: #1a1a1a;
  background: #fff;
  border: 1.5px solid #d7dde2;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(8, 20, 34, .07);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.busca-apoio input:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 6px 24px rgba(50, 103, 154, .18);
}
.busca-apoio__icone {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--azul);
  pointer-events: none;
}
.busca-apoio__limpar {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #eef3f8;
  color: var(--azul-escuro);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.busca-apoio__limpar:hover { background: var(--azul); color: #fff; }
.busca-apoio.tem-texto .busca-apoio__limpar { display: flex; }
.busca-apoio__resultado {
  text-align: center;
  font-size: 15px;
  color: #5a6b7a;
  margin-top: 12px;
  min-height: 22px;
}
.busca-apoio__resultado strong { color: var(--azul); }
.sem-resultados {
  display: none;
  text-align: center;
  padding: 44px 20px;
  color: #5a6b7a;
  font-size: 18px;
}
.busca-sem-resultado .sem-resultados { display: block; }

/* ---------- Faixa de destaque editorial (frase de impacto) ---------- */
.faixa-destaque {
  position: relative;
  isolation: isolate;
  background: linear-gradient(120deg, #0d2e4b 0%, var(--azul-escuro) 55%, var(--azul) 100%);
  color: #fff;
  text-align: center;
  padding: 90px 24px;
  overflow: hidden;
}
.faixa-destaque::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 15% 110%, rgba(112, 139, 0, .30), transparent),
    radial-gradient(ellipse 50% 60% at 90% -10%, rgba(50, 103, 154, .5), transparent);
}
.faixa-destaque blockquote {
  margin: 0 auto;
  max-width: 1160px;
}
.faixa-destaque blockquote p {
  font-family: var(--fonte-titulo);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;   /* quebra em linhas com comprimentos equilibrados */
}
.faixa-destaque blockquote p strong { color: #a8c53a; font-weight: 700; }
.faixa-destaque .divisor {
  width: 64px;
  height: 3px;
  background: var(--verde);
  border-radius: 2px;
  margin: 26px auto 0;
}

/* ---------- Texto corrido em duas colunas (editorial) ---------- */
.texto-2col {
  column-count: 2;
  column-gap: 52px;
  column-rule: 1px solid #e3e3e3;
}
.texto-2col p {
  font-size: 19px;
  line-height: 1.55;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
  margin: 0 0 24px;
  break-inside: avoid;
}
.texto-2col p:last-child { margin-bottom: 0; }

/* ==========================================================================
   PADRÕES DE CONTEÚDO REUTILIZÁVEIS
   (usados nas páginas internas adicionais: A Coalizão, Panorama e
   subpáginas, Como Participar, Mídia, Blog, Fale Conosco)
   ========================================================================== */

/* ---------- Duas colunas: texto + imagem ---------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: stretch;   /* imagem com a MESMA altura do texto ao lado */
}
.split__figura {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--azul);
  min-height: 300px;
}
.split__figura img {
  position: absolute;
  inset: 0;
}
.split__figura img { width: 100%; height: 100%; object-fit: cover; }
.split__figura figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(transparent, rgba(8, 20, 34, .82));
}
.figura-larga {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 40px 0;
}
.figura-larga img { width: 100%; height: 100%; object-fit: cover; }
.figura-larga figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 20px;
  color: #fff;
  font-size: 13px;
  background: linear-gradient(transparent, rgba(8, 20, 34, .82));
}

/* ---------- Faixa de estatísticas ---------- */
.faixa-stats {
  background: var(--azul-escuro);
  color: #fff;
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat .num {
  font-family: var(--fonte-hero);
  font-size: 46px;
  font-weight: 800;
  color: #8bab24;
  line-height: 1;
}
.stat .num small { font-size: .5em; font-weight: 700; }
.stat .rotulo {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .88);
}

/* ---------- Lista de legislação (linha do tempo) ---------- */
.lista-legislacao { margin: 30px 0; }
.lista-legislacao li {
  position: relative;
  padding: 0 0 26px 30px;
  border-left: 2px solid #e3e3e3;
  margin-left: 6px;
}
.lista-legislacao li:last-child { border-color: transparent; padding-bottom: 0; }
.lista-legislacao li::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 0 0 4px rgba(112, 139, 0, .18);
}
.lista-legislacao strong { color: var(--azul); }

/* ---------- Passos numerados (Como Participar) ---------- */
.passos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 34px 0;
}
.passo {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  padding: 28px;
}
.passo .num-passo {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  color: var(--verde);
  font-size: 14px;
  letter-spacing: .12em;
}
.passo {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.passo:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(8, 49, 47, .10);
  border-color: var(--azul);
}
.passo p { margin: 12px 0 0; font-size: 18px; line-height: 1.5; }

/* ---------- Galeria de mídia ---------- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.galeria-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  background: var(--azul);
}
.galeria-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.galeria-card:hover img { transform: scale(1.06); }
.galeria-card .legenda {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(8, 20, 34, .88));
  transform: translateY(6px);
  opacity: .9;
  transition: .3s ease;
}
.galeria-card:hover .legenda { transform: none; opacity: 1; }
.galeria-card .legenda b { display: block; font-family: var(--fonte-titulo); font-size: 15px; }
.galeria-card .legenda small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #cfe0f0; }

/* ---------- Cards de vídeo ---------- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.video-card {
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.video-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul));
  display: flex; align-items: center; justify-content: center;
}
.video-thumb .play {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex; align-items: center; justify-content: center;
}
.video-thumb .play::before {
  content: "";
  border-left: 15px solid var(--azul-escuro);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.video-meta { padding: 14px 16px; }
.video-meta b { font-family: var(--fonte-titulo); font-size: 16px; }
.video-meta small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--azul); }

/* ---------- Cards de blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(8, 49, 47, .12); }
.post-card__img { aspect-ratio: 16 / 10; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__corpo { padding: 20px 22px 26px; }
.post-card__cat {
  font-family: var(--fonte-titulo);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--verde);
}
.post-card__corpo h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--azul);
  margin: 10px 0 8px;
  line-height: 1.3;
}
.post-card__corpo p { font-size: 15px; color: #444; margin: 0; line-height: 1.5; }
.post-card__data { font-size: 13px; color: #8a8a8a; margin-top: 16px; display: block; }

/* ---------- Bloco de contato ---------- */
.bloco-contato {
  background: #f2f5f8;
  border-radius: 4px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
.bloco-contato h3 {
  font-family: var(--fonte-titulo);
  font-size: 22px;
  font-weight: 700;
  color: var(--azul);
  margin: 0 0 8px;
}
.bloco-contato p.legenda-contato { margin: 0 0 20px; color: #444; }
.link-email {
  font-family: var(--fonte-titulo);
  font-size: 20px;
  font-weight: 600;
  color: var(--azul);
  border-bottom: 2px solid var(--verde);
  padding-bottom: 2px;
  display: inline-block;
}
.link-email:hover { color: var(--verde); }

/* ---------- Faixa CTA ---------- */
.faixa-cta {
  background: var(--grad-marca);
  color: #fff;
  text-align: center;
  padding: 74px 24px;
}
.faixa-cta h2 {
  font-family: var(--fonte-titulo);
  font-size: 30px;
  font-weight: 700;
  max-width: 1160px;
  margin: 0 auto 14px;
  line-height: 1.3;
}
.faixa-cta p {
  color: rgba(255, 255, 255, .9);
  max-width: 1160px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   MODAL — COMO PARTICIPAR
   ========================================================================== */
.modal-participar-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 20, 34, .62);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.modal-participar-overlay.aberto {
  opacity: 1;
  visibility: visible;
}
.modal-participar-caixa {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--branco);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(8, 20, 34, .45);
  padding: 48px 44px 44px;
  transform: translateY(18px) scale(.97);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .3s ease;
}
.modal-participar-overlay.aberto .modal-participar-caixa {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-participar-fechar {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f2f5f8;
  color: var(--azul-escuro);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.modal-participar-fechar:hover,
.modal-participar-fechar:focus-visible {
  background: var(--azul-escuro);
  color: #fff;
  transform: rotate(90deg);
  outline: none;
}
.modal-participar-caixa h2 {
  font-family: var(--fonte-titulo);
  font-size: 28px;
  font-weight: 700;
  color: var(--azul);
  text-align: center;
  margin: 0 0 8px;
  padding-right: 30px;
}
.modal-participar-legenda {
  text-align: center;
  color: #5a5a5a;
  font-size: 16px;
  margin: 0 0 34px;
}
.modal-participar-opcoes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.modal-participar-opcao {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 18px;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.modal-participar-opcao:hover,
.modal-participar-opcao:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(50, 103, 154, .18);
  border-color: var(--azul);
  outline: none;
}
.modal-participar-opcao__icone {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-marca);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-participar-opcao__icone svg { width: 26px; height: 26px; fill: currentColor; }
.modal-participar-opcao__titulo {
  font-family: var(--fonte-titulo);
  font-size: 18px;
  font-weight: 700;
  color: var(--azul);
}
.modal-participar-opcao__desc { font-size: 14px; color: #666; line-height: 1.4; margin: 0; }
body.modal-participar-bloqueado { overflow: hidden; }

/* ==========================================================================
   MODAL DE VÍDEO (página Mídia) — mesmo desfoque do modal Como Participar
   ========================================================================== */
.modal-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 20, 34, .62);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.modal-video-overlay.aberto { opacity: 1; visibility: visible; }
.modal-video-caixa {
  position: relative;
  width: min(1100px, 94vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: translateY(18px) scale(.97);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), opacity .3s ease;
}
.modal-video-overlay.aberto .modal-video-caixa {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-video-caixa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.modal-video-fechar {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  color: var(--azul-escuro);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.modal-video-fechar:hover,
.modal-video-fechar:focus-visible {
  background: var(--verde);
  color: #fff;
  transform: rotate(90deg);
  outline: none;
}
.modal-video-envoltorio { position: relative; }

/* Cards de vídeo clicáveis */
.video-card[data-video] { cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; }
.video-card[data-video]:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(8, 49, 47, .14);
}
.video-card[data-video]:hover .play { background: #fff; transform: scale(1.08); }
.video-thumb .play { transition: transform .25s ease, background .25s ease; }

/* ==========================================================================
   FORMULÁRIOS DE PARTICIPAÇÃO
   ========================================================================== */
.link-voltar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fonte-titulo);
  font-size: 15px;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 28px;
  transition: opacity .2s ease;
}
.link-voltar:hover { opacity: .7; }
.link-voltar svg { width: 13px; height: 13px; fill: currentColor; transform: rotate(180deg); }

.formulario-participar {
  position: relative;
  width: 100%;
  background: #fff;
  border: 1px solid #e6eaee;
  border-radius: 12px;
  padding: 54px 58px 48px;
  box-shadow: 0 26px 70px rgba(8, 20, 34, .10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 34px;
  overflow: hidden;
}
/* Barra da marca no topo do cartão */
.formulario-participar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--grad-marca);
}
.campo { margin-bottom: 0; position: relative; }
/* Campos que ocupam a linha inteira */
.campo--cheio,
.campo-recaptcha,
.formulario-participar .campo-hp,
.form-mensagem { grid-column: 1 / -1; }
.campo label {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 15px;
  font-weight: 600;
  color: var(--azul-escuro);
  margin-bottom: 8px;
}
.campo label .obrigatorio { color: var(--verde); margin-left: 2px; }
.campo input,
.campo select {
  width: 100%;
  padding: 15px 18px;
  font-family: var(--fonte-texto);
  font-size: 16px;
  color: #1a1a1a;
  background: #f8fafc;
  border: 1.5px solid #d7dde2;
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.campo select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%2332679a' d='M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 11px;
  padding-right: 40px;
}
.campo input:focus,
.campo select:focus {
  outline: none;
  background: #fff;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(50, 103, 154, .14);
}
.campo input.campo--erro,
.campo select.campo--erro { border-color: #c0392b; }
.campo-erro-msg {
  display: none;
  font-size: 13px;
  color: #c0392b;
  margin-top: 6px;
}
.campo-erro-msg.visivel { display: block; }
.campo-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.campo-recaptcha .g-recaptcha {
  display: flex;
  justify-content: center;
}
.campo-recaptcha .campo-erro-msg { text-align: center; }

.formulario-participar__botao {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  margin-top: 8px;
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--fonte-titulo);
  font-size: 18px;
  letter-spacing: .02em;
}
.formulario-participar__botao:disabled { opacity: .65; cursor: not-allowed; }

.form-mensagem {
  display: none;
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
}
.form-mensagem.visivel { display: block; }
.form-mensagem--sucesso { background: #eaf3d8; color: #4c5f00; border: 1px solid #cddf9e; }
.form-mensagem--erro { background: #fbe5e1; color: #962c1c; border: 1px solid #f0b3a6; }

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--azul);
  background-image: url("../assets/img/agua-footer.jpg"), linear-gradient(160deg, var(--azul) 0%, #0f4173 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
/* Conteúdo do rodapé acima do canvas do efeito de água */
.site-footer__main,
.site-footer__bottom { position: relative; z-index: 1; }
.site-footer > canvas { z-index: 0; pointer-events: none; }
.site-footer__main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 90px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.site-footer__tagline {
  font-size: 19px;
  line-height: 1.55;
  text-align: center;
  padding: 0 30px;
}
.site-footer__col h4 {
  font-family: var(--fonte-rodape-titulo);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.site-footer__col li { margin-bottom: 16px; }
.site-footer__col a,
.site-footer__col button.js-abre-participar {
  font-size: 18px;
  transition: opacity .25s ease;
}
.site-footer__col button.js-abre-participar {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
.site-footer__col a:hover,
.site-footer__col button.js-abre-participar:hover { opacity: .75; }
.site-footer__bottom {
  background: var(--azul-escuro);
  text-align: center;
  padding: 22px 20px;
  font-size: 15px;
}

/* ==========================================================================
   BLOCOS EDITORIAIS / PARALLAX / ÍCONES
   ========================================================================== */

/* Split editorial com imagem — variação com imagem à esquerda */
.split--invertido .split__figura { order: -1; }

/* Bloco com imagem de fundo e efeito parallax (desktop). A imagem vem de
   uma variável CSS definida inline em cada página: style="--parallax-img:url(...)" */
.bloco-parallax {
  position: relative;
  isolation: isolate;
  padding: 130px 24px;
  text-align: center;
  color: #fff;
  background-image: var(--parallax-img);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.bloco-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(5, 26, 44, .74) 0%,
    rgba(5, 26, 44, .52) 50%,
    rgba(5, 26, 44, .74) 100%
  );
}
.bloco-parallax { z-index: 0; }
.bloco-parallax::before { z-index: 1; }
.bloco-parallax > * { position: relative; z-index: 2; }
/* Efeito de água (jquery.ripples) no hero interno: o canvas fica entre a
   imagem e o overlay escuro; o Ken Burns é pausado (o canvas assume a
   imagem do primeiro slide) */
.hero-interno > canvas { z-index: -1; pointer-events: none; }
.hero-interno.agua-ativa .hero-interno__slides { display: none; }
.bloco-parallax h2,
.bloco-parallax p,
.faixa-azul h2,
.faixa-azul p,
.faixa-cta h2,
.faixa-cta p { text-wrap: balance; }
.bloco-parallax h2 {
  font-family: var(--fonte-titulo);
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  max-width: 1160px;
  margin: 0 auto 16px;
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.bloco-parallax p {
  font-size: 19px;
  font-weight: 300;
  max-width: 1160px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .94);
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}
.bloco-parallax .btn { margin-top: 30px; }

/* Cartões com ícone (destaques institucionais) */
.icones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.icones-grid--2col { grid-template-columns: repeat(2, 1fr); }
.icone-card {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 30px 26px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.icone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(8, 49, 47, .10);
  border-color: var(--azul);
}
.icone-card__circulo {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--grad-marca);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icone-card__circulo svg { width: 28px; height: 28px; fill: currentColor; }
.icone-card h3 {
  font-family: var(--fonte-titulo);
  font-size: 18px;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 10px;
}
.icone-card p { font-size: 16px; color: #444; line-height: 1.55; margin: 0; }

/* Faixa institucional azul (destaque pontual sobre fundo branco) */
.faixa-azul {
  background: var(--azul);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
}
.faixa-azul h2 {
  font-family: var(--fonte-titulo);
  font-size: 28px;
  font-weight: 700;
  max-width: 1160px;
  margin: 0 auto 12px;
  line-height: 1.35;
}
.faixa-azul p {
  max-width: 1160px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .92);
}

/* ==========================================================================
   VIDA NAS IMAGENS ESTÁTICAS — zoom lento contínuo (Ken Burns suave)
   ========================================================================== */
@keyframes zoomLento {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}
.split__figura img,
.figura-larga img,
.post-card__img img {
  animation: zoomLento 18s ease-in-out infinite alternate;
  will-change: transform;
}
.post-card__img { overflow: hidden; }
/* Foto em proporção natural (página O Pacto): zoom sutil no hover */
.pacto-foto img { transition: transform .6s ease; }
.pacto-foto:hover img { transform: scale(1.03); }

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes de direção (usar junto com .reveal) */
.reveal--esq { transform: translateX(-32px); }
.reveal--dir { transform: translateX(32px); }
.reveal--esq.visivel,
.reveal--dir.visivel { transform: translateX(0); }

/* Entrada escalonada dos filhos diretos (usar junto com .reveal) */
.reveal.stagger { transform: none; }
.reveal.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.stagger.visivel > * { opacity: 1; transform: translateY(0); }
.reveal.stagger.visivel > *:nth-child(2) { transition-delay: .1s; }
.reveal.stagger.visivel > *:nth-child(3) { transition-delay: .2s; }
.reveal.stagger.visivel > *:nth-child(4) { transition-delay: .3s; }
.reveal.stagger.visivel > *:nth-child(5) { transition-delay: .4s; }
.reveal.stagger.visivel > *:nth-child(6) { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal.stagger > * { opacity: 1; transform: none; transition: none; }
  .hero-interno__slide.ativo { animation: none; }
  .bloco-parallax { background-attachment: scroll; }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header__inner { justify-content: space-between; }

  /* Painel em tela cheia, estilo aplicativo, deslizando da direita */
  .nav-principal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    background: linear-gradient(180deg, #0d2e4b 0%, var(--azul-escuro) 55%, var(--azul) 100%);
    padding: 150px 20px 36px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.25, .8, .35, 1), opacity .3s ease, visibility .38s;
  }
  .menu-aberto .nav-principal {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  .nav-principal > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
  }
  .nav-principal a { border-bottom: 0; }
  .nav-principal > ul > li > a {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 600;
    gap: 14px;
    white-space: normal;
  }
  .nav-principal > ul > li > a::after { display: none; }
  .nav-principal > ul > li > a:hover,
  .nav-principal > ul > li > a:focus-visible { transform: none; background: rgba(255, 255, 255, .13); }
  .nav-principal > ul > li > a:active { background: rgba(255, 255, 255, .18); }
  .nav-principal > ul > li > a.active {
    background: rgba(112, 139, 0, .38);
    border-color: rgba(139, 171, 36, .55);
  }
  .icone-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
  }
  .icone-menu svg { width: 19px; height: 19px; fill: #fff; }
  .nav-principal .seta { margin-left: auto; width: 12px; height: 12px; }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, .22);
    border-radius: 12px;
    box-shadow: none;
    display: none;
    min-width: 0;
    overflow: hidden;
    margin: 8px 0 2px;
  }
  .submenu a {
    color: #fff;
    padding: 14px 18px 14px 30px;
    position: relative;
  }
  .submenu a::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8bab24;
  }
  .submenu a.active { background: rgba(255, 255, 255, .14); color: #fff; }
  .nav-principal li.aberto > .submenu { display: block; }
  /* Logo e botão X ficam ACIMA do painel do menu (z-index 90) */
  .menu-toggle { display: block; position: relative; z-index: 120; }
  .site-header__logo { position: relative; z-index: 120; }
  .btn-header { display: none; }
}

/* Bloqueia a rolagem da página com o menu mobile aberto */
body.menu-bloqueado { overflow: hidden; }

@media (max-width: 1024px) {
  .site-footer__main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
    padding: 56px 24px 44px;
  }
  .site-footer__tagline {
    padding: 0 0 30px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, .22);
  }
  .site-footer__col h4 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-size: 15px;
    letter-spacing: .14em;
  }
  .site-footer__col h4::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: #8bab24;
  }
  .site-footer__col li { margin-bottom: 6px; }
  .site-footer__col a,
  .site-footer__col button.js-abre-participar {
    display: inline-block;
    font-size: 16px;
    padding: 7px 0;
  }
  .site-footer__bottom { font-size: 13px; padding: 18px 16px; }
  .hero-interno { min-height: 380px; padding: 96px 24px; }
  .hero-interno h1 { font-size: 32px; }
  .split { grid-template-columns: 1fr; }
  .split__figura { aspect-ratio: 16 / 10; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .galeria-grid, .videos-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .passos-grid { grid-template-columns: 1fr; }
  .bloco-contato { grid-template-columns: 1fr; padding: 32px; }
  .modal-participar-opcoes { grid-template-columns: 1fr; }
  .modal-participar-caixa { padding: 40px 30px 34px; }
  /* Parallax vira imagem estática em telas de toque (performance) */
  .bloco-parallax { background-attachment: scroll; padding: 90px 24px; }
  .icones-grid { grid-template-columns: 1fr; }
  /* Estados de toque no menu mobile (sem depender de hover) */
  .nav-principal a:active { background: rgba(255, 255, 255, .16); }
}

@media (max-width: 767px) {
  body { font-size: 17px; }
  .hero-interno { min-height: 340px; padding: 80px 20px; }
  .hero-interno h1 { font-size: 26px; }
  .hero-interno__divisor { margin: 16px 0 16px; }
  .hero-interno p { font-size: 17px; }
  .secao { padding: 48px 0; }
  .texto-corrido p { font-size: 17px; }
  .titulo-secao { font-size: 24px; }
  .citacao-script { font-size: 30px; }
  .lista-agua li { font-size: 17px; }
  .lista-apoio li { font-size: 16px; }
  .hero-interno__credito { bottom: 14px; left: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .stat .num { font-size: 36px; }
  .galeria-grid, .videos-grid, .blog-grid { grid-template-columns: 1fr; }
  .faixa-cta { padding: 56px 20px; }
  .faixa-cta h2 { font-size: 24px; }
  .modal-participar-caixa { padding: 32px 20px 26px; border-radius: 6px; }
  .modal-participar-caixa h2 { font-size: 22px; }
  .modal-participar-opcao { padding: 22px 16px; }
  .formulario-participar { grid-template-columns: 1fr; gap: 20px; padding: 34px 20px 30px; }
  .faixa-destaque { padding: 60px 20px; }
  .faixa-destaque blockquote p { font-size: 24px; }
  .texto-2col { column-count: 1; column-rule: none; }
  .busca-apoio input { padding: 15px 84px 15px 20px; font-size: 16px; }
}

/* ==========================================================================
   PÁGINA 404
   ========================================================================== */
.hero-interno--404 { min-height: 480px; }

.erro-404__numero {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(84px, 14vw, 150px);
  line-height: 1;
  letter-spacing: 6px;
  color: #fff;
  opacity: .92;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
  margin: 0 0 6px;
  position: relative;
  z-index: 2;
}

.erro-404__acoes {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.erro-404__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.erro-404__links a {
  display: block;
  text-align: center;
  padding: 18px 14px;
  border: 1px solid rgba(50, 103, 154, .25);
  border-radius: 6px;
  color: var(--azul);
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.erro-404__links a:hover {
  background: var(--azul);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(35, 83, 129, .28);
}

@media (max-width: 720px) {
  .erro-404__links { grid-template-columns: 1fr; }
  .hero-interno--404 { min-height: 420px; }
}

/* ==========================================================================
   CONTEÚDO DINÂMICO (WordPress headless) — Mídia, Blog e Notícia
   ========================================================================== */

/* Estados de carregamento / fim de conteúdo */
.conteudo-estado {
  text-align: center;
  margin: 26px 0 0;
  min-height: 28px;
  font-size: 15px;
  color: #667;
}
.conteudo-carregando { display: inline-flex; align-items: center; gap: 10px; }
.conteudo-fim {
  display: inline-block;
  font-family: var(--fonte-titulo);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--azul);
  opacity: .75;
}
.spinner-rio {
  width: 18px; height: 18px;
  border: 3px solid rgba(50, 103, 154, .25);
  border-top-color: var(--azul);
  border-radius: 50%;
  display: inline-block;
  animation: girarSpinner .8s linear infinite;
}
@keyframes girarSpinner { to { transform: rotate(360deg); } }
.sentinela-scroll { height: 1px; }

/* Cards dinâmicos */
.galeria-card--dinamica { cursor: pointer; }
.post-card__link { display: block; color: inherit; text-decoration: none; }

/* Seção alternativa (fundo suave) para as relacionadas */
.secao--cinza { background: #f4f7fa; }

/* Lightbox das galerias */
.lightbox-caixa {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: min(1080px, 92vw);
}
.lightbox-caixa figure {
  margin: 0;
  text-align: center;
  max-width: calc(100% - 130px);
}
.lightbox-caixa img {
  max-width: 100%;
  max-height: 76vh;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox-caixa figcaption {
  color: #dbe7f3;
  font-size: 14px;
  margin-top: 12px;
  min-height: 18px;
}
.lightbox-seta {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
  flex: 0 0 auto;
}
.lightbox-seta:hover { background: rgba(255, 255, 255, .3); transform: scale(1.07); }
.lightbox-contador {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  color: #cfe0f0;
  font-size: 13px;
  letter-spacing: .1em;
}

/* ---------- Página da notícia ---------- */
.hero-interno--noticia h1 { max-width: 900px; }
.noticia-hero-cat {
  position: relative;
  z-index: 2;
  font-family: var(--fonte-titulo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cde06b;
  margin: 0 0 10px;
}
.noticia-hero-meta { font-size: 15px !important; opacity: .95; }

.noticia { max-width: 860px; margin: 0 auto; }
.noticia__capa {
  margin: 0 0 34px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(8, 49, 47, .14);
}
.noticia__capa img { width: 100%; display: block; }
.noticia__corpo { margin: 0; }
.noticia__corpo img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 18px 0;
}
.noticia__corpo h2, .noticia__corpo h3 {
  font-family: var(--fonte-titulo);
  color: var(--azul);
  margin: 34px 0 14px;
  line-height: 1.3;
}
.noticia__corpo blockquote {
  border-left: 4px solid var(--verde);
  margin: 24px 0;
  padding: 6px 0 6px 22px;
  color: #345;
  font-style: italic;
}
.noticia__corpo a { color: var(--azul); }

.noticia__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.noticia__tag {
  background: rgba(50, 103, 154, .08);
  color: var(--azul);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
}

.noticia__compartilhar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid #e4e9ef;
}
.noticia__compartilhar-rotulo {
  font-family: var(--fonte-titulo);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--azul);
  margin-right: 4px;
}
.btn-compartilhar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--azul);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, transform .2s ease;
}
.btn-compartilhar svg { width: 19px; height: 19px; }
.btn-compartilhar:hover { background: var(--verde); transform: translateY(-3px); }
.aviso-copiado {
  font-size: 13px;
  color: var(--verde);
  font-weight: 600;
}

/* Impressão: somente o conteúdo relevante da notícia */
@media print {
  .site-header, .hero-interno__slides, .hero-interno::after, .hero-interno__divisor,
  .noticia__compartilhar, #secao-relacionadas, .faixa-cta, .site-footer,
  .menu-toggle, .btn-header, .conteudo-estado { display: none !important; }
  .hero-interno {
    min-height: 0 !important;
    padding: 10px 0 !important;
    background: none !important;
    color: #000 !important;
  }
  .hero-interno h1, .noticia-hero-cat, .noticia-hero-meta {
    color: #000 !important;
    text-shadow: none !important;
  }
  .noticia { max-width: 100%; }
  .noticia__capa { box-shadow: none; }
  body { background: #fff !important; }
}

@media (max-width: 720px) {
  .lightbox-caixa figure { max-width: 100%; }
  .lightbox-seta { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
  .lightbox-seta--ant { left: 6px; }
  .lightbox-seta--prox { right: 6px; }
  .noticia__compartilhar { gap: 10px; }
}
