/* Pizza Arte Oficial: estilos do site */
:root {
  color-scheme: dark;
  --ink: #0d0907;
  --cream: #f4ead8;
  --cream-dim: rgba(244, 234, 216, .72);
  --red: #c8231f;
  --red-hot: #e63a26;
  --ember: #f2a541;
  --wa: #25d366;
  --gutter: clamp(16px, 4vw, 56px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left));
  --pad-r: max(var(--gutter), env(safe-area-inset-right));
  --mx: 0; --my: 0;      /* mouse, -1..1 */
  --scroll: 0;           /* 0..1 ao longo da header */
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--ink); color: var(--cream); font-family: Inter, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }

.hero__media {
  position: absolute; inset: -4%;
  transform:
    translate3d(calc(var(--mx) * -14px), calc(var(--my) * -10px + var(--scroll) * 12vh), 0)
    scale(calc(1.06 + var(--scroll) * .08));
  filter: brightness(calc(1 - var(--scroll) * .55)) blur(calc(var(--scroll) * 6px));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: transform, filter;
}
.hero__ambient { display: none; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__media img { position: absolute; inset: 0; }
.hero__media video { position: relative; opacity: 0; transition: opacity .8s ease; }
.hero__media video.is-playing { opacity: 1; }

/* computador (e celular deitado): vídeo deitado 16:9 em tela cheia (object-fit: cover, acima) */

/* leitura do texto: escurece embaixo/esquerda, mantém o fogo vivo no resto */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13,9,7,.55) 0%, rgba(13,9,7,0) 22%),
    linear-gradient(0deg, rgba(13,9,7,.92) 0%, rgba(13,9,7,.35) 45%, rgba(13,9,7,0) 70%),
    radial-gradient(120% 90% at 0% 100%, rgba(13,9,7,.55), transparent 60%);
}

/* brilho que segue o mouse, como brasa */
.hero__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(420px 320px at calc(50% + var(--mx) * 40%) calc(50% + var(--my) * 40%), rgba(242,165,65,.16), transparent 70%);
  transition: background-position .3s;
}

.nav {
  position: absolute; z-index: 3; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) var(--pad-r) 22px var(--pad-l);
}
.brand { font-family: Fraunces, serif; font-weight: 700; font-size: 22px; letter-spacing: .01em; color: var(--cream); text-decoration: none; }
.brand span { color: var(--red-hot); font-style: italic; font-weight: 500; }
.nav ul { display: flex; gap: 28px; list-style: none; padding: 0; }
.nav a { color: var(--cream-dim); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.nav .nav__cta { color: var(--cream); border: 1px solid rgba(244,234,216,.35); padding: 9px 16px; border-radius: 999px; }
.nav .nav__menu-btn { display: none; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer; flex: none;
  display: inline-grid; place-items: center;
  background: rgba(13,9,7,.42); color: var(--cream);
  border: 1px solid rgba(244,234,216,.26);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.icon-btn svg { width: 20px; height: 20px; }

.hero__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 0 var(--pad-r) clamp(40px, 9vh, 96px) var(--pad-l);
  max-width: 1100px;
  transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 4px - var(--scroll) * 8vh), 0);
  opacity: calc(1 - var(--scroll) * 1.6);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(13,9,7,.45); border: 1px solid rgba(242,165,65,.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--cream);
}
.badge b { color: var(--ember); font-weight: 600; }
.badge svg { width: 18px; height: 18px; color: var(--ember); flex: none; }

h1 {
  margin-top: 10px;
  font-family: Fraunces, serif; font-weight: 700;
  font-size: clamp(48px, 9.5vw, 136px); line-height: .9; letter-spacing: -.02em;
  text-wrap: balance;
}
h1 em { font-style: italic; font-weight: 500; color: var(--red-hot); }
.lede { margin-top: 18px; max-width: 520px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: var(--cream-dim); text-wrap: pretty; }

.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(200,35,31,.8); }
.btn--ghost { color: var(--cream); background: transparent; border: 1px solid rgba(244,234,216,.35); font-family: inherit; cursor: pointer; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }

/* hover só em quem tem mouse: no toque o estado "grudava" depois do toque */
@media (hover: hover) {
  .nav a:hover { color: var(--cream); }
  .nav .nav__cta:hover { border-color: var(--cream); }
  .btn--primary:hover { background: var(--red-hot); transform: translateY(-2px); }
  .btn--ghost:hover { border-color: var(--cream); }
  .icon-btn:hover, .hero__pause:hover { border-color: rgba(244,234,216,.6); }
}

/* pausar/retomar o vídeo (WCAG 2.2.2) com anel mostrando o progresso do loop */
.hero__pause {
  position: absolute; z-index: 3; right: var(--pad-r); bottom: clamp(28px, 6vh, 56px);
  width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(13,9,7,.45); color: var(--cream);
  border: 1px solid rgba(244,234,216,.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero__pause .ring-wrap { position: absolute; inset: -1px; width: 44px; height: 44px; transform: rotate(-90deg); }
.hero__pause .ring-track { fill: none; stroke: rgba(244,234,216,.16); stroke-width: 2; }
.hero__pause .ring { fill: none; stroke: var(--cream); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; }
.hero__pause .ico { width: 16px; height: 16px; fill: currentColor; }
.hero__pause[data-state="playing"] .ico--play,
.hero__pause[data-state="paused"] .ico--pause { display: none; }

.scroll-cue {
  position: absolute; z-index: 2; right: calc(var(--pad-r) + 16px); bottom: calc(clamp(28px, 6vh, 56px) + 64px);
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim);
  display: flex; align-items: center; gap: 12px;
}
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--cream-dim), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* entrada do texto em cascata */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero__content > :nth-child(2) { animation-delay: .07s; }
  .hero__content > :nth-child(3) { animation-delay: .14s; }
  .hero__content > :nth-child(4) { animation-delay: .21s; }
  .hero__content > :nth-child(5) { animation-delay: .28s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* barra fixa de ação (celular), aparece depois que o CTA da header sai da tela */
.cta-bar { display: none; }
.wa-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: rgba(37,211,102,.12); color: var(--wa);
  border: 1px solid rgba(37,211,102,.45);
}
.wa-btn svg { width: 22px; height: 22px; }

/* menu do celular */
.menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) var(--pad-r) calc(24px + env(safe-area-inset-bottom)) var(--pad-l);
  background: rgba(13,9,7,.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.menu__links { list-style: none; padding: 0; margin-top: 20px; }
.menu__links li { border-bottom: 1px solid rgba(244,234,216,.12); }
.menu__links a {
  display: flex; align-items: baseline; gap: 14px; padding: 18px 0;
  color: var(--cream); text-decoration: none;
  font-family: Fraunces, serif; font-size: 32px; font-weight: 500; letter-spacing: -.01em;
}
.menu__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 24px; }
.menu__ig { justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 12px; color: var(--cream-dim); font-size: 14px; text-decoration: none; }
.menu__ig svg { width: 18px; height: 18px; }


/* ===== retrato (celular e tablet em pé): vídeo 4:5 no topo, inteiro; texto logo abaixo ===== */
@media (orientation: portrait) and (max-width: 1180px) {
  .hero { --mh: min(125vw, 66svh); height: auto; min-height: 100svh; }
  .hero__media {
    inset: 0 0 auto 0;
    height: var(--mh);
    transform: translate3d(0, calc(var(--scroll) * 8vh), 0) scale(calc(1 + var(--scroll) * .06));
    /* esmaecimento curto e com curva suave (ease-out) só na borda de baixo */
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 80%, rgba(0,0,0,.78) 87%, rgba(0,0,0,.42) 93%, rgba(0,0,0,.14) 97.5%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0, #000 80%, rgba(0,0,0,.78) 87%, rgba(0,0,0,.42) 93%, rgba(0,0,0,.14) 97.5%, transparent 100%);
  }
  /* luz ambiente: o quadro atual do vídeo, bem desfocado, "vaza" as cores da cena para baixo */
  .hero__ambient {
    display: block; position: absolute; z-index: 0; pointer-events: none;
    left: -12%; width: 124%; top: 0; height: calc(var(--mh) + 200px);
    filter: blur(34px) saturate(1.4) brightness(.72);
    opacity: .95;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 58%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.18) 91%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0, #000 58%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.18) 91%, transparent 100%);
    transform: translate3d(0, calc(var(--scroll) * 8vh), 0);
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
  }
  .hero::after { background: linear-gradient(180deg, rgba(13,9,7,.55) 0%, rgba(13,9,7,0) 16%); }
  .hero__glow, .scroll-cue { display: none; }
  .hero__content {
    position: relative; bottom: auto;
    margin-top: calc(var(--mh) - 48px);
    padding-bottom: 24px;
  }
  .hero__content h1, .hero__content .lede { text-shadow: 0 1px 18px rgba(13,9,7,.55); }
  .hero__content .lede { margin-top: 12px; font-size: 15px; }
  .hero__content .actions { margin-top: 20px; gap: 10px; }
  .hero__pause { top: calc(var(--mh) - 116px); bottom: auto; }
}
/* tablet em pé: o vídeo 4:5 fica centralizado e a luz ambiente preenche as laterais */
@media (orientation: portrait) and (min-width: 768px) and (max-width: 1180px) {
  .hero__media {
    margin-inline: auto; width: calc(var(--mh) * .8);
    -webkit-mask-image:
      linear-gradient(180deg, #000 0, #000 80%, rgba(0,0,0,.78) 87%, rgba(0,0,0,.42) 93%, rgba(0,0,0,.14) 97.5%, transparent 100%),
      linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(180deg, #000 0, #000 80%, rgba(0,0,0,.78) 87%, rgba(0,0,0,.42) 93%, rgba(0,0,0,.14) 97.5%, transparent 100%),
      linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-composite: intersect;
  }
}

/* ===== celular ===== */
@media (max-width: 767px) {
  /* vídeo mais alto no celular: o texto e o botão descem, mais cena aparece */
  .hero { --mh: min(140vw, 72svh); }
  .nav ul { display: none; }
  .nav .nav__menu-btn { display: inline-grid; }
  .actions .btn { flex: 1 1 auto; }
  .badge { font-size: 12px; white-space: nowrap; }

  .cta-bar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 18px var(--pad-r) calc(12px + env(safe-area-inset-bottom)) var(--pad-l);
    background: linear-gradient(180deg, rgba(13,9,7,0), rgba(13,9,7,.88) 40%);
    transform: translateY(110%); opacity: 0; visibility: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s ease, visibility 0s linear .35s;
  }
  .cta-bar.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .cta-bar .btn { flex: 1 1 auto; min-width: 0; padding-inline: 14px; font-size: 14px; white-space: nowrap; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* celulares bem estreitos: o selo pode quebrar linha */
@media (max-width: 359px) {
  .badge { white-space: normal; }
  .cta-bar .icon-btn { display: none; } /* o menu continua no topo; o CTA precisa da largura */
}
/* celulares baixos: menos texto */
@media (max-width: 767px) and (max-height: 720px) {
  .lede, .btn--ghost { display: none; }
  h1 { font-size: 44px; margin-top: 14px; }
  .actions { margin-top: 18px; }
}

/* ===== celular deitado: tudo cabe na altura da tela ===== */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 0; height: 100svh; }
  .nav { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
  .hero__content { padding-bottom: 18px; }
  .lede, .scroll-cue { display: none; }
  h1 { font-size: clamp(30px, 12svh, 52px); margin-top: 10px; }
  .badge { font-size: 12px; padding-top: 6px; padding-bottom: 6px; }
  .actions { margin-top: 14px; }
  .btn { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  .actions .btn { flex: 0 0 auto; }
  .hero__pause { bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media, .hero__content, .hero__ambient { transition: none; transform: none; }
  .scroll-cue::after { animation: none; }
  .menu, .cta-bar { transition: none; }
}

/* =====================================================================
   Corpo da página (mobile-first): evento, cardápio, agenda
   ===================================================================== */
:root {
  --oven: #1a120d;
  --line: rgba(244, 234, 216, .14);
  --free: #6fcf8e;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: 16px; line-height: 1.55; }

.sec { padding: clamp(80px, 13vw, 144px) 0; }
.sec--oven { background: var(--oven); }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--pad-l) var(--pad-r); }
.sec__title {
  font-family: Fraunces, serif; font-weight: 700;
  font-size: clamp(36px, 7vw, 72px); line-height: .98; letter-spacing: -.025em;
  max-width: 14ch; text-wrap: balance;
}
.sec__lede { margin-top: 18px; max-width: 46ch; font-size: clamp(16px, 1.7vw, 19px); color: var(--cream-dim); text-wrap: pretty; }

/* ----- O evento ----- */
/* frase única que "acende" palavra por palavra com a rolagem (opacidade definida no motion.js) */
.evt__statement {
  max-width: 20ch; text-wrap: balance;
  font-family: Fraunces, serif; font-weight: 700;
  font-size: clamp(32px, 5.6vw, 68px); line-height: 1.06; letter-spacing: -.025em;
}
.evt__statement .word { transition: opacity .25s linear; }

/* linha do tempo em fotos: no celular, carrossel com encaixe e barra de progresso */
.reel {
  list-style: none; margin: clamp(40px, 7vw, 72px) 0 0; padding: 0 var(--pad-r) 0 var(--pad-l);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-l); scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }
.reel__frame { scroll-snap-align: start; transition: opacity .35s ease; }
.reel.is-tracking .reel__frame:not(.is-active) { opacity: .45; }
.reel__photo { position: relative; border-radius: 8px; overflow: hidden; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.reel__photo img, .reel__photo video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--oven); }

/* botão de pausa dos vídeos curtos (linha do tempo do evento e página do Fausto) */
.vid-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(13,9,7,.5); color: var(--cream); border: 1px solid rgba(244,234,216,.28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* área de toque maior que o desenho */
.vid-btn::before { content: ""; position: absolute; inset: -4px; }
.vid-btn svg { width: 16px; height: 16px; fill: currentColor; }
.vid-btn .vid-btn__play { display: none; }
.vid-btn[data-state="paused"] .vid-btn__play { display: block; }
.vid-btn[data-state="paused"] .vid-btn__pause { display: none; }
/* brilho que segue o mouse ao inclinar a foto */
.reel__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 30%), rgba(255,236,200,.22), transparent 60%);
}
.reel__photo.is-tilt { transition: transform .12s linear; }
.reel__photo.is-tilt::after { opacity: 1; }
.reel__frame p { margin-top: 14px; font-size: 15px; color: var(--cream-dim); }
.reel__frame time { display: block; margin-bottom: 4px; font-family: Fraunces, serif; font-size: 22px; font-weight: 600; color: var(--cream); }
.reel__progress { position: relative; height: 2px; margin-top: 22px; border-radius: 2px; background: var(--line); overflow: hidden; }
.reel__progress span { position: absolute; inset: 0 auto 0 0; width: 25%; border-radius: 2px; background: var(--ember); }

/* números que contam ao aparecer */
.facts { margin-top: clamp(48px, 8vw, 88px); display: grid; gap: 28px; }
/* "Tudo por nossa conta": contraste do serviço (itens entram um a um; o sublinhado se desenha — classe .is-in posta pelo motion.js) */
.deal { padding-bottom: clamp(8px, 2vw, 24px); }
.deal__big {
  font-family: Fraunces, serif; font-weight: 700;
  font-size: clamp(46px, 10vw, 128px); line-height: .9; letter-spacing: -.035em; text-wrap: balance;
}
.deal__items { list-style: none; padding: 0; margin-top: clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 10px; }
.deal__items li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  border: 1px solid rgba(242,165,65,.45); background: rgba(242,165,65,.08);
  font-size: clamp(14px, 1.5vw, 17px); font-weight: 500;
}
.deal__items li::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a541' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.deal__you {
  margin-top: clamp(28px, 4vw, 44px); display: flex; align-items: center; gap: 16px;
  font-family: Fraunces, serif; font-weight: 600; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.15;
}
.deal__icon { display: grid; place-items: center; flex: none; width: clamp(48px, 5vw, 60px); height: clamp(48px, 5vw, 60px); border-radius: 50%; background: var(--red); color: #fff; }
.deal__icon svg { width: 55%; height: 55%; }
.deal__you mark {
  color: var(--cream); background: linear-gradient(var(--ember), var(--ember)) 0 92% / 100% .14em no-repeat;
  padding-bottom: .04em;
}
.deal__note { margin-top: 12px; padding-left: calc(clamp(48px, 5vw, 60px) + 16px); font-size: 14px; color: var(--cream-dim); }

@media (prefers-reduced-motion: no-preference) {
  .js-motion .deal__items li { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.75,.2,1); transition-delay: calc(var(--i) * 90ms + 150ms); }
  .js-motion .deal.is-in .deal__items li { opacity: 1; transform: none; }
  .js-motion .deal__you mark { background-size: 0% .14em; transition: background-size .9s cubic-bezier(.6,0,.2,1) .8s; }
  .js-motion .deal.is-in .deal__you mark { background-size: 100% .14em; }
}
/* ----- condições da reserva: link discreto + folha (celular) ou caixa central (computador) ----- */
.terms-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--cream-dim); font: 500 14px Inter, sans-serif;
  text-decoration: underline 1px rgba(244,234,216,.35); text-underline-offset: 5px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.terms-link svg { flex: none; width: 18px; height: 18px; }
@media (hover: hover) { .terms-link:hover { color: var(--cream); text-decoration-color: var(--ember); } }
.facts > .terms-link { justify-self: start; margin-top: -12px; }
.form > .terms-link { justify-self: center; margin-top: -6px; }

.sheet {
  width: min(560px, calc(100vw - 32px)); max-width: none; max-height: min(86svh, 720px);
  margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 20px;
  background: var(--oven); color: var(--cream); box-shadow: 0 40px 100px rgba(0,0,0,.6);
  overflow: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(5,3,2,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet__head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 20px 12px 24px; background: var(--oven);
}
.sheet__grip { display: none; }
.sheet__title { font-family: Fraunces, serif; font-weight: 700; font-size: clamp(24px, 3vw, 30px); line-height: 1.1; letter-spacing: -.015em; }
.sheet__close { flex: none; }
.sheet__foot { padding: 4px 24px 24px; }

/* linha do tempo das condições: um ponto por momento, ligado ao próximo */
.terms { list-style: none; margin: 0; padding: 8px 24px 12px; }
.terms li { position: relative; padding: 0 0 22px 30px; }
.terms li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--ember); box-shadow: 0 0 0 4px rgba(242,165,65,.16);
}
.terms li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 22px; bottom: 2px; width: 1px; background: rgba(242,165,65,.35); }
.terms__when { font-family: Fraunces, serif; font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--ember); }
.terms p { margin-top: 4px; max-width: 46ch; font-size: 15px; line-height: 1.55; color: var(--cream-dim); text-wrap: pretty; }

@media (prefers-reduced-motion: no-preference) {
  .sheet[open] { animation: sheet-pop .32s cubic-bezier(.2,.7,.2,1); }
  .sheet[open]::backdrop { animation: sheet-fade .3s ease; }
}
@keyframes sheet-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes sheet-fade { from { opacity: 0; } }

/* celular: folha presa ao rodapé, com alça para arrastar e fechar */
@media (max-width: 767px) {
  .sheet {
    width: 100%; max-height: 88svh; margin: auto 0 0;
    border-width: 1px 0 0; border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform .25s cubic-bezier(.2,.7,.2,1);
  }
  .sheet.is-dragging { transition: none; }
  .sheet__head { padding-top: 26px; touch-action: none; }
  .sheet__grip { display: block; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(244,234,216,.3); }
  .sheet__close { display: none; }
  html:has(.sheet[open]) { overflow: hidden; }
  @media (prefers-reduced-motion: no-preference) {
    .sheet[open] { animation-name: sheet-up; }
  }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (min-width: 768px) { .sheet__foot { display: none; } }

.facts__list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.facts__list li { padding-top: 14px; border-top: 1px solid var(--line); }
.fact__num { display: flex; align-items: baseline; gap: 4px; font-family: Fraunces, serif; font-weight: 700; font-size: clamp(40px, 5vw, 56px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fact__num small { font-size: .42em; font-weight: 600; letter-spacing: 0; color: var(--ember); }
.fact__txt { display: block; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--cream-dim); }

/* cabeçalho flutuante: só no desktop, aparece ao rolar para cima depois da header */
.topbar { display: none; }
@media (min-width: 768px) {
  .topbar {
    display: block; position: fixed; z-index: 45; top: 0; left: 0; right: 0;
    background: rgba(13,9,7,.82); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    transform: translateY(-105%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .topbar.is-visible { transform: none; }
  .topbar__inner { max-width: 1180px; margin-inline: auto; padding: 10px var(--pad-r) 10px var(--pad-l); display: flex; align-items: center; gap: 32px; }
  .topbar .brand { font-size: 20px; }
  .topbar__nav { display: flex; gap: 24px; margin-left: auto; }
  .topbar__nav a { color: var(--cream-dim); text-decoration: none; font-size: 14px; font-weight: 500; }
  .topbar__cta.btn { min-height: 40px; padding: 8px 18px; font-size: 14px; box-shadow: none; }
}
@media (min-width: 768px) and (hover: hover) { .topbar__nav a:hover { color: var(--cream); } }
@media (prefers-reduced-motion: reduce) {
  .topbar, .reel__photo, .reel__frame { transition: none; }
}


/* ----- Quem faz: título, parceiros, stories e galeria ----- */
.who + .sec { border-top: 1px solid var(--line); }
/* apresentação curta do Fausto: foto redonda, nome, uma frase e o link para a página dele */
.who__intro {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px);
  padding-bottom: clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line);
}
.who__photo { flex: none; display: block; width: clamp(84px, 10vw, 120px); height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.who__name { font-family: Fraunces, serif; font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
.who__meta { margin-top: 6px; max-width: 48ch; font-size: 15px; line-height: 1.5; color: var(--cream-dim); text-wrap: pretty; }
.who__link {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 2px;
  color: var(--cream); font-size: 15px; font-weight: 600;
  text-decoration: underline 2px var(--ember); text-underline-offset: 6px;
}
@media (hover: hover) { .who__link:hover { color: var(--ember); } }

.stories {
  list-style: none; display: flex; gap: 14px; margin: clamp(36px, 6vw, 56px) calc(var(--pad-r) * -1) 0 calc(var(--pad-l) * -1);
  padding: 4px var(--pad-r) 8px var(--pad-l); overflow-x: auto; scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 84px; padding: 0; border: 0; background: none; color: var(--cream); cursor: pointer; display: grid; justify-items: center; gap: 8px; font: 500 13px Inter, sans-serif; }
.story__ring {
  display: block; width: 76px; height: 76px; padding: 3px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--red-hot), var(--ember), var(--red-hot));
  transition: transform .25s ease;
}
.story__ring img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); }
.story:focus-visible { outline: none; }
.story:focus-visible .story__ring { outline: 2px solid var(--ember); outline-offset: 3px; }
@media (hover: hover) { .story:hover .story__ring { transform: scale(1.05); } }

.gallery {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px); gap: 10px;
  margin: 28px calc(var(--pad-r) * -1) 0 calc(var(--pad-l) * -1); padding: 0 var(--pad-r) 4px var(--pad-l);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-l); scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: start; }
.gallery__item { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

/* visualizador em tela cheia: stories (9:16) e fotos (4:5) */
.viewer {
  --sw: min(100vw, calc(100svh * 9 / 16));
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #050302; color: var(--cream); overflow: hidden;
}
.viewer.is-photo { --sw: min(100vw, calc(100svh * .8)); }
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgba(5,3,2,.92); }
.viewer__stage { position: relative; width: var(--sw); height: min(100svh, calc(var(--sw) * 16 / 9)); }
.viewer.is-photo .viewer__stage { height: min(100svh, calc(var(--sw) * 1.25)); }
.viewer__stage::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 130px; background: linear-gradient(rgba(0,0,0,.5), transparent); pointer-events: none; }
.viewer__video, .viewer__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.viewer__video[hidden], .viewer__img[hidden] { display: none; }
.viewer__zone { position: absolute; z-index: 1; top: 0; bottom: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.viewer__zone--prev { left: 0; width: 34%; }
.viewer__zone--next { right: 0; width: 66%; }
.viewer__zone:focus-visible { outline: 2px solid var(--ember); outline-offset: -6px; }
.viewer__bars, .viewer__top, .viewer__caption { position: absolute; z-index: 2; left: calc((100vw - var(--sw)) / 2 + 12px); width: calc(var(--sw) - 24px); }
.viewer__bars { top: max(10px, env(safe-area-inset-top)); display: flex; gap: 4px; pointer-events: none; }
.viewer__bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.viewer__bar i { display: block; width: 0; height: 100%; background: #fff; }
.viewer__top { top: calc(max(10px, env(safe-area-inset-top)) + 12px); display: flex; align-items: center; gap: 8px; }
.viewer__title { flex: 1; font-size: 15px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.viewer .icon-btn { background: rgba(0,0,0,.35); }
.viewer__pause .ico-play, .viewer.is-paused .viewer__pause .ico-pause { display: none; }
.viewer.is-paused .viewer__pause .ico-play { display: block; }
.viewer.is-photo .viewer__pause { display: none; }
@media (max-width: 767px) {
  /* celular: o story ocupa a tela inteira (o vídeo corta um pouco das laterais em telas mais altas que 9:16) */
  .viewer:not(.is-photo) { --sw: 100vw; }
  .viewer:not(.is-photo) .viewer__stage { height: 100svh; }
}
.viewer__caption { bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); text-align: center; font-size: 15px; text-shadow: 0 1px 10px rgba(0,0,0,.8); pointer-events: none; }

@media (min-width: 960px) {
  .stories { margin-inline: 0; padding-inline: 0; gap: 20px; }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 12px; /* 6 fotos: 2 linhas cheias */ margin-inline: 0; padding: 0; overflow: visible; }
}

/* ----- Agenda ----- */
.booking { margin-top: clamp(36px, 6vw, 56px); display: grid; gap: 16px; align-items: start; }
.cal, .form { padding: clamp(18px, 3.5vw, 28px); border-radius: 16px; background: var(--oven); border: 1px solid var(--line); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal__title { font-family: Fraunces, serif; font-size: 24px; font-weight: 600; }
.cal__nav { display: flex; gap: 8px; }
.cal__nav .icon-btn:disabled { opacity: .3; cursor: default; }
.cal__grid { margin-top: 18px; display: grid; gap: 4px; }
.cal__row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd { padding-bottom: 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--cream-dim); }
.cal__cell { aspect-ratio: 1; min-height: 40px; }
.cal__day {
  width: 100%; height: 100%; padding: 0; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; position: relative;
  font: 500 16px Inter, sans-serif; font-variant-numeric: tabular-nums;
  color: var(--cream); background: rgba(244,234,216,.06); border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.cal__day::after { content: ""; position: absolute; bottom: 14%; width: 4px; height: 4px; border-radius: 50%; background: var(--free); }
@media (hover: hover) { .cal__day:not([aria-disabled="true"]):hover { border-color: rgba(244,234,216,.45); } }
.cal__day[aria-selected="true"] { background: var(--red); border-color: var(--red-hot); color: #fff; }
.cal__day[aria-selected="true"]::after { background: #fff; }
.cal__day[aria-disabled="true"] { cursor: not-allowed; background: transparent; color: rgba(244,234,216,.28); }
.cal__day[aria-disabled="true"]::after { display: none; }
.cal__day.is-busy { color: rgba(244,234,216,.4); text-decoration: line-through; text-decoration-color: var(--red-hot); text-decoration-thickness: 2px; }
/* última vaga: o ponto verde vira um traço laranja (forma diferente, não só cor) */
.cal__day.is-last::after { width: 12px; height: 3px; border-radius: 2px; background: var(--ember); }
.cal__day.is-last[aria-selected="true"]::after { background: #fff; }
.cal__day.is-today { border-color: rgba(242,165,65,.5); }
.cal__status { margin-top: 12px; min-height: 1.4em; font-size: 13px; color: var(--cream-dim); }
.cal__status.is-error { color: var(--ember); }
.cal.is-loading .cal__grid { opacity: .4; }

.form { display: grid; gap: 16px; }
.form__date { font-family: Fraunces, serif; font-size: 22px; font-weight: 600; line-height: 1.25; }
.form__date:not(.is-set) { font-family: Inter, sans-serif; font-size: 15px; font-weight: 500; color: var(--cream-dim); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.field label { font-size: 14px; font-weight: 500; }
.field input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  font: 16px Inter, sans-serif; color: var(--cream); /* 16px evita o zoom automático do iPhone */
  background: rgba(244,234,216,.06); border: 1px solid rgba(244,234,216,.18);
}
.field input::placeholder { color: rgba(244,234,216,.4); }
.field input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(242,165,65,.2); }
.field [aria-invalid="true"] { border-color: var(--red-hot); }
/* local do evento: opções em pílulas (rádio de verdade por baixo, só o visual muda) */
.choice { margin: 0; padding: 0; border: 0; }
.choice legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.choice__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.choice__opts label { position: relative; cursor: pointer; }
.choice__opts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice__opts span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--cream-dim);
  background: rgba(244,234,216,.06); border: 1px solid rgba(244,234,216,.18);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.choice__opts input:checked + span { color: var(--cream); border-color: var(--ember); background: rgba(242,165,65,.14); }
.choice__opts input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242,165,65,.35); }
.choice[aria-invalid="true"] .choice__opts span { border-color: var(--red-hot); }
@media (hover: hover) { .choice__opts label:hover span { color: var(--cream); } }
.form__error { padding: 12px 14px; border-radius: 10px; font-size: 14px; color: #ffd9cf; background: rgba(200,35,31,.18); border: 1px solid rgba(230,58,38,.5); }
.btn--block { width: 100%; }

/* ----- Rodapé ----- */
.footer { padding: 48px var(--pad-r) calc(48px + env(safe-area-inset-bottom)) var(--pad-l); border-top: 1px solid var(--line); }
.footer__inner { max-width: 1180px; margin-inline: auto; display: grid; gap: 20px; }
.footer p { margin-top: 6px; font-size: 14px; color: var(--cream-dim); }
.footer__links { list-style: none; padding: 0; display: grid; gap: 4px; }
.footer__links a { display: inline-block; padding: 8px 0; color: var(--cream); text-decoration: none; font-size: 15px; }
@media (hover: hover) { .footer__links a:hover { color: var(--ember); } }
.footer .footer__copy { margin: 0; font-size: 13px; }

/* ----- telas maiores ----- */
@media (min-width: 700px) {
  .facts__list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .reel { max-width: 1180px; margin-inline: auto; padding-inline: var(--pad-l) var(--pad-r); grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 16px; }
  /* sequência em escada: cada quadro desce um pouco, como uma tira de filme */
  .reel__frame:nth-child(2) { margin-top: 40px; }
  .reel__frame:nth-child(3) { margin-top: 80px; }
  .reel__frame:nth-child(4) { margin-top: 120px; }
  .facts { gap: 56px; }

  /* linha do tempo presa: a seção para e as fotos passam na horizontal com a rolagem (classe posta pelo motion.js) */
  .evt--pinned .evt__pin { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .evt--pinned .reel {
    max-width: none; margin: 0; overflow: visible; will-change: transform;
    padding-inline: max(var(--pad-l), calc((100vw - 1180px) / 2 + var(--pad-l))) max(var(--pad-r), calc((100vw - 1180px) / 2 + var(--pad-r)));
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: clamp(300px, 34vw, 500px); gap: 28px;
  }
  .evt--pinned .reel__frame { margin-top: 0; }
  .evt--pinned .evt__pin > .wrap { width: 100%; }
  .evt--pinned .reel__frame img, .evt--pinned .reel__frame video { max-height: 64svh; }
  .booking { grid-template-columns: 1.2fr .8fr; gap: 20px; }
  .cal__cell { aspect-ratio: auto; height: clamp(48px, 4.6vw, 60px); }
  .form { position: sticky; top: 24px; }
  .footer__inner { grid-template-columns: 1fr auto auto; align-items: end; gap: 40px; }
}

/* =====================================================================
   Cardápio: a pizza escolhida sai pelo canto inferior direito, como no PDF.
   Geometria (d = lado da imagem quadrada, centro da pizza no meio): à vista fica tudo até +v e +vb
   meios-lados à direita e abaixo do centro; o resto sai da tela, e é lá que estão os cortes das fotos.
   Todas as fotos: pizza ocupa 1/1,08 do quadrado, foto vai até pelo menos .269 à direita e inteira
   embaixo (v .24 / vb .55). Banoffe e Dolce Pistachio terminam logo depois do centro, então mostram
   menos à direita (data-v .12 / .1). data-k sobra para uma foto em que a pizza ocupe o quadrado todo.
   ===================================================================== */
.sec.flv { position: relative; overflow: hidden; --d: 146vw; }
.flv__body { margin-top: clamp(28px, 6vw, 56px); display: flex; flex-direction: column; }
.flv__stage { order: 1; }
.flv__tabs { order: 2; }
.flv__panel { order: 3; }

.flv__stage {
  position: relative; overflow: hidden; touch-action: pan-y;
  height: calc(var(--d) * .66);
  margin-inline: calc(var(--pad-l) * -1) calc(var(--pad-r) * -1);
}
.flv__pizza {
  --k: 1; --v: .24; --vb: .55;
  position: absolute; width: calc(var(--d) * var(--k)); height: auto; aspect-ratio: 1;
  right: calc(var(--d) * var(--k) * (var(--v) - 1) / 2); bottom: calc(var(--d) * var(--k) * (var(--vb) - 1) / 2);
  filter: drop-shadow(0 28px 36px rgba(0,0,0,.5));
  user-select: none; -webkit-user-drag: none;
}
/* entra pela diagonal de baixo, girando pouco: assim o lado cortado nunca aparece no caminho */
.flv__pizza.is-waiting { opacity: 0; }
.flv__pizza.is-enter { animation: pizza-in .75s cubic-bezier(.2,.75,.2,1) both; }
.flv__pizza.is-leave { animation: pizza-out .45s cubic-bezier(.5,0,.75,0) both; }
@keyframes pizza-in { from { transform: translate(16%, 14%) rotate(14deg); opacity: 0; } }
@keyframes pizza-out { to { transform: translate(18%, 16%) rotate(10deg); opacity: 0; } }

.flv__info { padding-top: 20px; min-height: 148px; }
.flv__name { font-family: Fraunces, serif; font-weight: 700; font-size: clamp(36px, 9vw, 76px); line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.flv__ing { margin-top: 12px; max-width: 36ch; font-size: 16px; color: var(--cream-dim); text-wrap: pretty; }
.flv__consult { margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--ember); }

/* seletor: no celular, fileira de miniaturas com rolagem lateral */
.flv__tabs {
  display: flex; gap: 4px; margin: 12px calc(var(--pad-r) * -1) 0 calc(var(--pad-l) * -1);
  padding: 6px var(--pad-r) 10px var(--pad-l);
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad-l); scrollbar-width: none;
}
.flv__tabs::-webkit-scrollbar { display: none; }
.flv__group {
  flex: none; align-self: center; padding: 0 6px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 12px; font-weight: 600; color: var(--ember);
}
.flv-tab {
  flex: none; width: 74px; padding: 4px 0; scroll-snap-align: start; cursor: pointer;
  display: grid; justify-items: center; align-content: start; gap: 6px;
  background: none; border: 0; color: var(--cream-dim);
  font: 500 12px/1.2 Inter, sans-serif; text-align: center;
}
.flv-tab img {
  display: block; width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s ease, transform .2s ease;
}
.flv-tab[aria-selected="true"] { color: var(--cream); }
.flv-tab[aria-selected="true"] img { outline-color: var(--cream); }
.flv-tab:focus-visible { outline: none; }
.flv-tab:focus-visible img { outline-color: var(--ember); }

@media (prefers-reduced-motion: reduce) {
  .flv__pizza.is-enter, .flv__pizza.is-leave { animation: none; }
}

/* desktop: nome e ingredientes no alto, miniaturas logo abaixo, pizza grande saindo pelo canto da seção */
@media (min-width: 960px) {
  .sec.flv { --d: clamp(720px, 76vw, 1320px); padding-bottom: 0; min-height: calc(var(--d) * .8); }
  .flv__body { max-width: min(540px, 42vw); min-height: calc(var(--d) * .5); padding-bottom: clamp(64px, 8vw, 112px); }
  .flv__panel { order: 1; }
  .flv__tabs { order: 2; }
  .flv__stage { position: absolute; inset: 0; height: auto; margin: 0; pointer-events: none; }
  /* cabe o maior sabor (nome em duas linhas: "Nutella com Pistache") sem a seção mudar de altura */
  .flv__info { position: relative; z-index: 1; padding-top: 8px; min-height: 200px; }
  .flv__name { font-size: clamp(52px, 5.2vw, 84px); }
  .flv__name, .flv__ing { text-shadow: 0 2px 24px rgba(13,9,7,.7); }
  .flv__tabs { flex-wrap: wrap; overflow: visible; margin: 24px 0 0; padding: 0; gap: 10px 4px; scroll-snap-type: none; }
  .flv__group { flex-basis: 100%; writing-mode: horizontal-tb; transform: none; align-self: auto; padding: 6px 0 0; font-size: 13px; }
  .flv-tab { width: 84px; }
  .flv-tab img { width: 64px; height: 64px; }
}
@media (min-width: 960px) and (hover: hover) {
  .flv-tab:hover { color: var(--cream); }
  .flv-tab:hover img { transform: scale(1.06); }
}

/* celular: dias do calendário com pelo menos 44 px de toque (menos respiro em volta, mesma grade) */
@media (max-width: 767px) {
  .cal { padding: 14px 10px; }
  .cal__head { padding-inline: 6px; }
  .cal__grid, .cal__row { gap: 2px; }
  .cal__cell { min-height: 44px; }
  .cal__status { padding-inline: 6px; }
}

/* área de clique maior no logo e nos links do menu, sem mudar o visual */
.brand { display: inline-block; padding-block: 10px; }
.nav ul a:not(.nav__cta), .topbar__nav a { display: inline-block; padding-block: 12px; }

/* depoimentos: só tipografia, sem cartões; aspas grandes em laranja abrem cada fala */
.quotes { margin-top: clamp(48px, 8vw, 80px); }
.quotes__title { font-family: Fraunces, serif; font-weight: 600; font-size: clamp(22px, 3vw, 30px); }
.quotes__list {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 340px); gap: 28px;
  margin: 20px calc(var(--pad-r) * -1) 0 calc(var(--pad-l) * -1); padding: 0 var(--pad-r) 4px var(--pad-l);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad-l); scrollbar-width: none;
}
.quotes__list::-webkit-scrollbar { display: none; }
.quotes__list li { scroll-snap-align: start; padding-top: 18px; border-top: 1px solid var(--line); }
.quotes__list blockquote { margin: 0; }
.quotes__list blockquote p, .quotes__kind { font-family: Fraunces, serif; font-size: clamp(19px, 2vw, 23px); line-height: 1.35; text-wrap: pretty; }
.quotes__list blockquote p::before, .quotes__kind::before { content: "\201C"; display: block; height: .55em; margin-bottom: 6px; font-size: 2.6em; line-height: 1; font-weight: 700; color: var(--ember); }
.quotes__who { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--cream-dim); }

/* feedback em áudio, no estilo de mensagem de voz */
.voice { margin-top: 14px; }
.voice audio { width: 100%; }
.voice.is-ready {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(244,234,216,.06); border: 1px solid var(--line);
}
.voice__play {
  flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--red); color: #fff; transition: background .15s ease;
}
.voice__play[hidden], .voice__wave[hidden], .voice__time[hidden] { display: none; }
@media (hover: hover) { .voice__play:hover { background: var(--red-hot); } }
.voice__play:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.voice__play .ico { width: 20px; height: 20px; fill: currentColor; }
.voice__play .ico--pause, .voice.is-playing .voice__play .ico--play { display: none; }
.voice.is-playing .voice__play .ico--pause { display: block; }
.voice__wave { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.voice__wave i { flex: 1; min-width: 2px; height: calc(var(--h) * 100%); border-radius: 2px; background: rgba(244,234,216,.28); transition: background .12s linear; }
.voice__wave i.is-on { background: var(--ember); }
.voice__time { flex: none; min-width: 3.4ch; text-align: right; font: 500 13px Inter, sans-serif; font-variant-numeric: tabular-nums; color: var(--cream-dim); }

.footer__copy a { color: inherit; }
@media (min-width: 960px) {
  /* 6 depoimentos (1 em áudio + 5 em texto): 2 colunas, 3 linhas cheias */
  .quotes__list { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-inline: 0; padding: 0; overflow: visible; }
}

/* cardápio no celular/tablet: nome e ingredientes no canto superior esquerdo, ao lado da pizza
   (palco e texto dividem a mesma célula da grade; o palco fica mais alto para abrir espaço em cima) */
@media (max-width: 959px) {
  .flv__body { display: grid; grid-template-areas: "stage" "tabs"; }
  /* altura = parte visível da pizza + uma faixa em cima para o nome não ficar sobre a borda */
  .flv__stage { grid-area: stage; height: calc(var(--d) * .775 + 100px); }
  .flv__panel { grid-area: stage; z-index: 1; align-self: start; max-width: 56%; pointer-events: none; }
  .flv__info { padding-top: 6px; min-height: 0; }
  .flv__name { font-size: clamp(30px, 8.6vw, 54px); }
  .flv__ing { margin-top: 10px; font-size: 14px; line-height: 1.45; }
  .flv__name, .flv__ing, .flv__consult { text-shadow: 0 1px 14px rgba(13,9,7,.95), 0 0 3px rgba(13,9,7,.7); }
  .flv__tabs { grid-area: tabs; }
}
/* tablet: pizza menor para não abrir um vão entre o texto e as miniaturas */
@media (min-width: 600px) and (max-width: 959px) {
  .sec.flv { --d: 108vw; }
}
