/* Don’Ana Pizzaria
   A página é a bandeira, de cima para baixo: verde (hero), branco (cardápio), vermelho (endereço e horário). */

:root {
  --basilico: #0B5D37;
  --verde: #009246;
  --mozzarella: #F5F5F0;
  --pomodoro: #CE2B37;
  --pomodoro-forte: #B01F2B;
  --tinta: #173B28;
  --tinta-suave: rgba(23, 59, 40, 0.74);
  --linha: rgba(23, 59, 40, 0.16);
  --crosta: #F2C14E;

  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --sans: 'Titillium Web', 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --nav-h: 72px;
  --focus: var(--verde);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  /* Grão de parede pintada: dá textura às faixas de cor sem pesar (SVG gerado no navegador). */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0 0 0 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 56px);
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--mozzarella);
  color: var(--tinta);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.skip {
  position: fixed;
  left: 16px; top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--crosta);
  color: var(--tinta);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(1360px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografia ---------- */

.display {
  font-family: var(--serif);
  font-weight: 900;
  font-variation-settings: 'opsz' 96;
  font-size: clamp(60px, 9vw, 140px);
  line-height: .9;
  letter-spacing: -0.02em;
}
.display--md { font-size: clamp(42px, 5.6vw, 84px); line-height: .95; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 16px/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--red { background: var(--pomodoro); color: #fff; }
.btn--red:hover { background: var(--pomodoro-forte); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: var(--mozzarella); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--white { background: var(--mozzarella); color: var(--pomodoro); }
.btn--white:hover { background: #fff; }
.btn--line { border-color: var(--tinta); color: var(--tinta); }
.btn--line:hover { background: var(--tinta); color: var(--mozzarella); }

/* ---------- Navegação ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: var(--gutter);
  color: var(--mozzarella);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.nav[data-tone="dark"] { --focus: var(--crosta); }
.nav[data-tone="light"] {
  background: rgba(245, 245, 240, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--tinta);
  box-shadow: 0 1px 0 var(--linha);
}
.nav[data-tone="red"] { background: var(--pomodoro); --focus: var(--crosta); }
.nav[data-tone="red"] .nav__cta { background: var(--mozzarella); color: var(--pomodoro); }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav__brand img {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.nav__links a:hover { text-decoration-line: underline; }
.nav__cta { min-height: 44px; padding-inline: 20px; }

/* ---------- Hero: a pizza que gira com o scroll ---------- */

.hero {
  --D: min(98svh, 60vw, 980px);
  position: relative;
  height: 300vh;
  height: 300svh;
  background: var(--basilico);
  color: var(--mozzarella);
  --focus: var(--crosta);
}
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  perspective: 1700px;
}
.hero__stage::before,
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .26) 100%),
    var(--grain);
  opacity: .9;
}
.hero__stage::before {
  background:
    radial-gradient(ellipse 50% 60% at 74% 54%, rgba(255, 214, 150, .09), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .3) 100%),
    var(--grain);
}

.hero__copy {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-44%);
  max-width: min(46vw, 640px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.status__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(245, 245, 240, .5);
  flex: none;
}
.status.is-open .status__dot { background: var(--crosta); box-shadow: 0 0 0 4px rgba(242, 193, 78, .22); }

.hero__title {
  margin-top: .14em;
  font-family: var(--serif);
  font-weight: 900;
  font-variation-settings: 'opsz' 96;
  font-size: clamp(76px, 10.4vw, 176px);
  line-height: .86;
  letter-spacing: -0.02em;
}
.hero__place {
  margin-top: 10px;
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 22px);
  color: rgba(245, 245, 240, .82);
}
.hero__lede {
  margin-top: 26px;
  max-width: 17em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 36;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.22;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__line {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  max-width: min(34vw, 520px);
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: 'opsz' 72;
  font-size: clamp(30px, 3.3vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
}

.hero__cue {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 28px;
  font-weight: 600;
  font-size: 15px;
  color: rgba(245, 245, 240, .78);
  text-decoration: none;
  text-underline-offset: 5px;
}
.hero__cue:hover { text-decoration-line: underline; }

.pizza {
  position: absolute;
  z-index: 1;
  width: var(--D);
  height: var(--D);
  left: 53vw;
  top: calc(54% - var(--D) / 2);
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}
.hero__stage.is-live .pizza { left: 0; top: 0; }

.pizza__roll {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
}
.hero__stage.is-live .pizza__roll { animation: roll-in 1.25s var(--ease-out) both; }
@keyframes roll-in {
  from { transform: translate3d(38%, 0, 0) rotate(110deg); }
  to { transform: none; }
}

.pizza__body {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}
.pizza__whole {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.pizza__shadow {
  position: absolute;
  inset: 2.5%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .3);
  box-shadow: 0 44px 90px rgba(0, 0, 0, .55), 0 14px 30px rgba(0, 0, 0, .35);
  transform: translateZ(-2px);
}
/* Camadas usadas só na animação do computador: a tábua fica, as fatias se afastam. */
.pizza__board,
.pizza__slices,
.pizza__slice {
  position: absolute;
  inset: 0;
  visibility: hidden;
}
.pizza__board { width: 100%; height: 100%; }
.pizza__slices { filter: drop-shadow(0 5px 6px rgba(40, 18, 0, .5)); }
.pizza__slice { visibility: inherit; will-change: transform; }
.pizza__slice i {
  position: absolute;
  inset: 0;
  background: url('../img/hero-massa-1320.webp') center / 100% 100% no-repeat;
}
.pizza__slice.is-lifted { visibility: hidden; filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .45)); }
.pizza.is-split .pizza__whole { visibility: hidden; }
.pizza.is-split .pizza__board,
.pizza.is-split .pizza__slices,
.pizza.is-split .pizza__slice.is-lifted { visibility: visible; }

/* ---------- Cardápio ---------- */

.menu {
  position: relative;
  z-index: 2;
  background: var(--mozzarella);
  padding-top: clamp(80px, 10vw, 140px);
}

.menu__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 64px;
}
.menu__intro {
  max-width: 36ch;
  color: var(--tinta-suave);
  padding-bottom: .5em;
}

.tabs {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  display: flex;
  gap: 4px 32px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-inline: var(--gutter);
  background: var(--mozzarella);
  box-shadow: 0 1px 0 var(--linha);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 1504px) {
  .tabs { padding-inline: calc((100vw - 1360px) / 2); }
}
.tab {
  flex: none;
  padding: 18px 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--tinta-suave);
  font: 600 17px/1.2 var(--sans);
  cursor: pointer;
}
.tab:hover { color: var(--tinta); }
.tab[aria-selected="true"] { color: var(--tinta); border-bottom-color: var(--pomodoro); }
.tab__count { margin-left: 5px; font-weight: 400; color: var(--tinta-suave); }
.tab:focus-visible { outline-offset: -3px; }

.panel {
  padding-block: clamp(36px, 4.5vw, 64px) clamp(96px, 10vw, 160px);
}
.panel__intro {
  max-width: 60ch;
  margin-bottom: 40px;
  color: var(--tinta-suave);
}

/* Seletor de tamanho */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.sizepick { border: 0; margin: 0; padding: 0; min-width: 0; }
.sizepick legend, .sizes legend {
  padding: 0;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
  color: var(--tinta-suave);
}
.sizepick__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  display: grid;
  grid-template-columns: 40px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 7px 18px 7px 7px;
  border: 1.5px solid var(--linha);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.size:hover { border-color: var(--tinta); }
.size svg { grid-row: 1 / 3; width: 40px; height: 40px; }
.size svg circle { fill: transparent; stroke: currentColor; stroke-width: 1.5; transition: fill .15s; }
.size svg path { stroke: currentColor; stroke-width: 1.5; }
.size__name { font-weight: 700; font-size: 16px; line-height: 1.15; }
.size__slices { font-size: 14px; line-height: 1.15; color: var(--tinta-suave); }
input:checked + .size { background: var(--basilico); border-color: var(--basilico); color: var(--mozzarella); }
input:checked + .size .size__slices { color: rgba(245, 245, 240, .8); }
input:checked + .size svg circle { fill: var(--crosta); stroke: var(--crosta); }
input:checked + .size svg path { stroke: var(--basilico); }
input:focus-visible + .size { outline: 3px solid var(--focus); outline-offset: 3px; }

.search { position: relative; width: min(340px, 100%); }
.search svg {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--tinta-suave);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 48px;
  border: 1.5px solid var(--linha);
  border-radius: 999px;
  background: #fff;
  color: var(--tinta);
  font: 400 16px var(--sans);
}
.search input::placeholder { color: rgba(23, 59, 40, .55); }
.search input:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 3px rgba(0, 146, 70, .18); }

.toolbar__note {
  margin: 20px 0 48px;
  max-width: 70ch;
  font-size: 16px;
  color: var(--tinta-suave);
}
.toolbar__note strong { color: var(--tinta); font-weight: 700; }

/* Grade de sabores: toda pizza é um disco */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(40px, 4vw, 60px) clamp(20px, 3vw, 44px);
}
.flavor {
  display: grid;
  gap: 6px;
  align-content: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.flavor:focus-visible { outline-offset: 8px; border-radius: 18px; }
.flavor__img {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 50%;
  overflow: hidden;
  background: #E7E5DC;
  box-shadow: 0 22px 34px -22px rgba(23, 59, 40, .6);
  transition: transform .6s var(--ease-out);
}
.flavor__img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .flavor:hover .flavor__img { transform: rotate(-10deg) scale(1.02); }
  .flavor:hover .flavor__name { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
}
.flavor__name {
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: 'opsz' 40;
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.flavor__desc {
  font-size: 15px;
  line-height: 1.45;
  color: var(--tinta-suave);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.flavor__price {
  margin-top: 4px;
  font-weight: 700;
  font-size: 18px;
  color: var(--pomodoro);
  font-variant-numeric: tabular-nums;
}
.empty { padding: 24px 0 8px; font-size: 18px; color: var(--tinta-suave); }

/* Dois sabores */
.card { display: grid; gap: 6px; align-content: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-grid;
  justify-items: center;
  gap: 3px;
  min-width: 84px;
  padding: 8px 12px 9px;
  border: 1.5px solid var(--linha);
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;
  text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.chip span { color: var(--tinta-suave); }
.chip b { font-size: 16px; }
.chip b { color: var(--pomodoro); font-weight: 700; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--basilico); background: #fff; }

/* Listas com pontilhado de cardápio */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 0 72px;
}
.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: baseline;
  column-gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--linha);
  text-decoration: none;
}
.row__name {
  font-family: var(--serif);
  font-weight: 700;
  font-variation-settings: 'opsz' 40;
  font-size: 23px;
  line-height: 1.15;
}
.row__lead { border-bottom: 2px dotted rgba(23, 59, 40, .32); transform: translateY(-5px); }
.row__price { font-weight: 700; font-size: 18px; color: var(--pomodoro); font-variant-numeric: tabular-nums; }
.row__desc { grid-column: 1 / -1; margin-top: 6px; max-width: 62ch; font-size: 15px; line-height: 1.45; color: var(--tinta-suave); }
.row:hover .row__name { color: var(--basilico); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }

.row--compact { padding: 13px 0; }
.row--compact .row__name { font-family: var(--sans); font-weight: 600; font-size: 17px; font-variation-settings: normal; }
.row--compact .row__price { font-size: 17px; }

.row--thumb { grid-template-columns: 96px auto minmax(24px, 1fr) auto; column-gap: 12px 16px; }
.row--thumb .row__thumb {
  grid-row: 1 / 3;
  width: 96px; height: 96px;
  margin-right: 8px;
  align-self: center;
  border-radius: 50%;
  overflow: hidden;
  background: #E7E5DC;
}
.row--thumb .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row--thumb .row__thumb--empty { background: none; border: 2px dashed var(--linha); }
.row--thumb .row__desc { grid-column: 2 / -1; align-self: start; }

.cols__title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
}
.cols__note { margin-bottom: 8px; font-size: 15px; color: var(--tinta-suave); }
.cols > div + div { margin-top: 0; }

.more { margin-top: 48px; font-weight: 600; }
.more a { text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.more a:hover { color: var(--basilico); }

/* ---------- Ficha da pizza (dialog) ---------- */

.sheet {
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--mozzarella);
  color: var(--tinta);
  overflow: hidden;
}
.sheet[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  animation: sheet-in .35s var(--ease-out);
}
.sheet::backdrop { background: rgba(8, 40, 24, .64); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px); } }

.sheet__closeform { position: absolute; top: 16px; right: 16px; z-index: 2; margin: 0; }
.sheet__close {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--mozzarella);
  color: var(--tinta);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.sheet__close:hover { background: #fff; }

.sheet__media {
  display: grid;
  place-items: center;
  padding: 44px;
  background: var(--basilico);
}
.disc {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .7);
}
.sheet[open] .disc { animation: disc-in .7s var(--ease-out); }
@keyframes disc-in { from { transform: rotate(-70deg) scale(.86); opacity: 0; } }
.disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.disc__b { clip-path: inset(0 0 0 100%); transition: clip-path .55s var(--ease-out); }
.disc::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 4px;
  transform: translateX(-50%) scaleY(0);
  background: var(--mozzarella);
  transition: transform .45s var(--ease-out);
}
.disc.is-half .disc__b { clip-path: inset(0 0 0 50%); }
.disc.is-half::after { transform: translateX(-50%) scaleY(1); }

.sheet__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-content: start;
  padding: 44px 40px 36px;
  overflow-y: auto;
  max-height: calc(100svh - 48px);
}
.sheet__title {
  padding-right: 48px;
  font-family: var(--serif);
  font-weight: 900;
  font-variation-settings: 'opsz' 96;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.sheet__desc { font-size: 16px; color: var(--tinta-suave); }
.sheet__desc b { color: var(--tinta); font-weight: 600; }

.sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.opt {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--linha);
  cursor: pointer;
}
.opt:first-of-type { border-top: 1px solid var(--linha); }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--basilico); }
.opt__name { font-weight: 600; font-size: 17px; }
.opt__name small { margin-left: 6px; font-weight: 400; font-size: 15px; color: var(--tinta-suave); }
.opt__price { font-weight: 700; font-size: 17px; color: var(--pomodoro); font-variant-numeric: tabular-nums; }

.half__label { margin-bottom: 10px; font-weight: 600; font-size: 15px; color: var(--tinta-suave); }
.half__list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.half__opt {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 78px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta);
  font: 600 13px/1.2 var(--sans);
  text-align: center;
  cursor: pointer;
  scroll-snap-align: start;
}
.half__opt img {
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  box-shadow: 0 0 0 1px var(--linha);
}
.half__opt[aria-pressed="true"] img { border-color: var(--pomodoro); box-shadow: none; }
.half__opt:focus-visible { outline-offset: 2px; border-radius: 12px; }

.sheet__hint {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 146, 70, .09);
  font-size: 15px;
  line-height: 1.5;
}
.sheet__actions {
  position: sticky;
  bottom: -36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 -40px -36px;
  padding: 16px 40px 28px;
  background: linear-gradient(to bottom, rgba(245, 245, 240, 0), var(--mozzarella) 22px);
}

/* ---------- Final: endereço e horário (vermelho) ---------- */

.final {
  position: relative;
  z-index: 2;
  background: var(--pomodoro);
  color: var(--mozzarella);
  padding-top: clamp(80px, 10vw, 150px);
  --focus: var(--crosta);
}
/* O conteúdo fica acima da textura de granulado (.final::before). */
.final > * { position: relative; }


.visit {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.visit__title {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: 'opsz' 48;
  font-size: 30px;
  line-height: 1.1;
}
.visit address { font-style: normal; font-size: 18px; line-height: 1.55; }
.visit p { font-size: 18px; }
.visit p.visit__note { font-size: 15px; line-height: 1.5; opacity: .8; margin-top: 6px; }
.hours { display: grid; gap: 6px; margin: 0; font-size: 18px; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 16px; max-width: 320px; }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.visit__status { margin-top: 14px; font-weight: 700; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 16px;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
.link:hover { text-decoration-thickness: 3px; }
.visit__links { display: flex; flex-wrap: wrap; column-gap: 24px; }

/* Mapa incorporado do Google Maps: só carrega quando o endereço chega perto da tela. */
.visit__map {
  position: relative;
  grid-column: 1 / -1;
  height: clamp(300px, 34vw, 440px);
  overflow: hidden;
  border-radius: 22px;
  background: #7d1820;
  box-shadow: 0 40px 60px -30px rgba(50, 0, 6, .8);
}
.visit__map iframe { display: block; width: 100%; height: 100%; border: 0; }
/* No canto de cima à direita, o único que o Google deixa livre. */
.visit__route {
  position: absolute;
  top: 12px; right: 12px;
  min-height: 46px;
  padding-inline: 18px;
  box-shadow: 0 6px 16px rgba(50, 0, 6, .35);
}

.foot {
  margin-top: clamp(72px, 9vw, 120px);
  padding-block: 28px 36px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  font-size: 14px;
  color: rgba(245, 245, 240, .82);
}
.foot__credits { margin-top: 6px; font-size: 13px; color: rgba(245, 245, 240, .7); }
.foot a { text-underline-offset: 3px; }

/* ---------- Política de privacidade (privacidade.html) ---------- */

.legal-page { padding-bottom: env(safe-area-inset-bottom); }
.legal-top {
  background: var(--basilico);
  color: var(--mozzarella);
  padding-block: 20px clamp(48px, 7vw, 88px);
  --focus: var(--crosta);
}
.legal-top__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.legal-top__bar .link { margin-top: 0; }
.legal-top p { margin-top: 18px; font-size: 18px; color: rgba(245, 245, 240, .82); }
.legal {
  max-width: 72ch;
  padding-block: clamp(40px, 6vw, 72px);
}
.legal section + section { margin-top: 40px; }
.legal h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-weight: 800;
  font-variation-settings: 'opsz' 48;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  text-wrap: balance;
}
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 1.2em; }
.legal li + li { margin-top: 10px; }
.legal a { text-underline-offset: 3px; }
.legal-foot {
  padding-block: 24px 32px;
  border-top: 1px solid var(--linha);
  font-size: 14px;
  color: var(--tinta-suave);
}

/* Botão de conversa (WhatsApp) no mesmo lugar do botão da Smartsupp; some quando ele carrega. */
.chat-fab {
  position: fixed;
  right: 12px;
  bottom: 24px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--pomodoro);
  color: #fff;
  box-shadow: 0 6px 18px rgba(50, 0, 6, .35);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, transform .15s;
}
.chat-fab:hover { background: var(--pomodoro-forte); transform: scale(1.05); }
.chat-fab[hidden] { display: none; }

/* Barra de abas do celular */
.tabbar { display: none; }

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .visit { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 62px; --tabbar-h: 62px; }
  body { font-size: 17px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

  .tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(245, 245, 240, .97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -1px 0 var(--linha), 0 -8px 24px rgba(23, 59, 40, .08);
  }
  .tabbar a {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    height: var(--tabbar-h);
    color: var(--tinta-suave);
    font: 600 12px/1 var(--sans);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg {
    width: 24px; height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
  }
  .tabbar circle { fill: currentColor; stroke: none; }
  .tabbar a[aria-current="true"] { color: var(--pomodoro); }
  .tabbar a[aria-current="true"]::before {
    content: '';
    position: absolute;
    top: 0; left: 30%; right: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--pomodoro);
  }
  .tabbar a:focus-visible { outline-offset: -4px; }
  .chat-fab { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
  /* Pela aba "Cardápio", o título para logo abaixo da barra do topo. */
  .menu { scroll-margin-top: -100px; }

  .nav { gap: 12px; }
  .nav__brand { font-size: 21px; gap: 10px; }
  .nav__brand img { width: 52px; height: 52px; }
  .nav__cta { min-height: 40px; padding-inline: 16px; font-size: 15px; }

  /* No celular o hero é uma tela só, sem animação de scroll: mais leve e direto. */
  .hero { --D: min(108vw, 56svh); height: auto; }
  .hero__stage { position: relative; min-height: 620px; }
  .hero__stage.is-live .pizza__roll { animation: none; }
  .hero__copy {
    top: calc(var(--nav-h) + 22px);
    right: var(--gutter);
    transform: none;
    max-width: none;
  }
  .hero__title { font-size: clamp(64px, 21vw, 92px); }
  .hero__lede { margin-top: 16px; font-size: 22px; }
  .hero__actions { margin-top: 22px; }
  .hero__actions .btn { min-height: 46px; padding-inline: 18px; font-size: 15px; }
  .hero__line, .hero__cue { display: none; }
  .pizza { left: 40vw; top: calc(100% - var(--D) * .7); }

  .tabs { gap: 4px 24px; }
  .tab { font-size: 16px; padding-top: 16px; }

  .sizepick { flex: 1 1 100%; }
  .sizepick__opts { display: grid; grid-template-columns: 1fr 1fr; }
  .size { padding-right: 10px; }
  .search { width: 100%; }
  .toolbar__note { margin-bottom: 36px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .flavor__img { margin-bottom: 10px; }
  .flavor__name { font-size: 20px; }
  .flavor__desc { font-size: 14px; -webkit-line-clamp: 2; }
  .flavor__price { font-size: 17px; }
  .chip { padding: 8px 11px; font-size: 14px; gap: 6px; }

  .row__name { font-size: 21px; }
  .row--thumb { grid-template-columns: 72px auto minmax(16px, 1fr) auto; }
  .row--thumb .row__thumb { width: 72px; height: 72px; }

  .sheet {
    width: 100vw;
    max-height: 94svh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
  }
  .sheet[open] { grid-template-columns: 1fr; animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(48px); opacity: 0; } }
  .sheet__media { padding: 28px 24px; }
  .disc { max-width: 220px; }
  .sheet__body { padding: 26px 20px 28px; max-height: none; overflow: visible; }
  .sheet__actions { bottom: 0; margin: 0 -20px -28px; padding: 14px 20px 20px; }
  .sheet__actions .btn { flex: 1 1 100%; }

  .visit { grid-template-columns: 1fr; gap: 36px; }
  .visit__map { height: 320px; border-radius: 18px; }
}

@media (max-width: 380px) {
  .visit__route { min-height: 40px; padding-inline: 12px; font-size: 14px; }
  .grid { gap: 32px 12px; }
  .size { grid-template-columns: 32px auto; column-gap: 8px; }
  .size svg { width: 32px; height: 32px; }
}

/* Sem animações para quem prefere */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__line, .hero__cue { display: none; }
  .hero__stage.is-live .pizza__roll { animation: none; }
  .flavor__img, .disc__b, .disc::after, .chat-fab { transition: none; }
  .sheet[open], .sheet[open] .disc { animation: none; }
}
