/* ==========================================================================
   Cake Angels — Pasticceria artistica, Torino
   Palette: panna (base), lilla del brand, prugna profonda, oro dell'aureola
   ========================================================================== */

:root {
  --cream: #fbf6ef;
  --cream-2: #f4ece1;
  --lilac: #e7dcf2;
  --lilac-2: #cdb8e6;
  --lilac-3: #9a7fc0;
  --plum: #2e1a3b;
  --plum-2: #47285a;
  --berry: #c8325f;
  --gold: #c9a25a;
  --gold-2: #e9cf94;
  --ink: #2b1d33;
  --muted: #6f6178;
  --line: rgba(46, 26, 59, 0.12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--lilac-2); color: var(--plum); }

h1, h2, h3, .title { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
em { font-style: italic; color: var(--lilac-3); font-weight: 350; }

.section { padding: clamp(80px, 12vw, 160px) var(--gutter); }
.section__head { max-width: 1280px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section__head--center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lilac-3); margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--berry); box-shadow: 0 0 0 4px rgba(200, 50, 95, 0.15); }

.title { font-size: clamp(2.4rem, 5.6vw, 4.6rem); color: var(--plum); }
.title--light { color: var(--cream); }
.title--light em { color: var(--lilac-2); }

/* ------------ Buttons ------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 100px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s, box-shadow .35s, transform .35s var(--ease);
  will-change: transform;
}
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--plum { background: var(--plum); color: var(--cream); box-shadow: 0 10px 30px rgba(46, 26, 59, 0.22); }
.btn--plum:hover { background: var(--plum-2); box-shadow: 0 16px 40px rgba(46, 26, 59, 0.3); }
.btn--ghost { border-color: var(--line); color: var(--plum); background: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--plum); }
.btn--cream { background: var(--cream); color: var(--plum); }
.btn--cream:hover { background: var(--gold-2); }
.btn--small { padding: 11px 22px; font-size: 0.9rem; }
.btn--full { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--berry); outline-offset: 3px;
}

.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; color: var(--plum); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translate(4px, 0); }
.link-arrow--light { color: var(--cream); }

.chip { display: inline-flex; padding: 10px 18px; border-radius: 100px; background: var(--lilac); color: var(--plum); font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: background .3s; }
.chip:hover { background: var(--lilac-2); }

.stars { color: var(--gold); letter-spacing: 2px; }

/* ------------ Loader ------------ */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--cream); transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader img { width: 120px; height: 120px; grid-area: 1 / 1; animation: float 2.4s ease-in-out infinite; }
.loader__halo {
  grid-area: 1 / 1; width: 90px; height: 22px; border-radius: 50%;
  border: 4px solid var(--gold); transform: translateY(-78px);
  animation: haloSpin 1.6s linear infinite; box-shadow: 0 0 22px rgba(201, 162, 90, 0.6);
}
@keyframes haloSpin { to { transform: translateY(-78px) rotateY(360deg); } }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ------------ Header ------------ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.header.is-scrolled { background: rgba(251, 246, 239, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.header__brand img { width: 44px; height: 44px; }
.header__brand span { font-family: var(--font-display); font-size: 1.35rem; color: var(--plum); letter-spacing: -0.01em; }
.header__nav { display: flex; gap: 28px; }
.header__nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--plum); position: relative; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.header__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--plum); transition: transform .35s var(--ease); }
.header__burger span:first-child { top: 17px; }
.header__burger span:last-child { top: 25px; }
.header__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 28px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { font-family: var(--font-display); font-size: 2.2rem; color: var(--plum); text-decoration: none; }
.mobile-nav .btn { margin-top: 18px; align-self: flex-start; }

@media (max-width: 980px) {
  .header__nav, .header__cta { display: none; }
  .header__burger { display: block; }
}

/* ------------ Hero ------------ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--header-h) + 32px) var(--gutter) 64px;
  background:
    radial-gradient(60% 70% at 85% 40%, var(--lilac) 0%, rgba(231, 220, 242, 0) 70%),
    radial-gradient(40% 50% at 10% 90%, var(--cream-2) 0%, rgba(244, 236, 225, 0) 70%),
    var(--cream);
  overflow: hidden;
}
.hero__title { font-size: clamp(2.7rem, min(5.6vw, 9.5svh), 5.6rem); color: var(--plum); margin-bottom: 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 42ch; font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__rating { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--muted); }
.hero__rating strong { color: var(--plum); }

.hero__visual { position: relative; justify-self: center; width: min(100%, 500px, calc((100svh - var(--header-h) - 120px) * 0.8)); }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); background: var(--lilac-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--hero { aspect-ratio: 4 / 5; box-shadow: 0 50px 100px -30px rgba(46, 26, 59, 0.45); }
.arch--hero img { transform: scale(1.08); transform-origin: 50% 60%; }
.hero__canvas { position: absolute; left: -25%; top: -22%; width: 150%; height: 90%; pointer-events: none; z-index: 2; }
.hero__tag {
  position: absolute; z-index: 3; padding: 12px 18px; border-radius: 16px;
  background: rgba(251, 246, 239, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -12px rgba(46, 26, 59, 0.35);
  font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; color: var(--plum);
}
.hero__tag small { font-family: var(--font-body); font-size: 0.76rem; color: var(--muted); }
.hero__tag--a { left: -9%; bottom: 18%; }
.hero__tag--b { right: -6%; top: 46%; font-size: 0.95rem; background: var(--plum); color: var(--cream); }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; border: 1.5px solid var(--plum); border-radius: 20px; transform: translateX(-50%); opacity: .5; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--plum); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 20px); gap: 48px; text-align: left; }
  .hero__visual { width: min(86%, 420px); }
  .hero__tag--a { left: -10%; }
  .hero__tag--b { right: -8%; }
  .hero__scroll { display: none; }
}

/* ------------ Hero video (frame guidati dallo scroll) ------------ */
.film { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--plum); }
.film__media { position: absolute; inset: 0; }
.film__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(251, 246, 239, 0.7) 0%, rgba(251, 246, 239, 0) calc(var(--header-h) + 40px)),
    radial-gradient(ellipse 75% 60% at 0% 100%, rgba(46, 26, 59, 0.78), rgba(46, 26, 59, 0) 70%),
    radial-gradient(ellipse at 50% 50%, transparent 62%, rgba(46, 26, 59, 0.35) 100%);
}
.film__content {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 10svh, 110px);
  max-width: 760px; color: var(--cream);
}
.film__title { font-size: clamp(3rem, min(8vw, 13svh), 7.4rem); line-height: 0.95; margin-bottom: 22px; text-shadow: 0 6px 40px rgba(46, 26, 59, 0.45); }
.film__title em { color: var(--gold-2); }
.film__claim { max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(251, 246, 239, 0.88); }
.film__cue {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 10svh, 110px);
  display: flex; align-items: center; gap: 14px; color: var(--cream);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.film__bar { width: 110px; height: 2px; background: rgba(251, 246, 239, 0.3); overflow: hidden; border-radius: 2px; }
.film__bar i { display: block; height: 100%; background: var(--gold-2); transform: scaleX(0); transform-origin: left; }
@media (max-width: 760px) {
  .film__cue { left: var(--gutter); right: auto; bottom: 24px; }
  .film__content { bottom: 72px; }
}

/* ------------ Marquee ------------ */
.marquee { overflow: hidden; background: var(--plum); color: var(--cream); padding: 22px 0; transform: rotate(-1.2deg) scale(1.02); margin: -10px 0; position: relative; z-index: 3; }
.marquee__track { display: inline-flex; gap: 32px; align-items: center; white-space: nowrap; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-style: italic; }
.marquee__track i { color: var(--gold-2); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------ Intro ------------ */
.intro__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.intro__text p { color: var(--muted); margin: 22px 0; max-width: 52ch; }
.intro__text .title { margin-bottom: 8px; }
.intro__media { position: relative; height: clamp(440px, 52vw, 640px); }
.arch--sm { position: absolute; right: 0; top: 0; width: 66%; aspect-ratio: 3 / 4; }
.intro__pic { position: absolute; left: 0; bottom: 0; width: 50%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 8px solid var(--cream); box-shadow: 0 30px 60px -20px rgba(46, 26, 59, 0.35); }
.intro__pic img { width: 100%; height: 100%; object-fit: cover; }

.stats { list-style: none; max-width: 1280px; margin: clamp(64px, 9vw, 120px) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats li { padding: 30px 20px 0 0; }
.stats strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.8rem); color: var(--plum); line-height: 1; margin-bottom: 10px; }
.stats span { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { height: 460px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
}

/* ------------ Creazioni: anello 3D ------------ */
.creations { position: relative; background: var(--plum); color: var(--cream); padding: calc(var(--header-h) + 10px) 0 28px; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.creations .title { font-size: clamp(2.2rem, min(4.6vw, 8svh), 4rem); }
.creations::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 45% at 50% 62%, rgba(154, 127, 192, 0.35), rgba(46, 26, 59, 0) 70%); pointer-events: none; }
.creations__head { position: relative; text-align: center; padding: 0 var(--gutter); max-width: 780px; margin: 0 auto; }
.creations__sub { color: rgba(251, 246, 239, 0.72); margin-top: 12px; }

.ring-stage { position: relative; height: clamp(340px, 54svh, 600px); perspective: 1800px; perspective-origin: 50% 40%; margin-top: 10px; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.ring__card {
  position: absolute; width: var(--card-w, 250px); aspect-ratio: 4 / 5;
  left: calc(var(--card-w, 250px) / -2); top: calc(var(--card-w, 250px) * -0.625);
  border-radius: 999px 999px 18px 18px; overflow: hidden; backface-visibility: hidden;
  background: var(--plum-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.ring__card img { width: 100%; height: 100%; object-fit: cover; }
.ring__card figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 12px; text-align: center;
  background: rgba(46, 26, 59, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-display); font-style: italic; font-size: 1.02rem;
}
.ring-hint { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251, 246, 239, 0.6); }
.ring-hint span { width: 34px; height: 1px; background: currentColor; }

/* mobile: stesso anello 3D, si gira trascinando in orizzontale */
.ring-hint b { font-weight: inherit; }
.ring-hint .hint-touch { display: none; }
@media (max-width: 760px) {
  .creations { min-height: 0; padding: 90px 0 44px; }
  .ring-stage {
    height: clamp(330px, 92vw, 420px); perspective: 1100px; perspective-origin: 50% 35%; margin-top: 18px;
    touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  }
  .ring-stage.is-dragging { cursor: grabbing; }
  .ring__card img { -webkit-user-drag: none; pointer-events: none; }
  .ring__card figcaption { font-size: 0.92rem; padding: 6px 10px; }
  .ring-hint .hint-scroll { display: none; }
  .ring-hint .hint-touch { display: inline; }
}

/* ------------ Servizi: le cloche ------------
   Senza animazioni (o senza JS) è una griglia di torte già scoperte.
   Con .is-live (main.js) le portate sono posizionate da GSAP: impilate,
   poi a ventaglio, poi le cloche si alzano una dopo l'altra. */
.services {
  padding: 0 var(--gutter);
  background:
    radial-gradient(55% 45% at 50% 62%, var(--lilac) 0%, rgba(231, 220, 242, 0) 75%),
    var(--cream);
}
.services__pin {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 8px) 0 28px;
}
.services__head { text-align: center; margin-bottom: clamp(14px, 3svh, 40px); }
.services__head .eyebrow { margin-bottom: 10px; }
.services .title { font-size: clamp(1.9rem, min(4vw, 6.4svh), 3.4rem); }
.services__hint {
  text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lilac-3); margin-top: 18px; opacity: 0; transition: opacity .5s;
}
.cloches.is-ready + .services__hint, .cloches:not(.is-live) + .services__hint { opacity: 1; }

.cloches {
  --dish-w: 230px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 28px;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.dish { width: var(--dish-w); justify-self: center; text-align: center; outline: none; }
.dish__set { position: relative; height: calc(var(--dish-w) * 0.95); }
.dish__plate { position: absolute; left: 0; bottom: 0; width: 100%; filter: drop-shadow(0 14px 16px rgba(46, 26, 59, 0.16)); }
.dish__cake {
  position: absolute; left: 50%; bottom: calc(var(--dish-w) * 0.12); transform: translateX(-50%);
  width: auto; height: auto; max-width: 74%; max-height: calc(var(--dish-w) * 0.6);
  filter: drop-shadow(0 10px 12px rgba(46, 26, 59, 0.18));
}
.dish__lid {
  position: absolute; left: 50%; bottom: calc(var(--dish-w) * 0.07); z-index: 2;
  width: 120%; margin-left: -60%; transform-origin: 88% 100%;
  filter: drop-shadow(0 18px 20px rgba(46, 26, 59, 0.3));
}
.dish__lid img { width: 100%; }
.dish__shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../assets/img/cloche/cloche.webp) center / 100% 100% no-repeat;
  mask: url(../assets/img/cloche/cloche.webp) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.8) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0;
}
.dish__body { margin: 14px auto 0; width: var(--body-w, 100%); margin-left: calc((var(--dish-w) - var(--body-w, var(--dish-w))) / 2); }
.dish__n { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; color: var(--gold); }
.dish h3 { font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--plum); margin: 4px 0 6px; }
.dish p { font-size: 0.84rem; line-height: 1.5; color: var(--muted); }

.cloches:not(.is-live) .dish__lid { display: none; }
.cloches.is-live { display: block; position: relative; max-width: none; height: var(--stage-h, 460px); }
.cloches.is-live .dish { position: absolute; left: 50%; top: 0; margin-left: calc(var(--dish-w) / -2); }
.cloches.is-ready .dish, .cloches:not(.is-live) .dish { cursor: pointer; }
.cloches.is-ready .dish:hover .dish__cake, .cloches:not(.is-live) .dish:hover .dish__cake { transform: translateX(-50%) translateY(-6px); }
.dish__cake { transition: transform .5s var(--ease); }

@media (max-width: 980px) { .cloches:not(.is-live) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .cloches { --dish-w: min(29vw, 150px); gap: 36px 8px; grid-template-columns: repeat(3, 1fr); }
  .cloches:not(.is-live) { grid-template-columns: repeat(3, 1fr); }
  .dish p { display: none; }
  .dish h3 { font-size: 0.92rem; }
  .services .title { font-size: 1.75rem; }
  .dish__body { margin-top: 8px; }
  .dish h3 { line-height: 1.15; }
}

/* Primo piano di una torta */
.dish-focus {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--gutter);
  background: rgba(46, 26, 59, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dish-focus__card {
  position: relative; width: min(92vw, 860px); max-height: 90svh; overflow: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(20px, 4vw, 48px);
  padding: clamp(24px, 4vw, 52px); border-radius: var(--radius);
  background: radial-gradient(70% 70% at 30% 60%, var(--lilac) 0%, var(--cream) 75%);
  box-shadow: 0 50px 120px -30px rgba(20, 8, 30, 0.6);
}
.dish-focus__media { position: relative; display: grid; place-items: center; }
.dish-focus__photo { width: min(100%, 340px); aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(46, 26, 59, 0.5); }
.dish-focus__photo.is-wide { width: min(100%, 390px); aspect-ratio: 1 / 1; }
.dish-focus__cutout { position: absolute; left: 50%; top: 50%; margin: calc(var(--dish-w) * -0.475) 0 0 calc(var(--dish-w) / -2); pointer-events: none; }
.dish-focus .dish__set { --dish-w: min(70vw, 340px); width: var(--dish-w); }
.dish-focus .dish__lid { display: none; }
.dish-focus h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--plum); margin: 6px 0 14px; }
.dish-focus p { font-size: 1.02rem; color: var(--muted); margin-bottom: 24px; }
.dish-focus__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--plum); color: var(--cream); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
@media (max-width: 760px) {
  .dish-focus__card { grid-template-columns: 1fr; text-align: center; }
  .dish-focus .dish__set { --dish-w: min(64vw, 260px); }
  .dish-focus__photo { width: min(64vw, 260px); }
  .dish-focus__photo.is-wide { width: min(72vw, 300px); }
}

/* ------------ Ugly cake ------------ */
.ugly { background: var(--berry); color: var(--cream); padding: clamp(80px, 10vw, 140px) var(--gutter); overflow: hidden; }
.ugly__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ugly .title em { color: var(--gold-2); }
.ugly .eyebrow { color: var(--gold-2); }
.ugly__text p { margin: 22px 0 32px; max-width: 46ch; color: rgba(251, 246, 239, 0.9); }
.ugly__stickers { position: relative; height: clamp(360px, 40vw, 480px); }
.sticker { position: absolute; width: 56%; aspect-ratio: 1; border-radius: 28px; overflow: hidden; border: 10px solid var(--cream); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45); }
.sticker img { width: 100%; height: 100%; object-fit: cover; }
.sticker--a { left: 4%; top: 6%; transform: rotate(-8deg); }
.sticker--b { right: 2%; bottom: 0; transform: rotate(7deg); }
.sticker-label {
  position: absolute; right: 8%; top: 4%; z-index: 2; padding: 14px 18px; border-radius: 50%;
  background: var(--gold-2); color: var(--plum); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.1; text-align: center;
  transform: rotate(12deg); box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35);
  aspect-ratio: 1; display: grid; place-items: center; width: 120px;
}
@media (max-width: 860px) { .ugly__inner { grid-template-columns: 1fr; } }

/* ------------ Ingredienti ------------ */
.ingredients { background: var(--lilac); }
.ingredients__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.ingredients__intro { position: sticky; top: calc(var(--header-h) + 40px); }
.ingredients__intro p { color: var(--muted); margin-top: 22px; max-width: 42ch; }
.ingredients__list { list-style: none; }
.ingr { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ingr:first-child { border-top: 1px solid var(--line); }
.ingr__n { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--lilac-3); }
.ingr h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); color: var(--plum); margin-bottom: 6px; }
.ingr h3 small { font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--berry); vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.ingr p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) {
  .ingredients__grid { grid-template-columns: 1fr; }
  .ingredients__intro { position: static; }
  .ingr { grid-template-columns: 48px 1fr; }
}

/* ------------ Pasticceria ------------ */
.bakery { overflow: hidden; }
.bakery__cols { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.bakery__col { display: flex; flex-direction: column; gap: 18px; }
.bakery__col:nth-child(even) { margin-top: 80px; }
.bakery figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream-2); }
.bakery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bakery figure:hover img { transform: scale(1.06); }
.bakery figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 100px; background: rgba(251, 246, 239, 0.92); font-size: 0.82rem; font-weight: 600; color: var(--plum); }
@media (max-width: 860px) {
  .bakery__cols { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bakery__col { gap: 12px; }
  .bakery__col:nth-child(even) { margin-top: 40px; }
}

/* ------------ Feste ------------ */
.seasons { background: var(--cream-2); padding-left: 0; padding-right: 0; }
.seasons .section__head { padding: 0 var(--gutter); }
.seasons__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 26px; scrollbar-width: thin; scrollbar-color: var(--lilac-2) transparent; }
.season { flex: 0 0 clamp(270px, 30vw, 380px); scroll-snap-align: start; background: var(--cream); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.season:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(46, 26, 59, 0.45); }
.season img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.season > div { padding: 22px 24px 26px; }
.season span { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry); }
.season h3 { font-size: 1.5rem; color: var(--plum); margin: 8px 0; }
.season p { font-size: 0.94rem; color: var(--muted); }

/* ------------ Recensioni ------------ */
.reviews { background: var(--plum); color: var(--cream); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; text-align: center; }
.reviews__head { padding: 0 var(--gutter); margin-bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.reviews__score { display: flex; align-items: center; gap: 18px; text-align: left; }
.reviews__score strong { font-family: var(--font-display); font-weight: 400; font-size: 4.4rem; line-height: 1; color: var(--gold-2); }
.reviews__score span { display: block; font-size: 0.92rem; color: rgba(251, 246, 239, 0.75); }
.reviews__score .stars { font-size: 1.25rem; color: var(--gold); }
.reviews__rows { display: flex; flex-direction: column; gap: 20px; margin-bottom: 56px; }
.reviews__row { display: flex; gap: 20px; width: max-content; padding: 0 10px; will-change: transform; }
.review {
  width: clamp(290px, 34vw, 440px); flex: none; text-align: left;
  padding: 28px; border-radius: var(--radius); background: rgba(251, 246, 239, 0.06); border: 1px solid rgba(251, 246, 239, 0.12);
}
.review p { font-family: var(--font-display); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.45; margin-bottom: 18px; }
.review footer { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 0.9rem; }
.review footer span { color: var(--gold); font-weight: 600; font-size: 0.82rem; }

/* ------------ Ordina ------------ */
.order__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.order__intro p { color: var(--muted); margin: 22px 0 28px; max-width: 46ch; }
.order__direct { display: flex; flex-wrap: wrap; gap: 10px; }
.order__form { background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -40px rgba(46, 26, 59, 0.35); border: 1px solid var(--line); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--plum); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream);
  font-size: 1rem; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lilac-3); box-shadow: 0 0 0 4px rgba(154, 127, 192, 0.18); }
.field.is-invalid input { border-color: var(--berry); }
.form-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .order__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ------------ Visita ------------ */
.visit { background: var(--lilac); }
.visit__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.arch--visit { aspect-ratio: 4 / 5; }
.visit__addr { font-size: 1.1rem; color: var(--muted); margin: 14px 0 18px; }
.open-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; background: var(--cream); font-weight: 700; font-size: 0.86rem; color: var(--plum); margin-bottom: 18px; }
.open-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa0a6; }
.open-badge.is-open::before { background: #2fa36b; box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.2); }
.hours { width: 100%; max-width: 480px; border-collapse: collapse; margin-bottom: 30px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.97rem; }
.hours th { font-weight: 600; color: var(--plum); }
.hours td { color: var(--muted); text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--berry); font-weight: 700; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .arch--visit { width: min(80%, 380px); justify-self: center; }
}

/* ------------ Footer ------------ */
.footer { background: var(--plum); color: rgba(251, 246, 239, 0.8); padding: 40px var(--gutter) 30px; overflow: hidden; }
.footer__big { font-family: var(--font-display); font-style: italic; font-size: clamp(4rem, 15vw, 15rem); line-height: 0.9; color: var(--plum-2); text-align: center; white-space: nowrap; margin-bottom: 40px; letter-spacing: -0.03em; }
.footer__grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(251, 246, 239, 0.12); }
.footer__brand img { width: 72px; height: 72px; margin-bottom: 14px; }
.footer h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.footer p { font-size: 0.95rem; margin-bottom: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); text-decoration: underline; }
.footer__bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.84rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 26px; } }

/* ------------ WhatsApp ------------ */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.35); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ------------ Reveal (stato iniziale solo con JS attivo) ------------ */
.js .reveal { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
