/* =========================================================================
   L'Épicerie · Bistrot Français — folha de estilo única
   -------------------------------------------------------------------------
   Ordem dos blocos:
     1. Fontes
     2. Tokens (cores, espaçamentos, sombras)
     3. Reset e base
     4. Tipografia de apoio
     5. Componentes (botões, polaroid, cartões)
     6. Cabeçalho e menu
     7. Seções
     8. Carrossel
     9. Rodapé
    10. Responsivo
    11. Animações e acessibilidade
   ========================================================================= */


/* ============================ 1. FONTES ================================= */
/* Arquivos hospedados no próprio servidor — nenhuma requisição a terceiros. */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/lora-var-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}


/* ============================ 2. TOKENS ================================= */

:root {
  /* Paleta da marca */
  --bordeaux: #8A2231;
  --vermelho: #A91E35;
  --vermelho-escuro: #701A27;
  --tinta: #3A2A22;
  --creme: #FBF6EC;
  --creme-escuro: #F0E6D2;
  --areia: #F1E6D2;
  --areia-escura: #E7D8BE;
  --dourado: #B8894B;
  --dourado-claro: #E9C87E;
  --texto-suave: #6A5545;
  --texto-tenue: #9A8B7B;
  --sobre-vermelho: #F5E9D8;
  --sobre-escuro: #E6D9C6;

  /* Estrutura */
  --altura-cabecalho: 74px;
  --largura-max: 1180px;
  --largura-max-larga: 1200px;
  --raio: 10px;
  --raio-grande: 14px;
  --raio-pequeno: 6px;

  /* Espaçamento vertical das seções */
  --espaco-secao: clamp(48px, 7vw, 96px);
  --espaco-lateral: clamp(20px, 5vw, 64px);

  /* Sombras */
  --sombra-suave: 0 2px 8px rgba(58, 42, 34, 0.12);
  --sombra-media: 0 6px 18px rgba(0, 0, 0, 0.22);
  --sombra-forte: 0 14px 34px rgba(58, 42, 34, 0.22);

  /* Textura de papel: ruído SVG embutido — evita uma requisição de imagem */
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
}


/* ========================== 3. RESET E BASE ============================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--areia);
  background-image: var(--grao);
  color: var(--tinta);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

img {
  display: block;
  height: auto;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

::selection {
  background: var(--bordeaux);
  color: var(--creme);
}

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

.container {
  width: 100%;
  max-width: var(--largura-max);
  margin-inline: auto;
}
.container--largo { max-width: var(--largura-max-larga); }

.centralizado { text-align: center; }

/* Link de pular para o conteúdo — só aparece na navegação por teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--creme);
  color: var(--bordeaux);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }


/* ======================= 4. TIPOGRAFIA DE APOIO ========================= */

/* Texto manuscrito (Caveat) usado como assinatura em toda a página */
.script {
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-weight: 500;
  line-height: 1.25;
}
.script--bordeaux { color: var(--bordeaux); }
.script--dourado { color: var(--dourado); }

.ponto { color: var(--bordeaux); }

.regua {
  flex: 1;
  height: 1.5px;
  min-width: 24px;
  background: rgba(251, 246, 236, 0.30);
}

.titulo-linha {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.titulo-linha--escuro .regua { background: rgba(58, 42, 34, 0.20); }


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

/* --- Botões ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: var(--raio);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--bordeaux {
  background: var(--bordeaux);
  color: var(--creme);
  box-shadow: var(--sombra-suave);
}
.btn--bordeaux:hover { background: var(--vermelho-escuro); }

.btn--chalk {
  background: var(--creme);
  color: var(--vermelho);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}
.btn--chalk:hover { background: var(--creme-escuro); }

.btn--contorno {
  background: var(--areia);
  border-color: var(--tinta);
  color: var(--tinta);
}
.btn--contorno:hover { background: var(--areia-escura); }

.btn--contorno-claro {
  background: transparent;
  border-color: rgba(251, 246, 236, 0.7);
  color: var(--creme);
}
.btn--contorno-claro:hover { background: rgba(251, 246, 236, 0.14); }

.botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.botoes--centro { justify-content: center; }

/* --- Polaroid (moldura de foto inclinada) ------------------------------ */

.polaroid {
  margin: 0;
  padding: 9px 9px 12px;
  background: var(--creme);
  border-radius: var(--raio);
  box-shadow: var(--sombra-media);
}
.polaroid img { border-radius: var(--raio-pequeno); }

.polaroid figcaption {
  margin-top: 8px;
  color: var(--texto-suave);
  font-size: 19px;
  text-align: center;
}

.polaroid--grande {
  padding: 12px 12px 14px;
  background: var(--areia);
  box-shadow: var(--sombra-forte);
}
.polaroid--grande figcaption {
  font-size: 22px;
  color: var(--tinta);
}

/* --- Cartões das experiências ------------------------------------------ */

.cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 24px;
  align-items: start;
}

.cartao {
  padding: 30px 28px;
  background: rgba(251, 246, 236, 0.06);
  border: 1.5px solid rgba(251, 246, 236, 0.18);
  border-radius: var(--raio-grande);
}
.cartao .script { font-size: 26px; margin-bottom: 6px; }
.cartao__titulo { font-size: 24px; margin-bottom: 12px; }
.cartao__texto {
  color: var(--sobre-escuro);
  font-size: 16px;
  line-height: 1.62;
}


/* ====================== 6. CABEÇALHO E MENU ============================= */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--vermelho);
  background-image: var(--grao);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.14);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--altura-cabecalho);
  padding-inline: var(--espaco-lateral);
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.nav__link {
  color: var(--creme);
  font-size: 16px;
  letter-spacing: 0.2px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--dourado-claro); }

/* Botão hambúrguer — só aparece no mobile (ver bloco responsivo) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.burger__bar {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--creme);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: var(--altura-cabecalho) 0 0;
  z-index: 40;
  background: rgba(58, 42, 34, 0.5);
}


/* ============================ 7. SEÇÕES ================================= */

.secao {
  padding: var(--espaco-secao) var(--espaco-lateral);
  scroll-margin-top: var(--altura-cabecalho);
}

.secao--creme {
  background-color: var(--creme);
  background-image: var(--grao);
}
.secao--vermelha {
  background-color: var(--vermelho);
  background-image: var(--grao);
  border-top: 1.5px solid rgba(0, 0, 0, 0.14);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.14);
  color: var(--creme);
}
.secao--escura {
  background-color: var(--tinta);
  background-image: var(--grao);
  color: var(--creme);
}

.secao__titulo {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 32px;
}
.secao__titulo--inline { margin-bottom: 0; }

.secao__cabecalho {
  margin-bottom: 44px;
  text-align: center;
}
.secao__cabecalho .script { font-size: 30px; }
.secao__cabecalho .secao__titulo { margin: 4px 0 10px; }

.secao__subtitulo {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--texto-suave);
  font-size: 18px;
}

/* --- Hero -------------------------------------------------------------- */

.hero {
  padding: clamp(40px, 7vw, 88px) var(--espaco-lateral) clamp(48px, 7vw, 96px);
  background-color: var(--creme);
  background-image: var(--grao);
  scroll-margin-top: var(--altura-cabecalho);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  max-width: var(--largura-max);
  margin-inline: auto;
}

.hero__eyebrow {
  font-size: 34px;
  margin-bottom: 6px;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.hero__titulo {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 8px 0 20px;
}

.hero__lead {
  max-width: 46ch;
  margin-bottom: 30px;
  color: var(--texto-suave);
  font-size: 19px;
  line-height: 1.62;
}

.hero__assinatura {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--texto-tenue);
  font-family: 'Caveat', cursive;
  font-size: 20px;
}
.risco {
  width: 34px;
  height: 1.5px;
  background: rgba(58, 42, 34, 0.30);
}

.hero__midia { position: relative; }
.hero__midia .polaroid { transform: rotate(-2deg); }
/* A foto é vertical, mas aqui ela é recortada para o hero caber na tela */
.hero__midia .polaroid img {
  width: 100%;
  height: clamp(300px, 34vw, 440px);
  object-fit: cover;
}

.hero__selo {
  position: absolute;
  top: -34px;
  right: -10px;
  height: 110px;
  width: auto;
  transform: rotate(6deg);
}

/* --- O Bistrot --------------------------------------------------------- */

.bistrot {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.bistrot__texto p {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.72;
  color: var(--sobre-vermelho);
}
.bistrot__texto p:first-child { color: var(--creme); }
.bistrot__texto p:last-child { margin-bottom: 0; }
.bistrot__texto strong { font-weight: 600; }

.bistrot__fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.bistrot__fotos .polaroid--retrato {
  grid-row: 1 / 3;
  transform: rotate(-1.5deg);
}
.bistrot__fotos .polaroid:nth-child(2) { transform: rotate(1.5deg); }
.bistrot__fotos .polaroid:nth-child(3) { transform: rotate(-1deg); }
.bistrot__fotos figcaption { font-size: 18px; }
.bistrot__fotos .polaroid--retrato figcaption { font-size: 20px; }

/* --- Os pratos --------------------------------------------------------- */

.pratos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 26px;
  margin-bottom: 44px;
}

.prato {
  padding: 14px 14px 20px;
  background: var(--areia);
  border-radius: var(--raio);
  box-shadow: var(--sombra-suave);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.prato:nth-child(odd) { transform: rotate(-0.9deg); }
.prato:nth-child(even) { transform: rotate(0.8deg); }
.prato:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 10px 22px rgba(58, 42, 34, 0.18);
}

.prato__foto {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #EFE3CC;
}

.prato__cabecalho {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.prato__nome { font-size: 20px; line-height: 1.2; }
.prato__tag {
  color: var(--bordeaux);
  font-size: 20px;
  white-space: nowrap;
}
.prato__desc {
  margin-top: 8px;
  color: var(--texto-suave);
  font-size: 14.5px;
  line-height: 1.55;
}

/* --- As experiências --------------------------------------------------- */

.experiencias {
  position: relative;
  overflow: hidden;
}
.experiencias > .container { position: relative; }
.experiencias__marca {
  position: absolute;
  right: -40px;
  bottom: -30px;
  height: 340px;
  width: auto;
  opacity: 0.08;
  pointer-events: none;
}
.experiencias .botoes { margin-top: 40px; }

/* --- Eventos ----------------------------------------------------------- */

.eventos__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1080px;
}
.eventos__chamada {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  color: var(--creme);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.eventos__texto {
  max-width: 48ch;
  margin-top: 16px;
  color: var(--creme-escuro);
  font-size: 18px;
  line-height: 1.65;
}
.eventos .botoes { margin-top: 26px; }
.eventos__marca {
  height: clamp(110px, 16vw, 180px);
  width: auto;
  transform: rotate(-4deg);
}


/* =========================== 8. CARROSSEL =============================== */

.carrossel {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
  margin-top: 22px;
  background: var(--tinta);
  border-radius: var(--raio-grande);
  overflow: hidden;
  box-shadow: var(--sombra-forte);
}

/* Sem JavaScript o trilho continua funcionando: é uma faixa com rolagem
   horizontal e encaixe automático, o que também dá o "swipe" no celular. */
.carrossel__trilho {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carrossel__trilho::-webkit-scrollbar { display: none; }
.carrossel__trilho:focus-visible { outline-offset: -4px; }

.carrossel__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}
.carrossel__slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.carrossel__rodape {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 44px 24px 20px;
  background: linear-gradient(to top, rgba(58, 42, 34, 0.78), transparent);
  pointer-events: none;
}
.carrossel__legenda {
  color: var(--creme);
  font-size: clamp(20px, 3vw, 28px);
}

.carrossel__pontos {
  display: flex;
  gap: 9px;
  align-items: center;
  pointer-events: auto;
}
.ponto-nav {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1.5px solid rgba(251, 246, 236, 0.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.ponto-nav[aria-selected="true"] { background: var(--creme); }

.carrossel__seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(251, 246, 236, 0.85);
  color: var(--tinta);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sombra-suave);
  transition: background-color 0.2s ease;
}
.carrossel__seta:hover { background: var(--creme); }
.carrossel__seta--anterior { left: 16px; }
.carrossel__seta--proxima { right: 16px; }


/* ============================ 9. RODAPÉ ================================= */

.rodape {
  padding: var(--espaco-secao) var(--espaco-lateral) 40px;
  background-color: var(--tinta);
  background-image: var(--grao);
  color: var(--creme);
  scroll-margin-top: var(--altura-cabecalho);
}

.rodape__grade {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.rodape__logo {
  height: 120px;
  width: auto;
  margin: -8px 0 12px -4px;
}
.rodape__tagline {
  max-width: 36ch;
  color: var(--creme-escuro);
  font-size: 17px;
  line-height: 1.68;
  text-wrap: pretty;
}

.rodape__titulo {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 500;
}
.rodape__rotulo {
  margin-bottom: 4px;
  color: var(--creme);
  font-size: 16px;
  font-weight: 600;
}
.rodape__texto {
  margin-bottom: 14px;
  color: var(--sobre-escuro);
  font-size: 16px;
  line-height: 1.75;
}
.rodape__endereco { margin-top: 20px; margin-bottom: 0; }
.rodape__mapa {
  display: inline-block;
  margin-top: 8px;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rodape__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
}
.rodape__links a {
  color: var(--creme);
  text-decoration: none;
  transition: color 0.2s ease;
}
.rodape__links a:hover { color: var(--dourado); }
.rodape__links li:nth-child(4) a { color: var(--sobre-escuro); }

.rodape__instagram {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
}

.rodape__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1.5px solid rgba(251, 246, 236, 0.16);
  color: var(--texto-tenue);
  font-size: 14px;
}


/* =========================== 10. RESPONSIVO ============================= */

/* --- Até 900px: o menu vira painel e as colunas viram uma só ----------- */
@media (max-width: 900px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: var(--altura-cabecalho) 0 auto;
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--espaco-lateral) 24px;
    background-color: var(--vermelho);
    background-image: var(--grao);
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 18px 30px rgba(58, 42, 34, 0.28);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }
  .nav.aberto {
    transform: translateY(0);
    visibility: visible;
  }

  .nav__link {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(251, 246, 236, 0.18);
    font-size: 18px;
  }
  .nav__cta {
    margin-top: 18px;
    width: 100%;
  }

  .hero__inner,
  .bistrot,
  .rodape__grade {
    grid-template-columns: 1fr;
  }

  .hero__midia { max-width: 460px; margin-inline: auto; }
  .hero__midia .polaroid img { height: min(96vw, 440px); }
  .hero__selo { height: 84px; top: -26px; right: 0; }

  .bistrot__fotos { max-width: 560px; margin-inline: auto; }

  .eventos__inner { flex-direction: column; align-items: flex-start; }
  .eventos__marca { align-self: center; }
}

/* --- Até 640px: ajustes finos de celular ------------------------------- */
@media (max-width: 640px) {
  body { font-size: 16px; }

  .header__logo img { height: 44px; }

  .hero__eyebrow { font-size: 28px; }
  .hero__lead { font-size: 17px; }

  /* As inclinações decorativas somem para não gerar rolagem lateral */
  .hero__midia .polaroid,
  .bistrot__fotos .polaroid:nth-child(1),
  .bistrot__fotos .polaroid:nth-child(2),
  .bistrot__fotos .polaroid:nth-child(3),
  .prato:nth-child(odd),
  .prato:nth-child(even) {
    transform: rotate(0deg);
  }
  .prato:hover { transform: translateY(-3px); }

  .bistrot__fotos { grid-template-columns: 1fr; }
  .bistrot__fotos .polaroid--retrato { grid-row: auto; }

  .pratos { grid-template-columns: 1fr; gap: 20px; }

  .cartao { padding: 24px 22px; }

  .carrossel__rodape {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 40px 18px 16px;
  }
  .carrossel__seta { width: 40px; height: 40px; }
  .carrossel__seta--anterior { left: 10px; }
  .carrossel__seta--proxima { right: 10px; }

  .rodape__base { flex-direction: column; align-items: flex-start; gap: 6px; }

  .botoes .btn { flex: 1 1 100%; }
}

/* --- Telas largas: um respiro a mais nos pratos ------------------------ */
@media (min-width: 1180px) {
  .pratos { grid-template-columns: repeat(4, 1fr); }
}


/* ================== 11. ANIMAÇÕES E ACESSIBILIDADE ===================== */

/* Entrada suave dos blocos ao entrar na tela. A classe `js` só é
   adicionada pelo main.js, então sem JavaScript tudo já nasce visível. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal.visivel {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* O hero é a primeira coisa que aparece: anima direto, sem depender do JS,
   para não atrasar a maior pintura da página. */
.hero__texto { animation: subir 0.8s ease both; }
.hero__midia { animation: subir 1s ease both; }
.hero__selo { animation: selo 1.1s ease both; }

@keyframes subir {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes selo {
  0%   { opacity: 0; transform: rotate(-2deg) scale(0.9); }
  100% { opacity: 1; transform: rotate(6deg) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carrossel__trilho { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}
