/* ==========================================================================
   Onway — site institucional
   Paleta do manual da marca: preto, branco, verde chapado e o degradê do logo
   (#00B19F → #008C51) reservado ao logo. Tema único, claro.
   Fonte da marca: Gilmer. Enquanto os arquivos licenciados não entram em
   assets/fonts/, a Urbanist faz o papel.
   ========================================================================== */

@font-face {
  font-family: 'Gilmer';
  src: url('../fonts/Gilmer-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilmer';
  src: url('../fonts/Gilmer-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilmer';
  src: url('../fonts/Gilmer-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/urbanist-latin-ext.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113;
}
@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/urbanist-latin.woff2') format('woff2');
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  color-scheme: light;

  --preto: #000000;
  --branco: #ffffff;
  --verde: #008c51;          /* verde chapado do manual */
  --verde-agua: #00b19f;     /* ponta clara do degradê do logo */

  --fundo: #ffffff;
  --fundo-2: #f1f2f0;
  --tinta: #0b0c0b;
  --tinta-2: #535955;
  --linha: #d9dcd9;
  --destaque: #007a47;       /* verde legível em texto sobre fundo claro */
  --botao: #0b0c0b;
  --botao-tinta: #ffffff;

  --fonte: 'Gilmer', 'Urbanist', 'Avenir Next', 'Segoe UI', sans-serif;
  --margem: clamp(20px, 5vw, 72px);
  --largura: 1320px;
  --secao: clamp(72px, 10vw, 144px);
  --raio: 0px;         /* fotos e janelas */
  --raio-g: 0px;       /* blocos grandes */
  --borda: 0px;        /* respiro entre o bloco e a beira da tela */
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--fonte);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--destaque); outline-offset: 3px; }

.faixa { padding-inline: var(--margem); }
.miolo { max-width: var(--largura); margin-inline: auto; }
.secao { padding-block: var(--secao); }
section[id] { scroll-margin-top: 56px; }

/* Bloco: seção de cor cheia, solta da beira da tela e com cantos arredondados */

.grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* ----------------------------------------------------------------- texto */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.6vw, 5.9rem); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; }
p { text-wrap: pretty; }
.corpo-grande { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; }
.apagado { color: var(--tinta-2); }
.verde { color: var(--destaque); }

/* Marcador de seção: número e nome, como índice de catálogo */
.indice {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 0.95rem; font-weight: 500; color: var(--tinta-2);
  padding-bottom: 18px; margin-bottom: clamp(32px, 5vw, 64px);
  border-bottom: 1px solid var(--linha);
}
.indice b { color: var(--tinta); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- botões */
.botao {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--botao); color: var(--botao-tinta);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
}
.botao:hover { background: var(--verde); color: #fff; }
.botao svg { width: 18px; height: 18px; flex: none; }
.botao--contorno { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.botao--contorno:hover { background: var(--tinta); color: var(--fundo); }

.elo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; text-decoration: none;
  padding-bottom: 4px; border-bottom: 1.5px solid currentColor;
}
.elo svg { width: 16px; height: 16px; transition: transform .18s ease; }
.elo:hover svg { transform: translateX(4px); }

/* O resistor do logo, usado como traço de separação */
.resistor { display: flex; align-items: center; color: var(--verde); }
.resistor::before, .resistor::after { content: ''; height: 2px; background: currentColor; }
.resistor::before { width: clamp(24px, 6vw, 96px); }
.resistor::after { flex: 1; }
.resistor svg { width: 92px; height: 24px; flex: none; display: block; }

/* ---------------------------------------------------------------- topo
   Barra reta e fixa. Transparente sobre o vídeo de abertura; preta e mais baixa ao rolar. */
.topo { position: fixed; top: 0; left: 0; right: 0; z-index: 30; color: #fff; background: transparent; }
.topo.rolou { background: rgba(0, 0, 0, .92); }
.topo__linha {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: calc(var(--largura) + 2 * var(--margem)); margin-inline: auto; padding-inline: var(--margem);
  min-height: 76px; transition: min-height .3s cubic-bezier(.2, .7, .2, 1);
}
.topo.rolou .topo__linha { min-height: 56px; }
.marca { display: block; flex: none; }
.marca img { height: 36px; width: auto; transition: height .3s cubic-bezier(.2, .7, .2, 1); }
.topo.rolou .marca img { height: 28px; }
.topo__nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.topo__nav a:not(.botao) { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: rgba(255, 255, 255, .82); padding-block: 8px; transition: color .15s ease; }
.topo__nav a:not(.botao):hover { color: #fff; }
.topo__nav .botao { min-height: 40px; padding-inline: 20px; font-size: 0.95rem; background: #fff; color: #0b0c0b; }
.topo__nav .botao:hover { background: var(--verde); color: #fff; }
.topo__menu { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; margin-right: -10px; }
.topo__menu svg { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { .topo, .topo__linha, .marca img { transition: none; } }

/* Cenas presas à tela: o site.js mede a rolagem e escreve o andamento de cada uma.
   Sem a classe .anima (movimento reduzido ou script desligado) tudo aparece parado, em sequência. */
main > section { position: relative; z-index: 1; }
:where(main > section) { background: var(--fundo); }

/* ---------------------------------------------------------------- abertura
   Vídeo de ponta a ponta, escurecido. Fica preso enquanto a seção seguinte sobe por cima. */
.abertura { z-index: 0; contain: paint; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; background: #000; color: #fff; --p: 0; }
.anima .abertura { position: sticky; top: 0; }
.abertura__midia { position: absolute; inset: 0; transform: scale(calc(1 + var(--p) * .1)); will-change: transform; background: #0b0c0b url('../img/cases/abertura-industria.jpg') 50% 45% / cover no-repeat; }
.abertura__midia video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; opacity: 1; transition: opacity 1.4s ease; }
.abertura__midia video.saindo { z-index: 2; opacity: 0; }
.abertura::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .5) 38%, rgba(0, 0, 0, .12) 68%, rgba(0, 0, 0, .5) 100%); }
.abertura::after { content: ''; position: absolute; inset: 0; z-index: 1; background: #000; opacity: calc(.42 + var(--p) * .58); }
.abertura__dentro { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(36px, 6vw, 84px); opacity: calc(1 - var(--p) * 1.7); transform: translateY(calc(var(--p) * -70px)); }
.abertura__sobre { font-weight: 700; color: rgba(255, 255, 255, .8); margin-bottom: clamp(14px, 1.6vw, 22px); }
.abertura h1 { max-width: 17ch; font-size: clamp(2.3rem, 5.8vw, 5.4rem); }
.abertura h1 .ponto { color: var(--verde-agua); }
.abertura__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(26px, 3.4vw, 44px); }
.abertura .botao, .botao--claro { background: #fff; color: #0b0c0b; }
.abertura .botao:hover, .botao--claro:hover { background: var(--verde); color: #fff; }
.abertura .rascunho { margin-top: 18px; }

/* ---------------------------------------------------------------- grupo
   Palco preto preso à tela. Primeiro o título; depois, uma empresa por vez, com o desenho traçado pela rolagem. */
.grupo { background: #000; color: #fff; }
.grupo__palco { position: relative; overflow: clip; padding-bottom: clamp(24px, 4vw, 56px); }
.grupo__titulo { position: relative; z-index: 1; padding: clamp(120px, 17vw, 248px) var(--margem) clamp(88px, 12vw, 176px); font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: .98; letter-spacing: -0.04em; text-align: center; }
.grupo__quadros { position: relative; z-index: 1; }
.quadro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: clamp(24px, 4vw, 72px); max-width: calc(var(--largura) + 2 * var(--margem)); margin-inline: auto; padding: clamp(48px, 7vw, 96px) var(--margem); }
.quadro__texto { display: grid; gap: 18px; justify-items: start; }
.quadro__n { font-weight: 500; color: var(--verde-agua); font-variant-numeric: tabular-nums; }
.quadro h3 { font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: .96; letter-spacing: -0.04em; }
.quadro h3 span { font-weight: 300; color: #a2a8a4; }
.quadro__texto > p:not(.quadro__n) { color: #c3c8c5; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.45; max-width: 34ch; }
.quadro .botao { margin-top: 10px; }
.quadro__cena svg { display: block; width: 100%; height: auto; max-height: 62svh; color: #fff; }
.quadro__cena .verde { stroke: var(--verde-agua); }
.quadro__cena .estrato { opacity: .55; }
.grupo__marcas { display: none; }

/* Com movimento: cada empresa ocupa quase uma tela e a animação toca sozinha quando ela chega.
   Rolando de volta para cima, a classe .viva sai e a cena se desfaz (o carro vai embora). */
.anima .quadro { min-height: 82svh; align-content: center; padding-block: clamp(40px, 6vw, 80px); }
.anima .quadro__texto { opacity: 0; transform: translateY(26px); transition: opacity .45s ease, transform .45s ease; }
.anima .quadro.viva .quadro__texto { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.anima .quadro__cena .traco { stroke-dasharray: 1 2; stroke-dashoffset: 1.02; transition: stroke-dashoffset .35s ease; }
.anima .quadro.viva .traco { stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease var(--d, 0s); }
.anima .quadro.viva .traco.lento { transition-duration: 1.3s; }
.anima .quadro__cena .estrato { opacity: 0; transition: opacity .4s ease; }
.anima .quadro.viva .estrato { opacity: .55; transition: opacity 1s ease .6s; }

/* Cena com vídeo real: o site.js liga o tempo do vídeo à rolagem, e ele termina antes de o quadro sair da tela */
/* O quadro é um trilho um pouco mais alto que a tela do vídeo: o vídeo fica parado sob a barra do topo
   por cerca de meia tela de rolagem, o bastante para a pessoa ver a cena inteira acompanhando o mouse. */
.quadro.quadro--video, .anima .quadro.quadro--video { display: block; align-content: normal; max-width: none; min-height: 0; padding: 0; }
.anima .quadro.quadro--video { height: calc(72svh + 60vh); }
.quadro__fixo { position: relative; display: flex; align-items: flex-end; height: 72svh; min-height: 420px; padding: clamp(24px, 4vw, 56px) var(--margem); overflow: hidden; }
.anima .quadro__fixo { position: sticky; top: 56px; }
.quadro--video .quadro__cena { position: absolute; inset: 0; }
/* o vídeo some no preto em cima e embaixo, para um trecho emendar no outro */
.quadro--video .quadro__cena::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .72) 9%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .72) 91%, #000 100%); }
.quadro--video .quadro__cena video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* o texto fica na frente do vídeo, sobre uma placa que desfoca o que está atrás */
/* Texto direto sobre o vídeo, sem caixa: só uma sombra escura atrás das letras, do tamanho do texto.
   (Desfoque de fundo por cima de vídeo pesa muito no navegador e fazia a rolagem engasgar.) */
.quadro--video .quadro__texto { position: relative; z-index: 1; width: min(100%, 460px); text-shadow: 0 1px 18px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6); }
.quadro--video .quadro__texto::before { content: ''; position: absolute; z-index: -1; inset: -56px -96px -64px -120px; background: radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, .34) 55%, rgba(0, 0, 0, 0)); pointer-events: none; }
.quadro--video .botao { text-shadow: none; }
.quadro[data-texto='topo'] .quadro__fixo { align-items: flex-start; padding-top: clamp(40px, 6vw, 84px); }
.quadro[data-texto='direita'] .quadro__fixo { justify-content: flex-end; }
.quadro--video .quadro__cena { background: #050606 center / cover no-repeat; }
.quadro--video .quadro__texto > p:not(.quadro__n) { color: #e6e9e7; }
.quadro--video h3 span { color: #d3d7d4; }

/* Mobi: o carro chega, o cabo liga e a carga sobe no visor */
.anima .quadro .carro { transform: translateX(-780px); transition: transform .95s cubic-bezier(.55, 0, .9, .45) .2s; }
.anima .quadro.viva .carro { transform: none; transition: transform 1.7s cubic-bezier(.12, .72, .2, 1) .15s; }
.anima .quadro .roda { transform-box: fill-box; transform-origin: center; transform: rotate(-1040deg); transition: transform .95s cubic-bezier(.55, 0, .9, .45) .2s; }
.anima .quadro.viva .roda { transform: none; transition: transform 1.7s cubic-bezier(.12, .72, .2, 1) .15s; }
.carga path { stroke: var(--verde-agua); stroke-width: 4; }
.anima .quadro .carga path { opacity: 0; transition: opacity .2s ease; }
.anima .quadro.viva .carga path { animation: carga 2.4s ease 2.7s infinite; }
.anima .quadro.viva .carga path:nth-child(2) { animation-delay: 3s; }
.anima .quadro.viva .carga path:nth-child(3) { animation-delay: 3.3s; }
.anima .quadro.viva .carga path:nth-child(4) { animation-delay: 3.6s; }
@keyframes carga { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }

/* Energy: o microinversor é desenhado, vira parte da placa e a placa sobe para a cobertura do prédio.
   As medidas estão na unidade do desenho (800 x 600). */
.anima .quadro.viva .micro { animation: micro 3.1s cubic-bezier(.4, 0, .2, 1) forwards; }
.anima .quadro.viva .placa { animation: placa 3.1s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes micro {
  0%, 30% { opacity: 1; transform: none; }
  50%, 62% { opacity: 1; transform: translate(292px, 344px) scale(.27); }
  86%, 100% { opacity: 0; transform: translate(393px, 119px) scale(.03); }
}
@keyframes placa {
  0%, 30% { opacity: 0; transform: none; }
  36%, 62% { opacity: 1; transform: none; }
  86%, 100% { opacity: 0; transform: translate(349px, 92px) scale(.14); }
}

/* ---------------------------------------------------------------- soluções */
.solucoes { background: var(--fundo-2); }
.solucoes__grade { row-gap: 40px; align-items: start; }
.solucoes__texto { grid-column: 1 / span 5; position: sticky; top: 88px; display: grid; gap: 28px; }
.solucoes__foto { aspect-ratio: 4 / 3; overflow: hidden; }
.solucoes__foto img { width: 100%; height: 100%; object-fit: cover; }
.solucoes__lista { grid-column: 7 / span 6; border-top: 1.5px solid var(--tinta); }
.solucao { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding: 28px 0 30px; border-bottom: 1px solid var(--linha); }
.solucao__n { font-weight: 500; color: var(--tinta-2); font-variant-numeric: tabular-nums; padding-top: 5px; }
.solucao p { margin-top: 10px; color: var(--tinta-2); max-width: 52ch; }

/* ---------------------------------------------------------------- Solar para Todos
   O palco começa preto e clareia com a rolagem: o nome, em preto, surge do fundo. */
.spt { background: #fff; color: var(--tinta); }
.spt__palco { background: #fff; display: grid; place-items: center; text-align: center; padding: var(--secao) var(--margem) clamp(40px, 6vw, 80px); overflow: hidden; }
.spt__marca { display: grid; justify-items: center; }
.spt__marca img { height: clamp(34px, 4.6vw, 60px); width: auto; margin-bottom: clamp(22px, 3vw, 40px); }
.spt__nome { color: #000; font-size: clamp(3rem, 11.6vw, 11rem); line-height: .9; letter-spacing: -0.05em; }
.spt__frase { margin-top: clamp(22px, 3vw, 40px); max-width: 24ch; font-size: clamp(1.35rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
.anima .spt__cena { height: 210vh; }
.anima .spt__palco { position: sticky; top: 0; height: 100svh; padding-block: 0; background: #000; }
.anima .spt__marca { will-change: transform; }
.anima .spt__marca img, .anima .spt__frase { opacity: 0; }
.spt__corpo { padding-block: clamp(8px, 2vw, 24px) var(--secao); }
.spt__fotos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.spt__fotos img { width: 100%; height: clamp(220px, 34vw, 520px); object-fit: cover; }
.spt__texto { max-width: 46ch; margin: clamp(32px, 5vw, 64px) 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; }
.spt__passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1.5px solid var(--tinta); }
.spt__passo { padding: 24px 24px 8px 0; }
.spt__passo + .spt__passo { padding-left: 24px; border-left: 1px solid var(--linha); }
.spt__passo b { display: block; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 28px; font-variant-numeric: tabular-nums; color: var(--destaque); }
.spt__passo h3 { font-size: 1.3rem; margin-bottom: 8px; }
.spt__passo p { font-size: 1rem; color: var(--tinta-2); }
.spt__fatos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--linha); font-weight: 700; }
.spt__fatos ul { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.spt__fatos li { display: flex; align-items: center; gap: 10px; }
.spt__fatos li::before { content: ''; width: 8px; height: 8px; background: var(--verde); }
.spt .botao { margin-left: auto; }

/* ---------------------------------------------------------------- números (sempre preto) */
.numeros { background: var(--preto); color: #fff; padding-block: var(--secao); overflow: hidden; }
.numeros .miolo { position: relative; z-index: 1; }
.numeros__titulo { color: #a2a8a4; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -0.01em; margin-bottom: clamp(40px, 6vw, 88px); }
.numeros__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 88px) 24px; }
.numeros__valor { font-size: clamp(3rem, 9.4vw, 9rem); font-weight: 700; letter-spacing: -0.05em; line-height: .9; white-space: nowrap; font-variant-numeric: tabular-nums; }
.numeros__valor small { font-size: 0.36em; font-weight: 500; letter-spacing: 0; margin-left: 0.15em; color: #a2a8a4; }
.numeros__valor small:first-child { margin-left: 0; margin-right: 0.1em; }
.numeros__rotulo { margin-top: 18px; padding-top: 16px; border-top: 1px solid #2a2d2b; color: #c3c8c5; font-size: clamp(1rem, 1.4vw, 1.25rem); }

/* Entrada das seções comuns: sobem e aparecem quando chegam à tela */
.anima .surge { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.anima .surge.visto { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- cases */
.cases__cabeca { align-items: end; row-gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.cases__cabeca h2 { grid-column: 1 / span 7; }
.cases__cabeca p { grid-column: 9 / span 4; color: var(--tinta-2); }
.cases__grade { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.case { position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; grid-column: span 4; }
.case--grande { grid-column: span 8; grid-row: span 2; }
.case:nth-child(n+4) { grid-column: span 3; }
.case:nth-child(n+4) .case__nome { font-size: 1.2rem; }
.case__foto { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--fundo-2); border-radius: var(--raio); }
.case--grande .case__foto { aspect-ratio: auto; flex: 1; min-height: 380px; }
.case__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.case:hover .case__foto img { transform: scale(1.035); }
.case__selo { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); background: var(--preto); color: #fff; font-size: 0.9rem; font-weight: 700; line-height: 1.3; padding: 10px 18px; }
.case__pe { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 16px; min-height: 92px; width: 100%; }
.case__nome { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.case--grande .case__nome { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.case__local { color: var(--tinta-2); font-size: 0.98rem; margin-top: 4px; }
.case__abrir { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--linha); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.case__abrir svg { width: 18px; height: 18px; }
.case:hover .case__abrir { background: var(--verde); color: #fff; box-shadow: none; }

/* Enphase Platinum e reconhecimentos */
.platinum { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--linha); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.platinum__placa { background: var(--fundo-2); border-radius: var(--raio); overflow: hidden; display: grid; place-items: center; min-height: 300px; }
.platinum__placa img { width: 112%; max-width: none; mix-blend-mode: multiply; }
.platinum__texto { display: grid; gap: 14px; align-content: center; }
.platinum__texto h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; }
.platinum__texto > p { max-width: 46ch; }
.selos { margin-top: 18px; border-top: 1.5px solid var(--tinta); }
.selo { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--linha); }
.selo__ano { grid-row: span 2; font-weight: 500; color: var(--destaque); font-size: 0.95rem; padding-top: 3px; }
.selo h4 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
.selo p:last-child { color: var(--tinta-2); font-size: 1rem; }

/* ---------------------------------------------------------------- onde estamos */
.onde { background: var(--fundo-2); }
.onde__grade { align-items: center; row-gap: 40px; }
.onde__texto { grid-column: 1 / span 5; display: grid; gap: 28px; }
.onde__estados { border-top: 1.5px solid var(--tinta); }
.onde__estados li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linha); font-size: 1.15rem; font-weight: 500; cursor: default; transition: color .15s ease, padding .15s ease; }
.onde__estados li span { color: var(--tinta-2); font-size: 0.9rem; font-weight: 500; }
.onde__estados li.ativo { color: var(--destaque); padding-left: 10px; }
.onde__mapa { grid-column: 7 / span 6; }
.mapa { width: 100%; height: auto; display: block; overflow: visible; }
.mapa path { fill: var(--fundo); stroke: var(--linha); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .15s ease; }
.mapa path.atua { fill: var(--tinta); stroke: var(--fundo-2); }
.mapa path.atua.ativo { fill: var(--verde); }
.mapa__encarte rect { fill: none; stroke: var(--linha); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mapa__encarte circle { fill: var(--verde); stroke: #fff; stroke-width: .15; pointer-events: none; }
.mapa__encarte text { font-family: var(--fonte); font-size: 1.25px; font-weight: 700; fill: var(--tinta); }

/* ---------------------------------------------------------------- sobre */
.sobre__grade { row-gap: 36px; }
.sobre__titulo { grid-column: 1 / span 6; }
.sobre__texto { grid-column: 8 / span 5; display: grid; gap: 20px; align-content: start; }
.sobre__texto p + p { color: var(--tinta-2); }
.sobre__lista { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); border-top: 1.5px solid var(--tinta); }
.sobre__lista li { min-height: 0; }
.sobre__lista li { padding: 22px 24px 0 0; font-weight: 500; }
.sobre__lista li + li { padding-left: 24px; border-left: 1px solid var(--linha); }

/* ---------------------------------------------------------------- contato */
.contato { }
.contato__grade { row-gap: 48px; }
.contato__texto { grid-column: 1 / span 6; display: grid; gap: 28px; align-content: start; }
.contato__dados { display: grid; gap: 0; border-top: 1.5px solid var(--tinta); margin-top: 12px; }
.contato__dados div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linha); }
.contato__dados dt { color: var(--tinta-2); font-weight: 500; }
.contato__dados dd a { text-decoration: none; border-bottom: 1px solid var(--linha); }
.contato__dados dd a:hover { border-bottom-color: currentColor; }
.formulario { grid-column: 8 / span 5; display: grid; gap: 22px; align-content: start; }
.campo { display: grid; gap: 8px; }
.campo label { font-weight: 700; font-size: 0.95rem; }
.campo input, .campo select, .campo textarea {
  width: 100%; font: inherit; color: var(--tinta);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--tinta-2);
  border-radius: 0; padding: 10px 0 12px; min-height: 48px;
  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 16 16' fill='none' stroke='%23808683' stroke-width='1.6'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 16px; padding-right: 28px; }
.campo select option { color: #0b0c0b; background: #fff; }
.campo textarea { resize: vertical; min-height: 96px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--destaque); box-shadow: 0 1.5px 0 var(--destaque); }
.formulario .botao { justify-self: start; }

/* ---------------------------------------------------------------- rodapé (sempre preto) */
.rodape { position: relative; z-index: 1; background: var(--preto); color: #fff; padding-block: clamp(56px, 7vw, 96px) 32px; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--verde-agua); }
.rodape__grade { row-gap: 40px; }
.rodape__marca { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.rodape__marca img { height: 44px; width: auto; }
.rodape__marca p { color: #a2a8a4; max-width: 34ch; }
.rodape__col { grid-column: span 2; }
.rodape__col:first-of-type { grid-column: 7 / span 2; }
.rodape__col h3 { font-size: 0.95rem; font-weight: 500; color: #a2a8a4; letter-spacing: 0; margin-bottom: 16px; }
.rodape__col li + li { margin-top: 10px; }
.rodape__col button:hover { color: var(--verde-agua); }
.rodape__fim { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(48px, 6vw, 88px); padding-top: 24px; border-top: 1px solid #2a2d2b; color: #a2a8a4; font-size: 0.9rem; }

/* ---------------------------------------------------------------- janelas (cases e frentes do grupo) */
dialog.janela {
  width: min(1180px, 100vw - 32px); max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--raio-g);
  background: var(--fundo); color: var(--tinta);
  overflow: auto; overscroll-behavior: contain;
}
dialog:focus { outline: none; }
dialog.janela::backdrop { background: rgba(0, 0, 0, .72); }
dialog.janela[open] { animation: subir .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.janela[open] { animation: none; } }
.janela__barra { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(20px, 4vw, 48px); background: var(--preto); color: #fff; }
.janela__barra span { font-weight: 500; font-size: 0.95rem; color: #a2a8a4; }
.janela__fechar { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; min-height: 44px; padding-inline: 4px; }
.janela__fechar svg { width: 18px; height: 18px; }
.janela__fechar:hover { color: var(--verde-agua); }
dialog.janela--pequena { width: min(560px, 100vw - 32px); }
dialog.janela--media { width: min(760px, 100vw - 32px); }

/* simulador do Solar para Todos */
.simula { display: grid; gap: clamp(22px, 3vw, 32px); }
.simula h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.simula__aviso { background: var(--fundo-2); border-radius: var(--raio); padding: clamp(20px, 3vw, 28px); }
.simula__aviso h3 { font-size: 1.1rem; margin-bottom: 12px; }
.simula__aviso ul { display: grid; gap: 10px; list-style: none; }
.simula__aviso li { position: relative; padding-left: 20px; color: var(--tinta); font-size: 0.98rem; line-height: 1.45; }
.simula__aviso li::before { content: ''; position: absolute; left: 0; top: .52em; width: 8px; height: 8px; background: var(--verde); }
.simula__campo input { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.simula__campo input::placeholder { color: #a9aeab; font-weight: 500; }
.simula__campo p { font-size: 0.92rem; }
.simula__saida { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
.simula__saida div { background: var(--preto); color: #fff; border-radius: var(--raio); padding: 20px 22px 22px; }
.simula__saida dt { color: #a2a8a4; font-size: 0.95rem; font-weight: 500; margin-bottom: 10px; }
.simula__saida dd { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.simula__saida small { display: block; margin-top: 10px; font-size: 0.92rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; color: #a2a8a4; }
.simula__condominio { border: 0; margin: 0; padding: clamp(20px, 3vw, 28px) 0 0; border-top: 1px solid var(--linha); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; min-width: 0; }
.simula__condominio legend { float: left; width: 100%; grid-column: 1 / -1; padding: 0; font-size: 1.1rem; font-weight: 700; }
.simula__condominio legend span { margin-left: 8px; font-size: 0.9rem; font-weight: 500; color: var(--tinta-2); }
.simula__condominio .campo:first-of-type { grid-column: 1 / -1; }
.simula__nota { font-size: 0.92rem; color: var(--tinta-2); margin-top: -8px; }
.janela--pequena h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 24px; }
.janela--pequena .onde__estados + p { margin-top: 18px; }
.janela__miolo { padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(40px, 6vw, 72px); }

/* case aberto: foto grande de ponta a ponta, números em letra grande */
#case-miolo { padding-top: 0; }
.aberto__palco { position: relative; margin-inline: calc(-1 * clamp(20px, 4vw, 48px)); height: min(62vh, 620px); min-height: 260px; background: #0b0c0b; overflow: hidden; }
.aberto__palco img { width: 100%; height: 100%; object-fit: cover; }
.aberto__selo { position: absolute; left: clamp(20px, 4vw, 48px); bottom: 18px; background: var(--preto); color: #fff; font-size: 0.9rem; font-weight: 700; padding: 10px 18px; }
.galeria__tiras { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.galeria__tiras::-webkit-scrollbar { display: none; }
.galeria__tiras button { flex: 0 0 clamp(72px, 9vw, 112px); aspect-ratio: 4 / 3; overflow: hidden; opacity: .5; transition: opacity .15s ease, box-shadow .15s ease; }
.galeria__tiras button[aria-current='true'], .galeria__tiras button:hover { opacity: 1; }
.galeria__tiras button[aria-current='true'] { box-shadow: inset 0 -3px 0 var(--verde); }
.galeria__tiras img { width: 100%; height: 100%; object-fit: cover; }
.aberto__grade { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(28px, 4vw, 56px); }
.aberto__texto { display: grid; gap: 20px; justify-items: start; }
.aberto__texto h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); letter-spacing: -0.035em; line-height: .98; }
.aberto__tipo { font-weight: 700; color: var(--destaque); font-size: 0.95rem; }
.aberto__historia { display: grid; gap: 14px; color: var(--tinta-2); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 46ch; }
.numeros-case { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 36px) 24px; }
.numeros-case div { border-top: 1.5px solid var(--tinta); padding-top: 12px; }
.numeros-case dt { color: var(--tinta-2); font-size: 0.95rem; }
.numeros-case dd { margin-top: 6px; font-size: clamp(1.7rem, 3.1vw, 2.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.numeros-case small { font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--tinta-2); margin-left: .3em; }
.ficha { border-top: 1.5px solid var(--tinta); }
.ficha div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--linha); }
.ficha dt { color: var(--tinta-2); }
.ficha dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* obras do mesmo tipo, dentro da janela do case */
.projetos { margin-top: clamp(48px, 7vw, 96px); }
.projetos h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: -0.03em; padding-bottom: 18px; border-bottom: 1.5px solid var(--tinta); }
.projetos__grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) 24px; margin-top: clamp(24px, 3vw, 40px); }
.projeto__foto { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fundo-2); }
.projeto__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.projeto__foto:hover img { transform: scale(1.04); }
.projeto__conta { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.projeto h4 { margin: 14px 0 0; font-size: 1.05rem; font-weight: 500; color: var(--tinta-2); }
.projeto__kwp { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.projeto__kwp small { font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--tinta-2); margin-left: .3em; }
.projeto__dados { margin-top: 10px; border-top: 1px solid var(--linha); }
.projeto__dados div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linha); font-size: 0.95rem; }
.projeto__dados dt { color: var(--tinta-2); }
.projeto__dados dd { font-weight: 700; font-variant-numeric: tabular-nums; }

/* empresa do grupo aberta: faixa preta com o nome e o desenho, depois o que ela faz */
.frente-aberta__topo { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: 'nome cena' 'texto cena'; grid-template-rows: 1fr auto; column-gap: clamp(24px, 4vw, 56px); row-gap: 18px; align-items: end;
  margin: calc(-1 * clamp(28px, 5vw, 64px)) calc(-1 * clamp(20px, 4vw, 48px)) 0; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 48px); background: #000; color: #fff; }
.frente-aberta__topo > * { position: relative; z-index: 1; }
.frente-aberta__topo > .xadrez { position: absolute; z-index: 0; }
.frente-aberta__topo h2 { grid-area: nome; font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -0.04em; line-height: .94; }
.frente-aberta__topo h2 span { font-weight: 300; color: #a2a8a4; }
.frente-aberta__topo p { grid-area: texto; color: #c3c8c5; max-width: 40ch; align-self: start; }
.frente-aberta__cena { grid-area: cena; align-self: center; }
.frente-aberta__cena svg { display: block; width: 100%; height: auto; max-height: 300px; color: #fff; }
.frente-aberta__cena .verde, .carga path { stroke: var(--verde-agua); }
.frente-aberta__cena .estrato { opacity: .55; }
.micro, .placa { opacity: 0; }
.frente-aberta__blocos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); counter-reset: bloco; margin-top: clamp(12px, 2vw, 24px); }
.frente-aberta__blocos article { counter-increment: bloco; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--linha); }
.frente-aberta__blocos article::before { content: counter(bloco, decimal-leading-zero); grid-row: span 2; font-weight: 500; color: var(--destaque); font-variant-numeric: tabular-nums; padding-top: 4px; }
.frente-aberta__blocos h3 { margin-bottom: 8px; }
.frente-aberta__blocos p { color: var(--tinta-2); }
.frente-aberta__pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; }
.frente-aberta__ficha { margin-top: 36px; max-width: 520px; }
.elo-texto { color: var(--tinta); font-weight: 700; text-underline-offset: 3px; }
.elo-texto:hover { color: var(--destaque); }
.reservado { margin-top: 36px; border: 1.5px dashed var(--linha); min-height: 260px; display: grid; place-items: center; text-align: center; padding: 32px; color: var(--tinta-2); }
.reservado b { display: block; color: var(--tinta); font-size: 1.2rem; margin-bottom: 6px; }

/* mapa de recarga (Onway Mobi) */
.recarga { margin-top: 44px; }
.recarga__cabeca { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; }
.recarga__cabeca h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.recarga__grade { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.recarga__mapa { position: relative; background: #e3e7e3; border-radius: var(--raio); overflow: hidden; }
.recarga__credito { position: absolute; left: 14px; bottom: 10px; font-size: 0.7rem; color: #6a726d; pointer-events: none; }
.mapa-df { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.mapa-df.arrastando { cursor: grabbing; }
.mapa-df path { vector-effect: non-scaling-stroke; }
.mapa-df .viz { fill: #dadfda; stroke: #c6ccc7; stroke-width: 1; }
.mapa-df .ra { fill: #fbfcfb; stroke: #bfc6c0; stroke-width: 1; transition: fill .15s ease; }
.mapa-df .ra:hover { fill: #eef1ee; }
.mapa-df .ra.tem { fill: #cdebdc; stroke: #8fc7ab; }
.mapa-df .ra.tem:hover { fill: #b9e2cd; }
.mapa-df .lago { fill: #c5d6de; stroke: none; pointer-events: none; }
.mapa-df .df { fill: none; stroke: #4c544f; stroke-width: 1.6; pointer-events: none; }
.mapa-df text { font-family: var(--fonte); fill: #68716b; font-weight: 500; pointer-events: none; }
.mapa-df text.tem { fill: #0a5c39; font-weight: 700; }
.mapa-df text.fora { fill: #99a19b; }
.mapa-df .pino { cursor: pointer; }
.mapa-df .pino circle.toque { fill: transparent; }
.mapa-df .pino circle.aro { fill: rgba(0, 140, 81, .22); transition: fill .15s ease; }
.mapa-df .pino circle.miolo { fill: var(--verde); stroke: #fff; vector-effect: non-scaling-stroke; stroke-width: 2; transition: fill .15s ease; }
.mapa-df .pino:hover circle.miolo, .mapa-df .pino.ativo circle.miolo { fill: #0b0c0b; }
.mapa-df .pino.ativo circle.aro { fill: rgba(11, 12, 11, .22); }
.mapa-df .pino:focus { outline: none; }
.mapa-df .pino:focus-visible circle.aro { fill: rgba(11, 12, 11, .35); }
.recarga__zoom { position: absolute; right: 14px; bottom: 14px; display: grid; gap: 6px; }
.recarga__zoom button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #0b0c0b; color: #fff; transition: background-color .15s ease, color .15s ease; }
.recarga__zoom button:hover { background: var(--verde); color: #fff; }
.recarga__zoom svg { width: 16px; height: 16px; }
.recarga__lista { border-top: 1.5px solid var(--tinta); max-height: 420px; overflow: auto; }
.recarga__lista li { border-bottom: 1px solid var(--linha); }
.recarga__lista button { display: block; width: 100%; text-align: left; padding: 13px 0; transition: padding .15s ease, color .15s ease; }
.recarga__lista button b { display: block; font-size: 1.05rem; }
.recarga__lista button span { color: var(--tinta-2); font-size: 0.92rem; }
.recarga__lista button:hover, .recarga__lista button[aria-current='true'] { padding-left: 10px; color: var(--destaque); }
.estacao { margin-bottom: 20px; background: var(--fundo-2); border-radius: var(--raio); overflow: hidden; }
.estacao__foto { aspect-ratio: 16 / 9; }
.estacao__foto img { width: 100%; height: 100%; object-fit: cover; }
.estacao__corpo { padding: 20px 22px 22px; display: grid; gap: 14px; }
.estacao__acesso { font-size: 0.9rem; font-weight: 700; color: var(--destaque); }
.estacao h4 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.estacao__endereco { color: var(--tinta-2); font-size: 0.98rem; }
.estacao .ficha { border-top-width: 1px; }
.estacao .ficha div { padding: 9px 0; font-size: 0.98rem; }
.estacao .botao { min-height: 46px; justify-self: start; }

/* menu no celular */
dialog.menu { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--preto); color: #fff; }
.menu__miolo { display: flex; flex-direction: column; height: 100%; padding: 16px var(--margem) 32px; }
.menu__topo { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.menu__topo img { height: 30px; width: auto; }
.menu nav { display: grid; margin-top: 24px; border-top: 1px solid #2a2d2b; }
.menu nav a { display: block; padding: 18px 0; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid #2a2d2b; }
.menu .botao { margin-top: auto; justify-content: center; background: var(--verde); color: #fff; }

/* Marcas de rascunho: aparecem só enquanto <html data-rascunho> existir */
.rascunho { display: none; }
html[data-rascunho] .rascunho {
  display: inline-block; vertical-align: middle;
  font: 500 0.72rem/1.3 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0;
  color: #8a5a00; background: #fff3d1; padding: 3px 7px; margin: 2px 0;
  border: 1px dashed #c99a2e;
}

/* ---------------------------------------------------------------- telas menores */
@media (max-width: 1024px) {
  .topo__nav a:not(.botao) { display: none; }
  .topo__menu { display: inline-flex; }
  .cases__cabeca h2, .cases__cabeca p { grid-column: 1 / -1; }
  .solucoes__texto { grid-column: 1 / -1; position: static; }
  .solucoes__lista { grid-column: 1 / -1; }
  .onde__texto, .onde__mapa { grid-column: 1 / -1; }
  .onde__mapa { max-width: 620px; }
  .sobre__titulo, .sobre__texto { grid-column: 1 / -1; }
  .contato__texto, .formulario { grid-column: 1 / -1; }
  .rodape__marca { grid-column: 1 / -1; }
  .rodape__col, .rodape__col:first-of-type { grid-column: span 4; }
}

@media (max-width: 820px) {
  body { font-size: 17px; }
  .spt__passos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spt__passo:nth-child(3) { padding-left: 0; border-left: 0; }
  .spt__passo:nth-child(n + 3) { border-top: 1px solid var(--linha); }
  .spt .botao { margin-left: 0; }
  .case, .case--grande { grid-column: 1 / -1; grid-row: auto; }
  .case:nth-child(n+4) { grid-column: span 6; }
  .cases__grade { column-gap: 14px; }
  .case:nth-child(n+4) .case__abrir { display: none; }
  .case:nth-child(n+4) .case__nome { font-size: 1.1rem; }
  .case:nth-child(n+4) .case__local { font-size: 0.9rem; }
  .case--grande .case__foto { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .case__pe { min-height: 0; padding-bottom: 8px; }
  .platinum { grid-template-columns: 1fr; }
  .platinum__placa { min-height: 220px; }
  .selo { grid-template-columns: 1fr; }
  .selo__ano { grid-row: auto; }
  .sobre__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sobre__lista li:nth-child(3) { padding-left: 0; border-left: 0; }
  .aberto__grade, .frente-aberta__blocos, .recarga__grade { grid-template-columns: 1fr; }
  .frente-aberta__topo { grid-template-columns: 1fr; grid-template-areas: 'cena' 'nome' 'texto'; grid-template-rows: auto; }
  .frente-aberta__cena svg { max-height: 200px; }
  .projetos__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .aberto__palco { height: min(46vh, 420px); }
  dialog.janela { width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  dialog.janela--pequena { width: calc(100vw - 24px); height: auto; max-height: calc(100dvh - 24px); margin: auto; }
}

@media (max-width: 520px) {
  .simula__saida { grid-template-columns: 1fr; }
  .simula__condominio { grid-template-columns: 1fr; }
  .spt__fotos { grid-template-columns: 1fr; }
  .spt__fotos img { height: auto; aspect-ratio: 16 / 10; }
  .topo__linha { min-height: 60px; }
  .marca img { height: 28px; }

  .topo__nav .botao { display: none; }
  .spt__passos { grid-template-columns: 1fr; }
  .spt__passo, .spt__passo + .spt__passo { padding: 22px 0; border-left: 0; }
  .spt__passo + .spt__passo { border-top: 1px solid var(--linha); }
  .spt__passo b { margin-bottom: 14px; }
  .sobre__lista { grid-template-columns: 1fr; }
  .sobre__lista li, .sobre__lista li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--linha); }
  .rodape__col, .rodape__col:first-of-type { grid-column: 1 / -1; }
  .contato__dados div { grid-template-columns: 1fr; gap: 2px; }
  .projetos__grade { grid-template-columns: 1fr; }
  .abertura__acoes .botao { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- cenas em telas menores */
@media (max-width: 820px) {
  .quadro { grid-template-columns: 1fr; row-gap: 20px; align-content: center; }
  .quadro__cena { order: -1; }
  .quadro__cena svg { max-height: 36svh; margin-inline: auto; }
  .anima .quadro { min-height: 76svh; padding-block: 40px; }
  .quadro__fixo { height: 66svh; padding: 16px; }
  .anima .quadro:not(.quadro--video) { min-height: 0; padding-block: 56px 72px; }
  .grupo__titulo { padding-block: 96px 72px; }
  .anima .spt__cena { height: 185vh; }
  .numeros__valor { font-size: clamp(3.2rem, 15vw, 5rem); }
  .anima .quadro.quadro--video { height: calc(66svh + 55vh); }
  .quadro--video .quadro__cena { order: 0; }
  .quadro--video .quadro__texto { width: 100%; }
  .quadro--video .quadro__cena video { object-position: 66% 50%; }
  .quadro__texto { gap: 12px; }
  .spt__fotos img { height: clamp(200px, 48vw, 380px); }
}
@media (max-width: 520px) {
  .numeros__lista { grid-template-columns: 1fr; }
  .quadro .botao { width: 100%; justify-content: center; }
}

/* nome da empresa menor quando está sobre o vídeo */
.quadro--video h3 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.quadro--video .quadro__texto { gap: 12px; }
.quadro--video .quadro__texto > p:not(.quadro__n) { font-size: clamp(1rem, 1.2vw, 1.15rem); }
