/* Fontes do PSD: coloque os arquivos em assets/fonts/ (TwinkleBright e Christmas Festive Ornament).
   Enquanto não houver, usa Mountains of Christmas (Google Fonts) como substituta. */
@font-face { font-family: "TwinkleBright"; src: local("TwinkleBright-Regular"), url("../fonts/TwinkleBright-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "ChristmasFestive"; src: local("ChristmasFestiveOrnament-Reg"), url("../fonts/ChristmasFestiveOrnament-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  --vinho: #73080e;
  --vermelho: #9a171b;
  --vermelho-escuro: #8a1a1e;
  --creme: #fff9ef;
  --azul: #0a8cff;
  /* Fontes do PSD: TwinkleBright ("Karazan apresenta" e parágrafo) e
     Christmas Festive Ornament (menu e botões). Rodapé e widget usam --f-ui. */
  --f-titulo: "TwinkleBright", Georgia, serif;
  --f-deco: "ChristmasFestive", Georgia, serif;
  --f-ui: "Work Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--vinho); color: #fff; font-family: var(--f-ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- listras ---------- */
/* Peça de 184x22 que encaixa com ela mesma (3 listras). Tamanho em pixels
   inteiros (117x14) para não aparecer fresta entre as repetições. */
.listras { height: 14px; background: url("../img/listras.png?v=2") repeat-x 0 0 / 117px 14px; position: relative; z-index: 3; }

/* ---------- topo ---------- */
.topo { background: var(--vinho); position: sticky; top: 0; z-index: 10; }
.topo__inner { max-width: 1200px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topo__logo img { width: clamp(84px, 12vw, 136px); }
.topo__nav { display: flex; gap: clamp(14px, 4vw, 56px); font-family: var(--f-deco); font-weight: 400; font-size: clamp(15px, 2.6vw, 22px); }
.topo__nav a { transition: color .2s; }
.topo__nav a:hover { color: #ffd98a; }
.topo__burger { display: none; }

@media (max-width: 767px) {
  .topo__inner { padding: 14px 16px; }
  .topo__burger { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; background: none; border: 0; padding: 0; cursor: pointer; }
  .topo__burger span { display: block; width: 26px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s; }
  .menu-aberto .topo__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-aberto .topo__burger span:nth-child(2) { opacity: 0; }
  .menu-aberto .topo__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .topo__nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--vinho); font-size: 22px; text-align: center; box-shadow: 0 12px 24px rgba(0,0,0,.3); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .topo__nav a { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); }
  .menu-aberto .topo__nav { visibility: visible; opacity: 1; transform: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: #141a3b; aspect-ratio: 1080 / 1698; max-height: 1100px; min-height: 560px; width: 100%; }
.hero__fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero__conteudo { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding-top: 11.3%; }
.hero__pre { margin: 0; font-family: var(--f-titulo); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(23px, 4.2vw, 44px); text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero__logo { margin: .4em 0 0; width: 56%; max-width: 560px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); animation: flutua 6s ease-in-out infinite; }
@keyframes flutua { 50% { transform: translateY(-8px); } }

.botao-neve { position: relative; display: grid; place-items: center; width: 43%; max-width: 420px; aspect-ratio: 465 / 110; margin-top: 2%; background: linear-gradient(#a31a10, #7f0f06); border: 0; border-radius: 999px; box-shadow: inset 0 0 0 2px #c98a3a, 0 8px 24px rgba(0,0,0,.35); transition: transform .2s; }
.botao-neve span { font-family: var(--f-deco); font-weight: 400; font-size: clamp(18px, 4.6vw, 42px); white-space: nowrap; letter-spacing: .02em; color: #fff6dc; position: relative; z-index: 2; top: 8%; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
/* Medidas exatas do PSD: botão 465x110 em (307,960); neve 560x219 em (265,899) */
.botao-neve__neve { position: absolute; left: -9.032%; top: -55.455%; width: 120.43%; height: 199.09%; max-width: none; pointer-events: none; }
.botao-neve:hover { transform: translateY(-3px); }

.hero__personagens { position: absolute; z-index: 2; bottom: 0; left: -12.7%; width: 89%; max-width: none; }

@media (min-width: 900px) {
  /* Desktop: foto horizontal 16:9 (castelo à direita, céu à esquerda).
     Título e botão ficam na coluna do céu; personagens na base. */
  .hero { aspect-ratio: 16 / 9; height: auto; min-height: 600px; max-height: calc(100vh - 80px); max-height: calc(100svh - 80px); }
  .hero__fundo { object-position: 70% 60%; }
  .hero__conteudo { position: absolute; left: 3%; top: 6%; width: 36%; padding-top: 0; }
  .hero__pre { font-size: clamp(24px, 2.4vw, 42px); }
  .hero__logo { width: 64%; max-width: 520px; }
  .botao-neve { width: 56%; max-width: 320px; margin-top: 5%; }
  .botao-neve span { font-size: clamp(17px, 1.7vw, 28px); }
  .hero__conteudo { z-index: 3; }
  .hero__personagens { left: 22%; width: auto; height: 72%; }
}

/* ---------- seção vermelha ---------- */
.vermelho { background: radial-gradient(ellipse at 50% 40%, #a8191c 0%, var(--vermelho) 45%, var(--vermelho-escuro) 100%); padding: clamp(48px, 9vw, 120px) 20px clamp(56px, 8vw, 110px); }
.sobre { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6%; }
.selos { position: relative; aspect-ratio: 450 / 400; }
.selo { position: absolute; opacity: .9; }
.selo--noel { left: 0; top: 0; width: 56%; }
.selo--bussola { left: 56%; top: 30%; width: 41%; }
.selo--carimbo { left: 16%; top: 74%; width: 84%; }
.sobre__texto { margin: 0; font-family: var(--f-titulo); text-transform: uppercase; font-size: clamp(21px, 3.3vw, 34px); line-height: 1.22; letter-spacing: .02em; }

@media (max-width: 560px) {
  .sobre { grid-template-columns: 1fr; gap: 28px; }
  .selos { width: 70%; margin: 0 auto; }
  .sobre__texto { text-align: center; }
}

/* ---------- motor de reservas da Planne ---------- */
.compra { margin-top: clamp(60px, 10vw, 130px); display: flex; justify-content: center; scroll-margin-top: 90px; }
/* O widget tem tema claro próprio: um painel creme, como no layout. */
.reservas { scroll-margin-top: 90px; width: 100%; max-width: 820px; background: var(--creme); color: #1b1030; border-radius: 24px; padding: clamp(12px, 2.6vw, 28px); box-shadow: 0 20px 50px rgba(0,0,0,.25); text-align: start; }
.reservas__aviso { margin: 0; padding: 32px 20px; border: 1px dashed #d9cdb8; border-radius: 16px; text-align: center; color: #555; font-size: 15px; }
.reservas__aviso a { color: var(--vermelho); font-weight: 600; text-decoration: underline; }

/* No celular o widget prende no rodapé da janela uma faixa "A partir de… /
   Adicionar ao carrinho". Escondida (igual ao site do Halloween) para não tapar
   a página; o motor de reservas mantém data, tarifa, horário e botão. */
/* Botão principal do widget ("Adicionar ao carrinho") na fonte do site.
   data-cy é o atributo estável do widget (as classes sc-* mudam a cada build). */
.reservas button[data-cy="productAdderNextStepButton"] { font-family: var(--f-deco) !important; font-weight: 400 !important; font-size: 20px !important; letter-spacing: .02em; }

@media (max-width: 63.99em) {
  [data-testid="product-adder-summary"] { display: none !important; }
}

/* Carrinho flutuante — o script da Planne escreve estilo inline, daí os !important */
.planne-carrinho-fixo {
  position: fixed !important; bottom: 20px !important; right: 20px !important; z-index: 9999 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 56px !important; height: 56px !important; border: 2px solid #fff !important; border-radius: 50% !important;
  background-color: var(--vermelho) !important; color: #fff !important; cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.35) !important; transition: transform .2s !important;
}
.planne-carrinho-fixo:hover { transform: translateY(-2px) !important; }
/* WhatsApp flutuante — espelha o carrinho (mesmo tamanho, altura e borda),
   do lado esquerdo para não disputar o canto com ele. */
.whats-fixo { position: fixed; bottom: 20px; left: 20px; z-index: 9998; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 2px solid #fff; border-radius: 50%; background-color: #25d366; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35); transition: transform .2s; }
.whats-fixo svg { width: 55%; height: 55%; }
.whats-fixo:hover, .whats-fixo:focus-visible { transform: translateY(-2px); }
@media (min-width: 64em) { .whats-fixo { bottom: 24px; left: 24px; width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .whats-fixo { transition: none; } }

@media (min-width: 64em) {
  .planne-carrinho-fixo { bottom: 24px !important; right: 24px !important; width: 60px !important; height: 60px !important; }
}

/* ---------- rodapé ---------- */
.rodape { background: var(--vinho); padding: 40px 20px 18px; font-family: var(--f-ui); font-weight: 400; font-size: 14px; }
.rodape__inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 28px; }
.rodape__col address { font-style: normal; margin-top: 18px; line-height: 1.5; }
.rodape__col p { margin: 0 0 10px; }
.rodape__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rodape a:hover { color: #ffd98a; }
.rodape__insta { display: inline-flex; align-items: center; gap: 8px; }
.rodape__copy { text-align: center; margin: 36px 0 0; font-size: 14px; }
/* espaço para os botões flutuantes (WhatsApp e carrinho) não cobrirem o texto */
.rodape { padding-bottom: 96px; }
@media (max-width: 640px) {
  .rodape { padding: 22px 16px 88px; font-size: 12.5px; }
  .rodape .rodape__links { display: none; }
  .rodape__inner { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .rodape__col img { margin: 0 auto; width: 96px; }
  .rodape__col address { margin-top: 8px; line-height: 1.4; opacity: .9; }
  .rodape__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
  .rodape__col p { display: none; }
  .rodape__insta { justify-content: center; }
  .rodape__copy { margin-top: 16px; font-size: 11px; opacity: .75; }
}
