/* ==========================================================================
   BOMBAR EVENTOS — BASE
   Reset, tipografia, utilitários e revelação ao rolar.
   ========================================================================== */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  background: var(--verde-profundo);
}

body {
  min-height: 100vh;
  background: var(--verde-profundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: var(--t-corpo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* Menu ou foto ampliada abertos: o fundo não rola. */
html.travado { overflow: hidden; }

[hidden] { display: none !important; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

::selection { background: var(--dourado); color: var(--preto); }

:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
  border-radius: var(--r-1);
}

/* ------------------------------------------------------------ tipografia -- */

h1, h2, h3 {
  font-family: var(--fonte-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

em { font-style: italic; }

/* Sobretítulo: o fio condutor tipográfico, igual ao do site principal. */
.olho {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--fonte-texto);
  font-size: var(--olho);
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--trilha-olho);
  text-transform: uppercase;
  color: var(--dourado);
}

.olho::before {
  content: "";
  flex: none;
  width: clamp(22px, 3.4vw, 40px);
  height: 1px;
  background: currentColor;
  opacity: .8;
}

/* -------------------------------------------------------------- layout --- */

.env {
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding-inline: var(--borda);
}

/* ----------------------------------------------------------- utilidade --- */

.so-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -140%);
  padding: .75rem 1.5rem;
  background: var(--dourado);
  color: var(--preto);
  font-size: var(--t-peq);
  font-weight: 700;
  border-radius: 0 0 var(--r-2) var(--r-2);
  transition: transform var(--rapido) var(--curva);
}
.pular:focus { transform: translate(-50%, 0); }

.sem-js {
  padding: 2rem var(--borda);
  text-align: center;
  color: var(--texto-suave);
}

/* ------------------------------------------------------------- revelar --- */
/* Só esconde o conteúdo quando o JS já está rodando (classe .js no html).
   Sem JS, ou com movimento reduzido, tudo aparece de uma vez.             */

.js [data-revelar] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--lento) var(--curva-suave) var(--atraso, 0ms),
    transform var(--lento) var(--curva) var(--atraso, 0ms);
}

.js [data-revelar].visivel {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-revelar] { opacity: 1; transform: none; }
}
