/* ==========================================================================
   STYLE.CSS — ESTILOS GLOBAIS E COMPONENTES COMPARTILHADOS
   Portal Web Atlântida | VR Code Arena (NEXT FIAP 2026)
   
   Conteúdo deste arquivo:
   1. Reset e Estilos Base
   2. Ondulações Oceânicas (Waves Parallax)
   3. Navegação Global (Menu Flutuante & Menu Lateral Submarino)
   4. Padrões de Layout e Títulos de Seção
   5. Componentes Compartilhados (Botões, Stickers/Fitas, Papel, Fotos)
   6. Divisórias Temáticas de Profundidade
   7. Acessibilidade Global (Foco, Pular Link, Leitores de Tela)
   8. Responsividade Global & Prefers-Reduced-Motion
   ========================================================================== */

/* ==========================================================================
   1. RESET E ESTILOS BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  width: 100%;
  margin: 0;
  font-family: var(--fonte-texto);
  background-color: var(--prof-0);
  /* o hero é transparente e mostra este jade */
}

body>section,
.secao-oceano {
  min-height: 100vh;
}

/* Mergulho: o fundo escurece nas quebras de seção, junto da faixa de profundidade que abre cada uma.
   --de = cor da zona de cima, --para = cor desta zona (veja --prof-* em variables.css). */
.secao-oceano {
  /* 1) no pé da seção a cor já vai escurecendo até o tom de passagem (--fim);
     2) a próxima seção começa nesse mesmo tom (--de) e termina de escurecer na faixa de profundidade.
     Assim a quebra não tem degrau: a mescla acontece dos dois lados da faixa. */
  background:
    linear-gradient(180deg, transparent calc(100% - var(--mescla-profundidade)), var(--fim) 100%),
    linear-gradient(180deg, var(--de) 0, var(--para) var(--faixa-profundidade)),
    var(--para);
}

#o-mundo {
  --de: var(--prof-0);
  --para: var(--prof-1);
  --fim: var(--passa-1);
}

#habitantes {
  --de: var(--passa-1);
  --para: var(--prof-2);
  --fim: var(--passa-2);
}

#mural {
  --de: var(--passa-2);
  --para: var(--prof-3);
  --fim: var(--passa-3);
}

#contato {
  --de: var(--passa-3);
  --para: var(--prof-4);
  --fim: var(--passa-4);
}

/* Última faixa (fundo abissal) fecha a descida e leva ao rodapé */
.conteudo-principal>.linha-divisoria {
  background: linear-gradient(180deg, var(--passa-4), var(--prof-5));
}

/* Silhuetas de alga/coral no pé das seções somem no fundo, sem corte seco */
.habitantes__decoracao-algas,
.montanha-front-rodape {
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  overflow: hidden;
}

.logo-centralizado {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  z-index: 999;
  width: max-content;
  max-width: 95vw;
  padding: 0.6rem 2.2rem 1rem;
  background-color: transparent;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease,
    visibility 0.4s ease;
}

/* Ativo nas seções seguintes após o scroll do Hero */
.logo-centralizado.logo-centralizado--visivel {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Por padrão (desktop), a logo dentro do menu e na pílula fica oculta */
.cabecalho-topo__brand,
.cabecalho-topo__pilula-logo {
  display: none !important;
}

/* Fundo com efeito gooey orgânico estilo Animal Crossing */
.logo-blobs {
  position: absolute;
  top: -12px;
  left: -16px;
  right: -16px;
  bottom: -6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  filter: url("#fancy-goo");
  pointer-events: none;
  z-index: -1;
}

/* Blob superior com curvatura orgânica e respiração suave */
.logo-blob-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 52%;
  background-color: var(--cor-pergaminho);
  border-radius: 40% 40% 30% 30% / 150% 150% 150% 150%;
  animation: logo-blob 1.5s cubic-bezier(0.37, 0, 0.63, 1) 0.3s infinite alternate;
  transform-origin: center;
}

/* Blob inferior que funde com o superior através do filtro gooey */
.logo-blob-bottom {
  position: absolute;
  bottom: 0;
  left: 3%;
  width: 94%;
  height: 52%;
  background-color: var(--cor-pergaminho);
  border-radius: 5% 5% 25% 25% / 100% 100% 100% 100%;
  animation: logo-blob 1s infinite alternate cubic-bezier(0.37, 0, 0.63, 1);
  transform-origin: center;
}

.logo-centralizado .logo,
.logo-centralizado .logo-text {
  position: relative;
  z-index: 2;
}

.logo-centralizado .logo {
  display: block;
  width: 100px;
  height: auto;
  flex-shrink: 0;
}

.logo-centralizado .logo-text {
  text-align: left;
}

.logo-centralizado .logo-text h1 {
  margin: 0;
  font-size: 4rem;
  font-weight: bold;
  font-family: var(--fonte-titulo);
  color: var(--cor-fundo);
  line-height: 1.1;
}

.logo-centralizado .logo-text p {
  margin: 0.25rem 0 0;
  color: var(--cor-fundo);
  font-family: var(--fonte-texto);
}

/* Keyframes inspirados no balão de fala de Animal Crossing */
@keyframes logo-blob {
  from {
    transform: rotate(0.4deg) scale(1);
  }

  to {
    transform: rotate(-0.4deg) scale(0.985);
  }
}

@keyframes logo-scale-up {
  0% {
    transform: scale(0.75);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.abertura-slogan {
  z-index: 10;
}

.predios-decorativos {
  position: absolute;
  bottom: var(--predios-posicao-y, -30px);
  left: 0;
  width: 100%;
  /* ==========================================================================
     TAMANHO / ESCALA RESPONSIVA NA TELA (SEM ESTICAR A IMAGEM):
     - A largura é sempre 100% de ponta a ponta da tela.
     - As proporções do desenho são 100% preservadas (não estica).
     - Ajuste o tamanho visual na tela simplesmente alterando --predios-altura (ex: 200px, 24vh).
     - Se quiser aumentar/diminuir o zoom dos prédios: altere --predios-escala (ex: 0.9, 1, 1.15).
     - Ajuste o alinhamento vertical com --predios-posicao-y (ex: -30px, 0).
     ========================================================================== */

  z-index: 5;
  width: 75%;
  pointer-events: none;
  overflow: hidden;

  /* ==========================================================================
     CONTROLE DE CORES DA CIDADE (CSS VARIABLES)
     - Altere --cidade-cor para mudar toda a cidade de uma vez.
     - Ou altere cada camada individualmente (--cidade-cor-fundo, -meio, -frente).
     ========================================================================== */
  --cidade-cor: var(--cor-jade-claro);
  --cidade-cor-fundo: var(--cor-jade);
  --cidade-cor-meio: var(--cidade-cor);
  --cidade-cor-frente: var(--cidade-cor);
  --cidade-opacidade-fundo: 0.35;
  --cidade-opacidade-meio: 0.65;
  --cidade-opacidade-frente: 1;
}

@media (max-width: 768px) {
  .predios-decorativos {
    --predios-altura: clamp(120px, 18vh, 180px);
    --predios-posicao-y: -15px;
  }
}

@media (max-width: 480px) {
  .predios-decorativos {
    --predios-altura: clamp(90px, 15vh, 130px);
    --predios-posicao-y: -8px;
  }
}

.cidade-camada--fundo {
  fill: var(--cidade-cor-fundo, var(--cidade-cor, #58AAA3));
  opacity: var(--cidade-opacidade-fundo, 0.35);
}

.cidade-camada--meio {
  fill: var(--cidade-cor-meio, var(--cidade-cor, #58AAA3));
  opacity: var(--cidade-opacidade-meio, 0.65);
}

.cidade-camada--frente {
  fill: var(--cidade-cor-frente, var(--cidade-cor, #58AAA3));
  opacity: var(--cidade-opacidade-frente, 1);
}

.predios-decorativos img,
.predios-decorativos svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  transform: scale(var(--predios-escala, 1));
  transform-origin: bottom center;
}

/* ==========================================================================
   2. ONDULAÇÕES OCEÂNICAS FLUIDAS (WAVES PARALLAX)
   ========================================================================== */
.ondas-decorativas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  min-height: 100px;
  max-height: 150px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cor-jade-claro);
}

.parallax>use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* ==========================================================================
   3. NAVEGAÇÃO GLOBAL
   ========================================================================== */

/* --- Cabeçalho Superior Flutuante / Menu de Navegação Global --- */
.cabecalho-topo,
.menu-navegacao {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 86px;
  height: 86px;
  padding: 0;
  overflow: hidden;
  color: var(--cor-abismo);
  white-space: nowrap;
  background-color: var(--cor-pergaminho);
  border: 1px solid var(--cor-pergaminho-borda);
  border-radius: 100%;
  box-shadow: 0 6px 20px rgba(0, 3, 5, 0.22);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.35s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.cabecalho-topo--expandido,
.menu-navegacao--expandido {
  justify-content: space-between;
  width: 440px;
  max-width: calc(100vw - 2rem);
  height: 86px;
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(0, 3, 5, 0.32);
}

.cabecalho-topo:not(.cabecalho-topo--expandido):hover,
.menu-navegacao:not(.menu-navegacao--expandido):hover {
  box-shadow: 0 8px 24px rgba(0, 3, 5, 0.3);
  transform: scale(1.03);
}

.cabecalho-topo__barra-topo,
.menu-navegacao__barra-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.cabecalho-topo__conteudo,
.menu-navegacao__conteudo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-20px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s, visibility 0.3s ease, width 0.3s ease;
}

.cabecalho-topo--expandido .cabecalho-topo__conteudo,
.menu-navegacao--expandido .menu-navegacao__conteudo {
  width: auto;
  padding-right: 1.25rem;
  padding-left: 0.5rem;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* No desktop, as opções de navegação pelas seções ficam exclusivamente no menu lateral fixo com submarino */
.cabecalho-topo__navegacao,
.menu-navegacao__navegacao {
  display: none !important;
}

.cabecalho-topo__lista,
.menu-navegacao__lista {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0;
  width: 100%;
}

.cabecalho-topo__item,
.menu-navegacao__item {
  width: 100%;
}

.cabecalho-topo__link,
.menu-navegacao__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: var(--texto-sm);
  font-weight: var(--peso-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cor-abismo);
  text-decoration: none;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  background-color: transparent;
  transition: background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.cabecalho-topo__link:hover,
.menu-navegacao__link:hover {
  background-color: rgba(50, 27, 11, 0.07);
  color: var(--cor-tinta);
  transform: translateX(4px);
}

.cabecalho-topo__link:focus-visible,
.menu-navegacao__link:focus-visible {
  outline: 2px solid var(--cor-abismo);
  outline-offset: 2px;
}

/* Item de Login no Menu Superior (Estilo Botão Secundário / Saiba Mais) */
.cabecalho-topo__item--login,
.menu-navegacao__item--login {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px dotted rgba(100, 73, 56, 0.35);
}

.cabecalho-topo__link--login,
.cabecalho-topo__link[data-secao="login"],
.menu-navegacao__link--login,
.menu-navegacao__link[data-secao="login"] {
  justify-content: center;
  color: var(--cor-espuma);
  background-color: var(--cor-ferrugem-acessivel);
  border: 1px solid var(--cor-ferrugem-acessivel);
  border-radius: var(--btn-raio, 4px);
  box-shadow: 0 2px 6px rgba(128, 42, 18, 0.28);
  font-weight: var(--peso-semibold);
  transition: transform 0.2s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.cabecalho-topo__link--login:hover,
.cabecalho-topo__link[data-secao="login"]:hover,
.menu-navegacao__link--login:hover,
.menu-navegacao__link[data-secao="login"]:hover {
  color: var(--cor-espuma);
  background-color: var(--cor-ferrugem-profunda);
  border-color: var(--cor-ferrugem-profunda);
  transform: translateX(2px);
  box-shadow: 0 4px 10px rgba(128, 42, 18, 0.38);
}

.cabecalho-topo__link--login:active,
.cabecalho-topo__link[data-secao="login"]:active,
.menu-navegacao__link--login:active,
.menu-navegacao__link[data-secao="login"]:active {
  transform: translateX(0);
}

.cabecalho-topo__link--login:focus-visible,
.cabecalho-topo__link[data-secao="login"]:focus-visible,
.menu-navegacao__link--login:focus-visible,
.menu-navegacao__link[data-secao="login"]:focus-visible {
  outline: 2px solid var(--cor-ferrugem-acessivel);
  outline-offset: 2px;
}

/* Seletor de Idioma (PT-BR / Atlântida) */
.seletor-idioma {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  user-select: none;
}

.seletor-idioma__rotulo {
  font-size: var(--texto-xs);
  font-weight: var(--peso-semibold);
  letter-spacing: 0.5px;
  color: var(--cor-tinta-suave-acessivel);
  opacity: 0.8;
  transition: color 0.3s ease, opacity 0.3s ease, font-weight 0.2s ease, transform 0.2s ease;
}

.seletor-idioma__rotulo:hover {
  opacity: 1;
  color: var(--cor-abismo);
}

.seletor-idioma__rotulo--ativo {
  color: var(--cor-abismo);
  font-weight: var(--peso-bold);
  opacity: 1;
}

.seletor-idioma__rotulo--atlantida.seletor-idioma__rotulo--ativo {
  color: var(--cor-abismo);
  font-weight: var(--peso-bold);
  opacity: 1;
}

.seletor-idioma__interruptor {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  cursor: pointer;
}

.seletor-idioma__campo {
  width: 0;
  height: 0;
  opacity: 0;
}

.seletor-idioma__trilho {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 2px;
  background-color: var(--cor-tinta-suave);
  border: 1px solid var(--cor-pergaminho-borda);
  border-radius: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.seletor-idioma__icone-deslizante {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: var(--texto-micro);
  color: var(--cor-pergaminho);
  background-color: var(--cor-tinta);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, color 0.3s ease;
}

.seletor-idioma__campo:checked+.seletor-idioma__trilho {
  background-color: var(--cor-tinta-suave-acessivel);
  border-color: var(--cor-tinta);
}

.seletor-idioma__campo:checked+.seletor-idioma__trilho .seletor-idioma__icone-deslizante {
  color: var(--cor-pergaminho);
  background-color: var(--cor-abismo);
  transform: translateX(22px) rotate(45deg);
}

.seletor-idioma__campo:focus-visible+.seletor-idioma__trilho {
  outline: 2px solid var(--cor-abismo);
  outline-offset: 2px;
}

/* Divisor vertical sutil entre idioma e controles */
.cabecalho-topo__divisor,
.menu-navegacao__divisor {
  width: 1px;
  height: 22px;
  background-color: var(--cor-pergaminho-borda);
  flex-shrink: 0;
}

/* Botão de Alternância de Animações */
.cabecalho-topo__botao-animacoes,
.menu-navegacao__botao-animacoes {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  font-family: inherit;
  font-size: var(--texto-xs);
  font-weight: var(--peso-semibold);
  letter-spacing: 0.3px;
  color: var(--cor-tinta-suave-acessivel);
  background-color: rgba(50, 27, 11, 0.06);
  border: 1px solid var(--cor-pergaminho-borda);
  border-radius: 1.5rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.cabecalho-topo__botao-animacoes:hover,
.menu-navegacao__botao-animacoes:hover {
  color: var(--cor-abismo);
  background-color: rgba(50, 27, 11, 0.12);
  border-color: var(--cor-tinta-suave);
  transform: translateY(-1px);
}

.cabecalho-topo__botao-animacoes:active,
.menu-navegacao__botao-animacoes:active {
  transform: translateY(0);
}

.cabecalho-topo__icone-animacoes,
.menu-navegacao__icone-animacoes {
  font-size: var(--texto-sm);
  transition: transform 0.3s ease;
}

/* Estado Quando Animações Estão Pausadas/Desativadas */
.cabecalho-topo__botao-animacoes--pausado,
.menu-navegacao__botao-animacoes--pausado {
  color: var(--cor-pergaminho);
  background-color: var(--cor-tinta);
  border-color: var(--cor-tinta);
  box-shadow: 0 2px 6px rgba(0, 3, 5, 0.25);
}

.cabecalho-topo__botao-animacoes:focus-visible,
.menu-navegacao__botao-animacoes:focus-visible {
  outline: 2px solid var(--cor-abismo);
  outline-offset: 2px;
}

.cabecalho-topo__gatilho,
.menu-navegacao__gatilho {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  color: var(--cor-abismo);
  background-color: transparent;
  border: none;
  border-radius: inherit;
  cursor: pointer;
  font: inherit;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.2s ease, border-radius 0.3s ease;
}

.cabecalho-topo__rotulo,
.menu-navegacao__rotulo {
  font-size: 0.725rem;
  font-weight: var(--peso-bold);
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  color: var(--cor-abismo);
  transition: opacity 0.2s ease;
}

.cabecalho-topo__rotulo-desktop {
  display: inline;
}

.cabecalho-topo__rotulo-mobile {
  display: none;
}

.cabecalho-topo__hamburguer,
.menu-navegacao__hamburguer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 22px;
  height: 14px;
}

.cabecalho-topo__linha,
.menu-navegacao__linha {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--cor-abismo);
  border-radius: 3px;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    opacity 0.3s ease,
    width 0.3s ease;
}

.cabecalho-topo--expandido .cabecalho-topo__linha--superior,
.menu-navegacao--expandido .menu-navegacao__linha--superior {
  transform: translateY(7.75px) rotate(45deg);
}

.cabecalho-topo--expandido .cabecalho-topo__linha--meio,
.menu-navegacao--expandido .menu-navegacao__linha--meio {
  opacity: 0;
  transform: scaleX(0);
}

.cabecalho-topo--expandido .cabecalho-topo__linha--inferior,
.menu-navegacao--expandido .menu-navegacao__linha--inferior {
  transform: translateY(-7.75px) rotate(-45deg);
}

/* --- Menu de Navegação Vertical Lateral (Fixo à Esquerda) --- */
.menu-lateral {
  position: fixed;
  top: 50%;
  left: 1rem;
  right: auto;
  z-index: 990;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.65rem;
  background-color: var(--cor-pergaminho);
  border-radius: 1rem;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-25px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.45s ease;
  user-select: none;
  color: var(--cor-abismo);
}

.menu-lateral--visivel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.menu-lateral__indicador-submarino {
  position: absolute;
  left: calc(100% + 12px);
  right: auto;
  top: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
}

.menu-lateral__submarino-wrapper {
  position: absolute;
  left: 0;
  right: auto;
  top: 0;
  width: 44px;
  height: 44px;
  will-change: transform;
  transform: translateY(0);
  pointer-events: none;
}

.menu-lateral__submarino-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
  display: block;
}

.menu-lateral__lista {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-lateral__item {
  position: relative;
}

.menu-lateral__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  color: var(--cor-tinta);
  text-decoration: none;
  font-family: var(--fonte-texto);
  font-size: var(--texto-sm);
  font-weight: var(--peso-semibold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid transparent;
  background-color: transparent;
  transition: color 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease;
}

.menu-lateral__rotulo {
  white-space: nowrap;
  transition: transform 0.2s ease, color 0.2s ease;
}

.menu-lateral__link:hover {
  color: var(--cor-espuma);
  font-weight: var(--peso-bold);
  transform: translateX(2px);
  background-color: var(--cor-tinta-suave);
}

.menu-lateral__link--ativo {
  color: var(--cor-espuma);
  font-weight: var(--peso-bold);
  background: var(--cor-tinta-suave);
}

.menu-lateral__link--ativo:hover {
  color: var(--cor-espuma);
}

.menu-lateral__link--ativo .menu-lateral__marcador {
  transform: scale(1.25);
}

.menu-lateral__link--ativo .menu-lateral__marcador::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--cor-menta-neon);
  opacity: 0.6;
}

/* Botão de Login no Menu Lateral (estilo e coloração do botão secundário "Saiba mais") */
.menu-lateral__item--login {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dotted rgba(100, 73, 56, 0.35);
}

.menu-lateral__link--login,
.menu-lateral__link[data-secao="login"] {
  justify-content: center;
  color: var(--cor-espuma);
  background-color: var(--cor-ferrugem-acessivel);
  border: 1px solid var(--cor-ferrugem-acessivel);
  border-radius: var(--btn-raio, 4px);
  box-shadow: 0 2px 6px rgba(128, 42, 18, 0.28);
  font-weight: var(--peso-semibold);
  transition: transform 0.2s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.menu-lateral__link--login:hover,
.menu-lateral__link[data-secao="login"]:hover {
  color: var(--cor-espuma);
  background-color: var(--cor-ferrugem-profunda);
  border-color: var(--cor-ferrugem-profunda);
  transform: translateX(2px);
  box-shadow: 0 4px 10px rgba(128, 42, 18, 0.38);
}

.menu-lateral__link--login:active,
.menu-lateral__link[data-secao="login"]:active {
  transform: translateX(0);
}

.menu-lateral__link--login:focus-visible,
.menu-lateral__link[data-secao="login"]:focus-visible {
  outline: 2px solid var(--cor-ferrugem-acessivel);
  outline-offset: 2px;
}

/* ==========================================================================
   4. PADRÕES DE LAYOUT E TÍTULOS DE SEÇÃO
   ========================================================================== */

/* Contêiner de conteúdo padronizado das seções */
.container-secao {
  --textura-papel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .24 0 0 0 0 .1 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.25rem;
  font-family: var(--fonte-texto);
  color: var(--cor-pergaminho);
}

.container-secao section {
  min-height: 0;
}

/* Subtítulo padrão de subseções */
.subtitulo-secao {
  font-size: var(--titulo-subsecao);
  font-weight: var(--peso-semibold);
  line-height: var(--linha-compacta);
  color: var(--cor-espuma);
}

/* Citação temática que antecede a seção */
.secao__citacao {
  margin: 0 auto clamp(3.5rem, 9vh, 6rem);
  text-align: center;
}

.secao__citacao>span {
  display: block;
  font-size: var(--texto-micro);
  font-weight: var(--peso-bold);
  letter-spacing: 0.16em;
  color: var(--cor-menta-neon);
}

.secao__citacao p,
.secao__citacao blockquote {
  margin-top: 0.55rem;
  font-size: var(--titulo-citacao);
  font-weight: var(--peso-bold);
  letter-spacing: 0.04em;
  color: var(--cor-espuma);
}

/* Cabeçalho numerado padronizado (02, 03, 04, 05) */
.secao__cabecalho {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.secao__numero {
  display: grid;
  min-width: 5rem;
  min-height: 4rem;
  place-items: center;
  padding-left: 0.6rem;
  font-family: var(--fonte-titulo);
  font-size: var(--titulo-secao-numero);
  font-weight: var(--peso-bold);
  line-height: var(--linha-compacta);
  color: var(--cor-ambar);
  border-left: 2px solid var(--cor-ambar);
}

.secao__titulo-grupo {
  min-width: 0;
}

.secao__sobretitulo {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--fonte-texto);
  font-size: var(--texto-xs);
  font-weight: var(--peso-bold);
  letter-spacing: 0.16em;
  color: var(--cor-ambar);
  text-transform: uppercase;
}

.secao__titulo-grupo h2 {
  font-family: var(--fonte-texto);
  font-size: var(--titulo-secao-h2);
  font-weight: var(--peso-bold);
  line-height: var(--linha-compacta);
  color: var(--cor-espuma);
  letter-spacing: 0.02em;
}

.secao__subtitulo {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--fonte-texto);
  font-size: var(--texto-xs);
  font-weight: var(--peso-semibold);
  letter-spacing: 0.08em;
  color: var(--cor-nevoa);
  text-transform: uppercase;
}

/* ==========================================================================
   5. COMPONENTES COMPARTILHADOS
   ========================================================================== */

/* --- Botões Reutilizáveis (Padronizados) --- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-altura-md);
  padding: var(--btn-pad-md);
  font-family: var(--fonte-texto);
  font-size: var(--texto-sm);
  font-weight: var(--peso-semibold);
  line-height: var(--linha-compacta);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: var(--btn-borda) solid transparent;
  border-radius: var(--btn-raio);
  transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.botao:hover {
  transform: translateY(-2px);
}

.botao:active {
  transform: translateY(0);
}

.botao:focus-visible {
  outline: 2px solid var(--cor-sinal);
  outline-offset: 2px;
}

/* Modificadores de Tamanho de Botão */
.botao--sm {
  min-height: var(--btn-altura-sm);
  padding: var(--btn-pad-sm);
  font-size: var(--texto-xs);
}

.botao--md {
  min-height: var(--btn-altura-md);
  padding: var(--btn-pad-md);
  font-size: var(--texto-sm);
}

.botao--lg {
  min-height: var(--btn-altura-lg);
  padding: var(--btn-pad-lg);
  font-size: var(--texto-base);
  letter-spacing: 0.04em;
}

/* Modificador Primário (Oceânico) */
.botao--primario {
  color: var(--cor-espuma);
  background-color: var(--cor-oceano-acessivel);
  border-color: var(--cor-oceano-acessivel);
}

.botao--primario:hover {
  background-color: var(--cor-oceano-acessivel-hover);
  border-color: var(--cor-oceano-acessivel-hover);
}

/* Modificador Secundário (Ferrugem) */
.botao--secundario {
  color: var(--cor-espuma);
  background-color: var(--cor-ferrugem-acessivel);
  border-color: var(--cor-ferrugem-acessivel);
}

.botao--secundario:hover {
  background-color: var(--cor-ferrugem-profunda);
  border-color: var(--cor-ferrugem-profunda);
}

/* Modificador Terciário (Terceiro padrão de botão inspirado no sistema, sem estilizar demais) */
.botao--terciario,
.botao--terceriano,
.botao--jade {
  color: var(--cor-fundo);
  background-color: var(--cor-jade-claro);
  border-color: var(--cor-jade-claro);
  font-weight: var(--peso-bold);
}

.botao--terciario:hover,
.botao--terceriano:hover,
.botao--jade:hover {
  color: var(--cor-espuma);
  background-color: var(--cor-oceano-acessivel);
  border-color: var(--cor-oceano-acessivel);
}

.botao--terciario:focus-visible,
.botao--terceriano:focus-visible,
.botao--jade:focus-visible {
  outline: 2px solid var(--cor-oceano-acessivel);
  outline-offset: 2px;
}

/* --- Sticker / Fita Adesiva Decorativa Compartilhada --- */
.mural__fita,
.adesivo-fita {
  position: absolute;
  top: -0.42rem;
  left: 50%;
  z-index: 1;
  width: 3.5rem;
  height: 0.85rem;
  background-color: rgba(193, 75, 44, 0.76);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) rotate(-1.5deg);
  pointer-events: none;
}

/* --- Base de Cartão em Papel Pergaminho --- */
.papel {
  position: relative;
  color: var(--cor-tinta);
  background-color: var(--cor-pergaminho);
  background-image: var(--textura-papel);
  border: 1px solid var(--cor-pergaminho-borda);
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 0 22px rgba(130, 90, 40, 0.14);
}

/* --- Moldura de Foto Impressa com Legenda --- */
.foto-impressa {
  margin: 0;
  padding: 0.7rem 0.7rem 0;
  color: var(--cor-tinta);
  background-color: var(--cor-pergaminho);
  background-image: var(--textura-papel);
  border-radius: 3px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.foto-impressa img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(0.7) saturate(1) hue-rotate(-4deg);
}

.foto-impressa figcaption {
  padding: 0.8rem 0.5rem 0.9rem;
  font-size: var(--texto-md);
  text-align: center;
  color: var(--cor-tinta-suave-acessivel);
}

/* ==========================================================================
   6. DIVISÓRIAS TEMÁTICAS ENTRE SEÇÕES (ZONAS DE PROFUNDIDADE)
   ========================================================================== */
.linha-divisoria {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  font-family: var(--fonte-texto);
  font-size: var(--linha-divisoria-texto);
  font-weight: var(--peso-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cor-sinal-texto);
  z-index: 10;
}

.linha-divisoria p,
.linha-divisoria span,
.linha-divisoria__texto {
  flex-shrink: 0;
  padding: 0.35rem clamp(0.9rem, 2.2vw, 1.8rem);
  text-align: center;
  white-space: nowrap;
}

.linha-divisoria hr {
  flex: 1;
  height: 0;
  border: none;
  border-top: 1px solid rgba(62, 144, 137, 0.4);
}

/* ==========================================================================
   7. ACESSIBILIDADE GLOBAL
   ========================================================================== */

/* Texto visível exclusivamente para tecnologias assistivas */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
}

/* Indicador de foco por teclado acessível e de alto contraste (exclui containers com tabindex="-1") */
:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--cor-casco);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--cor-menta-neon);
}

/* Atalho acessível para pular direto ao conteúdo principal */
.pular-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.7rem 1.1rem;
  font-family: var(--fonte-texto);
  font-size: var(--texto-sm);
  font-weight: var(--peso-semibold);
  color: var(--cor-espuma);
  text-decoration: none;
  background: var(--cor-oceano-acessivel);
  border-radius: 8px;
}

.pular-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#inicio:focus,
#inicio:focus-visible,
.secao-apresentacao:focus,
.secao-apresentacao:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.fundo-decoracao-right,
.fundo-decoracao-right-2 {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  right: 10px;
  top: 10px;
  opacity: 0.8;
}

.fundo-decoracao-left {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  left: 10px;
  bottom: 10px;
  opacity: 0.8;
}


/* ==========================================================================
   8. RESPONSIVIDADE GLOBAL
   ========================================================================== */
@media (max-width: 768px) {

  /* Em telas de tablet e menores, a barra lateral é oculta e as opções aparecem verticalmente dentro do MENU */
  .menu-lateral {
    display: none !important;
  }

  /* Em mídias menores de 768px, o logo centralizado que surge não é mais exibido */
  .logo-centralizado {
    display: none !important;
  }

  .container-secao {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Barra Superior Unificada (Menu + Logo em Pílula Única) */
  .cabecalho-topo,
  .menu-navegacao {
    top: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .cabecalho-topo:not(.cabecalho-topo--expandido),
  .menu-navegacao:not(.menu-navegacao--expandido) {
    width: auto;
    height: 72px;
    border-radius: 9999px;
    padding: 0 1.35rem 0 0.75rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 3, 5, 0.28);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 0.25s ease,
      background-color 0.25s ease;
  }

  .cabecalho-topo:not(.cabecalho-topo--expandido):hover,
  .menu-navegacao:not(.menu-navegacao--expandido):hover {
    transform: scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 3, 5, 0.35);
  }

  .cabecalho-topo:not(.cabecalho-topo--expandido) .cabecalho-topo__barra-topo,
  .menu-navegacao:not(.menu-navegacao--expandido) .menu-navegacao__barra-topo {
    min-height: 72px;
    height: 72px;
    display: flex;
    align-items: center;
  }

  .cabecalho-topo:not(.cabecalho-topo--expandido) .cabecalho-topo__gatilho,
  .menu-navegacao:not(.menu-navegacao--expandido) .menu-navegacao__gatilho {
    width: auto;
    height: 100%;
    padding: 0 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
  }

  .cabecalho-topo__pilula-logo {
    display: none;
  }

  .cabecalho-topo:not(.cabecalho-topo--expandido) .cabecalho-topo__pilula-logo {
    display: flex !important;
    align-items: center;
    height: 100%;
    user-select: none;
    pointer-events: none;
  }

  .cabecalho-topo__pilula-divisor {
    display: block;
    width: 1.5px;
    height: 40px;
    background-color: var(--cor-pergaminho-borda);
    opacity: 0.7;
    margin: 0 0.25rem;
  }

  .cabecalho-topo__pilula-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
  }

  .cabecalho-topo__pilula-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    line-height: 1;
  }

  .cabecalho-topo__pilula-nome {
    font-family: var(--fonte-titulo);
    font-size: 1.85rem;
    font-weight: bold;
    color: var(--cor-fundo);
    line-height: 1;
    letter-spacing: 0.5px;
    margin-top: -2px;
    white-space: nowrap;
  }

  .cabecalho-topo__pilula-slogan {
    font-family: var(--fonte-texto);
    font-size: 0.75rem;
    font-weight: var(--peso-semibold);
    color: var(--cor-tinta-suave-acessivel);
    line-height: 1.15;
    letter-spacing: 0.25px;
    margin-top: 3px;
    white-space: nowrap;
  }

  .cabecalho-topo--expandido .cabecalho-topo__pilula-logo {
    display: none !important;
  }

  .cabecalho-topo--expandido,
  .menu-navegacao--expandido {
    width: min(420px, calc(100vw - 2rem)) !important;
    height: auto !important;
    max-height: calc(100vh - 2rem) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 14px 40px rgba(0, 3, 5, 0.45) !important;
    padding: 0.75rem 0.85rem 1rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .cabecalho-topo__barra-topo,
  .menu-navegacao__barra-topo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 86px;
    transition: min-height 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  }

  .cabecalho-topo--expandido .cabecalho-topo__barra-topo,
  .menu-navegacao--expandido .menu-navegacao__barra-topo {
    min-height: 48px;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cor-pergaminho-borda);
  }

  .cabecalho-topo__gatilho,
  .menu-navegacao__gatilho {
    width: 86px;
    height: 86px;
    gap: 4px;
    padding: 0;
  }

  .cabecalho-topo__hamburguer,
  .menu-navegacao__hamburguer {
    width: 22px;
    height: 14px;
  }

  .cabecalho-topo__rotulo,
  .menu-navegacao__rotulo {
    font-size: 1rem;
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
  }

  .cabecalho-topo__rotulo-desktop {
    display: none !important;
  }

  .cabecalho-topo__rotulo-mobile {
    display: inline !important;
  }

  .cabecalho-topo--expandido .cabecalho-topo__gatilho,
  .menu-navegacao--expandido .menu-navegacao__gatilho {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(50, 27, 11, 0.08);
  }

  .cabecalho-topo--expandido .cabecalho-topo__rotulo,
  .menu-navegacao--expandido .menu-navegacao__rotulo {
    display: none;
  }

  .cabecalho-topo__conteudo,
  .menu-navegacao__conteudo {
    display: none;
    opacity: 0;
    visibility: hidden;
  }

  .cabecalho-topo--expandido .cabecalho-topo__conteudo,
  .menu-navegacao--expandido .menu-navegacao__conteudo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    opacity: 1;
    visibility: visible;
    width: auto;
    overflow: visible;
    transform: none;
    padding: 0;
    flex-shrink: 0;
  }

  .cabecalho-topo__rotulo-animacoes,
  .menu-navegacao__rotulo-animacoes {
    display: inline !important;
    white-space: nowrap;
  }

  /* Opções do menu organizadas verticalmente (somente no responsivo) */
  .cabecalho-topo__navegacao,
  .menu-navegacao__navegacao {
    display: none !important;
    width: 100%;
  }

  .cabecalho-topo--expandido .cabecalho-topo__navegacao,
  .menu-navegacao--expandido .menu-navegacao__navegacao {
    display: block !important;
    opacity: 1;
    visibility: visible;
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Exibe a logo com animação no topo do menu aberto apenas no modo responsivo */
  .cabecalho-topo--expandido .cabecalho-topo__brand,
  .menu-navegacao--expandido .cabecalho-topo__brand {
    display: flex !important;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.55rem 0.85rem;
    margin: 0.25rem 0 0.65rem;
    border-radius: 1rem;
    background-color: rgba(226, 203, 169, 0.4);
    border: 1px solid var(--cor-pergaminho-borda);
    overflow: hidden;
  }

  .cabecalho-topo__brand-blobs {
    position: absolute;
    inset: -6px -10px;
    filter: url("#fancy-goo");
    pointer-events: none;
    z-index: 0;
  }

  .cabecalho-topo__brand-blob-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background-color: var(--cor-pergaminho);
    border-radius: 40% 40% 30% 30% / 150% 150% 150% 150%;
    animation: logo-blob 1.5s cubic-bezier(0.37, 0, 0.63, 1) 0.3s infinite alternate;
  }

  .cabecalho-topo__brand-blob-bottom {
    position: absolute;
    bottom: 0;
    left: 3%;
    width: 94%;
    height: 55%;
    background-color: var(--cor-pergaminho);
    border-radius: 5% 5% 25% 25% / 100% 100% 100% 100%;
    animation: logo-blob 1s infinite alternate cubic-bezier(0.37, 0, 0.63, 1);
  }

  .cabecalho-topo__brand-logo {
    width: 44px;
    height: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .cabecalho-topo__brand-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    z-index: 2;
  }

  .cabecalho-topo__brand-titulo {
    font-family: var(--fonte-titulo);
    font-size: 1.85rem;
    font-weight: bold;
    color: var(--cor-fundo);
    line-height: 1;
  }

  .cabecalho-topo__brand-subtitulo {
    font-size: 1rem;
    color: var(--cor-fundo);
    margin-top: 0.15rem;
    opacity: 0.85;
  }

  .cabecalho-topo__lista,
  .menu-navegacao__lista {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0;
    width: 100%;
  }

  .cabecalho-topo__item,
  .menu-navegacao__item {
    width: 100%;
  }

  .cabecalho-topo__link,
  .menu-navegacao__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    font-family: var(--fonte-texto);
    font-size: var(--texto-sm);
    font-weight: var(--peso-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cor-tinta);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .cabecalho-topo__link:hover,
  .menu-navegacao__link:hover {
    background-color: var(--cor-tinta-suave);
    color: var(--cor-espuma);
    transform: translateX(3px);
  }

  .cabecalho-topo__link--ativo,
  .menu-navegacao__link--ativo {
    background-color: var(--cor-tinta-suave);
    color: var(--cor-espuma);
    font-weight: var(--peso-bold);
  }

  .cabecalho-topo__item--login,
  .menu-navegacao__item--login {
    margin-top: 0.4rem;
    padding-top: 0.45rem;
    border-top: 1px dotted rgba(100, 73, 56, 0.35);
  }

  .cabecalho-topo__link--login,
  .menu-navegacao__link--login {
    justify-content: center;
    color: var(--cor-espuma);
    background-color: var(--cor-ferrugem-acessivel);
    border: 1px solid var(--cor-ferrugem-acessivel);
    box-shadow: 0 2px 6px rgba(128, 42, 18, 0.28);
    font-weight: var(--peso-semibold);
  }

  .cabecalho-topo__link--login:hover,
  .menu-navegacao__link--login:hover {
    background-color: var(--cor-ferrugem-profunda);
    border-color: var(--cor-ferrugem-profunda);
    color: var(--cor-espuma);
  }

  .secao__citacao {
    margin-bottom: 4rem;
  }

  .secao__cabecalho {
    gap: 0.7rem;
  }

  .secao__numero {
    min-width: 3.7rem;
    min-height: 3rem;
    padding-left: 0.4rem;
    font-size: 2.7rem;
  }

  .waves {
    height: 40px;
    min-height: 40px;
  }
}

@media (min-width: 769px) and (max-width: 1359px) {
  .container-secao {
    padding-left: 10.5rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .secao__citacao {
    margin-bottom: 3rem;
  }

  .secao__citacao>span {
    font-size: var(--texto-micro);
  }

  .secao__cabecalho {
    align-items: flex-start;
  }

  .secao__numero {
    min-width: 2.8rem;
    font-size: 2.1rem;
  }

  .secao__sobretitulo {
    font-size: var(--texto-xs);
  }

  .secao__titulo-grupo h2 {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .secao__subtitulo {
    font-size: var(--texto-xs);
  }
}

/* ==========================================================================
   9. PREFERÊNCIA DE MOVIMENTO REDUZIDO (ACESSIBILIDADE)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

  body::before,
  body::after,
  .parallax>use {
    animation: none !important;
  }

  .logo-blobs,
  .logo-blob-top,
  .logo-blob-bottom {
    animation: none !important;
    transform: scale(1) !important;
  }

  .menu-lateral,
  .menu-lateral__link,
  .menu-lateral__marcador,
  .menu-lateral__submarino-wrapper,
  .menu-lateral__submarino-img {
    transition: none !important;
    animation: none !important;
  }

  .menu-lateral__link--ativo .menu-lateral__marcador::after {
    animation: none !important;
  }
}

/* Ajuste responsivo compacto do cabeçalho superior */
@media (max-width: 480px) {

  .cabecalho-topo--expandido,
  .menu-navegacao--expandido {
    width: calc(100vw - 2rem);
  }

  .cabecalho-topo__rotulo-animacoes,
  .menu-navegacao__rotulo-animacoes {
    display: inline !important;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  .cabecalho-topo__botao-animacoes,
  .menu-navegacao__botao-animacoes {
    padding: 0.3rem 0.55rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cabecalho-topo--expandido .cabecalho-topo__barra-topo,
  .menu-navegacao--expandido .menu-navegacao__barra-topo {
    gap: 0.5rem;
  }

  .cabecalho-topo--expandido .cabecalho-topo__conteudo,
  .menu-navegacao--expandido .menu-navegacao__conteudo {
    gap: 0.45rem;
  }

  .cabecalho-topo:not(.cabecalho-topo--expandido),
  .menu-navegacao:not(.menu-navegacao--expandido) {
    height: 72px;
    padding: 0 1rem 0 0.55rem;
  }

  .cabecalho-topo:not(.cabecalho-topo--expandido) .cabecalho-topo__barra-topo,
  .menu-navegacao:not(.menu-navegacao--expandido) .menu-navegacao__barra-topo {
    min-height: 72px;
    height: 72px;
    gap: 0.5rem;
  }

  .cabecalho-topo:not(.cabecalho-topo--expandido) .cabecalho-topo__gatilho,
  .menu-navegacao:not(.menu-navegacao--expandido) .menu-navegacao__gatilho {
    width: auto;
    height: 100%;
    gap: 0.45rem;
    padding: 0 0.4rem;
  }

  .cabecalho-topo__hamburguer,
  .menu-navegacao__hamburguer {
    width: 21px;
    height: 14px;
  }

  .cabecalho-topo:not(.cabecalho-topo--expandido) .cabecalho-topo__rotulo,
  .menu-navegacao:not(.menu-navegacao--expandido) .menu-navegacao__rotulo {
    font-size: 0.88rem;
    letter-spacing: 0.4px;
    line-height: 1;
    white-space: nowrap;
  }

  .cabecalho-topo__pilula-divisor {
    height: 36px;
    margin: 0 0.15rem;
  }

  .cabecalho-topo__pilula-img {
    width: 38px;
    height: 38px;
  }

  .cabecalho-topo__pilula-nome {
    font-size: 1.6rem;
  }

  .cabecalho-topo__pilula-slogan {
    font-size: 0.64rem;
    letter-spacing: 0.15px;
    margin-top: 2px;
  }
}

/* ==========================================================================
   10. DESATIVAÇÃO GERAL DE ANIMAÇÕES (PREFERÊNCIA DO USUÁRIO / ACESSIBILIDADE)
   ========================================================================== */
body.sem-animacoes *,
body.sem-animacoes *::before,
body.sem-animacoes *::after {
  animation: none !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  animation-play-state: paused !important;
  transition: none !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

body.sem-animacoes .parallax>use {
  animation: none !important;
}

body.sem-animacoes .logo-blobs,
body.sem-animacoes .logo-blob-top,
body.sem-animacoes .logo-blob-bottom {
  animation: none !important;
  transform: scale(1) !important;
}

body.sem-animacoes .menu-lateral,
body.sem-animacoes .menu-lateral__link,
body.sem-animacoes .menu-lateral__marcador,
body.sem-animacoes .menu-lateral__submarino-wrapper,
body.sem-animacoes .menu-lateral__submarino-img {
  transition: none !important;
  animation: none !important;
}

body.sem-animacoes .menu-lateral__link--ativo .menu-lateral__marcador::after {
  animation: none !important;
}

/* Quando as animações estão desativadas, a abertura inicial e seu logo sequer são exibidos */
body.sem-animacoes .abertura-carregamento,
html.sem-animacoes .abertura-carregamento {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.sem-animacoes.em-abertura,
html.sem-animacoes body.em-abertura {
  height: auto !important;
  overflow: visible !important;
}

body.sem-animacoes.em-abertura #livro3D,
body.sem-animacoes.em-abertura #cabecalhoTopo,
body.sem-animacoes.em-abertura #menuLateral,
body.sem-animacoes.em-abertura .logo-centralizado,
body.sem-animacoes.em-abertura #radio-comunal {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Quando as animações estão desativadas, o Livro 3D fica completamente aberto exibindo todas as informações */
body.sem-animacoes .livro-3d {
  opacity: 1 !important;
  transform: none !important;
}

@media (min-width: 1101px) {
  body.sem-animacoes .livro-3d__capa--frontal {
    transform: rotateY(-180deg) !important;
    z-index: 2 !important;
  }

  body.sem-animacoes .livro-3d__folha--esquerda {
    transform: rotateY(-180deg) translateZ(2px) !important;
    z-index: 35 !important;
  }

  body.sem-animacoes .livro-3d__folha--direita {
    z-index: 20 !important;
  }
}

@media (max-width: 1100px) {

  body.sem-animacoes .livro-3d,
  body.sem-animacoes .livro-3d__folha--esquerda,
  body.sem-animacoes .livro-3d__face--verso,
  body.sem-animacoes #paginaConteudoContainer,
  body.sem-animacoes .livro-3d__conteudo-texto {
    transform: none !important;
    rotate: 0deg !important;
  }
}

body.sem-animacoes .livro-3d__imagem-ilustracao {
  opacity: 1 !important;
}

/* ==========================================================================
   TELA DE ABERTURA E CARREGAMENTO INICIAL
   80vh da abertura + 20vh da seção abaixo visíveis na carga inicial
   ========================================================================== */
body.em-abertura {
  height: 100vh;
  overflow: hidden;
}

body.em-abertura #livro3D,
body.em-abertura #cabecalhoTopo,
body.em-abertura #menuLateral,
body.em-abertura .logo-centralizado,
body.em-abertura #radio-comunal,
body.em-abertura .cenario-submarino__peixe,
body.em-abertura .cenario-submarino__tubarao,
body.em-abertura .cenario-submarino__cardume,
body.em-abertura #tubarao,
body.em-abertura [id^="peixe-"],
body.em-abertura [id^="cardume-"],
body.aguardando-hero #livro3D,
body.aguardando-hero .cenario-submarino__peixe,
body.aguardando-hero .cenario-submarino__tubarao,
body.aguardando-hero .cenario-submarino__cardume,
body.aguardando-hero #tubarao,
body.aguardando-hero [id^="peixe-"],
body.aguardando-hero [id^="cardume-"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#cabecalhoTopo,
#radio-comunal,
#livro3D,
.cenario-submarino__peixe,
.cenario-submarino__tubarao,
.cenario-submarino__cardume,
#tubarao,
[id^="peixe-"],
[id^="cardume-"] {
  transition: opacity 0.6s ease;
}

.abertura-carregamento {
  background: linear-gradient(to bottom, #F7C33C 0%, #63B6AF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  height: 80vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.abertura-carregamento p {
  color: var(--cor-fundo);
  text-align: center;
  font-family: var(--fonte-texto);
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  z-index: 10;
}

.abertura-carregamento img,
.abertura-carregamento img.abertura-logo {
  width: 150px;
  position: relative;
  z-index: 1;
  display: block;
  will-change: transform, opacity;
}

.abertura-carregamento.abertura-carregamento--oculta {
  display: none !important;
}


.abertura-carregamento h1 {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-size: 5rem;
  font-weight: bold;
  color: var(--cor-fundo);
  position: relative;
  z-index: 4;
}

.abertura-carregamento .btn-pular {
  position: relative;
  z-index: 4;
  margin-top: 0.5rem;
  z-index: 10;
}

.abertura-carregamento .btn-pular:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.abertura-carregamento .btn-pular:focus-visible {
  outline: 3px solid var(--cor-menta-neon);
  outline-offset: 3px;
  box-shadow: 0 0 12px rgba(15, 244, 204, 0.6);
}

/* ==========================================================================
   MODAL DE DIÁLOGO ACESSÍVEL (TERMINAL DE LOGIN / ACH-10)
   ========================================================================== */
.modal-dialogo {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  max-width: 440px;
  width: calc(100% - 2rem);
  background-color: var(--cor-painel);
  color: var(--cor-espuma);
  border: 1px solid var(--cor-sinal-claro);
  border-radius: var(--raio-lg, 1rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  z-index: 10000;
  overflow: hidden;
}

.modal-dialogo::backdrop {
  background: rgba(0, 3, 5, 0.75);
  backdrop-filter: blur(4px);
}

.modal-dialogo__conteudo {
  position: relative;
  padding: 2.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.modal-dialogo__fechar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--cor-nevoa-acessivel);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-dialogo__fechar:hover,
.modal-dialogo__fechar:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cor-menta-neon);
  outline: 2px solid var(--cor-menta-neon);
}

.modal-dialogo__icone {
  font-size: 2.5rem;
  color: var(--cor-menta-neon);
  margin-bottom: 0.25rem;
}

.modal-dialogo__titulo {
  font-family: var(--fonte-titulo);
  font-size: var(--titulo-md, 1.5rem);
  color: var(--cor-espuma);
  margin: 0;
}

.modal-dialogo__mensagem {
  font-family: var(--fonte-texto);
  font-size: var(--texto-base, 1rem);
  color: var(--cor-nevoa-acessivel);
  line-height: 1.6;
  margin: 0;
}

.modal-dialogo__form {
  width: 100%;
  margin-top: 0.5rem;
}

.modal-dialogo__form .botao {
  width: 100%;
}