/* WPTreatment — site institucional. Sem dependências externas: fontes do sistema, sem CDN. */
:root {
  --tinta: #0f2236;
  --tinta-2: #3d5166;
  --tinta-3: #5d7084;
  --azul-escuro: #0b2f52;
  --azul: #0b64b8;
  --azul-claro: #1fa8ee;
  --agua: #e8f4fd;
  --terra: #8a5a2b;
  --fundo: #ffffff;
  --fundo-2: #f3f7fb;
  --linha: #d6e1ec;
  --raio: 12px;
  --sombra: 0 1px 2px rgba(15, 34, 54, .06), 0 8px 24px rgba(15, 34, 54, .08);
  --largura: 1180px;
  --fonte: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mola: cubic-bezier(.2, .8, .2, 1);
  --sombra-alta: 0 16px 36px rgba(15, 34, 54, .14);
}

* { box-sizing: border-box; }
/* Chinês: fontes do sistema com os ideogramas (Windows, Mac, Linux); sem caixa alta e espaçamento de letras */
html[lang^="zh"] body { font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", var(--fonte); line-height: 1.75; }
html[lang^="zh"] .sobretitulo { letter-spacing: .04em; }
/* Alemão e francês têm palavras longas: hifenização e quebra para nada vazar dos cartões */
html[lang="de"] body, html[lang="fr"] body { hyphens: auto; -webkit-hyphens: auto; }
h1, h2, h3, .cartao p, .trilha span, figcaption { overflow-wrap: break-word; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--fonte); color: var(--tinta); background: var(--fundo); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0 0 1em; }

.largura { width: min(var(--largura), 100% - 48px); margin-inline: auto; }
.pular { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.pular:focus { left: 12px; }

/* Topo */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linha); transition: box-shadow .3s ease, background-color .3s ease; }
.topo.rolado { background: rgba(255, 255, 255, .97); box-shadow: 0 6px 24px rgba(15, 34, 54, .08); }
.progresso { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--azul), var(--azul-claro)); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.marca img { transition: transform .5s var(--mola); }
.marca:hover img { transform: rotate(-8deg) scale(1.08); }
.topo-linha { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.marca { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--azul-escuro); }
.marca-texto { display: flex; flex-direction: column; line-height: 1.1; }
.marca-texto strong { font-size: 1.2rem; font-weight: 760; }
.marca-texto em { font-size: .8rem; color: var(--tinta-3); }
.topo-acoes { display: flex; align-items: center; gap: 10px; }
.menu { display: flex; align-items: center; gap: 6px; }

/* Seletor de idioma: sempre visível (computador e celular) */
.idioma { position: relative; }
.idioma summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha); background: #fff; color: var(--azul-escuro); font-weight: 650; font-size: .9rem; cursor: pointer; user-select: none; transition: border-color .25s ease, background-color .25s ease, color .25s ease; }
.idioma summary::-webkit-details-marker { display: none; }
.idioma summary::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--mola); }
.idioma[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.idioma summary:hover, .idioma[open] summary { border-color: var(--azul); background: var(--agua); color: var(--azul); }
.idioma ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; list-style: none; margin: 0; padding: 6px; min-width: 168px; background: #fff; border: 1px solid var(--linha); border-radius: 12px; box-shadow: var(--sombra-alta); animation: desce .2s var(--mola) both; }
.idioma li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--tinta-2); font-weight: 560; font-size: .95rem; transition: background-color .2s ease, color .2s ease; }
.idioma li a:hover { background: var(--fundo-2); color: var(--azul-escuro); }
.idioma li a[aria-current="page"] { color: var(--azul); font-weight: 700; }
.idioma li a[aria-current="page"]::after { content: "✓"; }
.rodape-idiomas { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rodape-idiomas a { color: #cfe3f5; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.rodape-idiomas a:hover { color: #fff; border-bottom-color: #8fe6ff; }
.rodape-idiomas a[aria-current="page"] { color: #8fe6ff; font-weight: 650; }
.menu a { position: relative; text-decoration: none; color: var(--tinta-2); font-weight: 560; font-size: .95rem; padding: 8px 12px; border-radius: 8px; transition: color .25s ease, background-color .25s ease, transform .25s var(--mola), box-shadow .25s ease; }
.menu a:not(.menu-destaque)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--azul), var(--azul-claro)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--mola); }
.menu a:hover { color: var(--azul-escuro); }
.menu a:not(.menu-destaque):hover::after, .menu a.ativo::after { transform: scaleX(1); }
.menu a.ativo { color: var(--azul-escuro); }
.menu a.menu-destaque { background: linear-gradient(120deg, #0b4f94, #0b64b8 55%, #0a6fc2); color: #fff; margin-left: 6px; box-shadow: 0 4px 12px rgba(11, 100, 184, .25); }
.menu a.menu-destaque:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 100, 184, .35); }
.menu-botao { display: none; align-items: center; gap: 10px; font: inherit; font-weight: 600; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: 10px; padding: 8px 14px; color: var(--azul-escuro); cursor: pointer; transition: background-color .25s ease, border-color .25s ease; }
.menu-botao:hover { border-color: var(--azul); background: var(--agua); }
.menu-icone { position: relative; width: 18px; height: 12px; display: inline-block; }
.menu-icone i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--mola), opacity .2s ease, top .3s var(--mola); }
.menu-icone i:nth-child(1) { top: 0; }
.menu-icone i:nth-child(2) { top: 5px; }
.menu-icone i:nth-child(3) { top: 10px; }
.menu-botao[aria-expanded="true"] .menu-icone i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-botao[aria-expanded="true"] .menu-icone i:nth-child(2) { opacity: 0; }
.menu-botao[aria-expanded="true"] .menu-icone i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Abertura */
.abertura { position: relative; overflow: hidden; background: radial-gradient(1200px 520px at 85% 0%, #dff1fd 0%, rgba(223, 241, 253, 0) 70%), linear-gradient(180deg, #f6fbff 0%, #fff 100%); padding: 64px 0 56px; }
.abertura::before, .abertura::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.abertura::before { width: 420px; height: 420px; left: -120px; top: -140px; background: radial-gradient(circle, #cdeafc 0%, rgba(205, 234, 252, 0) 70%); animation: deriva 18s ease-in-out infinite alternate; }
.abertura::after { width: 360px; height: 360px; right: 4%; bottom: -180px; background: radial-gradient(circle, #d6f3ff 0%, rgba(214, 243, 255, 0) 70%); animation: deriva 22s ease-in-out infinite alternate-reverse; }
.abertura > .largura { position: relative; z-index: 1; }
.abertura-texto > * { animation: sobe .8s var(--mola) both; }
.abertura-texto > :nth-child(2) { animation-delay: .08s; }
.abertura-texto > :nth-child(3) { animation-delay: .16s; }
.abertura-texto > :nth-child(4) { animation-delay: .24s; }
.abertura-figura { animation: entra-janela 1.1s .12s var(--mola) both; }
.abertura-figura .janela { animation: flutua 7s 1.3s ease-in-out infinite; }
.abertura-grade { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 48px; align-items: center; }
.sobretitulo { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--azul); margin-bottom: .8em; }
.lide { font-size: 1.12rem; color: var(--tinta-2); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Botões: degradê, brilho que atravessa, seta que desliza e resposta ao clique */
.botao { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 12px; font-weight: 650; text-decoration: none; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform .28s var(--mola), box-shadow .28s ease, background-position .5s ease, border-color .28s ease, color .28s ease; }
.botao::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.botao::after { content: "→"; display: inline-block; font-weight: 700; transition: transform .28s var(--mola); }
.botao:hover::after { transform: translateX(5px); }
.botao:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.botao-desce::after { content: "↓"; }
.botao-desce:hover::after { transform: translateY(4px); }
.botao-primario { color: #fff; background: linear-gradient(120deg, #0b4f94 0%, #0b64b8 50%, #0a6fc2 100%); background-size: 220% 100%; background-position: 0% 50%; box-shadow: 0 6px 18px rgba(11, 100, 184, .28), inset 0 1px 0 rgba(255, 255, 255, .18); }
.botao-primario::before { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%); transform: translateX(-130%); transition: transform .75s ease; }
.botao-primario:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 100, 184, .38), inset 0 1px 0 rgba(255, 255, 255, .22); }
.botao-primario:hover::before { transform: translateX(130%); }
.botao-secundario { background: #fff; color: var(--azul-escuro); border-color: var(--linha); box-shadow: 0 1px 2px rgba(15, 34, 54, .06); }
.botao-secundario::before { background: var(--agua); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--mola); }
.botao-secundario:hover { color: var(--azul); border-color: var(--azul); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 34, 54, .12); }
.botao-secundario:hover::before { transform: scaleX(1); }
:focus-visible { outline: 3px solid var(--azul-claro); outline-offset: 3px; }
.botao:focus-visible { outline-offset: 4px; }
.abertura-figura { margin: 0; }
.janela { border-radius: var(--raio); overflow: hidden; box-shadow: 0 2px 4px rgba(15, 34, 54, .08), 0 24px 60px rgba(11, 47, 82, .22); border: 1px solid #c9d8e6; background: #fff; transition: box-shadow .5s ease; }
.abertura-figura:hover .janela { box-shadow: 0 2px 4px rgba(15, 34, 54, .08), 0 34px 80px rgba(11, 47, 82, .30); }
.janela img, .janela img:hover { border: 0; border-radius: 0; box-shadow: none; transform: none; }
.janela-barra { display: flex; align-items: center; gap: 7px; padding: 9px 14px; background: #eef3f8; border-bottom: 1px solid #d6e1ec; }
.janela-barra i { width: 11px; height: 11px; border-radius: 50%; background: #c9d6e3; display: inline-block; transition: background-color .3s ease; }
.abertura-figura:hover .janela-barra i:nth-child(1) { background: #ff5f57; }
.abertura-figura:hover .janela-barra i:nth-child(2) { background: #febc2e; }
.abertura-figura:hover .janela-barra i:nth-child(3) { background: #28c840; }
.janela-barra span { margin-left: 10px; font-size: .8rem; color: var(--tinta-3); }
.abertura-figura figcaption { margin-top: 14px; }

/* Números */
.numeros { background: var(--azul-escuro); color: #fff; padding: 30px 0; }
.numeros-grade { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.numeros-grade div { display: flex; flex-direction: column; gap: 2px; padding: 6px 14px; border-left: 2px solid rgba(143, 230, 255, .35); }
.numeros-grade div { transition: border-color .3s ease, transform .3s var(--mola); }
.numeros-grade div:hover { border-left-color: #8fe6ff; transform: translateY(-2px); }
.numeros-grade strong { font-size: 2.1rem; font-weight: 760; line-height: 1.1; color: #8fe6ff; font-variant-numeric: tabular-nums; }
.numeros-grade span { font-size: .92rem; color: #cfe3f5; }

/* Seções */
.secao { padding: 88px 0; }
.secao-clara { background: var(--fundo-2); }
.secao-escura { background: linear-gradient(160deg, #0b2f52 0%, #0a3d6c 100%); color: #e9f2fb; }
.secao-escura h2, .secao-escura h3 { color: #fff; }
.secao-escura .sobretitulo { color: #8fe6ff; }
.secao-escura figcaption { color: #b9cfe4; }
.secao-cabeca { max-width: 780px; margin-bottom: 44px; }
.secao-cabeca p:last-child { color: var(--tinta-2); font-size: 1.06rem; }

figure { margin: 0; }
figure img { border-radius: 10px; border: 1px solid var(--linha); background: #fff; box-shadow: var(--sombra); cursor: zoom-in; transition: transform .45s var(--mola), box-shadow .45s ease; }
figure img:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
/* Selo "Ampliar" sobre as imagens clicáveis (a figura recebe .ampliavel pelo site.js) */
.ampliavel { position: relative; }
.ampliavel::after { content: "⤢  " attr(data-ampliar); position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 650; color: #fff; background: rgba(11, 47, 82, .82); opacity: 0; transform: translateY(-4px); transition: opacity .3s ease, transform .3s var(--mola); pointer-events: none; }
.ampliavel:hover::after { opacity: 1; transform: none; }
figcaption { font-size: .92rem; color: var(--tinta-3); margin-top: 12px; line-height: 1.5; }
figcaption strong { color: var(--tinta); }

/* Etapas */
.etapas { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.etapas li { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 22px 20px 18px; position: relative; }
.etapas li:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -13px; width: 10px; height: 10px; border-top: 2px solid var(--azul-claro); border-right: 2px solid var(--azul-claro); transform: rotate(45deg); }
.etapas li:not(:last-child)::after { animation: empurra 2.4s ease-in-out infinite; }
.etapa-num { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--agua); color: var(--azul); font-weight: 760; margin-bottom: 12px; transition: background-color .3s ease, color .3s ease, transform .3s var(--mola); }
.etapas li:hover .etapa-num { background: var(--azul); color: #fff; transform: scale(1.1); }
.etapas p { color: var(--tinta-2); font-size: .95rem; margin: 0; }

/* Blocos texto + figura */
.bloco { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; margin: 0 0 64px; }
.bloco:last-child { margin-bottom: 0; }
.bloco-invertido .bloco-texto { order: 2; }
.bloco-texto p { color: var(--tinta-2); }
.secao-escura .bloco-texto p { color: #d4e4f3; }
.graficos { display: grid; gap: 20px; }
.lista { padding-left: 1.2em; margin: 0; color: var(--tinta-2); }
.lista li { margin-bottom: .55em; }
.lista li::marker { color: var(--azul-claro); }

/* Galerias */
.galeria { display: grid; gap: 32px; margin: 0 0 64px; }
.galeria-1 { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 40px; }
.galeria-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.colunas-4 .cartao h3, .colunas-3 .cartao h3 { min-height: 2.4em; display: flex; align-items: flex-end; }
.galeria-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-bottom: 0; margin-top: 48px; }
.galeria-pranchas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; margin-bottom: 40px; }
.pilha { display: grid; gap: 28px; }
.figura-larga { margin: 0 0 48px; }
.figura-larga:last-child { margin-bottom: 0; }
.paginas img { border-radius: 4px; }

/* Cartões */
.colunas-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.colunas-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
.cartao { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px 24px 20px; }
.cartao::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--azul), var(--azul-claro)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--mola); }
.cartao:hover::before { transform: scaleX(1); }
/* Cartões, etapas, trilha e formatos sobem ao passar o mouse */
.cartao, .etapas li, .trilha li, .formatos li { transition: transform .35s var(--mola), box-shadow .35s ease, border-color .35s ease; }
.cartao:hover, .etapas li:hover, .trilha li:hover, .formatos li:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); border-color: #b9d6ee; }
.cartao h3 { color: var(--azul-escuro); }
.cartao p { color: var(--tinta-2); font-size: .96rem; margin: 0; }
.cartao-destaque { background: var(--agua); border-color: #bfe0f6; }
#satelite .colunas-4 { margin-bottom: 0; }

/* Trilha das redes */
.trilha { list-style: none; counter-reset: t; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trilha li { counter-increment: t; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.trilha li::before { content: counter(t); font-weight: 760; color: var(--azul); font-size: .85rem; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid #bfe0f6; display: inline-flex; align-items: center; justify-content: center; transition: background-color .3s ease, color .3s ease, transform .3s var(--mola); }
.trilha li:hover::before { background: var(--azul); color: #fff; transform: scale(1.12); }
.trilha strong { color: var(--azul-escuro); }
.trilha span { color: var(--tinta-2); font-size: .92rem; line-height: 1.5; }
.nota { background: #fff7ee; border: 1px solid #f0d9bf; border-left: 4px solid var(--terra); border-radius: 10px; padding: 16px 20px; color: #5b4128; margin: 0; }

/* Formatos */
.formatos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.formatos li { background: #fff; border: 1px solid var(--linha); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.formatos strong { color: var(--azul-escuro); font-size: 1.02rem; }
.formatos span { color: var(--tinta-3); font-size: .86rem; }

/* Requisitos e contato */
.requisitos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.contato { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.contato p { color: #d4e4f3; font-size: 1.06rem; }
.contato-acoes { display: flex; flex-direction: column; gap: 12px; }
.contato-acoes .botao { width: 100%; }
.contato-acoes .botao-secundario { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); box-shadow: none; }
.contato-acoes .botao-secundario::before { background: rgba(255, 255, 255, .12); }
.contato-acoes .botao-secundario:hover { color: #fff; border-color: #fff; }

/* Rodapé */
.rodape { background: #081f36; color: #a9bfd4; padding: 44px 0 36px; font-size: .9rem; }
.rodape-grade { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 40px; align-items: start; }
.marca-rodape { color: #fff; }
.marca-rodape .marca-texto em { color: #a9bfd4; }
.rodape p { margin: 0; }
.rodape-copy { grid-column: 2; color: #7f97ae; }

/* Imagem ampliada */
.zoom { position: fixed; inset: 0; background: rgba(6, 18, 32, .92); z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 24px 24px; gap: 14px; }
.zoom[hidden] { display: none; }
.zoom img { max-width: min(1700px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; background: #fff; cursor: zoom-out; }
.zoom-legenda { color: #d4e4f3; max-width: 900px; text-align: center; font-size: .95rem; margin: 0; }
.zoom-fechar { position: absolute; top: 14px; right: 18px; font: inherit; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; padding: 8px 14px; cursor: pointer; transition: background-color .25s ease, border-color .25s ease; }
.zoom-fechar:hover { background: rgba(255, 255, 255, .22); border-color: #fff; }
.zoom:not([hidden]) { animation: aparece .25s ease both; }
.zoom:not([hidden]) img { animation: cresce .35s var(--mola) both; }

/* Voltar ao topo */
.voltar-topo { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; text-decoration: none; color: #fff; background: linear-gradient(135deg, #0b4f94, #0a6fc2); box-shadow: 0 8px 22px rgba(11, 100, 184, .35); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s ease, transform .35s var(--mola), box-shadow .3s ease; }
.voltar-topo.mostra { opacity: 1; transform: none; pointer-events: auto; }
.voltar-topo:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 100, 184, .45); }

/* Entrada ao rolar: só com .anima no <html> (posto pelo site.js), assim sem JS tudo aparece normalmente */
.anima .revelar { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--mola), transform .75s var(--mola); transition-delay: var(--atraso, 0s); }
.anima .revelar.visivel { opacity: 1; transform: none; }

@keyframes sobe { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes entra-janela { from { opacity: 0; transform: perspective(1400px) rotateY(-10deg) translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes deriva { from { transform: translate(0, 0) scale(1); } to { transform: translate(90px, 50px) scale(1.15); } }
@keyframes empurra { 0%, 100% { transform: translateX(0) rotate(45deg); } 50% { transform: translateX(4px) rotate(45deg); } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes cresce { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes desce { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Telas médias */
@media (max-width: 1080px) {
  .abertura-grade, .bloco { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bloco-invertido .bloco-texto { order: 0; }
  .etapas { grid-template-columns: repeat(3, 1fr); }
  .etapas li::after { display: none; }
  .numeros-grade { grid-template-columns: repeat(3, 1fr); }
  .colunas-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trilha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formatos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Celular */
/* Tablet e celular: os itens do menu não cabem em linha com o seletor de idioma */
@media (max-width: 1000px) {
  .menu-botao { display: inline-flex; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--linha); box-shadow: 0 12px 24px rgba(15, 34, 54, .08); flex-direction: column; align-items: stretch; padding: 10px 24px 18px; gap: 2px; }
  .menu.aberto { display: flex; animation: desce .25s var(--mola) both; }
  .menu a:not(.menu-destaque)::after { left: 12px; right: auto; width: 32px; }
  .menu a.menu-destaque { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .voltar-topo { right: 14px; bottom: 14px; width: 44px; height: 44px; }
  .marca-texto em { display: none; }
  .secao { padding: 64px 0; }
  .abertura { padding: 40px 0; }
  .galeria-2, .galeria-3, .galeria-pranchas, .colunas-3, .colunas-4, .trilha, .requisitos, .contato { grid-template-columns: 1fr; }
  .etapas { grid-template-columns: 1fr; }
  .numeros-grade { grid-template-columns: repeat(2, 1fr); }
  .formatos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rodape-grade { grid-template-columns: 1fr; }
  .rodape-copy, .rodape-idiomas { grid-column: 1; }
  .topo-acoes { gap: 8px; }
  .idioma summary { padding: 0 10px; }
  /* No celular o botão do menu fica só com o ícone; o texto segue para leitor de tela */
  .menu-botao { min-height: 40px; padding: 0 12px; }
  .menu-rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Celular pequeno (até 380 px): marca e margens um pouco menores para tudo caber no topo */
@media (max-width: 380px) {
  .largura { width: min(var(--largura), 100% - 32px); }
  .marca { gap: 8px; }
  .marca img { width: 32px; height: 32px; }
  .marca-texto strong { font-size: 1.05rem; }
  .idioma summary::after { display: none; }
  .menu { padding: 10px 16px 18px; }
}

/* "Reduzir movimento" no sistema (no Windows: Efeitos de animação desligado): sai o que se desloca
   (flutuar, deslizar, subir, girar); ficam cor, sombra, preenchimento e esmaecimento. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .abertura::before, .abertura::after, .abertura-figura .janela, .etapas li:not(:last-child)::after { animation: none; }
  .abertura-texto > *, .abertura-figura { animation-name: aparece; }
  .anima .revelar { transform: none; }
  .menu.aberto, .idioma ul { animation-name: aparece; }
  .idioma summary::after, .idioma[open] summary::after { transition: none; }
  .botao:hover, .botao:active, .menu a.menu-destaque:hover, .voltar-topo:hover, .voltar-topo.mostra, .voltar-topo,
  .cartao:hover, .etapas li:hover, .trilha li:hover, .formatos li:hover, figure img:hover, .numeros-grade div:hover,
  .marca:hover img, .etapas li:hover .etapa-num, .trilha li:hover::before, .ampliavel::after, .ampliavel:hover::after { transform: none; }
  .botao:hover::after { transform: none; }
  .botao-primario::before { transform: none; opacity: 0; background: rgba(255, 255, 255, .06); transition: opacity .4s ease; }
  .botao-primario:hover::before { transform: none; opacity: 1; }
  .botao-secundario::before { transform: none; opacity: 0; transition: opacity .3s ease; }
  .botao-secundario:hover::before { transform: none; opacity: 1; }
  .cartao::before { transform: none; opacity: 0; transition: opacity .3s ease; }
  .cartao:hover::before { transform: none; opacity: 1; }
  .menu a:not(.menu-destaque)::after { transform: none; opacity: 0; transition: opacity .3s ease; }
  .menu a:not(.menu-destaque):hover::after, .menu a.ativo::after { transform: none; opacity: 1; }
}

/* Área do cliente (portal): ao lado do seletor de idioma, sempre visível; no celular fica só o ícone */
.area-cliente { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #9cc4e8; background: var(--agua); color: var(--azul-escuro); font-weight: 650; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: border-color .25s ease, background-color .25s ease, color .25s ease; }
.area-cliente svg { flex: none; }
.area-cliente:hover { border-color: var(--azul); background: var(--azul); color: #fff; }
.area-cliente:focus-visible { outline: 3px solid rgba(11, 100, 184, .45); outline-offset: 2px; }
@media (max-width: 760px) {
  .area-cliente { padding: 0 10px; }
  .area-rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Celular pequeno: com o botão da área do cliente, os três controles do topo ficam mais justos */
@media (max-width: 380px) {
  .topo-acoes { gap: 6px; }
  .area-cliente, .idioma summary, .menu-botao { padding: 0 8px; }
  .marca-texto strong { font-size: 1rem; }
}
/* Entre tablet e notebook pequeno, o menu ainda vem em linha: a área do cliente fica só com o ícone */
@media (min-width: 1001px) and (max-width: 1200px) {
  .marca-texto em { display: none; }
  .menu a { white-space: nowrap; }
  .area-cliente { padding: 0 10px; }
  .area-rotulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Celular: o seletor de idioma fica só com o globo (o nome do idioma segue para leitor de tela, no aria-label) */
@media (max-width: 760px) {
  .idioma summary { padding: 0 10px; gap: 0; }
  .idioma summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .idioma summary::after { display: none; }
}
@media (max-width: 380px) {
  .idioma summary { padding: 0 8px; }
}

/* Alemão: "Siedlungswasserwirtschaft" no título não cabe no celular no tamanho padrão (e nem todo navegador hifeniza) */
html[lang="de"] h1 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
/* Faixa de números: rótulo longo nunca sai do bloco */
.numeros-grade span { overflow-wrap: anywhere; }
