/* Fuoco Lento — pizzeria: pomodoro, fior di latte, brace. Allegra, veloce, rotonda. */
:root {
  --bg: #fbf1e1;
  --surface: #fffaf1;
  --surface-2: #f3e3c8;
  --text: #22160f;
  --muted: #6e5a48;
  --line: #ead6b5;
  --accent: #d63a1f;
  --accent-ink: #ffffff;
  --basil: #2f6b3a;
  --char: #1f1612;
  --cheese: #ffd166;
  --radius: 22px;
  --font-display: "Shrikhand", "Cooper Black", Georgia, serif;
  --font-body: "Rubik", system-ui, sans-serif;
  --wrap: 1200px;
}
body { font-size: 17px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.02; }
h2 { font-size: clamp(38px, 6vw, 72px); color: var(--accent); }
.kicker { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--basil); margin-bottom: 10px; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; border: 2.5px solid var(--char); color: var(--char); background: var(--surface); box-shadow: 4px 4px 0 var(--char); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--char); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--char); }
.btn--red { background: var(--accent); color: #fff; }
.btn svg { width: 20px; height: 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2.5px solid var(--char); }
.top__in { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo i { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 20px; border: 2.5px solid var(--char); }
.logo b { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 2px solid var(--char); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: none; padding: 4px 9px; font-weight: 800; font-size: 12px; }
.lang button[aria-pressed="true"] { background: var(--char); color: var(--bg); }
.top .btn { min-height: 42px; padding: 0 16px; font-size: 14px; box-shadow: 3px 3px 0 var(--char); }
.burger { display: none; border: 0; background: none; width: 40px; height: 40px; padding: 0; }
.burger span { display: block; width: 24px; height: 3px; border-radius: 3px; background: var(--char); margin: 5px auto; }
@media (max-width: 860px) {
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 2.5px solid var(--char); padding: 6px 16px 16px; transform: translateY(-130%); transition: transform .25s; z-index: -1; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  .menu-open .nav { transform: none; }
  .burger { display: block; }
  .tools { margin-left: auto; }
}
@media (max-width: 400px) { .lang { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(30px, 6vw, 70px) 0 clamp(60px, 9vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(58px, 9.5vw, 132px); color: var(--char); line-height: .95; }
.hero h1 span { color: var(--accent); display: block; }
.hero p { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40ch; margin: 22px 0 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 26px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero__note span { display: inline-flex; align-items: center; gap: 8px; }
.hero__note span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--basil); box-shadow: 0 0 0 4px rgba(47,107,58,.18); }
.plate { position: relative; aspect-ratio: 1; max-width: 560px; margin-left: auto; width: 100%; }
.plate__pizza { position: absolute; inset: 6%; border-radius: 50%; overflow: hidden; border: 3px solid var(--char); box-shadow: 10px 12px 0 var(--char); animation: spin 60s linear infinite; }
.plate__pizza img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
@keyframes spin { to { transform: rotate(360deg); } }
.sticker { position: absolute; z-index: 2; display: grid; place-items: center; text-align: center; border-radius: 50%; border: 2.5px solid var(--char); font-weight: 900; line-height: 1.05; box-shadow: 4px 4px 0 var(--char); }
.sticker b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.9em; }
.sticker--a { width: 132px; height: 132px; left: -4%; top: 6%; background: var(--cheese); transform: rotate(-12deg); font-size: 14px; animation: wobble 4s ease-in-out infinite; }
.sticker--b { width: 118px; height: 118px; right: -2%; bottom: 4%; background: var(--basil); color: #fff; transform: rotate(10deg); font-size: 13px; animation: wobble 5s ease-in-out infinite reverse; }
@keyframes wobble { 0%,100% { transform: rotate(-12deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.05); } }
.leaf { position: absolute; width: 46px; height: 28px; background: var(--basil); border-radius: 0 100% 0 100%; border: 2px solid var(--char); }
.leaf--1 { top: 2%; right: 18%; transform: rotate(30deg); }
.leaf--2 { bottom: 14%; left: 2%; transform: rotate(-40deg); }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .plate { order: -1; max-width: 360px; margin: 0 auto; }
  .sticker--a { width: 100px; height: 100px; font-size: 11px; }
  .sticker--b { width: 92px; height: 92px; font-size: 10px; }
}

/* striscia */
.strip { background: var(--accent); color: #fff; border-block: 2.5px solid var(--char); overflow: hidden; white-space: nowrap; padding: 14px 0; transform: rotate(-1.2deg); margin: 0 -10px; }
.strip__track { display: inline-flex; gap: 34px; font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); animation: strip 30s linear infinite; }
.strip__track span::after { content: "●"; color: var(--cheese); font-size: .5em; margin-left: 34px; vertical-align: middle; }
@keyframes strip { to { transform: translateX(-50%); } }

/* menu con filtri */
.menu-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 26px; }
.filters { display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--char); background: var(--surface); border-radius: 999px; padding: 8px 15px; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--char); color: var(--bg); }
.chip--flag[aria-pressed="true"] { background: var(--basil); border-color: var(--basil); color: #fff; }
.pizzas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pz { background: var(--surface); border: 2.5px solid var(--char); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; box-shadow: 4px 4px 0 var(--char); transition: transform .2s; }
.pz:hover { transform: translateY(-3px) rotate(-.4deg); }
.pz__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pz h3 { font-size: 26px; color: var(--char); }
.pz__price { font-weight: 900; font-size: 20px; color: var(--accent); white-space: nowrap; }
.pz p { margin: 0; color: var(--muted); font-size: 15px; }
.pz__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pz__tags span { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); }
.pz__tags .t-veg { background: #dcebd5; color: var(--basil); }
.pz__tags .t-gf { background: #ffe6a8; color: #7a5300; }
.pz__tags .t-hot { background: #ffd2c7; color: var(--accent); }
.empty { padding: 40px; text-align: center; border: 2.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-weight: 700; }
.menu-count { font-weight: 700; color: var(--muted); }

/* impasto */
.dough { background: var(--char); color: var(--bg); }
.dough h2 { color: var(--cheese); }
.dough .kicker { color: #9fd4a8; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: step; }
.step { border: 2px solid rgba(251,241,225,.25); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -22px; left: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; border: 2.5px solid var(--bg); }
.step b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 40px; color: var(--cheese); margin-top: 8px; }
.step h3 { font-family: var(--font-body); font-weight: 800; font-size: 20px; margin: 6px 0; }
.step p { color: rgba(251,241,225,.72); margin: 0; }
.dough__img { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 2.5px solid var(--bg); aspect-ratio: 21 / 8; }
.dough__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 34px; } .dough__img { aspect-ratio: 16 / 9; } }

/* asporto */
.takeaway { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.takeaway__box { background: var(--cheese); border: 2.5px solid var(--char); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: 8px 8px 0 var(--char); }
.takeaway__box h3 { font-size: clamp(30px, 4vw, 44px); color: var(--char); }
.takeaway__box ul { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 8px; font-weight: 700; }
.takeaway__box li::before { content: "→ "; color: var(--accent); }
.takeaway__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.takeaway__img { border-radius: 50% 50% var(--radius) var(--radius); overflow: hidden; border: 2.5px solid var(--char); aspect-ratio: 4 / 4.4; }
.takeaway__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .takeaway { grid-template-columns: 1fr; } .takeaway__img { max-width: 420px; } }

/* recensioni */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.review { margin: 0; background: var(--surface); border: 2.5px solid var(--char); border-radius: var(--radius); padding: 22px; }
.review:nth-child(2) { transform: rotate(1deg); background: #fff3d6; }
.review:nth-child(3) { transform: rotate(-1deg); }
.review blockquote { margin: 8px 0 12px; font-size: 18px; font-weight: 600; }
.review figcaption { color: var(--muted); font-size: 14px; }
.stars { color: var(--accent); letter-spacing: 2px; }
@media (max-width: 820px) { .reviews { grid-template-columns: 1fr; } .review { transform: none !important; } }

/* prenota + dove */
.book { background: var(--surface-2); border-block: 2.5px solid var(--char); }
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
#prenota { scroll-margin-top: 80px; }
.bk { border: 2.5px solid var(--char); box-shadow: 6px 6px 0 var(--char); }
@media (max-width: 860px) { .book__grid { grid-template-columns: 1fr; } }
.where { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 60px); }
.hours { width: 100%; border-collapse: collapse; margin-top: 20px; font-weight: 600; }
.hours td { padding: 10px 0; border-bottom: 2px dashed var(--line); vertical-align: top; }
.hours td:first-child { padding-right: 14px; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours .closed td:last-child { color: var(--accent); }
.addr { font-family: var(--font-display); font-size: 30px; margin: 10px 0 6px; color: var(--char); }
.map { width: 100%; min-height: 340px; height: 100%; border: 2.5px solid var(--char); border-radius: var(--radius); }
@media (max-width: 860px) { .where { grid-template-columns: 1fr; } }

.foot { background: var(--accent); color: #fff; border-top: 2.5px solid var(--char); padding: 46px 0 30px; }
.foot__big { font-family: var(--font-display); font-size: clamp(54px, 12vw, 170px); line-height: .9; color: var(--cheese); text-shadow: 5px 5px 0 var(--char); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 30px; font-weight: 600; }
.foot a { color: #fff; }
.gw-credit { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: "Geist", system-ui, sans-serif; }
.gw-credit img { background: #fff; border-radius: 50%; padding: 2px; }
.gw-credit b { font-weight: 800; }

@media (prefers-reduced-motion: reduce) { .plate__pizza, .sticker, .strip__track { animation: none; } }

/* griglie: le colonne possono restringersi sotto il contenuto */
.book__grid > *, .book-grid > *, .where > *, .kitchen > *, .people > *, .drinks > *, .shop__in > *, .hero__grid > * { min-width: 0; }

/* ---------- Gira la pizza ---------- */
.wheel { position: relative; margin-top: 30px; user-select: none; -webkit-user-select: none; }
.wheel__stage { position: relative; overflow: visible; touch-action: pan-y; cursor: grab; outline: none; }
.is-drag .wheel__stage { cursor: grabbing; }
.wpz { position: absolute; left: 0; top: 0; padding: 0; border: 0; background: none; border-radius: 50%; cursor: inherit; will-change: transform;
  filter: drop-shadow(0 18px 22px rgba(34,22,15,.35)); transition: filter .3s; }
.wpz img { width: 100%; height: 100%; display: block; border-radius: 50%; pointer-events: none; }
.wpz.is-active { filter: drop-shadow(0 26px 30px rgba(34,22,15,.45)); }
.wheel__arrow { position: absolute; top: 40%; width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--char); background: var(--surface); box-shadow: 3px 3px 0 var(--char); font-size: 30px; line-height: 1; font-weight: 800; z-index: 200; cursor: pointer; }
.wheel__arrow--prev { left: 0; } .wheel__arrow--next { right: 0; }
.wheel__hint { text-align: center; color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 0; }
.pick { margin: 26px auto 0; max-width: 560px; text-align: center; min-height: 230px; }
.pick__in { animation: pickIn .35s ease; }
@keyframes pickIn { from { opacity: 0; transform: translateY(10px); } }
.pick h3 { font-size: clamp(34px, 5vw, 48px); color: var(--char); }
.pick__price { display: inline-block; margin-top: 8px; font-weight: 900; font-size: 22px; color: var(--accent); }
.pick p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.pick .pz__tags { justify-content: center; margin-top: 12px; }
.pick__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
@media (max-width: 640px) { .wheel__arrow { width: 44px; height: 44px; font-size: 24px; top: 34%; } .pick { min-height: 260px; } }
@media (prefers-reduced-motion: reduce) { .pick__in { animation: none; } }

/* pizza 3D nella parte alta */
.pizza3d { position: absolute; inset: -8%; z-index: 1; pointer-events: none; }
.pizza3d canvas { width: 100% !important; height: 100% !important; display: block; }
.pizza3d-on .plate__pizza { opacity: 0; }
.pizza3d-on .sticker { z-index: 3; }
.credits { opacity: .8; }

/* ---------- doodle che scorrono (al posto della striscia di nomi) ---------- */
.doodles { overflow: hidden; padding: 18px 0; border-block: 2.5px solid var(--char); background: var(--surface-2); color: var(--char); }
.doodles__row { overflow: hidden; }
.doodles__row + .doodles__row { margin-top: 10px; }
.doodles__track { display: flex; width: max-content; gap: clamp(26px, 4vw, 54px); padding-left: 20px; animation: doodlesL 46s linear infinite; }
.doodles__row--b .doodles__track { animation-duration: 64s; padding-left: 60px; }
.doodle { flex: none; width: clamp(40px, 5vw, 58px); height: clamp(40px, 5vw, 58px); display: grid; place-items: center; animation: doodleWobble 2.8s ease-in-out infinite; animation-delay: var(--d); transform: rotate(var(--w)); }
.doodle svg { width: 100%; height: 100%; }
.doodle--red { color: var(--accent); }
.doodle--green { color: var(--basil); }
.doodles__row--b .doodle { width: clamp(30px, 3.6vw, 42px); height: clamp(30px, 3.6vw, 42px); opacity: .7; }
@keyframes doodlesL { to { transform: translateX(-50%); } }
@keyframes doodleWobble { 0%, 100% { transform: rotate(var(--w)) translateY(0); } 50% { transform: rotate(calc(var(--w) * -1)) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .doodles__track, .doodle { animation: none; } }

/* ================= "IL FORNO": fondo bruno-carbone, rosso pomodoro, giallo mozzarella ================= */
:root {
  --bg: #1d130e; --surface: #2a1c15; --surface-2: #36251b; --text: #f7e8d0; --muted: #cbb393;
  --line: rgba(247,232,208,.16); --char: #f7e8d0; --ink: #1d130e;
  --accent: #e8462a; --cheese: #ffc94a; --basil: #5fae5a;
}
body { background-color: var(--bg);
  /* farina sul banco: puntini chiari sparsi */
  background-image: radial-gradient(rgba(247,232,208,.05) 1px, transparent 1.6px), radial-gradient(rgba(247,232,208,.035) 1px, transparent 1.4px);
  background-size: 38px 38px, 23px 23px; background-position: 0 0, 11px 17px; }
.top { background: rgba(29,19,14,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.logo b { color: var(--accent); }
/* bagliore del forno dietro la pizza 3D */
.hero { position: relative; }
.plate::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,128,40,.35), rgba(232,70,42,.12) 45%, transparent 70%); filter: blur(10px); animation: ember 4s ease-in-out infinite; }
@keyframes ember { 50% { opacity: .7; transform: scale(.97); } }
.sticker--a, .sticker--a * { color: var(--ink); }
.sticker { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--red { box-shadow: 4px 4px 0 #0e0805; border-color: #0e0805; }
.btn--red:hover { box-shadow: 6px 6px 0 #0e0805; }
/* banda dei doodle: rosso pomodoro, doodle chiari */
.doodles { background: var(--accent); color: #fff3e2; border-color: #0e0805; }
.doodle--red { color: var(--cheese); }
.doodle--green { color: #0e0805; }
/* impasto: fascia rossa scura, il forno acceso */
.dough { background: linear-gradient(180deg, #2a1209, #3b160b); color: #fdf1e0; }
.takeaway__box { box-shadow: 8px 8px 0 #0e0805; border-color: #0e0805; }
.takeaway__box, .takeaway__box h3, .takeaway__box li, .takeaway__box .kicker { color: var(--ink); }
.review:nth-child(2) { background: #3a2417; }
.foot { background: #120b07; }
.foot__big { text-shadow: 5px 5px 0 #000; }
/* ruota: la pizza scelta brilla un po' */
.wpz.is-active { filter: drop-shadow(0 0 40px rgba(255,140,50,.35)) drop-shadow(0 26px 30px rgba(0,0,0,.6)); }
.wpz { filter: drop-shadow(0 18px 22px rgba(0,0,0,.55)); }
.pick__price { color: var(--cheese); }
.wheel__arrow { color: var(--char); }
.map { border-color: var(--line); filter: invert(.88) hue-rotate(180deg) saturate(.6) brightness(.9); }
@media (prefers-reduced-motion: reduce) { .plate::before { animation: none; } }

/* un solo fondo per tutta la pagina: dal nero in alto al marrone carbone, senza stacchi tra le sezioni */
html { background: #0a0705; }
body { background-color: transparent;
  background-image:
    radial-gradient(rgba(247,232,208,.05) 1px, transparent 1.6px),
    radial-gradient(rgba(247,232,208,.035) 1px, transparent 1.4px),
    linear-gradient(180deg, #0a0705 0%, #150e0a 22%, #21150f 50%, #2c1c13 78%, #23160f 100%);
  background-size: 38px 38px, 23px 23px, 100% 100%; background-position: 0 0, 11px 17px, 0 0; background-repeat: repeat, repeat, no-repeat; }
.dough, .book, .section, .hero { background: transparent !important; }
.top { background: rgba(10,7,5,.88); }
.foot { background: rgba(0,0,0,.35); }

/* ---------- caratteri più leggeri ---------- */
:root { --font-display: "DM Serif Display", Georgia, serif; }
body { font-weight: 400; }
h1, h2, h3, .logo b, .foot__big, .sticker b, .step b, .addr { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(52px, 8vw, 112px); line-height: 1; }
h2 { font-size: clamp(36px, 5vw, 62px); }
.pick h3 { font-size: clamp(32px, 4.4vw, 44px); }
.foot__big { text-shadow: none; }
.btn { font-weight: 500; letter-spacing: .01em; }
.chip { font-weight: 500; }
.kicker { font-weight: 600; letter-spacing: .18em; }
.nav { font-weight: 500; }
.hero__note, .menu-count, .wheel__hint, .lang button { font-weight: 500; }
.pick__price, .pz__price { font-weight: 500; }
.pz__tags span, .step h3, .takeaway__box li, .review blockquote, .hours td { font-weight: 400; }
.step h3 { font-family: var(--font-body); font-style: normal; }
.sticker { font-weight: 500; }

.logo b { white-space: nowrap; }
@media (max-width: 420px) { .logo b { font-size: 22px; } .logo i { width: 32px; height: 32px; font-size: 16px; } }

/* cursore di fuoco: sopra a tutto, non blocca i clic, la luce si somma alla pagina */
.flame-cursor { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 900; pointer-events: none; mix-blend-mode: screen; }
