/* =========================================================
   Cioccolateria Calvani — foglio di stile
   Palette: fondente, avana (la scatola), oro, lampone.
   ========================================================= */
:root {
  --ink: #140b07;          /* fondente 80% */
  --ink-2: #1e110b;
  --ink-3: #2a1810;
  --cocoa: #4a2a1a;
  --milk: #8a5a3c;
  --kraft: #c9a47e;        /* la scatola avana */
  --cream: #f3e7d6;
  --cream-dim: rgba(243, 231, 214, .66);
  --gold: #d2a45f;
  --gold-hi: #f0cf8e;
  --rasp: #b0213f;         /* granella di lampone */
  --line: rgba(243, 231, 214, .14);

  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-script: "Pinyon Script", "Brush Script MT", cursive;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- elementi comuni ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 180px) var(--gutter); }
.section__head { max-width: var(--maxw); margin: 0 auto clamp(40px, 6vw, 80px); }
.section__lead { color: var(--cream-dim); max-width: 46ch; margin: 18px 0 0; }
.eyebrow {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 22px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.h2 {
  font-family: var(--f-serif); font-weight: 500;
  font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.01em;
  margin: 0; max-width: 18ch; text-wrap: balance;
}
.h2 em, .hero__title em { font-style: italic; color: var(--gold-hi); }
.muted { color: var(--cream-dim); }

.btn {
  --bx: 0px; --by: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  transform: translate(var(--bx), var(--by));
  transition: transform .5s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, #a97a3a);
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(210, 164, 95, .6), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--gold:hover { box-shadow: 0 16px 40px -10px rgba(240, 207, 142, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { border: 1px solid var(--line); color: var(--cream); background: rgba(20, 11, 7, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

.link-arrow { display: inline-flex; gap: 12px; align-items: center; color: var(--gold-hi); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; margin-top: 12px; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- grana pellicola (effetto video) ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 36px;
  transition: clip-path 1.1s var(--ease-io), visibility 0s 1.1s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader__seal { position: relative; width: min(320px, 78vw); aspect-ratio: 320 / 200; display: grid; place-items: center; align-content: center; text-align: center; }
.seal-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-ring { fill: none; stroke: var(--kraft); stroke-width: 2.4; stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 1.6s var(--ease) forwards; }
.seal-ring--thin { stroke-width: 1; opacity: .5; animation-delay: .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader__small { font-family: var(--f-serif); letter-spacing: .32em; text-transform: uppercase; font-size: 13px; color: var(--kraft); opacity: 0; animation: fade .8s .5s forwards; }
.loader__small--b { font-size: 11px; animation-delay: .9s; }
.loader__script { font-family: var(--f-script); font-size: clamp(56px, 14vw, 78px); line-height: 1.1; color: var(--cream); opacity: 0; animation: fade 1s .7s forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.loader__bar { width: 140px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); transition: transform .4s var(--ease); }

/* ---------- cursore ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor span { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--cream); transition: transform .35s var(--ease); }
.cursor.is-hover span { transform: scale(3.2); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s var(--ease), transform .5s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(20, 11, 7, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); padding-top: 10px; padding-bottom: 10px; border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav__brand span { display: flex; flex-direction: column; line-height: 1; }
.nav__brand em { font-family: var(--f-script); font-style: normal; font-size: 30px; }
.nav__brand small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.nav__links { display: flex; gap: 30px; font-size: 14px; }
.nav__links a { position: relative; color: var(--cream-dim); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 42px; padding: 0 20px; font-size: 13px; }
.nav__burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; z-index: 2; }
.nav__burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--cream); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger i:first-child { top: 18px; } .nav__burger i:last-child { top: 25px; }
.nav.is-open .nav__burger i:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger i:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: var(--ink); font-family: var(--f-serif); font-size: 36px;
    clip-path: circle(0 at calc(100% - 38px) 38px); transition: clip-path .8s var(--ease-io);
  }
  .nav__links a { color: var(--cream); }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 38px) 38px); }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: flex; align-items: center; padding: 90px var(--gutter) 60px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,11,7,.85) 0%, rgba(20,11,7,.35) 45%, rgba(20,11,7,0) 70%),
    linear-gradient(0deg, var(--ink) 0%, rgba(20,11,7,0) 22%);
}
.hero__content { position: relative; z-index: 2; max-width: 660px; }
.hero__title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(46px, 8vw, 116px); line-height: .95; letter-spacing: -.015em; margin: 0 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__lead { max-width: 44ch; color: var(--cream-dim); font-size: clamp(15px, 1.3vw, 18px); margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__script {
  position: absolute; right: -2vw; bottom: 2vh; z-index: 1; pointer-events: none;
  font-family: var(--f-script); font-size: clamp(120px, 22vw, 360px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(210, 164, 95, .22);
}
.hero__scroll { position: absolute; left: 50%; bottom: 28px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim); }
.hero__scroll i { width: 1px; height: 48px; background: linear-gradient(var(--gold), transparent); animation: drip 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-bottom: 120px; }
  .hero__vignette { background: linear-gradient(0deg, var(--ink) 8%, rgba(20,11,7,.55) 55%, rgba(20,11,7,.1) 100%); }
  .hero__script { top: 14vh; bottom: auto; right: -6vw; }
}

/* reveal all'avvio (hero) */
.reveal-mask { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease) var(--d, 0s); }
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.is-ready .reveal-mask { transform: none; }
.is-ready .reveal-up { opacity: 1; transform: none; }

/* reveal allo scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.split.is-in .w > span { transform: none; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink-2); }
.marquee__track { display: flex; width: max-content; gap: 38px; align-items: center; animation: marquee 38s linear infinite; font-family: var(--f-serif); font-size: clamp(26px, 3.4vw, 44px); font-style: italic; }
.marquee__track b { color: var(--gold); font-size: .5em; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- bottega ---------- */
.bottega__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.bottega__text p:not(.eyebrow) { color: var(--cream-dim); max-width: 52ch; }
.bottega__text .h2 { margin-bottom: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--f-serif); font-weight: 500; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--gold-hi); }
.stats span { display: block; font-size: 13px; line-height: 1.4; color: var(--cream-dim); margin-top: 8px; }

.bottega__visual { position: relative; min-height: 620px; }
.bottega__visual figure { margin: 0; position: absolute; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.bottega__visual figure:first-child { width: 78%; aspect-ratio: 4/5; right: 0; top: 0; }
.bottega__visual figure:first-child img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.bottega__visual .tilt--small { width: 46%; aspect-ratio: 1; left: 0; bottom: 0; border: 6px solid var(--ink); }
.bottega__visual .tilt--small img { width: 100%; height: 100%; object-fit: cover; }
.bottega__visual figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.stamp { position: absolute; width: 150px; height: 150px; left: 8%; top: 6%; z-index: 3; display: grid; place-items: center; }
.stamp svg { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.stamp text { font-family: var(--f-sans); font-size: 13.2px; letter-spacing: .24em; text-transform: uppercase; fill: var(--gold-hi); }
.stamp span { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--rasp); color: var(--cream); font-size: 20px; box-shadow: 0 10px 30px -6px rgba(176, 33, 63, .7); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .bottega__grid { grid-template-columns: 1fr; }
  .bottega__visual { min-height: 0; aspect-ratio: 1 / 1.05; }
  .stats { gap: 12px; }
  .stamp { width: 116px; height: 116px; left: 4%; }
  .stamp text { font-size: 13.6px; }
}

/* ---------- tilt 3D ---------- */
.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform-style: preserve-3d; will-change: transform; }
.parallax { transform: translate3d(0, var(--py, 0px), 0); }
.tilt.parallax { transform: perspective(1000px) translate3d(0, var(--py, 0px), 0) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s linear; }
.tilt::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 3;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 230, 190, .22), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.tilt:hover::after { opacity: 1; }

/* ---------- creazioni ---------- */
.cards { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); perspective: 1400px; }
.card {
  position: relative; border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  transition: transform .7s var(--ease), border-color .4s, opacity 1s var(--ease) var(--d, 0s);
}
.card.reveal { transform: translateY(40px); }
.card.reveal.is-in { transform: none; }
.card.reveal.is-in.is-tilting { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0); transition: transform .15s linear, border-color .4s; }
.card:hover { border-color: rgba(210, 164, 95, .45); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__media--contain { background: radial-gradient(circle at 50% 60%, #3a2216, var(--ink-2)); }
.card__media--contain img { object-fit: contain; padding: 18px; }
.card__media--art { display: grid; place-items: center; }
.card__media--gelato { background: radial-gradient(circle at 50% 40%, #6b3a52, #2b1320 70%); }
.card__media--caffe { background: radial-gradient(circle at 50% 45%, #6a3b20, #24130a 70%); }
.art { width: 62%; height: auto; transform: translateZ(40px); transition: transform 1s var(--ease); filter: drop-shadow(0 20px 20px rgba(0,0,0,.45)); }
.card:hover .art { transform: translateZ(40px) translateY(-6px) rotate(-3deg); }
.steam { animation: steam 3s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: .7; transform: translateY(-4px); } }
.card__body { padding: 26px 26px 30px; transform: translateZ(30px); }
.card__num { font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.card h3 { font-family: var(--f-serif); font-weight: 500; font-size: 30px; line-height: 1.1; margin: 8px 0 10px; }
.card p { margin: 0; color: var(--cream-dim); font-size: 15px; }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- pour (video shader con scroll) ---------- */
.pour { position: relative; height: 260vh; background: var(--ink); }
.pour__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.pour__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pour__text { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); max-width: 1100px; }
.pour__text .eyebrow { justify-content: center; }
.pour__text .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.pour__title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(42px, 7.6vw, 120px); line-height: 1; margin: 0 0 28px; text-shadow: 0 4px 40px rgba(20, 11, 7, .6); }
.pour__title span { display: inline-block; opacity: .12; filter: blur(6px); transform: translateY(20px); transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); }
.pour__title span.on { opacity: 1; filter: none; transform: none; }
.pour__title span:nth-child(2n) { font-style: italic; color: var(--gold-hi); }
.pour__lead { color: var(--cream); opacity: .78; max-width: 48ch; margin: 0 auto; text-shadow: 0 2px 20px rgba(20, 11, 7, .9); }

/* ---------- reel ---------- */
.reel { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.reel__rail { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
.reelcard {
  position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: var(--ink-3); border: 1px solid var(--line); isolation: isolate;
}
.reelcard--up { margin-top: -60px; }
.reelcard video, .reelcard__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reelcard video { z-index: 1; opacity: 0; transition: opacity .6s; }
.reelcard.has-video video { opacity: 1; }
.reelcard__fallback { background-size: cover; background-position: center; animation: kenburns 16s ease-in-out infinite alternate; }
.reelcard:nth-child(2) .reelcard__fallback { animation-duration: 19s; animation-direction: alternate-reverse; }
.reelcard:nth-child(3) .reelcard__fallback { animation-duration: 14s; }
@keyframes kenburns {
  0% { transform: scale(1.35) translate(6%, 3%); filter: saturate(1.05) brightness(.92); }
  100% { transform: scale(1.1) translate(-5%, -4%); filter: saturate(1.2) brightness(1.02); }
}
/* luce che scorre, come un riflesso sulla pellicola */
.reelcard::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 214, 160, .18) 48%, transparent 60%);
  transform: translateX(-100%); animation: sweep 6s var(--ease-io) infinite;
}
.reelcard:nth-child(2)::before { animation-delay: 1.5s; } .reelcard:nth-child(3)::before { animation-delay: 3s; } .reelcard:nth-child(4)::before { animation-delay: 4.5s; }
@keyframes sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.reelcard::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(20,11,7,.9) 0%, rgba(20,11,7,0) 45%); pointer-events: none; }
.reelcard figcaption { position: absolute; left: 16px; right: 16px; bottom: 18px; z-index: 3; font-size: 14px; line-height: 1.4; }
.reelcard figcaption b { display: block; font-size: 12px; font-weight: 600; color: var(--gold-hi); margin-bottom: 4px; }
.reelcard__badge { position: absolute; top: 14px; left: 14px; z-index: 3; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: rgba(20,11,7,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; gap: 6px; }
.reelcard__badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rasp); animation: rec 1.4s infinite; }
@keyframes rec { 50% { opacity: .2; } }
.reelcard.is-paused .reelcard__fallback, .reelcard.is-paused::before { animation-play-state: paused; }
.reel__cta { text-align: center; margin-top: 60px; }

@media (max-width: 900px) {
  .reel__rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .reel__rail::-webkit-scrollbar { display: none; }
  .reelcard { flex: 0 0 64vw; max-width: 300px; scroll-snap-align: center; }
  .reelcard--up { margin-top: 0; }
}

/* ---------- eventi ---------- */
.eventi__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.eventi__photo { border-radius: 300px 300px 8px 8px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.eventi__photo img { width: 100%; height: 115%; object-fit: cover; }
.eventi__text p:not(.eyebrow) { color: var(--cream-dim); max-width: 48ch; margin: 28px 0 22px; }
@media (max-width: 860px) { .eventi__inner { grid-template-columns: 1fr; } .eventi__photo { max-width: 420px; } }

/* ---------- visita ---------- */
.visita { padding-top: 40px; }
.visita__card {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px);
  padding: clamp(30px, 5vw, 70px); border-radius: 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(210, 164, 95, .18), transparent 50%),
    linear-gradient(160deg, #2e1b11, #1a0e08);
  border: 1px solid rgba(210, 164, 95, .25);
  overflow: hidden;
}
.visita__card.reveal.is-in.is-tilting { transform: perspective(1400px) rotateX(calc(var(--rx) * .4)) rotateY(calc(var(--ry) * .4)); transition: transform .2s linear; }
.visita .h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 18px; }
.visita__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.orari { width: 100%; border-collapse: collapse; font-size: 15px; }
.orari caption { text-align: left; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); padding-bottom: 14px; }
.orari th, .orari td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.orari td { text-align: right; color: var(--cream-dim); font-variant-numeric: tabular-nums; }
.orari tr.is-today th, .orari tr.is-today td { color: var(--gold-hi); }
.orari tr.is-today th::after { content: " · oggi"; font-size: 12px; opacity: .8; }
.open-now { margin: 18px 0 0; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.open-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #7a6a5c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, #7a6a5c) 25%, transparent); }
@media (max-width: 860px) { .visita__card { grid-template-columns: 1fr; } .orari td { font-size: 14px; } }

/* ---------- footer ---------- */
.footer { position: relative; padding: 40px var(--gutter) 40px; overflow: hidden; border-top: 1px solid var(--line); }
.footer__big { font-family: var(--f-script); font-size: clamp(120px, 30vw, 460px); line-height: .9; text-align: center; background: linear-gradient(180deg, var(--kraft), rgba(201, 164, 126, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer__row { max-width: var(--maxw); margin: 20px auto 0; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; font-size: 14px; }
.footer__row p { margin: 0 0 4px; }
.footer__logo { border-radius: 50%; }
.footer__social { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__social a { color: var(--cream-dim); transition: color .3s; }
.footer__social a:hover { color: var(--gold-hi); }

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-up, .reveal-mask, .split .w > span { opacity: 1 !important; transform: none !important; }
  .pour { height: auto; } .pour__sticky { position: relative; }
  .pour__title span { opacity: 1; filter: none; transform: none; }
}
