/* =====================================================================
   Complexo Hidrelétrico Paraíba do Sul — design system
   Direção: dossiê institucional de território — transparência como
   estética. Azuis da marca (derivados do logo) sobre branco generoso; a linha do rio
   como fio condutor; laranja apenas como pontuação decorativa.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Superfícies do navegador carregam o design ---- */
::selection { background: var(--azul-tint-2); color: var(--azul-profundo); }
:root { caret-color: var(--azul-marca); }
* { scrollbar-width: thin; scrollbar-color: var(--azul-medio) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--azul-medio); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

a {
  color: var(--azul-escuro);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--azul-medio);
  transition: text-decoration-color var(--dur-fast) var(--ease-out);
}
a:hover { text-decoration-color: var(--laranja); }

:focus-visible {
  outline: 3px solid var(--azul-marca);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: 'Roboto Condensed', 'Roboto Condensed fallback', var(--font-body);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em; /* condensada não pede tracking tão apertado */
  color: var(--azul-escuro);
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); margin: 0 0 var(--space-5); }
h2 { font-size: var(--text-2xl); margin: var(--space-6) 0 var(--space-5); }
h3 { font-size: var(--text-lg); margin: var(--space-5) 0 var(--space-2); line-height: 1.25; }

p { margin: 0 0 var(--space-4); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
figcaption { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-2); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.container--estreito { max-width: 820px; }

.skip {
  position: fixed;
  top: -100px; left: 16px;
  z-index: var(--z-toast);
  background: var(--azul-profundo);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip:focus-visible { top: 12px; }

/* =====================================================================
   Cabeçalho
   ===================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
/* Sem JS a nav quebra em linhas no mobile e o header fica estático;
   com JS o menu vira hambúrguer compacto e o header volta a ser sticky */
@media (max-width: 919px) {
  .header { position: static; }
  html.js .header { position: sticky; top: 0; z-index: var(--z-sticky); }
  html.js .nav-toggle { display: inline-flex; }
  html.js .nav__list {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: var(--z-drawer);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: grid;
    gap: 0;
    padding: var(--space-2) var(--gutter) var(--space-5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  }
  html.js .nav__list.is-aberto { opacity: 1; visibility: visible; transform: none; }
  /* telas baixas (celular deitado): painel rola em vez de cortar itens */
  html.js .nav__list {
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  html.js .nav__list a { display: block; padding: 13px 0; font-size: var(--text-base); border-bottom: none; }
  html.js .nav__list a[aria-current="true"] { font-weight: 700; }
  html.js .nav__cta { justify-self: start; margin-top: var(--space-2); padding: 11px 22px !important; }
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
/* Desktop: barra mais baixa — logo sem margens mortas + respiro mínimo */
@media (min-width: 920px) {
  .header__inner { padding-block: 8px; }
}
/* Faixa 920–1119px: nav condensada para caber em uma linha ao lado do logo maior */
@media (min-width: 920px) and (max-width: 1119px) {
  .header .header__brand { min-height: 50px; }
  .header .header__brand img { height: 40px; }
  .header .nav__list { gap: var(--space-1) var(--space-2); font-size: 0.8rem; }
  .header .nav__list .nav__cta { padding: 8px 13px !important; }
}
/* Faixa 1120–1279px: com 9 itens (Licenciamento entrou) a nav ainda não cabe em uma linha
   ao lado do logo de 60px quando há barra de rolagem — semi-condensada */
@media (min-width: 1120px) and (max-width: 1279px) {
  .header .header__brand { min-height: 54px; }
  .header .header__brand img { height: 43.2px; }
  .header .nav__list { gap: var(--space-1) var(--space-3); font-size: 0.86rem; }
  .header .nav__list .nav__cta { padding: 8px 15px !important; }
}
/* 06/09/2026: logo reduzido em 20% a pedido do cliente. A altura da barra não pode mudar,
   então o min-height da marca guarda a altura original do logo (46–60px) e a imagem
   passa a ocupar 80% dela (36,8–48px), centrada. Mesma proporção nas duas faixas acima. */
.header__brand { display: flex; align-items: center; min-height: clamp(46px, 6.5vw, 60px); }
.header__brand img { height: clamp(36.8px, 5.2vw, 48px); width: auto; }

/* Botão do menu mobile — só aparece com JS ativo (hidden no HTML) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--azul-escuro);
  background: var(--azul-tint);
  border: 1px solid var(--azul-tint-2);
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
}
.nav-toggle__icone {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}
.nav-toggle__icone::before,
.nav-toggle__icone::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 2px;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-toggle__icone::before { top: -5px; }
.nav-toggle__icone::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icone { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icone::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icone::after { transform: translateY(-5px) rotate(-45deg); }

.nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-4); /* 9 itens + logo de 60px precisam caber nos 1096px úteis do container */
  font-size: var(--text-sm);
}
.nav__list a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav__list a:hover { color: var(--azul-escuro); border-bottom-color: var(--azul-marca); }
.nav__list a[aria-current="true"] { color: var(--azul-escuro); border-bottom-color: var(--azul-marca); font-weight: 600; }
.nav__cta {
  color: #fff !important;
  background: var(--azul-escuro);
  padding: 9px 18px !important;
  border-radius: 999px;
  border-bottom: none !important;
  transition: background var(--dur-fast) var(--ease-out) !important;
}
.nav__cta:hover { background: var(--azul-profundo); }

/* =====================================================================
   Hero — foto aérea sob véu azul-profundo
   ===================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 92svh, 900px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  --veu: linear-gradient(168deg,
    rgb(15 42 56 / 0.78) 0%,
    rgb(15 42 56 / 0.42) 42%,
    rgb(15 42 56 / 0.62) 78%,
    rgb(8 28 38 / 0.88) 100%);
  /* Foto real: Rio Paraíba do Sul na área de estudo da PCH Mangueiral, registro aéreo de agosto de 2026 */
  background-image: var(--veu), url('../img/fotos/hero-rio-paraiba-do-sul-pch-mangueiral-ago-2026-1600.jpg');
  background-image: var(--veu), image-set(
    url('../img/fotos/hero-rio-paraiba-do-sul-pch-mangueiral-ago-2026-1600.webp') type('image/webp'),
    url('../img/fotos/hero-rio-paraiba-do-sul-pch-mangueiral-ago-2026-1600.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center 45%;
}
@media (max-width: 720px) {
  .hero__fundo {
    background-image: var(--veu), image-set(
      url('../img/fotos/hero-rio-paraiba-do-sul-pch-mangueiral-ago-2026-960.webp') type('image/webp'),
      url('../img/fotos/hero-rio-paraiba-do-sul-pch-mangueiral-ago-2026-1600.jpg') type('image/jpeg'));
    background-position: 42% 45%;
  }
}
@media (min-width: 1601px) {
  .hero__fundo {
    background-image: var(--veu), image-set(
      url('../img/fotos/hero-rio-paraiba-do-sul-pch-mangueiral-ago-2026-2200.webp') type('image/webp'),
      url('../img/fotos/hero-rio-paraiba-do-sul-pch-mangueiral-ago-2026-1600.jpg') type('image/jpeg'));
  }
}
/* Com JS presente o GSAP assume o assentamento + parallax do fundo
   e a sequência de entrada do conteúdo (título → lead datilografado → demais) */
html.js .hero__fundo { animation: none !important; }
html.js .hero__conteudo > * { animation: none !important; }
/* O motion começa depois do primeiro quadro pintado (para não segurar a pintura do hero).
   Entre a primeira pintura e o início da sequência (1–2 quadros), o hero fica invisível até
   `hero-pronto` — regra de escopo pequeno (só descendentes do hero). Os demais estados iniciais
   são classes por elemento, aplicadas pelo main.js ainda antes da primeira pintura, com os
   mesmos valores que o GSAP aplicava com gsap.set; cada uma sai ao fim do seu tween.
   `html.motion` é posta pelo main.js só com GSAP presente e sem reduced-motion (se o main.js falhar, nada fica escondido); `hero-pronto` sempre é adicionada. */
@media (prefers-reduced-motion: no-preference) {
  html.motion:not(.hero-pronto) .hero__conteudo > *,
  html.motion:not(.hero-pronto) .hero__credito { opacity: 0; }
  html.js .js-oculto { opacity: 0; transform: translateY(22px); filter: blur(4px); }
  /* Diagrama e traços: estado inicial sem medir nada no script (pathLength="1" no SVG) */
  html.js .js-oculto-svg { opacity: 0; }
  html.js .js-traco-oculto { stroke-dasharray: 1; stroke-dashoffset: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__fundo { animation: hero-assenta 2.4s var(--ease-out) both; }
  .hero__conteudo > * { animation: hero-sobe 0.9s var(--ease-out) both; }
  .hero__conteudo > :nth-child(2) { animation-delay: 0.1s; }
  .hero__conteudo > :nth-child(3) { animation-delay: 0.18s; }
  .hero__conteudo > :nth-child(4) { animation-delay: 0.26s; }
  @keyframes hero-assenta {
    from { transform: scale(1.045); }
    to { transform: scale(1); }
  }
  @keyframes hero-sobe {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }
}
.hero__conteudo {
  width: 100%;
  padding-block: clamp(72px, 11vh, 128px) clamp(56px, 9vh, 104px);
}
.hero h1 {
  color: #fff;
  max-width: 15ch;
  margin-bottom: var(--space-5);
  text-shadow: 0 2px 6px rgb(8 28 38 / 0.55), 0 8px 28px rgb(8 28 38 / 0.45);
}
.hero__lead {
  max-width: 56ch;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: #fff;
  margin-bottom: var(--space-5);
  /* sombra dura preta (pedido do cliente): recorte nítido sobre a foto */
  text-shadow: 2px 2px 0 rgb(0 0 0 / 0.9);
}
/* Cursor da digitação do lead (máquina de escrever) */
.hero__lead .digitando::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #fff;
  margin-left: 3px;
  vertical-align: -0.15em;
  animation: pisca 0.85s step-end infinite;
}
@keyframes pisca { 50% { opacity: 0; } }
/* Digitação (02/09/2026): o texto completo fica invisível no fluxo e reserva a altura exata do
   parágrafo com a fonte ativa; o texto digitado se sobrepõe no mesmo box. Sem JS nada disso existe. */
html.js .hero__lead { position: relative; }
.hero__lead .hero__lead-reserva { visibility: hidden; }
.hero__lead .hero__lead-tipado { position: absolute; inset: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hero__fase {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 9px 20px;
  margin-bottom: var(--space-6);
}
.hero__fase::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--laranja);
  flex-shrink: 0;
}
.hero__acoes { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__credito {
  position: absolute;
  right: var(--gutter);
  bottom: 12px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.55);
}

/* =====================================================================
   Botões
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 30px;
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primario { background: var(--azul-escuro); color: #fff; }
.btn--primario:hover { background: var(--azul-profundo); }
.btn--claro { background: #fff; color: var(--azul-profundo); }
.btn--claro:hover { background: var(--azul-tint); }
.btn--contorno-claro { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.55); }
.btn--contorno-claro:hover { border-color: #fff; background: rgb(255 255 255 / 0.1); }
.btn--secundario { background: transparent; color: var(--azul-escuro); border-color: var(--azul-escuro); }
.btn--secundario:hover { background: var(--azul-tint); }

/* =====================================================================
   Seções
   ===================================================================== */
.secao { padding-block: var(--section-y); scroll-margin-top: calc(var(--header-h) + 8px); }
.secao--tint { background: linear-gradient(180deg, var(--surface) 0%, var(--azul-tint) 100%); }
.secao h2 { margin-top: 0; }
.secao__intro { max-width: 66ch; font-size: var(--text-lg); color: var(--ink-soft); margin-bottom: var(--space-7); }
.secao__texto { max-width: 66ch; }
.lista-premissas {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  color: var(--ink-soft);
}
.lista-premissas li {
  position: relative;
  padding-left: var(--space-5);
}
.lista-premissas li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--azul-marca);
}
.ficha--transmissao { max-width: 560px; margin-bottom: var(--space-6); }
.timeline + .aviso { margin-top: var(--space-7); }
.secao__texto p + p { margin-top: var(--space-4); }
.secao__colunas {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 920px) {
  .secao__colunas { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .secao__colunas--invertida { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}

/* ---- Fotos reais do trecho (WebP responsivo + JPEG de fallback; clique amplia no lightbox) ---- */
.foto { min-width: 0; }
.foto img {
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  background: var(--azul-tint);
}
.foto__ampliar {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out);
}
.foto__ampliar:hover img { transform: scale(1.02); }
.foto__ampliar img { transition: transform var(--dur-slow) var(--ease-out); }
.foto__ampliar:focus-visible { outline-offset: 4px; }
.fotos-duplas {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 560px) {
  .fotos-duplas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .fotos-duplas .foto:nth-child(2) { margin-top: var(--space-7); }
}
.fotos-duplas .foto img { aspect-ratio: 1 / 1; }
/* Coluna de apoio em "Conheça o Complexo": foto + ficha de localização */
.coluna-apoio { display: grid; gap: var(--space-5); min-width: 0; align-content: start; }

/* =====================================================================
   Diagrama do rio (ordem dos projetos)
   ===================================================================== */
.diagrama-rio {
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 44px) clamp(16px, 3vw, 36px) var(--space-4);
  margin-bottom: var(--space-8);
}
.diagrama-rio svg { width: 100%; height: auto; display: block; }
.diagrama-rio__linha { color: var(--agua); } /* água é sempre azul */
.diagrama-rio__pch circle:first-of-type { fill: var(--azul-tint); stroke: var(--azul-escuro); stroke-width: 2; }
.diagrama-rio__pch circle:last-of-type { fill: var(--azul-escuro); }
.diagrama-rio__pch text,
.diagrama-rio__cidade text,
.diagrama-rio__contexto text {
  font-family: var(--font-body);
  fill: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
  text-anchor: middle;
}
.diagrama-rio__cidade circle { fill: var(--laranja); }
/* Municípios: linha inferior própria, tipografia distinta de "rótulo de usina" */
.diagrama-rio__cidade text {
  fill: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.diagrama-rio__cidade--inicio text { text-anchor: start; }
.diagrama-rio__cidade--fim text { text-anchor: end; }
/* Usinas existentes de terceiros (PCH Anta, UHE Simplício): triângulo tracejado, não o círculo das PCHs do Complexo */
.diagrama-rio__contexto path {
  fill: var(--bg);
  stroke: var(--ink-soft);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 4 3;
}
.diagrama-rio__contexto text { fill: var(--muted); font-size: 15px; font-weight: 600; }
.diagrama-rio__contexto .diagrama-rio__sub { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.diagrama-rio figcaption { padding-top: var(--space-3); border-top: 1px dashed var(--azul-tint-2); }

/* Variante vertical do diagrama — o SVG largo fica ilegível abaixo de 700px */
.diagrama-rio__vertical { display: none; }
@media (max-width: 699px) {
  .diagrama-rio > svg { display: none; }
  .diagrama-rio__vertical { display: block; padding: var(--space-2) 0 var(--space-4); }
  .diagrama-rio__vcidade {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  .diagrama-rio__vcidade::before {
    content: "";
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--laranja);
    margin-left: 6px;
    flex-shrink: 0;
  }
  .diagrama-rio__vcontexto {
    margin: var(--space-2) 0;
    padding-left: 30px;
    position: relative;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1) var(--space-2);
  }
  .diagrama-rio__vcontexto span { font-weight: 500; font-size: var(--text-xs); color: var(--muted); }
  .diagrama-rio__vcontexto::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0.35em;
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid var(--ink-soft);
  }
  .diagrama-rio__vertical ol {
    list-style: none;
    margin: 0; padding: var(--space-2) 0 var(--space-2) 10px;
    border-left: 3px solid var(--agua); /* o rio: azul */
    margin-left: 10px;
    display: grid;
    gap: var(--space-4);
  }
  .diagrama-rio__vertical li {
    position: relative;
    padding-left: var(--space-5);
    font-weight: 600;
    color: var(--azul-escuro);
  }
  .diagrama-rio__vertical li::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--azul-tint);
    border: 3px solid var(--azul-escuro);
  }
}

/* Glifo de posição no rio — identidade individual de cada card */
.card-pch__posicao {
  display: block;
  width: 128px;
  height: 16px;
  margin-bottom: var(--space-3);
}
.card-pch__posicao path { stroke: var(--agua); stroke-width: 2; stroke-linecap: round; } /* o rio: azul */
.card-pch__posicao circle { fill: var(--azul-tint-2); }
.card-pch__posicao .e-aqui { fill: var(--azul-escuro); stroke: var(--azul-escuro); stroke-width: 2; }

/* Divisor: a linha do rio como fio condutor entre seções */
.divisor-rio {
  color: var(--agua); /* a linha do rio é água: azul */
  opacity: 0.4;
  max-width: var(--container);
  margin: 0 auto var(--space-7);
  padding-inline: var(--gutter);
}
.divisor-rio svg { display: block; width: 100%; height: clamp(28px, 4vw, 56px); }

/* =====================================================================
   Cards das PCHs — fichas individuais
   ===================================================================== */
.cards-pch {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}
@media (min-width: 720px) { .cards-pch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-pch {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5) var(--space-4);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.card-pch:hover { border-color: var(--azul-marca); transform: translateY(-3px); }
.card-pch h3 { margin-top: 0; font-size: var(--text-xl); }
/* Foto real de cada PCH sangrando até as bordas do card */
.card-pch__foto {
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-5)) var(--space-5);
  min-width: 0;
}
.card-pch__foto .foto__ampliar { border-radius: var(--radius) var(--radius) 0 0; }
.card-pch__foto img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--azul-tint);
}
.card-pch__foto figcaption { padding: var(--space-2) var(--space-5) 0; }
.card-pch__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--azul-escuro);
  background: var(--azul-tint);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: var(--space-4);
}
.card-pch__status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--laranja);
  flex-shrink: 0;
}
.card-pch__descricao { color: var(--ink-soft); font-size: var(--text-sm); }
.card-pch__detalhes summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--azul-escuro);
  padding: var(--space-2) 0;
  min-height: 44px;
  user-select: none;
}
.card-pch__detalhes summary::-webkit-details-marker { display: none; }
.card-pch__detalhes summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--azul-marca);
  border-bottom: 2px solid var(--azul-marca);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-fast) var(--ease-out);
}
.card-pch__detalhes[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.card-pch__detalhes summary span { border-bottom: 1px solid var(--azul-tint-2); }
.ficha { margin: var(--space-3) 0 0; }
.ficha > div {
  display: flex;
  flex-wrap: wrap; /* em zoom/telas mínimas o valor desce para a linha de baixo */
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--azul-tint);
  font-size: var(--text-sm);
}
.ficha dt { color: var(--muted); }
.ficha dd {
  margin: 0;
  margin-left: auto;
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere; /* código ANEEL pode quebrar em vez de estourar */
}
.ficha__nota { font-size: var(--text-xs); color: var(--muted); margin: var(--space-3) 0 0; }

/* =====================================================================
   Infográfico fio d'água
   ===================================================================== */
.infografico {
  margin-top: var(--space-8);
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
}
.infografico svg { width: 100%; height: auto; display: block; }
/* Regra da água azul: tudo que é água (margens, fluxo, água na turbina, marcos 1 e 3) em --agua;
   estruturas civis e equipamentos (casa de força, soleira, transformador, torres, marcos 2 e 4) em azul-escuro (forma preenchida, menos saturada que a água).
   A distinção não depende só da cor: água é traço tracejado/linha, estrutura é forma preenchida. */
.infografico__margem { stroke: var(--agua); stroke-width: 3; stroke-linecap: round; }
.infografico__soleira { fill: var(--azul-tint-2); stroke: var(--azul-medio); stroke-width: 2; }
.infografico__casa { fill: var(--azul-tint); stroke: var(--azul-escuro); stroke-width: 3; }
.infografico__turbina-aro { fill: var(--agua); stroke: var(--azul-escuro); stroke-width: 3; }
.infografico__turbina-pas { stroke: #fff; stroke-width: 3; stroke-linecap: round; fill: none; }
.infografico__turbina-eixo { fill: #fff; }
.infografico__agua {
  stroke: var(--agua);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 14 34;
  opacity: 0.9;
}
/* Energia: condutores sólidos azul-escuro (contraste com a água tracejada, mais viva) */
.infografico__condutor { stroke: var(--azul-escuro); stroke-width: 2.5; stroke-linecap: round; }
.infografico__trafo-corpo { fill: var(--azul-tint); stroke: var(--azul-escuro); stroke-width: 2.5; }
.infografico__bucha { stroke: var(--azul-escuro); stroke-width: 2.5; stroke-linecap: round; }
.infografico__bucha-topo { fill: var(--azul-escuro); }
.infografico__raio { fill: var(--laranja-texto); } /* pontuação de energia: laranja escurecido (3,99:1 sobre o tint) */
.infografico__torre path { stroke: var(--azul-escuro); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.infografico__arvore path { stroke: var(--app-marrom); stroke-width: 3; stroke-linecap: round; } /* tronco marrom (cliente, 02/09/2026) */
.infografico__arvore circle { fill: var(--app-verde); }   /* copa verde — a única cor verde do site */
.infografico__marco circle { fill: var(--azul-escuro); }
.infografico__marco--agua circle { fill: var(--agua); }
.infografico__marco text {
  fill: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 26px;
  text-anchor: middle;
}
.infografico figcaption {
  border-top: 1px dashed var(--azul-tint-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
}
.infografico__legenda-titulo {
  display: block;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.infografico__legenda {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
@media (min-width: 760px) {
  .infografico__legenda { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
}
@media (min-width: 1100px) {
  .infografico__legenda { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.infografico__legenda li { display: flex; gap: var(--space-3); align-items: flex-start; min-width: 0; }
.infografico__num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--azul-escuro);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.infografico__num--agua { background: var(--agua); }

/* =====================================================================
   Timeline — o componente prioritário
   ===================================================================== */
.timeline {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--space-6);
  position: relative;
}
.timeline__no {
  display: block;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--azul-medio);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}
.timeline__etapa[data-estado="concluida"] .timeline__no {
  background: var(--azul-marca);
  border-color: var(--azul-marca);
}
.timeline__etapa[data-estado="atual"] .timeline__no {
  background: var(--azul-escuro);
  border-color: var(--azul-escuro);
  box-shadow: 0 0 0 6px rgb(62 122 150 / 0.22);
}
/* Entrada sequencial da timeline (só com JS + motion permitido) e
   pulso FINITO de 3 ciclos na fase atual — nada fica pulsando para sempre */
@media (prefers-reduced-motion: no-preference) {
  html.js .timeline .timeline__no {
    transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
  }
  html.js .timeline:not(.is-ativa) .timeline__no { transform: scale(0.5); opacity: 0; }
  html.js .timeline.is-ativa .timeline__etapa:nth-child(1) .timeline__no { transition-delay: 0.05s; }
  html.js .timeline.is-ativa .timeline__etapa:nth-child(2) .timeline__no { transition-delay: 0.3s; }
  html.js .timeline.is-ativa .timeline__etapa:nth-child(3) .timeline__no { transition-delay: 0.55s; }
  html.js .timeline.is-ativa .timeline__etapa:nth-child(4) .timeline__no { transition-delay: 0.8s; }

  html.js .timeline .timeline__etapa::before {
    transition: transform 0.55s var(--ease-inout);
    transform-origin: top center;
  }
  html.js .timeline:not(.is-ativa) .timeline__etapa::before { transform: scaleY(0); }
  html.js .timeline.is-ativa .timeline__etapa:nth-child(1)::before { transition-delay: 0.15s; }
  html.js .timeline.is-ativa .timeline__etapa:nth-child(2)::before { transition-delay: 0.4s; }
  html.js .timeline.is-ativa .timeline__etapa:nth-child(3)::before { transition-delay: 0.65s; }

  .timeline.is-ativa .timeline__etapa[data-estado="atual"] .timeline__no,
  html:not(.js) .timeline__etapa[data-estado="atual"] .timeline__no {
    animation: pulso 2.6s var(--ease-inout) 1.1s 3;
  }
  @keyframes pulso {
    0%, 100% { box-shadow: 0 0 0 5px rgb(62 122 150 / 0.25); }
    50% { box-shadow: 0 0 0 11px rgb(62 122 150 / 0.08); }
  }

  @media (min-width: 920px) {
    html.js .timeline .timeline__etapa::before { transform-origin: left center; }
    html.js .timeline:not(.is-ativa) .timeline__etapa::before { transform: scaleX(0); }
  }
}
.timeline__etapa { position: relative; padding-left: var(--space-6); }
.timeline__etapa::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 24px;
  bottom: calc(-1 * var(--space-6));
  width: 2px;
  background: var(--azul-tint-2);
}
.timeline__etapa:last-child::before { display: none; }
.timeline__etapa[data-estado="concluida"]::before { background: var(--azul-marca); }
.timeline__etapa .timeline__no { position: absolute; left: 0; top: 2px; margin: 0; }
.timeline__etapa h3 { margin-top: 0; margin-bottom: var(--space-1); }
.timeline__status {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.timeline__etapa[data-estado="atual"] .timeline__status { color: var(--azul-escuro); }
.timeline__etapa[data-estado="atual"] h3 { color: var(--azul-profundo); }
.timeline__etapa p:last-child { margin-bottom: 0; font-size: var(--text-sm); color: var(--ink-soft); max-width: 52ch; }

/* Etapas condicionais (Parecer de Licenciamento): Construção e Operação dependem de
   licenças ainda não emitidas — nó tracejado e trilho tracejado a partir de Desenvolvimento,
   para que a linha do tempo não sugira percurso inevitável. O estado é sempre dito em texto. */
.timeline__etapa[data-estado="condicional"] .timeline__no { border-style: dashed; border-color: var(--azul-medio); }
.timeline__etapa[data-estado="condicional"] .timeline__status { color: var(--ink-soft); }
.timeline__etapa[data-estado="atual"]::before,
.timeline__etapa[data-estado="condicional"]::before {
  background: repeating-linear-gradient(to bottom, var(--azul-medio) 0 6px, transparent 6px 12px);
}

@media (min-width: 920px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
  .timeline__etapa { padding-left: 0; padding-top: var(--space-6); min-width: 0; }
  .timeline__etapa .timeline__no { left: 0; top: 0; }
  .timeline__etapa::before {
    left: 30px;
    right: calc(-1 * var(--space-5) - 8px);
    top: 10px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .timeline__etapa[data-estado="atual"]::before,
  .timeline__etapa[data-estado="condicional"]::before {
    background: repeating-linear-gradient(to right, var(--azul-medio) 0 6px, transparent 6px 12px);
  }
}

/* =====================================================================
   Transmissão
   ===================================================================== */
.transmissao-fluxo__lista {
  list-style: none;
  margin: 0 0 var(--space-6); padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-2);
  font-weight: 600;
  color: var(--azul-escuro);
}
.transmissao-fluxo__lista li {
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: 999px;
  padding: 10px 22px;
}
.transmissao-fluxo__lista li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-top: 2px solid var(--laranja);
  border-right: 2px solid var(--laranja);
  border-radius: 1px;
  transform: rotate(45deg);
  margin-left: var(--space-3);
  vertical-align: 1px;
}

.foto--transmissao { margin-bottom: var(--space-6); }
.foto--transmissao img { aspect-ratio: 21 / 9; object-position: 30% 60%; }

/* =====================================================================
   Galeria de fotos + lightbox
   ===================================================================== */
.galeria {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5) var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.galeria__item { min-width: 0; }
.galeria__item figure { margin: 0; min-width: 0; }
.galeria__link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--azul-tint);
  border: 1px solid var(--azul-tint-2);
  transition: border-color var(--dur-base) var(--ease-out);
}
.galeria__link img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.galeria__link:hover { border-color: var(--azul-marca); }
.galeria__link:hover img { transform: scale(1.03); }
.galeria__link:focus-visible { outline-offset: 3px; }
.galeria__item figcaption { font-size: var(--text-xs); color: var(--ink-soft); margin-top: var(--space-2); line-height: 1.55; }
.galeria__subtitulo { margin: var(--space-7) 0 var(--space-4); }
.galeria--institucional { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); max-width: 900px; }
.galeria__nota { font-size: var(--text-sm); color: var(--muted); max-width: 78ch; margin: var(--space-6) 0 0; }

/* Lightbox: <dialog> nativo (foco, Esc e restauração do foco vêm do navegador) */
html.lightbox-aberto { overflow: hidden; }
.lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop { background: rgb(8 28 38 / 0.93); }
.lightbox[open] { display: block; }
.lightbox__conteudo {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px var(--gutter) 20px;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}
.lightbox__figura {
  margin: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--space-3);
  justify-items: center;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.04);
}
.lightbox__legenda {
  color: #E6EEF3;
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: center;
  max-width: 78ch;
  margin: 0;
}
.lightbox__contador {
  position: absolute;
  top: 20px;
  left: var(--gutter);
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #BFD1DC;
}
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.lightbox__btn:hover { background: rgb(255 255 255 / 0.24); }
.lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lightbox__btn--fechar { top: 10px; right: var(--gutter); }
.lightbox__btn--anterior { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--proxima { right: 8px; top: 50%; transform: translateY(-50%); }
/* ícones desenhados: × e chevrons */
.lightbox__btn--fechar span { position: relative; width: 18px; height: 18px; display: block; }
.lightbox__btn--fechar span::before,
.lightbox__btn--fechar span::after {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.lightbox__btn--fechar span::before { transform: rotate(45deg); }
.lightbox__btn--fechar span::after { transform: rotate(-45deg); }
.lightbox__btn--anterior span,
.lightbox__btn--proxima span {
  display: block;
  width: 12px; height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.lightbox__btn--anterior span { transform: rotate(-135deg) translate(-2px, 2px); }
.lightbox__btn--proxima span { transform: rotate(45deg) translate(-2px, 2px); }
@media (min-width: 920px) {
  .lightbox__conteudo { padding-inline: 88px; }
  .lightbox__btn--anterior { left: 24px; }
  .lightbox__btn--proxima { right: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lightbox-entra 0.22s var(--ease-out); }
  @keyframes lightbox-entra { from { opacity: 0; } to { opacity: 1; } }
}

.aviso {
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  max-width: 78ch;
}
.aviso p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.aviso strong { color: var(--ink); }
.aviso strong::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--laranja);
  margin-right: 10px;
  vertical-align: 2px;
}
/* Bloco fixo de posicionamento (ex.: contratação de mão de obra) — mesmo cartão, com título */
.aviso--destaque { max-width: none; margin-top: var(--space-7); }
.aviso--destaque h3 { margin: 0 0 var(--space-3); font-size: var(--text-lg); }
.aviso--destaque h3::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--laranja);
  margin-right: 10px;
  vertical-align: 3px;
}
.aviso--destaque p + p { margin-top: var(--space-3); }

/* =====================================================================
   Localização (ficha não fotográfica em "Conheça o Complexo")
   ===================================================================== */
.localizacao {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}
.localizacao__rotulo {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ficha--localizacao { margin-top: 0; }
.ficha--localizacao dd { color: var(--azul-escuro); font-weight: 600; }
.localizacao__nota { margin: var(--space-4) 0 0; font-size: var(--text-xs); color: var(--muted); }

/* =====================================================================
   Meio ambiente — os três meios dos estudos
   ===================================================================== */
.meios {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 640px) { .meios { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.meios li {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius);
  padding: var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.meios strong {
  display: block;
  font-family: 'Roboto Condensed', 'Roboto Condensed fallback', var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.25;
  color: var(--azul-escuro);
  margin-bottom: var(--space-1);
}

/* =====================================================================
   Licenciamento ambiental — seção educativa
   ===================================================================== */
.licenciamento-grade {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}
@media (min-width: 720px) { .licenciamento-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bloco-info {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
}
.bloco-info h3 { margin-top: 0; }
.bloco-info p { color: var(--ink-soft); font-size: var(--text-sm); }
.bloco-info p:last-child { margin-bottom: 0; }
.bloco-info--participacao p { font-size: var(--text-base); max-width: 78ch; }

.licencas__titulo { margin: 0 0 var(--space-4); }
.licencas {
  list-style: none;
  margin: 0 0 var(--space-7);
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 880px) { .licencas { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* em tablets retrato os 3 cartões ficariam estreitos demais */
.licencas__item {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
}
.licencas__item p { color: var(--ink-soft); font-size: var(--text-sm); }
.licencas__item > p:last-child { margin-bottom: 0; }
.licencas__sigla {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px; height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--azul-tint);
  color: var(--azul-escuro);
  font-family: 'Roboto Condensed', 'Roboto Condensed fallback', var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.licencas__nome {
  font-family: 'Roboto Condensed', 'Roboto Condensed fallback', var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.25;
  color: var(--azul-escuro);
  margin: 0 0 var(--space-2);
}
.licencas__nota {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--ink);
  background: var(--azul-tint);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 0;
}
.licencas__nota::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--laranja);
  flex-shrink: 0;
}
.licencas__atual {
  margin: var(--space-4) 0 0;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--azul-tint-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--azul-escuro);
}
.licencas__item > .licencas__atual { color: var(--azul-escuro); }

/* =====================================================================
   Documentos (chamada na home)
   ===================================================================== */
.documentos-chamada {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 880px) { .documentos-chamada { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); } }
.documentos-chamada .secao__intro { margin-bottom: var(--space-6); }
.documentos-categorias {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--ink-soft);
}
.documentos-categorias li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-2);
  border-top: 1px solid var(--azul-tint-2);
}
.documentos-categorias li:last-child { border-bottom: 1px solid var(--azul-tint-2); }
.documentos-categorias li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--azul-marca);
  flex-shrink: 0;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-lista { display: grid; gap: var(--space-3); }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius);
  padding: 0 var(--space-6);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.faq-item[open] { border-color: var(--azul-marca); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  font-family: 'Roboto Condensed', 'Roboto Condensed fallback', var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--azul-escuro);
  padding: var(--space-5) 0;
  min-height: 44px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--azul-marca), var(--azul-marca)) center / 14px 2px no-repeat,
    linear-gradient(var(--azul-marca), var(--azul-marca)) center / 2px 14px no-repeat;
  transition: transform var(--dur-fast) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__resposta {
  padding-bottom: var(--space-5);
  color: var(--ink-soft);
  max-width: 66ch;
}
.faq-item__resposta p:last-child { margin-bottom: 0; }

/* =====================================================================
   Contato — campo azul-profundo comprometido
   ===================================================================== */
.secao--contato {
  background:
    linear-gradient(160deg, var(--azul-profundo) 0%, #081C26 100%);
  color: #E6EEF3;
}
.contato-grade {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
@media (min-width: 920px) { .contato-grade { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.contato-painel h2 { color: #fff; margin-top: 0; }
.contato-painel p { color: #BFD1DC; max-width: 46ch; }
.contato-painel a { color: #fff; }
.contato-painel__nota {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(255 255 255 / 0.16);
  font-size: var(--text-sm);
}

.form-contato[hidden],
.form-sucesso[hidden] { display: none; }
.form-contato {
  display: grid;
  gap: var(--space-4);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
}
.form-linha { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .form-linha { grid-template-columns: 1fr 1fr; } }
.form-campo { display: grid; gap: 6px; }
.form-campo label { font-weight: 600; font-size: var(--text-sm); color: var(--azul-escuro); }
.form-campo input,
.form-campo select,
.form-campo textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  min-height: 48px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.form-campo input::placeholder,
.form-campo textarea::placeholder { color: var(--muted); }
.form-campo input:hover,
.form-campo select:hover,
.form-campo textarea:hover { border-color: var(--azul-medio); }
.form-campo input:focus-visible,
.form-campo select:focus-visible,
.form-campo textarea:focus-visible {
  outline-offset: 0;
  background: var(--bg);
}
.form-campo textarea { resize: vertical; min-height: 140px; }
.form-campo--consentimento {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.form-campo--consentimento input {
  width: 24px; height: 24px;
  min-height: 0;
  margin-top: 1px;
  accent-color: var(--azul-escuro);
}
.form-campo--consentimento label { font-weight: 400; color: var(--ink-soft); }
.form-contato .btn { justify-self: start; }
.form-contato .btn:disabled { opacity: 0.65; cursor: wait; }

/* Honeypot: fora da tela, nunca de display:none (bots ignorariam) */
.form-campo--armadilha {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-campo--armadilha input {
  width: 1px; height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
}

/* Erros de validação — texto sempre nomeia o problema, cor nunca sozinha */
.form-campo.tem-erro input,
.form-campo.tem-erro select,
.form-campo.tem-erro textarea {
  border-color: var(--laranja-texto);
}
.form-erro {
  margin: 2px 0 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--laranja-texto);
}
.form-campo--consentimento .form-erro { grid-column: 1 / -1; }

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--laranja-texto);
}

/* Confirmação de envio */
.form-sucesso {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.form-sucesso__icone {
  display: inline-block;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--azul-tint);
  border: 2px solid var(--azul-marca);
  position: relative;
  margin-bottom: var(--space-4);
}
.form-sucesso__icone::after {
  content: "";
  position: absolute;
  left: 17px; top: 13px;
  width: 14px; height: 22px;
  border-right: 3px solid var(--azul-escuro);
  border-bottom: 3px solid var(--azul-escuro);
  transform: rotate(43deg);
}
.form-sucesso h3 { margin: 0 0 var(--space-3); font-size: var(--text-2xl); line-height: 1.2; }
.form-sucesso h3:focus-visible { outline: none; }
.form-sucesso p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; margin-bottom: 0; }

/* =====================================================================
   Investidores
   ===================================================================== */
.investidores {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: var(--space-6);
}
.investidores .container {
  display: flex;
  align-items: flex-end;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.investidores__rotulo { margin-bottom: 4px; }
.investidores__rotulo {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0;
}
.investidores__lista {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end; /* todos os logos apoiados na mesma linha de base */
  gap: var(--space-5) clamp(24px, 4.5vw, 56px);
}
.investidores__lista a {
  display: inline-flex;
  align-items: flex-end;
  border-radius: var(--radius-sm);
}
.inv-logo { width: auto; display: block; }
/* Arquivos cortados pelo conteúdo real: o centro da caixa = centro visual do logo,
   e o flex align-items:center alinha todos exatamente pelo meio da altura.
   Alturas ópticas: lockup vertical pede mais altura que wordmark largo. */
.inv-logo--brasal { height: 78px; }
.inv-logo--neoenergy { height: 54px; }
.inv-logo--quebec { height: 38px; }
.inv-logo--tamarindo { height: 52px; }
@media (max-width: 560px) {
  .inv-logo--brasal { height: 64px; }
  .inv-logo--neoenergy { height: 45px; }
  .inv-logo--quebec { height: 31px; }
  .inv-logo--tamarindo { height: 43px; }
}

/* =====================================================================
   Rodapé
   ===================================================================== */
.footer {
  background: var(--azul-profundo);
  color: #E6EEF3;
  padding-block: var(--space-8) var(--space-6);
}
.footer a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.4); }
.footer a:hover { text-decoration-color: var(--laranja); }
.footer__colunas { display: grid; gap: var(--space-7); margin-bottom: var(--space-7); }
@media (min-width: 760px) { .footer__colunas { grid-template-columns: 1.2fr 0.8fr; } }
/* coluna da marca limitada à largura do texto para o logo centralizar sobre ele */
.footer__colunas > div:first-child { max-width: 420px; }
.footer__colunas > div:first-child p { max-width: none; }
.footer__logo {
  display: block;
  width: 221px;
  max-width: 100%;
  height: auto;
  margin: 0 auto var(--space-4);
}
.footer p { color: #BFD1DC; font-size: var(--text-sm); max-width: 44ch; }
.footer__links {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--space-1);
  font-size: var(--text-sm);
}
/* alvo de toque >= 24px (WCAG 2.5.8) sem mudar o ritmo visual */
.footer__links a { display: inline-block; padding-block: 5px; }
.footer__legal {
  border-top: 1px solid rgb(255 255 255 / 0.14);
  padding-top: var(--space-5);
  font-size: var(--text-xs);
  max-width: none !important;
}

/* =====================================================================
   Página de documentos e política de privacidade
   ===================================================================== */
.docs-categorias-lista { display: grid; gap: var(--space-4); margin-block: var(--space-7); }
@media (min-width: 760px) { .docs-categorias-lista { grid-template-columns: 1fr 1fr; } }
.docs-categoria {
  background: var(--bg);
  border: 1px solid var(--azul-tint-2);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
}
.docs-categoria h2 { font-size: var(--text-lg); margin: 0 0 var(--space-2); }
.docs-categoria p { font-size: var(--text-sm); color: var(--ink-soft); }
.docs-vazio { font-size: var(--text-xs); color: var(--muted); font-style: italic; margin-bottom: 0; }

/* =====================================================================
   Consentimento de cookies (LGPD)
   Montado por assets/js/analytics.js depois do primeiro quadro. `position: fixed`
   é o que mantém o CLS em zero: o banner não empurra nada quando aparece.
   ===================================================================== */
.consentimento {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-toast);
  background: var(--azul-profundo);
  color: #fff;
  border-top: 3px solid var(--azul-marca);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5) 0 max(var(--space-5), env(safe-area-inset-bottom));
}
.consentimento[hidden] { display: none; }
.consentimento__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
@media (min-width: 860px) {
  .consentimento__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); }
}
.consentimento__titulo {
  font-family: 'Roboto Condensed', 'Roboto Condensed fallback', var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  color: #fff;
}
.consentimento__texto p { margin: 0; font-size: var(--text-sm); color: rgb(255 255 255 / 0.86); }
.consentimento__texto a { color: #fff; text-decoration-color: var(--azul-medio-claro); }
.consentimento__texto a:hover { text-decoration-color: var(--laranja); }
.consentimento__acoes { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.consentimento__acoes .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
@media (min-width: 860px) {
  .consentimento__acoes .btn { flex: 0 0 auto; }
}
/* Celular: o banner não pode cobrir o conteúdo — antes ocupava ~40% da tela em pé
   e ~60% deitado. Faixa compacta, botões lado a lado, alvo de toque ≥ 44 px. */
@media (max-width: 859.98px) {
  .consentimento { padding: var(--space-3) 0 max(var(--space-3), env(safe-area-inset-bottom)); }
  .consentimento__inner { gap: var(--space-3); }
  .consentimento__texto .consentimento__titulo { font-size: var(--text-base); margin-bottom: var(--space-1); }
  .consentimento__texto p { font-size: var(--text-xs); line-height: 1.45; }
  .consentimento__acoes { flex-wrap: nowrap; gap: var(--space-2); }
  .consentimento__acoes .btn { flex: 1 1 0; min-height: 44px; padding: 8px 16px; font-size: var(--text-sm); }
}
/* Celular deitado (pouca altura): texto e botões na mesma linha */
@media (max-width: 859.98px) and (max-height: 500px) and (min-width: 560px) {
  .consentimento__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .consentimento__texto .consentimento__titulo { display: inline; font-size: var(--text-sm); margin: 0 var(--space-1) 0 0; }
  .consentimento__texto { line-height: 1.4; }
  .consentimento__texto p { display: inline; line-height: 1.4; }
  .consentimento__acoes .btn { flex: 0 0 auto; }
}
/* Reabrir a escolha — consentimento que não se revoga não é consentimento */
.footer__consentimento {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 5px 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--text-xs);
  color: rgb(255 255 255 / 0.72);
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer__consentimento:hover { color: #fff; text-decoration-color: var(--laranja); }
.footer__consentimento[hidden] { display: none; }

/* =====================================================================
   Movimento reduzido
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
