/* Base comum às previews A e B. Cores e fontes vêm das variáveis de cada tema. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--fonte-titulo);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--texto);
  color: var(--fundo);
  border-radius: 6px;
  font-weight: 600;
}
.pular:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

/* Aviso de prévia (sempre visível) */
.aviso-previa {
  background: var(--aviso-fundo);
  color: var(--aviso-texto);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  padding: 0.5rem 1rem;
}

/* Marcação de conteúdo provisório */
.preencher {
  display: inline;
  background: var(--preencher-fundo);
  color: var(--preencher-texto);
  border-radius: 3px;
  padding: 0 0.3em;
  font-size: 0.92em;
}
.selo-ilustrativa {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Botões */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--raio-botao);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.botao-principal {
  background: var(--botao-fundo);
  color: var(--botao-texto);
}
.botao-principal:hover {
  background: var(--botao-fundo-hover);
}
.botao-secundario {
  border-color: var(--borda-forte);
  color: var(--texto);
  background: transparent;
}
.botao-secundario:hover {
  border-color: var(--texto);
}

/* Galeria: abas de filtro */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filtros button {
  font: inherit;
  font-size: 0.9375rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* Formulário */
.campo {
  display: grid;
  gap: 0.35rem;
}
.campo label {
  font-weight: 600;
  font-size: 0.9375rem;
}
.campo input,
.campo select,
.campo textarea {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--raio-campo);
  border: 1.5px solid var(--borda-campo);
  background: var(--campo-fundo);
  color: var(--texto);
}
.campo textarea {
  min-height: 7rem;
  resize: vertical;
}
.campo [aria-invalid='true'] {
  border-color: var(--erro);
}
.campo .dica {
  font-size: 0.8125rem;
  color: var(--texto-suave);
}
.erro {
  color: var(--erro);
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 0;
}
.erro:empty {
  display: none;
}

/* Botão flutuante do WhatsApp */
.whatsapp-flutuante {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f7a4a;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.menu-aberto .whatsapp-flutuante {
  display: none;
}
.whatsapp-flutuante svg {
  width: 30px;
  height: 30px;
}

/* Cena do topo */
.cena-palco svg {
  width: 100%;
  height: 100%;
}
.cena-etapa {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
}
.cena-pontos {
  display: flex;
  gap: 0.35rem;
}
.cena-pontos span {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--borda-forte);
}
.cena-pontos span.ativo {
  background: var(--destaque);
}

/* Menu do celular */
.menu-botao {
  display: none;
}
@media (max-width: 63.99rem) {
  .menu-botao {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1.5px solid var(--borda-forte);
    background: transparent;
    color: var(--texto);
    cursor: pointer;
  }
  .menu-botao svg {
    width: 22px;
    height: 22px;
  }
  #menu-principal {
    display: none;
  }
  .menu-aberto #menu-principal {
    display: block;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--fundo);
    border-bottom: 1px solid var(--borda);
    padding: 0.5rem 1rem 1rem;
  }
  .menu-aberto #menu-principal ul {
    display: grid;
  }
  .menu-aberto #menu-principal a {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 1.125rem;
  }
}
