/* Brace & Lievito — demo pizzeria v2 (editoriale, scura, "fuoco") */
@font-face { font-family: "Fraunces"; src: url(../assets/fonts/fraunces-latin-full-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../assets/fonts/fraunces-latin-full-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../assets/fonts/dm-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Mono"; src: url(../../assets/fonts/geist-mono-latin-400-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --bg: #120d0a;
  --bg-2: #1a130f;
  --card: #231a14;
  --line: rgba(243, 231, 211, 0.12);
  --cream: #f3e7d3;
  --muted: #b3a38c;
  --fire-1: #ff5a1f;
  --fire-2: #ffb347;
  --fire: linear-gradient(100deg, #ff5a1f, #ff8a2a 45%, #ffcf6b);
  --tomato: #d8341c;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--bg); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--fire-1); color: #fff; }
a { color: inherit; }
svg { display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 350; margin: 0; letter-spacing: -0.035em; line-height: 0.98; font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; }
em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), calc(100% - 56px)); margin: 0 auto; }
.kick { font: 400 12.5px var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--fire-2); display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.kick::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
section h2 { font-size: clamp(44px, 6vw, 96px); }

/* grana pellicola */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 0.8s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 58px; padding: 0 30px; border-radius: 999px; font: 600 16px var(--sans); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate; transition: transform 0.5s var(--ease), box-shadow 0.4s; }
.btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-fire { background: var(--fire); color: #1a0d05; box-shadow: 0 16px 40px -14px rgba(255, 90, 31, 0.8); }
.btn-fire::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, #ffcf6b, #ff8a2a); opacity: 0; transition: opacity 0.4s; }
.btn-fire:hover::after { opacity: 1; }
.btn-line { color: var(--cream); box-shadow: inset 0 0 0 1px rgba(243, 231, 211, 0.4); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--cream); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14.5px; gap: 0; }
.btn-block { width: 100%; }

/* nastro demo + badge */
.demo-ribbon { position: relative; z-index: 60; display: block; text-align: center; padding: 9px 16px; background: #000; color: #cbbba4; font-size: 13px; text-decoration: none; }
.demo-ribbon span { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--fire-1); color: #fff; font-weight: 700; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.demo-ribbon b { color: #fff; }
.demo-fab { position: fixed; left: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: rgba(11, 19, 34, 0.9); backdrop-filter: blur(8px); color: #e8eef8; text-decoration: none; font-size: 13.5px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6); }
.demo-fab b { color: #8cc4ff; }
.js .demo-fab { opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.4s, transform 0.4s var(--ease); }
.js .demo-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.demo-fab .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.25); }

/* nav */
.nav { position: fixed; top: 44px; left: 0; right: 0; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px max(28px, calc((100% - var(--wrap)) / 2)); transition: top 0.4s var(--ease), background-color 0.4s, padding 0.4s; }
.nav.scrolled { top: 0; background: rgba(18, 13, 10, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--fire); color: #1a0d05; font: 600 14px var(--serif); white-space: nowrap; flex-shrink: 0; }
.mark i { font-style: italic; opacity: 0.75; margin: 0 1px; }
.mark.sm { width: 34px; height: 34px; font-size: 11px; }
.wm { font: 500 22px var(--serif); letter-spacing: -0.03em; white-space: nowrap; }
.wm i { font-style: italic; color: var(--fire-2); }
.links { display: flex; gap: 34px; }
.links a { font: 400 12.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color 0.3s; }
.links a:hover { color: var(--cream); }

/* hero */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; padding: 120px 0 64px; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-glow { position: absolute; right: -20vw; bottom: -40vh; width: 110vw; height: 110vw; max-width: 1500px; max-height: 1500px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 110, 40, 0.42) 0%, rgba(255, 90, 31, 0.14) 38%, transparent 64%); z-index: 0; }
.hero-in { position: relative; z-index: 3; width: min(var(--wrap), calc(100% - 56px)); margin: 0 auto; }
.hero-title { font-size: clamp(64px, min(10.5vw, 17vh), 200px); font-weight: 300; line-height: 0.86; letter-spacing: -0.055em; margin-bottom: 36px; }
.ht-line { display: block; overflow: hidden; padding: 0 0.08em 0.06em 0; margin-bottom: -0.06em; }
.ht-w { display: inline-block; }
.hero-title em { padding-right: 0.08em; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 470px) auto; gap: 40px; align-items: end; justify-content: start; }
.hero-foot p { color: var(--muted); font-size: 17px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-pizza { position: absolute; z-index: 2; right: max(-14vw, -220px); bottom: -16vw; width: min(58vw, 780px); aspect-ratio: 1; filter: drop-shadow(0 0 60px rgba(255, 110, 40, 0.35)); }
.hero-pizza .pz { width: 100%; height: 100%; }
.scroll-hint { display: none; position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 400 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--fire-2), transparent); animation: hint 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* banda */
.band { position: relative; z-index: 4; overflow: hidden; background: var(--fire); color: #1a0d05; padding: 20px 0; transform: rotate(-2deg); margin: 0 -30px; box-shadow: 0 30px 60px -30px rgba(255, 90, 31, 0.8); }
.band-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: band 30s linear infinite; }
.band span { font: 350 46px var(--serif); letter-spacing: -0.03em; white-space: nowrap; }
.band em { background: none; color: #1a0d05; -webkit-background-clip: initial; background-clip: initial; }
.band b { font-size: 26px; }
@keyframes band { to { transform: translateX(-50%); } }

/* il rito */
.rito { position: relative; padding: 160px 0 120px; }
.rito-pin { width: min(var(--wrap), calc(100% - 56px)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rito-title { font-size: clamp(44px, 5.2vw, 84px); margin-bottom: 50px; }
.steps { display: grid; gap: 30px; }
.step { padding-left: 28px; border-left: 1px solid var(--line); }
.st-n { font: 400 12.5px var(--mono); letter-spacing: 0.16em; color: var(--fire-2); }
.step h3 { font-size: 40px; margin: 8px 0 10px; }
.step p { color: var(--muted); max-width: 440px; }
.step b { color: var(--cream); font-weight: 600; }
.progress { display: none; }
.rito-art { position: relative; aspect-ratio: 1; }
.rito-pizza { position: absolute; inset: 6%; z-index: 2; }
.rito-pizza .pz { width: 100%; height: 100%; }
.rito-oven { position: absolute; left: 0; right: 0; bottom: -4%; z-index: 1; opacity: 0.25; }
.oven { width: 100%; }
.flames path { transform-origin: 50% 100%; transform-box: fill-box; animation: flick 1.2s ease-in-out infinite alternate; }
.flames path:nth-child(2) { animation-duration: 0.9s; }
.flames path:nth-child(3) { animation-duration: 1.4s; }
@keyframes flick { from { transform: scaleY(0.82) skewX(-4deg); } to { transform: scaleY(1.08) skewX(4deg); } }
.timer { position: absolute; right: 2%; top: 4%; z-index: 3; font: 300 64px var(--serif); color: var(--fire-2); opacity: 0; }

/* scroll orizzontale */
.hs { position: relative; padding: 60px 0 120px; overflow: hidden; }
.hs-kick { width: min(var(--wrap), calc(100% - 56px)); margin: 0 auto 36px; }
.hs-track { display: flex; gap: 22px; padding: 0 max(28px, calc((100vw - var(--wrap)) / 2)); width: max-content; }
.hp { width: clamp(300px, 34vw, 460px); height: clamp(360px, 44vh, 480px); border-radius: 36px; padding: 36px; background: var(--card); display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; flex-shrink: 0; }
.hp::before { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 110, 40, 0.35), transparent 65%); }
.hp-k { position: absolute; top: 32px; left: 36px; font: 400 12px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hp b { font: 300 clamp(80px, 9vw, 140px) var(--serif); letter-spacing: -0.06em; line-height: 0.9; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hp p { color: var(--muted); margin-top: 14px; font-size: 17px; max-width: 280px; }
.hp-tempo { background: var(--cream); color: var(--bg); }
.hp-tempo p, .hp-tempo .hp-k { color: #6d5d4a; }
.hp-tempo b { background: linear-gradient(100deg, #d8341c, #ff5a1f); -webkit-background-clip: text; background-clip: text; }
.hp-end { background: transparent; box-shadow: inset 0 0 0 1px var(--line); justify-content: center; gap: 28px; }
.hp-end p { font: 350 40px/1.05 var(--serif); letter-spacing: -0.03em; color: var(--cream); max-width: none; margin: 0; }
.hp-end .btn { align-self: flex-start; }

/* menu */
.menu { position: relative; padding: 140px 0; background: var(--bg-2); }
.m-head { margin-bottom: 50px; max-width: 900px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.flt { height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: 500 15px var(--sans); cursor: pointer; transition: all 0.3s; }
.flt sup { font: 400 10px var(--mono); margin-left: 6px; opacity: 0.7; }
.flt:hover { color: var(--cream); }
.flt.on { background: var(--cream); color: var(--bg); box-shadow: none; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 60px 1fr auto 110px; gap: 24px; align-items: center; padding: 26px 10px; border-bottom: 1px solid var(--line); position: relative; transition: background-color 0.4s; }
.row[hidden] { display: none; }
.row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 90, 31, 0.12), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.row:hover::before { opacity: 1; }
.r-n { font: 400 12px var(--mono); color: var(--muted); letter-spacing: 0.1em; }
.r-main h3 { font-size: clamp(30px, 3.4vw, 50px); transition: transform 0.6s var(--ease), font-variation-settings 0.6s; }
.row:hover .r-main h3 { transform: translateX(14px); font-style: italic; }
.r-main p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.r-al { display: flex; gap: 5px; }
.r-al abbr, .legend abbr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: 400 11px var(--mono); text-decoration: none; }
.r-p { font: 300 38px var(--serif); text-align: right; letter-spacing: -0.03em; transition: color 0.3s; }
.row:hover .r-p { color: var(--fire-2); }
.veg { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #3f7a3a; color: #fff; font: 700 11px var(--sans); font-style: normal; vertical-align: middle; margin-left: 10px; }
.legend { margin-top: 28px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.legend abbr { width: 20px; height: 20px; font-size: 10px; }
.peek { position: fixed; left: 0; top: 0; z-index: 50; width: 300px; height: 300px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
.peek-i { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; }
.peek-i.on { opacity: 1; }
.peek .pz { width: 100%; height: 100%; animation: spin 18s linear infinite; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* QR */
.qrs { padding: 140px 0; overflow: hidden; }
.qr-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.qr-copy h2 { margin-bottom: 24px; }
.qr-card { margin-top: 40px; display: flex; align-items: center; gap: 22px; padding: 18px; border-radius: 26px; background: var(--card); max-width: 470px; }
.qr { width: 124px; height: 124px; flex-shrink: 0; padding: 10px; background: var(--cream); border-radius: 18px; }
.qr svg { width: 100%; height: 100%; }
.qr-card b { display: block; font: 400 24px var(--serif); }
.qr-card span { color: var(--muted); font-size: 15px; }
.phone-stage { display: flex; justify-content: center; perspective: 1400px; }
.phone { width: 310px; height: 640px; border-radius: 52px; padding: 12px; background: #050403; box-shadow: 0 60px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 2px #3a2f28, 0 0 120px -20px rgba(255, 110, 40, 0.35); position: relative; transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; transition: transform 0.3s ease-out; }
.island { position: absolute; top: 22px; left: 50%; width: 96px; height: 28px; border-radius: 20px; background: #050403; transform: translateX(-50%); z-index: 2; }
.screen { height: 100%; border-radius: 42px; background: var(--cream); color: var(--bg); padding: 64px 18px 18px; overflow: hidden; }
.ph-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ph-top b { display: block; font: 500 17px var(--serif); line-height: 1.1; }
.ph-top small { font-size: 11.5px; color: #6d5d4a; }
.ph-hero { display: flex; align-items: center; gap: 12px; background: var(--bg); color: var(--cream); border-radius: 22px; padding: 12px; margin-bottom: 14px; }
.ph-hero .pz { width: 88px; height: 88px; flex-shrink: 0; animation: spin 20s linear infinite; }
.ph-hero small { display: block; font: 400 9.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fire-2); }
.ph-hero b { display: block; font: italic 400 26px var(--serif); line-height: 1.1; }
.ph-hero span { font-size: 13px; color: var(--muted); }
.ph-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.ph-tabs span { font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: rgba(18, 13, 10, 0.07); }
.ph-tabs .on { background: var(--bg); color: var(--cream); }
.ph-row { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px dashed rgba(18, 13, 10, 0.15); }
.ph-row b { font: 400 17px var(--serif); }
.ph-row span { font-weight: 600; color: var(--tomato); font-size: 14px; }

/* prenota */
.book { padding: 60px 0 140px; }
.book-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.book-copy h2 { margin-bottom: 40px; }
.hours { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.hours b { color: var(--cream); font-weight: 500; text-align: right; }
.bf { position: relative; padding: 34px; border-radius: 34px; background: var(--card); box-shadow: 0 0 0 1px rgba(255, 138, 42, 0.25), 0 50px 100px -40px rgba(255, 90, 31, 0.45); }
.bf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bf-f { display: grid; gap: 8px; margin-bottom: 18px; font: 400 11.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bf-f input { height: 54px; border-radius: 16px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: rgba(0, 0, 0, 0.25); padding: 0 16px; font: 500 16px var(--sans); color: var(--cream); width: 100%; color-scheme: dark; letter-spacing: 0; text-transform: none; }
.bf-f input::placeholder { color: #7d6f5d; }
.bf-f input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--fire-2), 0 0 0 4px rgba(255, 138, 42, 0.12); }
.stepper { display: flex; align-items: center; justify-content: space-between; height: 54px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(0, 0, 0, 0.25); padding: 0 6px; }
.stepper button { width: 42px; height: 42px; border-radius: 12px; border: 0; background: rgba(243, 231, 211, 0.08); color: var(--cream); font-size: 20px; cursor: pointer; }
.stepper output { font: 400 24px var(--serif); color: var(--cream); letter-spacing: 0; }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.slots button { height: 48px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: transparent; color: var(--cream); font: 500 14px var(--sans); cursor: pointer; transition: all 0.25s; letter-spacing: 0; }
.slots button:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.slots button[aria-checked="true"] { background: var(--fire); color: #1a0d05; box-shadow: none; }
.check { display: flex; gap: 12px; align-items: center; font-size: 15px; margin: 4px 0 24px; cursor: pointer; color: var(--muted); }
.check input { width: 20px; height: 20px; accent-color: var(--fire-1); }
.bf-note { margin-top: 14px; font-size: 12.5px; color: #7d6f5d; text-align: center; }
.bf-done { position: absolute; inset: 0; border-radius: 34px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 30px; }
.bf-done[hidden] { display: none; }
.bf-done .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--fire); color: #1a0d05; display: grid; place-items: center; font-size: 34px; margin-bottom: 12px; }
.bf-done b { font: italic 400 44px var(--serif); }
.bf-done span:last-child { color: var(--muted); }
.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* dove */
.dove { padding: 40px 0 140px; }
.dove-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.dove h2 { margin-bottom: 24px; }
.dove .lead small { display: block; font-size: 13px; margin-top: 6px; color: #7d6f5d; }
.dove-info { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.dove-info small { display: block; font: 400 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dove-info b { font: 400 22px var(--serif); }
.dove-art { border-radius: 36px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(255, 90, 31, 0.5); }
.dove-art svg { width: 100%; height: auto; }

/* footer */
.foot { position: relative; padding: 80px 0 60px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-word { font: 300 clamp(72px, 15vw, 260px) var(--serif); letter-spacing: -0.06em; line-height: 0.9; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243, 231, 211, 0.25); margin-bottom: 50px; }
.foot-word em { -webkit-text-stroke: 0; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-in p { color: var(--muted); font-size: 14px; }

/* loader + cursore (solo con animazioni) */
.loader, .cursor { display: none; }
.anim .loader { display: flex; position: fixed; inset: 0; z-index: 100; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.ld-in { display: flex; align-items: center; gap: 22px; }
.ld-mark { width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--fire); color: #1a0d05; font: 600 20px var(--serif); }
.ld-mark i { font-style: italic; opacity: 0.75; }
.ld-num { font: 300 72px var(--serif); letter-spacing: -0.05em; min-width: 3ch; }
.ld-bar { width: 220px; height: 2px; background: var(--line); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 100%; background: var(--fire); transform: scaleX(0); transform-origin: left; }
@media (hover: hover) and (pointer: fine) {
  .anim .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
  .anim .cursor.on { opacity: 1; }
  .c-dot { position: fixed; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--fire-2); }
  .c-ring { position: fixed; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.6); display: grid; place-items: center; transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.3s; }
  .c-ring em { font: italic 400 15px var(--serif); background: none; color: #1a0d05; -webkit-background-clip: initial; background-clip: initial; opacity: 0; transition: opacity 0.2s; }
  .cursor.big .c-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--fire-2); box-shadow: none; }
  .cursor.big .c-ring em { opacity: 1; }
  .cursor.big .c-dot { opacity: 0; }
  .anim, .anim a, .anim button { cursor: none; }
}

/* stati iniziali per le animazioni */
.anim [data-h], .anim [data-r] { opacity: 0; }
.anim .ht-w { transform: translateY(110%); }
.anim .hero-pizza { opacity: 0; }

/* rito in modalità animata (desktop) */
@media (min-width: 961px) {
  .anim .rito { padding: 0; }
  .anim .rito-pin { height: 100vh; }
  .anim .steps { position: relative; height: 210px; }
  .anim .step { position: absolute; inset: 0; opacity: 0; border-left: 0; padding-left: 0; }
  .anim .step.on { opacity: 1; }
  .anim .progress { display: block; height: 2px; background: var(--line); margin-top: 30px; max-width: 440px; }
  .anim .progress i { display: block; height: 100%; background: var(--fire); transform: scaleX(0); transform-origin: left; }
  .anim .rito-title { margin-bottom: 40px; }
}

@media (max-width: 960px) {
  .links { display: none; }
  .hero { padding-top: 130px; min-height: 92svh; }
  .hero-pizza { width: 95vw; right: -30vw; bottom: auto; top: 12vh; }
  .hero-pizza .pz { opacity: 0.45; }
  .hero-foot { grid-template-columns: 1fr; gap: 24px; }
  .rito-pin, .qr-grid, .book-grid, .dove-grid { grid-template-columns: 1fr; }
  .rito-art { max-width: 460px; width: 100%; margin: 0 auto; order: -1; }
  .rito-oven { display: none; }
  .hs-track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .hp { scroll-snap-align: center; }
  .row { grid-template-columns: 34px 1fr auto; gap: 14px; }
  .r-al { display: none; }
  .r-p { font-size: 28px; }
  .phone { transform: none; }
  .peek { display: none; }
}
@media (max-width: 560px) {
  .wrap, .hero-in, .rito-pin, .hs-kick { width: calc(100% - 36px); }
  .nav { padding: 12px 18px; top: 40px; }
  .wm { font-size: 18px; }
  .btn-sm .long { display: none; }
  .demo-ribbon { font-size: 11.5px; padding: 8px 10px; }
  .hero-title { font-size: 21vw; }
  .band span { font-size: 32px; }
  .step h3 { font-size: 32px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .bf { padding: 24px; }
  .bf-2 { grid-template-columns: 1fr; gap: 0; }
  .qr-card { flex-direction: column; text-align: center; }
  .phone { width: 280px; height: 580px; }
  .demo-fab { left: 12px; bottom: 12px; }
  .foot { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .band-track, .grain, .peek .pz, .ph-hero .pz, .flames path, .scroll-hint i { animation: none; }
}
