/* =========================================================
   Cremeria Scirocco — restyling
   Colori principali presi dal sito originale e dal logo:
   verde #ABC96B · magenta #AD1F5F · blu #084177 · beige #E7CCB6 · malva #A794A4
   ========================================================= */

:root {
  /* identità originale */
  --verde: #ABC96B;
  --magenta: #AD1F5F;
  --blu: #084177;
  --beige: #E7CCB6;
  --malva: #A794A4;
  --ink: #292F36;

  /* tinte derivate */
  --verde-chiaro: #DDEABF;
  --verde-scuro: #4F6B1E;      /* verde leggibile su crema (AA) */
  --magenta-scuro: #8A174B;
  --magenta-chiaro: #F6DCE7;
  --blu-notte: #052A4D;
  --blu-profondo: #031C35;
  --crema: #FBF5EE;
  --crema-2: #F4E9DD;
  --beige-scuro: #C9A68A;
  --testo: #2E3238;
  --testo-2: #5B5F66;
  --bianco: #FFFFFF;

  --font-display: "Fraunces", "Playfair Display", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 40px;
  --shadow-s: 0 2px 8px rgba(5, 42, 77, .08);
  --shadow-m: 0 14px 40px -12px rgba(5, 42, 77, .22);
  --shadow-l: 0 30px 80px -24px rgba(5, 42, 77, .35);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sat: env(safe-area-inset-top, 0px);
  --header-h: calc(76px + var(--sat)); /* include la barra di stato di iPhone */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--testo);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--blu-notte); font-variation-settings: "SOFT" 50, "WONK" 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--verde); color: var(--blu-notte); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--magenta); color: #fff; padding: 12px 18px; border-radius: var(--r-s); text-decoration: none; font-weight: 600; transition: transform .3s var(--ease-out); }
.skip-link:focus { transform: translateY(76px); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--verde); }
.display { font-size: clamp(2.6rem, 7.2vw, 6.2rem); font-weight: 400; line-height: .98; letter-spacing: -.03em; }
.h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 400; letter-spacing: -.025em; }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--testo-2); max-width: 58ch; }
em.accent, .accent { font-style: italic; color: var(--magenta); font-variation-settings: "SOFT" 100, "WONK" 1; }
.on-dark .accent, .accent--verde { color: var(--verde); }
.section-head { display: grid; gap: 1.2rem; margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section-head--center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head .lead { margin: 0; }

/* ---------- pulsanti ---------- */
.btn {
  --bg: var(--magenta); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s;
  box-shadow: 0 10px 24px -10px rgba(173, 31, 95, .6);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.btn:hover::after { opacity: 1; }
.btn:hover { box-shadow: 0 16px 34px -12px rgba(173, 31, 95, .7); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .4s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--verde { --bg: var(--verde); --fg: var(--blu-notte); box-shadow: 0 10px 24px -10px rgba(110, 140, 50, .6); }
.btn--ghost { --bg: transparent; --fg: var(--blu-notte); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { --bg: var(--blu-notte); --fg: var(--crema); box-shadow: inset 0 0 0 1.5px var(--blu-notte); }
.on-dark .btn--ghost { --fg: var(--crema); }
.on-dark .btn--ghost:hover { --bg: var(--crema); --fg: var(--blu-notte); box-shadow: none; }
.btn--small { min-height: 44px; padding: 0 1.2em; font-size: .9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; color: var(--magenta);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .45s var(--ease-out); padding-bottom: 2px; min-height: 44px;
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), box-shadow .4s, transform .5s var(--ease-out), backdrop-filter .4s;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(5, 42, 77, .86);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.5);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--crema); min-height: 44px; }
.brand img { height: 46px; width: auto; }
.brand-text { display: grid; line-height: 1.05; padding-left: 14px; border-left: 1px solid rgba(251,245,238,.25); }
.brand-text b { font-family: var(--font-display); font-weight: 500; font-size: 1.22rem; letter-spacing: -.01em; }
.brand-text small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-top: 3px; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--crema); text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: 999px;
  transition: background-color .3s, color .3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--verde); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.has-sub { position: relative; }
.has-sub > a .chev { width: 14px; height: 14px; margin-left: 4px; transition: transform .3s; }
.has-sub:hover > a .chev, .has-sub:focus-within > a .chev { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 50%; min-width: 300px; padding: 10px;
  background: var(--crema); border-radius: var(--r-m); box-shadow: var(--shadow-l);
  display: grid !important; gap: 2px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98); transform-origin: top center;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out), visibility .3s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.submenu a { color: var(--blu-notte); display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; min-height: 48px; }
.submenu a::after { display: none; }
.submenu a:hover { background: var(--crema-2); }
.submenu .sub-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--c, var(--verde)); }
.submenu span { display: grid; line-height: 1.3; }
.submenu small { color: var(--testo-2); font-size: .8rem; }
.header-cta { display: none; }

.menu-toggle {
  position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(251,245,238,.12); display: grid; place-items: center;
}
.menu-toggle span { position: absolute; width: 20px; height: 2px; border-radius: 2px; background: var(--crema); transition: transform .45s var(--ease-out), opacity .3s; }
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }
.menu-open .menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .menu-toggle span:nth-child(3) { transform: rotate(-45deg); }

/* menu mobile a tutto schermo */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--blu-notte); color: var(--crema);
  padding: calc(var(--header-h) + 20px) var(--gutter) 120px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 44px) calc(38px + var(--sat))); visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) calc(38px + var(--sat))); visibility: visible; transition: clip-path .7s var(--ease-io), visibility 0s; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
.mobile-menu nav > ul > li { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.menu-open .mobile-menu nav > ul > li { opacity: 1; transform: none; }
.menu-open .mobile-menu nav > ul > li:nth-child(1) { transition-delay: .18s; }
.menu-open .mobile-menu nav > ul > li:nth-child(2) { transition-delay: .23s; }
.menu-open .mobile-menu nav > ul > li:nth-child(3) { transition-delay: .28s; }
.menu-open .mobile-menu nav > ul > li:nth-child(4) { transition-delay: .33s; }
.menu-open .mobile-menu nav > ul > li:nth-child(5) { transition-delay: .38s; }
.menu-open .mobile-menu nav > ul > li:nth-child(6) { transition-delay: .43s; }
.mobile-menu nav > ul > li > a {
  display: flex; align-items: center; justify-content: space-between; min-height: 60px;
  font-family: var(--font-display); font-size: 2rem; text-decoration: none; border-bottom: 1px solid rgba(251,245,238,.12);
}
.mobile-menu .mm-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 0 18px; }
.mobile-menu .mm-sub a { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 14px; background: rgba(251,245,238,.07); text-decoration: none; font-size: .95rem; }
.mobile-menu .mm-contact { margin-top: 28px; display: grid; gap: 10px; color: rgba(251,245,238,.8); font-size: .95rem; }

/* barra azioni fissa su mobile: contatti tutti su una riga */
.quickbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 95;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px;
  background: rgba(5, 42, 77, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px; box-shadow: var(--shadow-l);
  transform: translateY(140%); transition: transform .6s var(--ease-out);
}
.quickbar.is-visible { transform: none; }
.quickbar a {
  display: grid; justify-items: center; gap: 2px; min-height: 54px; padding: 8px 4px; border-radius: 16px;
  color: var(--crema); text-decoration: none; font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  transition: background-color .3s;
}
.quickbar a:first-child { background: var(--magenta); }
.quickbar a:active { transform: scale(.96); }
.quickbar svg { width: 21px; height: 21px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(171, 201, 107, .22), transparent 70%),
    radial-gradient(45% 50% at 95% 90%, rgba(173, 31, 95, .35), transparent 70%),
    radial-gradient(70% 60% at 0% 100%, rgba(8, 65, 119, .9), transparent 70%),
    var(--blu-notte);
  color: var(--crema); overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 24px) 0 64px;
}
.hero::before { /* grana leggera */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .08; pointer-events: none;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; gap: 8px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { color: var(--crema); margin-bottom: .32em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.is-loaded .hero h1 .line > span { transform: none; }
.is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: .1s; }
.is-loaded .hero h1 .line:nth-child(3) > span { transition-delay: .2s; }
.hero .lead { color: rgba(251, 245, 238, .82); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fade { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out) .45s, transform .9s var(--ease-out) .45s; }
.is-loaded .hero-fade { opacity: 1; transform: none; }
.hero-award {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.6rem; padding: 6px 16px 6px 6px;
  border-radius: 999px; background: rgba(251,245,238,.08); border: 1px solid rgba(251,245,238,.14);
  font-size: .86rem; color: rgba(251,245,238,.9); text-decoration: none;
  transition: background-color .3s;
}
.hero-award:hover { background: rgba(251,245,238,.14); }
.hero-award img { width: 34px; height: 34px; border-radius: 50%; }
.hero-award b { color: var(--verde); font-weight: 600; }

.hero-stage { position: relative; height: clamp(340px, 52vh, 620px); margin-inline: calc(var(--gutter) * -1); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .8s var(--ease-out); }
.hero-fallback img { height: 92%; width: auto; filter: drop-shadow(0 40px 50px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
.has-3d .hero-fallback { opacity: 0; pointer-events: none; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }
.hero-hint {
  position: absolute; right: 0; bottom: 8px; display: none !important;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(251,245,238,.5);
  display: flex; align-items: center; gap: 8px; pointer-events: none; white-space: nowrap;
}
.hero-hint i { width: 16px; height: 24px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.hero-hint i::after { content: ""; position: absolute; left: 50%; top: 5px; width: 2px; height: 5px; margin-left: -1px; background: currentColor; border-radius: 2px; animation: wheel 1.8s var(--ease-out) infinite; }
@keyframes wheel { to { transform: translateY(8px); opacity: 0; } }

.hero-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: none; border-top: 1px solid rgba(251,245,238,.1);
}
.hero-strip .container { display: flex; gap: 40px; align-items: center; min-height: 72px; font-size: .9rem; color: rgba(251,245,238,.75); }
.hero-strip b { color: var(--crema); font-weight: 600; }
.open-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--verde); margin-right: 8px; box-shadow: 0 0 0 0 rgba(171,201,107,.6); animation: pulse 2s infinite; vertical-align: middle; }
.open-dot.is-closed { background: #E58BAF; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(171,201,107,0); } 100% { box-shadow: 0 0 0 0 rgba(171,201,107,0); } }

/* scorciatoie (mobile: per non scorrere troppo) */
.shortcuts { position: relative; z-index: 5; margin-top: -34px; }
.shortcuts ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shortcuts a {
  display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; border-radius: var(--r-m);
  background: var(--bianco); box-shadow: var(--shadow-m); text-decoration: none; color: var(--blu-notte);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.shortcuts a:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.shortcuts .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--c, var(--verde-chiaro)); }
.shortcuts .ico svg { width: 22px; height: 22px; }
.shortcuts small { display: block; font-weight: 400; color: var(--testo-2); font-size: .78rem; }

/* ---------- marquee premi ---------- */
.marquee { overflow: hidden; padding-block: 26px; background: var(--crema); border-block: 1px solid rgba(5,42,77,.08);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.5rem; color: var(--blu-notte); white-space: nowrap; }
.marquee-item .cones { display: flex; gap: 2px; color: var(--magenta); }
.marquee-item .cones svg { width: 14px; height: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- intro / storia ---------- */
.intro-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.intro-media { position: relative; }
.intro-media .ph-main { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-l); aspect-ratio: 4 / 5; }
.intro-media .ph-main img { width: 100%; height: 100%; object-fit: cover; }
.intro-media .ph-float {
  position: absolute; width: 40%; right: 10px; bottom: -8%; border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow-l); border: 6px solid var(--crema); aspect-ratio: 3 / 4;
}
.intro-media .ph-float img { width: 100%; height: 100%; object-fit: cover; }
.intro-stamp {
  position: absolute; left: 12px; top: 12px; width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center; background: var(--verde); color: var(--blu-notte);
  box-shadow: var(--shadow-m); text-align: center; line-height: 1;
}
.intro-stamp b { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -.01em; font-weight: 500; display: block; }
.intro-stamp small { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.intro-stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.values { display: grid; gap: 14px; margin: 2rem 0 2.2rem; }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-m); background: var(--bianco); box-shadow: var(--shadow-s); }
.value .num { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--magenta); flex: none; width: 34px; }
.value h3 { font-size: 1.25rem; margin: 0 0 4px; }
.value p { margin: 0; color: var(--testo-2); font-size: .97rem; }
blockquote.quote { margin: 0; padding-left: 20px; border-left: 3px solid var(--verde); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--blu-notte); }
blockquote.quote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: .85rem; color: var(--testo-2); }

/* ---------- gusti iconici ---------- */
.flavors { background: var(--blu-notte); color: var(--crema); overflow: hidden; }
.flavors h2 { color: var(--crema); }
.flavors .lead { color: rgba(251,245,238,.75); }
.flavor-grid { display: grid; gap: 16px; }
.flavor {
  --c: var(--verde);
  position: relative; padding: 26px 24px 24px; border-radius: var(--r-l);
  background: linear-gradient(160deg, rgba(251,245,238,.09), rgba(251,245,238,.03));
  border: 1px solid rgba(251,245,238,.1); overflow: hidden; isolation: isolate;
  transform-style: preserve-3d; transition: transform .5s var(--ease-out), border-color .4s;
  will-change: transform;
}
.flavor::before { /* riflesso che segue il mouse */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 35%, transparent), transparent 65%);
}
.flavor:hover::before { opacity: 1; }
.flavor:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.flavor .scoop { width: 54px; height: 54px; border-radius: 50% 50% 46% 54%; margin-bottom: 18px; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.65), transparent 32%), var(--c); box-shadow: inset -6px -8px 0 rgba(0,0,0,.12), 0 12px 24px -8px var(--c); transform: translateZ(30px); }
.flavor h3 { color: var(--crema); font-size: 1.45rem; margin-bottom: 8px; transform: translateZ(20px); }
.flavor p { color: rgba(251,245,238,.72); font-size: .95rem; margin: 0; }
.flavor .tag { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; background: rgba(251,245,238,.08); color: var(--verde); }
.flavor .tag--premio { background: var(--magenta); color: #fff; }
.flavors-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- prodotti (card con tilt) ---------- */
.products-grid { display: grid; gap: 18px; }
.product-card {
  position: relative; display: flex; flex-direction: column; min-height: 420px; border-radius: var(--r-l); overflow: hidden;
  color: var(--crema); text-decoration: none; isolation: isolate; background: var(--blu-notte);
  box-shadow: var(--shadow-m); transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); will-change: transform;
}
.product-card:hover { box-shadow: var(--shadow-l); }
.product-card .pc-img { position: absolute; inset: 0; z-index: -2; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.product-card:hover .pc-img img { transform: scale(1.12); }
.product-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3,28,53,0) 30%, rgba(3,28,53,.88) 100%); }
.product-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18), transparent 55%); }
.product-card:hover::after { opacity: 1; }
.pc-body { margin-top: auto; padding: 26px; transform: translateZ(40px); }
.pc-body h3 { color: var(--crema); font-size: 1.85rem; margin-bottom: 6px; }
.pc-body p { color: rgba(251,245,238,.8); font-size: .95rem; margin: 0 0 14px; max-width: 40ch; }
.pc-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--verde); font-size: .92rem; }
.pc-more svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.product-card:hover .pc-more svg { transform: translateX(5px); }
.pc-chip { position: absolute; top: 18px; left: 18px; padding: 6px 12px; border-radius: 999px; background: rgba(251,245,238,.92); color: var(--blu-notte); font-size: .74rem; font-weight: 600; letter-spacing: .04em; }

/* ---------- come è fatto: ingredienti con profondità ---------- */
.craft { background: linear-gradient(180deg, var(--crema) 0%, var(--crema-2) 100%); overflow: hidden; }
.craft-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.craft-visual { position: relative; aspect-ratio: 1; max-width: 560px; margin-inline: auto; width: 100%; }
.craft-visual .plate { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, var(--beige) 75%); box-shadow: inset 0 -20px 40px rgba(201,166,138,.4), var(--shadow-l); }
.craft-visual .layer { position: absolute; will-change: transform; transition: transform .9s var(--ease-out); }
.craft-visual .layer img { width: 100%; filter: drop-shadow(0 22px 22px rgba(5,42,77,.22)); }
.craft-visual .l-cono { left: 28%; top: 6%; width: 44%; }
.craft-visual .l-fragola { left: 0; top: 52%; width: 30%; }
.craft-visual .l-vaniglia { right: -2%; top: 8%; width: 34%; }
.craft-visual .l-limone { right: 4%; bottom: 2%; width: 24%; border-radius: 50%; overflow: hidden; }
.craft-visual .l-limone img { mix-blend-mode: multiply; filter: none; }
.craft-visual .l-latte { left: 4%; top: 2%; width: 15%; }
.craft-list { display: grid; gap: 4px; counter-reset: c; }
.craft-item { border-bottom: 1px solid rgba(5,42,77,.12); }
.craft-item button {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 0; min-height: 64px;
  background: none; border: 0; text-align: left; font-family: var(--font-display); font-size: 1.35rem; color: var(--blu-notte);
}
.craft-item button::before { counter-increment: c; content: "0" counter(c); font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--magenta); letter-spacing: .08em; width: 26px; }
.craft-item .plus { margin-left: auto; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--bianco); display: grid; place-items: center; box-shadow: var(--shadow-s); transition: transform .5s var(--ease-out), background-color .3s; }
.craft-item .plus svg { width: 16px; height: 16px; }
.craft-item button[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--verde); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 0 22px 42px; margin: 0; color: var(--testo-2); opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease-out); }
[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }
[aria-expanded="true"] + .acc-panel p { opacity: 1; transform: none; transition-delay: .1s; }

/* ---------- premi timeline ---------- */
.awards { background: var(--bianco); overflow: hidden; }
.awards-top { display: grid; gap: 32px; align-items: end; margin-bottom: 48px; }
.awards-badge { display: flex; align-items: center; gap: 20px; }
.awards-badge img { width: 112px; height: 112px; border-radius: 50%; box-shadow: var(--shadow-m); animation: spin-slow 30s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.awards-badge b { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--magenta); font-weight: 500; display: block; }
.awards-badge span { color: var(--testo-2); font-size: .95rem; }
.award-rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; cursor: grab; }
.award-rail::-webkit-scrollbar { display: none; }
.award-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.award {
  flex: 0 0 min(78vw, 320px); scroll-snap-align: start; border-radius: var(--r-m); background: var(--crema);
  padding: 14px 14px 18px; position: relative; transition: transform .5s var(--ease-out), box-shadow .5s;
  border: 1px solid rgba(5,42,77,.06);
}
.award:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-m); }
.award button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.award img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.award .year { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; }
.award .year b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: var(--blu-notte); line-height: 1; }
.award .year span { font-size: .78rem; font-weight: 600; color: var(--magenta); text-transform: uppercase; letter-spacing: .1em; }
.rail-nav { display: flex; gap: 10px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(5,42,77,.2); background: var(--bianco); display: grid; place-items: center; color: var(--blu-notte); transition: background-color .3s, color .3s, transform .4s var(--ease-out), border-color .3s; }
.round-btn:hover { background: var(--blu-notte); color: var(--crema); border-color: var(--blu-notte); }
.round-btn:active { transform: scale(.92); }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- recensioni carosello ---------- */
.reviews { background: var(--crema-2); overflow: hidden; }
.reviews-head { display: grid; gap: 28px; align-items: end; margin-bottom: 44px; }
.rating-box { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-l); background: var(--bianco); box-shadow: var(--shadow-m); }
.rating-box .big { font-family: var(--font-display); font-size: 3.8rem; line-height: 1; color: var(--blu-notte); }
.stars { display: inline-flex; gap: 3px; color: #E7A42B; }
.stars svg { width: 18px; height: 18px; }
.stars .off { color: #D9CFC4; }
.rating-box .meta { display: grid; gap: 4px; font-size: .9rem; color: var(--testo-2); }
.rating-box .meta b { color: var(--blu-notte); }
.g-logo { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 28px; touch-action: pan-y; cursor: grab; }
.carousel-viewport.is-dragging { cursor: grabbing; }
.carousel-track { display: flex; gap: 18px; will-change: transform; }
.carousel-track.is-animating { transition: transform .75s var(--ease-out); }
.review {
  flex: 0 0 calc(100% - 28px); display: flex; flex-direction: column; gap: 16px; padding: 28px 26px;
  background: var(--bianco); border-radius: var(--r-l); box-shadow: var(--shadow-s); user-select: none;
  transition: transform .5s var(--ease-out), box-shadow .5s, opacity .5s;
}
.review:hover { box-shadow: var(--shadow-m); }
.review .q { font-family: var(--font-display); font-size: 4rem; line-height: .6; color: var(--verde); height: 26px; }
.review p { margin: 0; font-size: 1.02rem; color: var(--testo); flex: 1; }
.review footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(5,42,77,.08); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; background: var(--c, var(--blu)); flex: none; }
.review footer b { display: block; color: var(--blu-notte); font-size: .97rem; }
.review footer small { color: var(--testo-2); font-size: .82rem; }
.review footer .stars { margin-left: auto; }
.review footer .stars svg { width: 14px; height: 14px; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dots button { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.dots button::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: rgba(5,42,77,.22); transition: width .5s var(--ease-out), background-color .3s; }
.dots button[aria-current="true"]::before { width: 28px; background: var(--magenta); }
.reviews-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- torte CTA ---------- */
.cake-cta { position: relative; overflow: hidden; background: var(--magenta); color: #fff; border-radius: var(--r-xl); isolation: isolate; }
.cake-cta-grid { display: grid; }
.cake-cta .cc-copy { padding: clamp(32px, 5vw, 72px); position: relative; z-index: 2; }
.cake-cta h2 { color: #fff; }
.cake-cta p { color: rgba(255,255,255,.88); max-width: 46ch; }
.cake-cta .eyebrow { color: var(--verde-chiaro); }
.cake-cta .cc-img { position: relative; min-height: 300px; }
.cake-cta .cc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cake-cta .btn { --bg: #fff; --fg: var(--magenta-scuro); box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.cake-cta .btn--ghost { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.cake-cta .btn--ghost:hover { --bg: #fff; --fg: var(--magenta-scuro); }
.cc-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.cc-list li { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: .86rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--bianco); border-radius: var(--r-m); box-shadow: var(--shadow-s); overflow: hidden; }
.faq-item button { width: 100%; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 18px 22px; background: none; border: 0; text-align: left; font-weight: 600; font-size: 1.02rem; color: var(--blu-notte); }
.faq-item .plus { margin-left: auto; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--crema-2); display: grid; place-items: center; transition: transform .5s var(--ease-out), background-color .3s; }
.faq-item .plus svg { width: 14px; height: 14px; }
.faq-item button[aria-expanded="true"] .plus { transform: rotate(45deg); background: var(--verde); }
.faq-item .acc-panel p { padding: 0 22px 22px; }

/* ---------- visita / orari / mappa ---------- */
.visit { background: var(--blu-notte); color: var(--crema); }
.visit h2, .visit h3 { color: var(--crema); }
.visit-grid { display: grid; gap: 24px; }
.visit-card { background: rgba(251,245,238,.06); border: 1px solid rgba(251,245,238,.1); border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); }
.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; border-radius: 999px; background: rgba(171,201,107,.14); color: var(--verde); font-weight: 600; font-size: .9rem; margin-bottom: 18px; }
.status-pill.is-closed { background: rgba(229,139,175,.14); color: #F2A9C6; }
.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours td { padding: 11px 0; border-bottom: 1px solid rgba(251,245,238,.08); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--verde); font-weight: 600; }
.hours tr.is-today td:first-child::after { content: " · oggi"; font-weight: 400; opacity: .8; }
.hours .closed { color: rgba(251,245,238,.5); }
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.contact-row a { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; min-height: 76px; border-radius: var(--r-m); background: rgba(251,245,238,.08); text-decoration: none; font-size: .82rem; font-weight: 600; text-align: center; transition: background-color .3s, transform .4s var(--ease-out); }
.contact-row a:hover { background: var(--magenta); transform: translateY(-3px); }
.contact-row svg { width: 22px; height: 22px; color: var(--verde); }
.contact-row a:hover svg { color: #fff; }
.contact-lines { display: grid; gap: 6px; margin-top: 22px; font-size: .95rem; color: rgba(251,245,238,.8); }
.contact-lines a { text-decoration: none; color: var(--crema); }
.contact-lines a:hover { color: var(--verde); }
.map-wrap { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 380px; background: #0b355e; }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.02); }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; gap: 12px; align-content: center; background: radial-gradient(circle at 50% 40%, rgba(171,201,107,.18), transparent 60%), #0b355e; }
.map-placeholder p { margin: 0; color: rgba(251,245,238,.75); font-size: .92rem; max-width: 34ch; }
.map-pin { width: 64px; height: 64px; border-radius: 50%; background: var(--magenta); display: grid; place-items: center; animation: bob 2.6s ease-in-out infinite; box-shadow: 0 0 0 12px rgba(173,31,95,.2); }
.map-pin svg { width: 28px; height: 28px; color: #fff; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- footer ---------- */
.site-footer { background: var(--blu-profondo); color: rgba(251,245,238,.75); padding: 80px 0 120px; font-size: .95rem; position: relative; overflow: hidden; }
.footer-big { font-family: var(--font-display); font-size: clamp(3rem, 12vw, 10rem); line-height: .9; color: rgba(251,245,238,.06); letter-spacing: -.04em; white-space: nowrap; margin-bottom: 40px; user-select: none; }
.footer-grid { display: grid; gap: 40px; }
.site-footer h3 { color: var(--crema); font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer a { text-decoration: none; color: inherit; display: inline-flex; align-items: center; min-height: 44px; transition: color .3s; }
.site-footer ul { gap: 0; }
.site-footer a:hover { color: var(--verde); }
.footer-logo img { height: 56px; width: auto; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(251,245,238,.08); transition: background-color .3s, transform .4s var(--ease-out); }
.socials a:hover { background: var(--magenta); color: #fff; transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.newsletter { display: grid; gap: 10px; margin-top: 6px; }
.newsletter .field-inline { display: flex; gap: 8px; background: rgba(251,245,238,.08); border-radius: 999px; padding: 5px; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; color: var(--crema); padding: 0 16px; font: inherit; min-height: 44px; }
.newsletter input::placeholder { color: rgba(251,245,238,.5); }
.newsletter input:focus { outline: none; }
.newsletter .field-inline:focus-within { box-shadow: 0 0 0 2px var(--verde); }
.newsletter .btn { min-height: 44px; padding: 0 18px; }
.newsletter small { font-size: .78rem; color: rgba(251,245,238,.55); }
.newsletter .form-msg { color: var(--verde); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(251,245,238,.1); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .84rem; color: rgba(251,245,238,.55); }

.to-top {
  position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 94;
  width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--verde); color: var(--blu-notte);
  display: grid; place-items: center; box-shadow: var(--shadow-m);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .5s var(--ease-spring);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
.to-top .ring { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--magenta); stroke-width: 3; stroke-linecap: round; }

/* ---------- pagine interne ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(64px, 9vw, 120px);
  background: radial-gradient(60% 80% at 90% 10%, rgba(171,201,107,.2), transparent 60%), radial-gradient(50% 60% at 100% 100%, rgba(173,31,95,.3), transparent 70%), var(--blu-notte);
  color: var(--crema); overflow: hidden; isolation: isolate;
}
.page-hero h1 { color: var(--crema); font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-weight: 400; letter-spacing: -.03em; max-width: 16ch; }
.page-hero .lead { color: rgba(251,245,238,.8); }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
.page-hero-img { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-l); transform: perspective(900px) rotateY(-6deg) rotateX(2deg); transition: transform .8s var(--ease-out); }
.page-hero-img:hover { transform: perspective(900px) rotateY(0) rotateX(0); }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(251,245,238,.6); margin-bottom: 1.4rem; }
.breadcrumb a { text-decoration: none; color: rgba(251,245,238,.85); }
.breadcrumb a:hover { color: var(--verde); }
.prose { max-width: 70ch; }
.prose p { color: var(--testo); }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.4em; }
.prose strong { color: var(--blu-notte); }
.prose-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--bianco); border-radius: var(--r-l); padding: 28px; box-shadow: var(--shadow-m); }
.aside-card h3 { font-size: 1.4rem; }
.aside-card p { color: var(--testo-2); font-size: .95rem; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.check-list { display: grid; gap: 12px; margin: 1.2em 0 1.6em; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--verde-chiaro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F6B1E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.no-list li::before { background: var(--magenta-chiaro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AD1F5F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0 1.6em; }
.chip { padding: 10px 16px; border-radius: 999px; background: var(--bianco); box-shadow: var(--shadow-s); font-size: .95rem; color: var(--blu-notte); transition: transform .4s var(--ease-out), background-color .3s; }
.chip:hover { transform: translateY(-3px) rotate(-1deg); background: var(--verde-chiaro); }
.chip--hot { background: var(--magenta); color: #fff; }
.chip--hot:hover { background: var(--magenta-scuro); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 2rem; }
.gallery button { border: 0; padding: 0; border-radius: var(--r-m); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--crema-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gallery button:hover img { transform: scale(1.06); }
.other-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.other-products a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; min-height: 64px; border-radius: var(--r-m); background: var(--bianco); text-decoration: none; font-weight: 600; color: var(--blu-notte); box-shadow: var(--shadow-s); transition: transform .4s var(--ease-out), background-color .3s, color .3s; }
.other-products a:hover { transform: translateY(-3px); background: var(--blu-notte); color: var(--crema); }
.other-products svg { width: 18px; height: 18px; flex: none; }

/* gusti live */
.live-wrap { border-radius: var(--r-l); overflow: hidden; background: var(--bianco); box-shadow: var(--shadow-l); }
.live-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: var(--blu-notte); color: var(--crema); font-size: .92rem; }
.live-bar .live { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.live-bar .live i { width: 9px; height: 9px; border-radius: 50%; background: #FF5A7A; animation: pulse-red 1.6s infinite; }
@keyframes pulse-red { 70% { box-shadow: 0 0 0 8px rgba(255,90,122,0); } 0% { box-shadow: 0 0 0 0 rgba(255,90,122,.6); } }
.live-bar a { color: var(--verde); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.live-frame { position: relative; height: min(78vh, 900px); }
.live-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.live-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--testo-2); background: var(--bianco); transition: opacity .5s; }
.live-loading.is-done { opacity: 0; pointer-events: none; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bianco); font-size: .88rem; box-shadow: var(--shadow-s); }
.legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }

/* form */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--blu-notte); }
.field label .opt { font-weight: 400; color: var(--testo-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 14px; border: 1.5px solid rgba(5,42,77,.16);
  background: var(--bianco); font: inherit; color: var(--testo); transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blu); box-shadow: 0 0 0 4px rgba(8,65,119,.12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(173,31,95,.1); }
.field .err { color: var(--magenta); font-size: .85rem; min-height: 0; display: none; }
.field.has-error .err { display: block; animation: shake .4s var(--ease-out); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--testo-2); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--magenta); flex: none; }
.form-card { background: var(--bianco); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-l); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.is-visible { display: block; animation: pop .7s var(--ease-spring); }
.form-success .ok { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--verde); display: grid; place-items: center; }
.form-success .ok svg { width: 40px; height: 40px; color: var(--blu-notte); stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .3s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }
.btn.is-loading { pointer-events: none; }
.btn.is-loading span { opacity: .0; }
.btn.is-loading::before { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }

.role-grid { display: grid; gap: 16px; }
.role { background: var(--bianco); border-radius: var(--r-l); padding: 28px; box-shadow: var(--shadow-s); }
.role h3 { font-size: 1.5rem; }
.role .check-list { margin-bottom: 0; }

.team-grid { display: grid; gap: 18px; }
.qa { background: var(--bianco); border-radius: var(--r-l); padding: 28px; box-shadow: var(--shadow-s); }
.qa h3 { font-size: 1.35rem; color: var(--magenta); font-style: italic; }
.qa p { margin: 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(3,28,53,.92); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.lightbox img { max-height: 84vh; width: auto; border-radius: var(--r-m); box-shadow: var(--shadow-l); transform: scale(.94); transition: transform .5s var(--ease-out); }
.lightbox.is-open img { transform: none; }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(251,245,238,.12); color: var(--crema); display: grid; place-items: center; }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(251,245,238,.8); font-size: .9rem; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--blu-notte); color: var(--crema); padding: 120px var(--gutter); }
.notfound h1 { color: var(--crema); font-size: clamp(6rem, 22vw, 16rem); line-height: .9; margin: 0; }
.notfound .melt { display: inline-block; animation: melt 3s ease-in-out infinite; transform-origin: top; }
@keyframes melt { 50% { transform: scaleY(1.06) translateY(4px); } }

/* ---------- cursore personalizzato (solo mouse) ---------- */
.cursor-glow { position: fixed; top: 0; left: 0; z-index: 1; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(171,201,107,.12), transparent 60%); opacity: 0; transition: opacity .6s; will-change: transform; }
.cursor-dot { position: fixed; top: 0; left: 0; z-index: 400; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--magenta); pointer-events: none; opacity: 0; transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .3s; mix-blend-mode: multiply; will-change: transform; }
.cursor-dot.is-hover { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(171,201,107,.45); mix-blend-mode: normal; }
.has-mouse .cursor-dot, .has-mouse .cursor-glow { opacity: 1; }

/* ---------- reveal allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--scale { transform: scale(.94); }
.reveal.is-in { opacity: 1; transform: none; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.is-in .split-word > span { transform: none; }
.parallax { will-change: transform; }

/* ---------- breakpoint ---------- */
@media (min-width: 600px) {
  .shortcuts ul { grid-template-columns: repeat(4, 1fr); }
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .review { flex-basis: calc((100% - 18px) / 2); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .role-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  :root { --header-h: calc(84px + var(--sat)); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 24px; }
  .hero-stage { height: min(78vh, 720px); margin: 0; }
  .hero-strip { display: block; }
  .hero-hint { display: flex !important; }
  .hero { padding-bottom: 150px; }
  .hero-strip { bottom: 40px; border-top: 0; }
  .shortcuts { margin-top: -40px; }
  .intro-grid { grid-template-columns: .9fr 1.1fr; }
  .intro-stamp { left: -4%; top: 6%; width: 136px; height: 136px; }
  .intro-stamp b { font-size: 2rem; }
  .flavor-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(6, 1fr); }
  .products-grid > :nth-child(1) { grid-column: span 4; min-height: 520px; }
  .products-grid > :nth-child(2) { grid-column: span 2; min-height: 520px; }
  .products-grid > :nth-child(n+3) { grid-column: span 2; }
  .craft-grid { grid-template-columns: 1fr 1fr; }
  .awards-top { grid-template-columns: 1fr auto; }
  .reviews-head { grid-template-columns: 1fr auto; }
  .review { flex-basis: calc((100% - 36px) / 3); }
  .cake-cta-grid { grid-template-columns: 1.1fr .9fr; }
  .faq-grid { grid-template-columns: .8fr 1.2fr; }
  .visit-grid { grid-template-columns: .9fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
  .page-hero-grid { grid-template-columns: 1.1fr .9fr; }
  .prose-grid { grid-template-columns: 1fr 340px; }
  .other-products { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .quickbar { display: none; }
  .to-top { bottom: 24px; right: 24px; }
  .site-footer { padding-bottom: 48px; }
}
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
}
@media (max-width: 420px) {
  .brand-text { display: none; }
}

/* touch: niente cursore custom */
@media (hover: none) { .cursor-dot, .cursor-glow { display: none; } }

/* riduzione movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .reveal, .split-word > span, .hero h1 .line > span, .hero-fade { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .cursor-dot, .cursor-glow { display: none; }
}

/* mobile: il cono 3D sta sopra il titolo, così si vede subito */
@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 4px); padding-bottom: 72px; }
  .hero-stage { order: -1; height: 300px; margin-bottom: -8px; }
  .hero-fallback img { height: 100%; }
  .hero .display { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero .lead { font-size: 1.02rem; margin-bottom: 1.5rem; }
  .hero-award { margin-bottom: 1.1rem; }
}
.mobile-menu nav svg { width: 22px; height: 22px; flex: none; opacity: .6; }
.mobile-menu .mm-contact .btn { justify-self: start; }
.menu-open .quickbar { transform: translateY(140%); }
.menu-open .to-top, .menu-open .cursor-dot { opacity: 0; pointer-events: none; }
.contact-lines a { display: inline-block; padding: 10px 0; }

/* ---------- pulsante torna su: anello centrato ---------- */
.to-top .ring { position: absolute; top: -4px; left: -4px; width: 58px; height: 58px; max-width: none; transform: rotate(-90deg); pointer-events: none; }

/* ---------- barra di scorrimento del sito ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--magenta) var(--crema-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--crema-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--verde), var(--magenta));
  border-radius: 999px; border: 3px solid var(--crema-2); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--verde-scuro), var(--magenta-scuro)); border-width: 2px; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: var(--crema-2); }

/* ---------- carosello: avanzamento autoplay ---------- */
.dots button { position: relative; }
.dots button[aria-current="true"]::after {
  content: ""; position: absolute; left: 8px; top: 50%; width: 28px; height: 9px; margin-top: -4.5px; border-radius: 99px;
  background: rgba(255,255,255,.55); transform-origin: left; transform: scaleX(0);
}
.is-playing .dots button[aria-current="true"]::after { animation: dotfill var(--autoplay, 5000ms) linear forwards; }
@keyframes dotfill { to { transform: scaleX(1); } }
.c-progress { display: none; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.c-progress .bar { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(5,42,77,.12); overflow: hidden; }
.c-progress .bar i { position: absolute; inset: 0; background: var(--magenta); border-radius: 4px; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .75s var(--ease-out); }
.c-progress .num { font-variant-numeric: tabular-nums; font-size: .85rem; font-weight: 600; color: var(--blu-notte); white-space: nowrap; }

/* ---------- mappa ---------- */
.map-wrap iframe { z-index: 2; opacity: 0; transition: opacity .8s var(--ease-out); }
.map-wrap.is-ready iframe { opacity: 1; }
.map-placeholder { z-index: 1; }

/* ---------- pagina gusti ---------- */
.gusti-hero { padding-bottom: clamp(88px, 9vw, 130px); }
.gusti-hero .lead b { color: var(--verde); font-weight: 600; }
.vetrina {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.4vw, 16px);
  padding: clamp(16px, 2.5vw, 28px); border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(251,245,238,.12), rgba(251,245,238,.03));
  border: 1px solid rgba(251,245,238,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--shadow-l);
  transition: transform .5s var(--ease-out); transform-style: preserve-3d;
}
.v-scoop { position: relative; display: grid; justify-items: center; gap: 6px; animation: vin .8s var(--ease-spring) both; animation-delay: calc(var(--i) * 45ms + .2s); }
.v-scoop i {
  width: 100%; aspect-ratio: 1; border-radius: 50% 50% 44% 56% / 55% 52% 48% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7), transparent 30%), radial-gradient(circle at 70% 80%, rgba(0,0,0,.18), transparent 45%), var(--c);
  box-shadow: 0 10px 18px -8px rgba(0,0,0,.5); animation: vbob 4s ease-in-out infinite; animation-delay: calc(var(--i) * -310ms);
}
.v-scoop b { font-weight: 500; font-size: .66rem; line-height: 1.15; text-align: center; color: rgba(251,245,238,.75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes vin { from { opacity: 0; transform: translateY(16px) scale(.8); } }
@keyframes vbob { 50% { transform: translateY(-5px) rotate(-3deg); } }

.gusti-menu { background: var(--crema); padding-top: 0; }
.g-toolbar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: grid; gap: 12px; padding: 12px;
  margin-top: -56px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-l); box-shadow: var(--shadow-m); border: 1px solid rgba(5,42,77,.06);
}
.g-tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--crema-2); overflow-x: auto; scrollbar-width: none; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-tabs-ind { position: absolute; top: 4px; left: 0; bottom: 4px; border-radius: 999px; background: var(--blu-notte); box-shadow: var(--shadow-s); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.g-tab { position: relative; z-index: 1; flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .92rem; color: var(--blu-notte); white-space: nowrap; transition: color .35s; }
.g-tab small { font-weight: 500; opacity: .6; margin-left: 2px; }
.g-tab[aria-pressed="true"] { color: var(--crema); }
.g-row2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.g-excl { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.g-excl::-webkit-scrollbar { display: none; }
.g-excl-label { font-size: .85rem; font-weight: 600; color: var(--testo-2); margin-right: 2px; flex: none; }
.g-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(5,42,77,.14); background: var(--bianco); font-size: .85rem; font-weight: 500; color: var(--blu-notte); white-space: nowrap; transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease-out); }
.g-pill:active { transform: scale(.95); }
.g-pill .alg, .g-alg svg { width: 16px; height: 16px; flex: none; }
.g-pill[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); color: #fff; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.g-search { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; max-width: 340px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--crema-2); color: var(--testo-2); transition: box-shadow .3s; }
.g-search:focus-within { box-shadow: 0 0 0 2px var(--blu); }
.g-search svg { width: 18px; height: 18px; flex: none; }
.g-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--testo); min-height: 44px; }
.g-search input:focus { outline: none; }
.g-status { margin: 22px 4px 14px; font-size: .9rem; font-weight: 600; color: var(--testo-2); }

.g-grid { display: grid; gap: 14px; }
.g-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; gap: 16px; padding: 20px 20px 20px 22px; border-radius: var(--r-l); background: var(--bianco);
  box-shadow: var(--shadow-s); overflow: hidden; isolation: isolate;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), box-shadow .4s;
}
.g-card.is-in { opacity: 1; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.g-card[hidden] { display: none; }
.g-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); }
.g-card::after { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--t); }
.g-card:hover { box-shadow: var(--shadow-m); }
.g-card:hover::before { opacity: 1; }
.g-scoop { flex: none; width: 60px; height: 60px; }
.g-scoop i {
  display: block; width: 100%; height: 100%; border-radius: 50% 50% 44% 56% / 55% 52% 48% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.75), transparent 30%), radial-gradient(circle at 72% 82%, rgba(0,0,0,.16), transparent 45%), var(--c);
  box-shadow: 0 12px 20px -10px color-mix(in srgb, var(--c) 80%, #000);
  transition: transform .6s var(--ease-spring);
}
.g-scoop.is-light i { box-shadow: 0 12px 20px -10px rgba(5,42,77,.35), inset 0 0 0 1px rgba(5,42,77,.1); }
.g-card:hover .g-scoop i { transform: translateY(-4px) rotate(-8deg) scale(1.06); }
.g-body { min-width: 0; flex: 1; }
.g-type { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--testo-2); }
.g-type span { width: 8px; height: 8px; border-radius: 50%; background: var(--t); flex: none; }
.g-card h3 { font-size: 1.4rem; margin: 0 0 6px; }
.g-tag { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
.g-desc { margin: 0 0 12px; font-size: .95rem; color: var(--testo-2); line-height: 1.55; }
.g-algs { display: flex; flex-wrap: wrap; gap: 6px; }
.g-alg { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--crema-2); font-size: .78rem; color: var(--blu-notte); }
.g-alg--free { background: var(--verde-chiaro); color: var(--verde-scuro); font-weight: 600; }
.g-empty { text-align: center; padding: 48px 20px; border-radius: var(--r-l); background: var(--bianco); box-shadow: var(--shadow-s); }
.g-empty[hidden] { display: none; }
.g-empty p { color: var(--testo-2); }
.g-empty .h3 { color: var(--blu-notte); font-family: var(--font-display); }
.g-foot { margin-top: 32px; padding: 22px 24px; border-radius: var(--r-l); background: var(--crema-2); font-size: .92rem; color: var(--testo-2); display: grid; gap: 6px; }
.g-foot p { margin: 0; }
.g-foot b { color: var(--blu-notte); }
@media (min-width: 700px) { .g-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .g-grid { grid-template-columns: repeat(3, 1fr); } .g-toolbar { padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .g-card { opacity: 1; transform: none; } }

/* =========================================================
   MOBILE: pulsanti su una riga, meno spazio, footer compatto
   ========================================================= */
@media (max-width: 599px) {
  .section { padding-block: 60px; }
  .section--tight { padding-block: 44px; }
  .section-head { margin-bottom: 28px; gap: .8rem; }
  .h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .lead { font-size: 1.02rem; }

  /* pulsanti affiancati sulla stessa riga */
  .hero-actions, .reviews-cta, .flavors-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-actions .btn, .reviews-cta .btn, .flavors-cta .btn { min-height: 50px; padding: 0 10px; font-size: .88rem; gap: .45em; white-space: nowrap; }
  .hero-actions .btn svg, .reviews-cta .btn svg { width: 16px; height: 16px; }
  .flavors-cta .btn { grid-column: 1 / -1; }
  .flavors-cta .link-arrow { grid-column: 1 / -1; justify-self: center; }
  .reviews-cta { margin-top: 18px !important; }
  .btn .hide-sm { display: none; }

  /* carosello: barra di avanzamento al posto dei pallini */
  .dots { display: none; }
  .c-progress { display: flex; }
  .carousel-controls { flex-wrap: nowrap; }
  .carousel-viewport { padding-bottom: 16px; }
  .reviews-head { gap: 18px; margin-bottom: 24px; }
  .rating-box { padding: 14px 18px; gap: 14px; }
  .rating-box .big { font-size: 2.8rem; }

  /* sezioni più compatte */
  .intro-media { margin-bottom: 24px; }
  .values { margin: 1.4rem 0 1.6rem; gap: 10px; }
  .value { padding: 14px 16px; }
  .products-grid > * { min-height: 340px; }
  .craft-visual { max-width: 340px; }
  .awards-top { margin-bottom: 24px; gap: 20px; }
  .awards-badge img { width: 84px; height: 84px; }
  .awards-badge b { font-size: 2.6rem; }
  .cake-cta .cc-copy { padding: 28px 22px; }
  .cake-cta .cc-img { min-height: 220px; }
  .cc-list { margin-bottom: 20px; }
  .faq-item button { min-height: 56px; padding: 14px 18px; font-size: .98rem; }
  .map-wrap { min-height: 300px; }
  .page-hero { padding: calc(var(--header-h) + 36px) 0 48px; }
  .marquee { padding-block: 18px; }
  .marquee-item { font-size: 1.2rem; }

  /* footer compatto e centrato */
  .site-footer { padding: 48px 0 110px; text-align: center; font-size: .92rem; }
  .footer-big { font-size: 3.2rem; margin-bottom: 24px; text-align: center; white-space: normal; line-height: .95; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-logo img { margin: 0 auto 14px; height: 48px; }
  .footer-grid > :first-child p { max-width: 34ch; margin-inline: auto; }
  .socials { justify-content: center; margin-top: 12px; }
  .site-footer h3 { margin-bottom: 8px; }
  .site-footer ul { justify-items: center; }
  .site-footer a { min-height: 40px; }
  .newsletter { max-width: 360px; margin-inline: auto; }
  .footer-bottom { justify-content: center; text-align: center; margin-top: 32px; }
  .g-toolbar { margin-top: -40px; padding: 10px; gap: 10px; }
  .vetrina { padding: 14px; }
}

/* ---------- form: etichette, schede di scelta, calendario, contatore, casella ---------- */
.field .label { font-weight: 600; font-size: .92rem; color: var(--blu-notte); }
.field .label .opt { font-weight: 400; color: var(--testo-2); }

.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  min-height: 72px; padding: 14px 14px; border-radius: 16px; border: 1.5px solid rgba(5,42,77,.14); background: var(--bianco);
  transition: border-color .3s, background-color .3s, box-shadow .3s, transform .35s var(--ease-out);
}
.choice-box svg { grid-row: 1 / 3; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--crema-2); color: var(--blu-notte); transition: background-color .3s, color .3s, transform .5s var(--ease-spring); }
.choice-box b { font-size: .95rem; color: var(--blu-notte); line-height: 1.2; }
.choice-box small { font-size: .78rem; color: var(--testo-2); line-height: 1.3; }
.choice:hover .choice-box { border-color: rgba(5,42,77,.3); transform: translateY(-2px); }
.choice input:checked + .choice-box { border-color: var(--magenta); background: var(--magenta-chiaro); box-shadow: 0 0 0 3px rgba(173,31,95,.12); }
.choice input:checked + .choice-box svg { background: var(--magenta); color: #fff; transform: rotate(-8deg) scale(1.05); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--magenta); outline-offset: 2px; }
.field.has-error .choice-box { border-color: rgba(173,31,95,.45); }

.datepicker { position: relative; }
.dp-trigger {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid rgba(5,42,77,.16); background: var(--bianco); text-align: left; color: var(--testo-2); transition: border-color .3s, box-shadow .3s;
}
.dp-trigger:hover { border-color: rgba(5,42,77,.32); }
.dp-trigger > svg:first-child { width: 20px; height: 20px; color: var(--magenta); flex: none; }
.dp-trigger .chev { width: 16px; height: 16px; margin-left: auto; transition: transform .35s var(--ease-out); }
.dp-trigger .dp-value { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.datepicker.has-value .dp-value { color: var(--blu-notte); font-weight: 600; text-transform: capitalize; }
.datepicker.is-open .dp-trigger { border-color: var(--blu); box-shadow: 0 0 0 4px rgba(8,65,119,.12); }
.datepicker.is-open .dp-trigger .chev { transform: rotate(180deg); }
.dp-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: min(320px, calc(100vw - 48px)); padding: 14px;
  background: var(--bianco); border-radius: var(--r-m); box-shadow: var(--shadow-l); border: 1px solid rgba(5,42,77,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
}
.datepicker.is-open .dp-pop { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease-out), transform .35s var(--ease-out); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-title { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--blu-notte); text-transform: capitalize; }
.dp-nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--crema-2); display: grid; place-items: center; color: var(--blu-notte); transition: background-color .3s, color .3s; }
.dp-nav:hover { background: var(--blu-notte); color: var(--crema); }
.dp-nav:disabled { opacity: .3; pointer-events: none; }
.dp-nav svg { width: 16px; height: 16px; }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-week span { font-size: .72rem; font-weight: 600; color: var(--testo-2); padding: 4px 0; }
.dp-day { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 50%; background: none; font-size: .92rem; color: var(--blu-notte); font-variant-numeric: tabular-nums; transition: background-color .25s, color .25s, transform .3s var(--ease-spring); }
.dp-day:hover:not(:disabled) { background: var(--verde-chiaro); transform: scale(1.08); }
.dp-day.is-today { box-shadow: inset 0 0 0 1.5px var(--verde); font-weight: 600; }
.dp-day.is-sel { background: var(--magenta); color: #fff; font-weight: 600; }
.dp-day:disabled { color: rgba(5,42,77,.25); cursor: not-allowed; }
.dp-day.is-closed { text-decoration: line-through; color: rgba(173,31,95,.45); }
.dp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(5,42,77,.08); font-size: .78rem; color: var(--testo-2); }
.dp-foot span { display: inline-flex; align-items: center; gap: 6px; }
.dp-key { width: 10px; height: 2px; background: rgba(173,31,95,.6); }
.dp-clear { border: 0; background: none; color: var(--magenta); font-weight: 600; font-size: .82rem; min-height: 40px; padding: 0 6px; }

.stepper { display: flex; align-items: stretch; min-height: 54px; border-radius: 14px; border: 1.5px solid rgba(5,42,77,.16); background: var(--bianco); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.stepper:focus-within { border-color: var(--blu); box-shadow: 0 0 0 4px rgba(8,65,119,.12); }
.stepper button { width: 54px; flex: none; border: 0; background: var(--crema-2); font-size: 1.4rem; line-height: 1; color: var(--blu-notte); transition: background-color .25s, color .25s; }
.stepper button:hover:not(:disabled) { background: var(--blu-notte); color: var(--crema); }
.stepper button:disabled { opacity: .35; cursor: default; }
.field .stepper input { flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; text-align: center; font-weight: 600; font-size: 1.05rem; color: var(--blu-notte); box-shadow: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field .stepper input:focus { box-shadow: none; }

.check { display: flex; gap: 12px; align-items: center; cursor: pointer; line-height: 1.4; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid rgba(5,42,77,.3); background: var(--bianco); display: grid; place-items: center; transition: background-color .25s, border-color .25s, transform .3s var(--ease-spring); }
.check-box svg { width: 16px; height: 16px; color: #fff; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s var(--ease-out); }
.check input:checked + .check-box { background: var(--magenta); border-color: var(--magenta); transform: scale(1.06); }
.check input:checked + .check-box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check-box { outline: 3px solid var(--magenta); outline-offset: 2px; }
.field.has-error .check-box { border-color: var(--magenta); }
@media (max-width: 420px) { .choice-box { grid-template-columns: 1fr; row-gap: 6px; } .choice-box svg { grid-row: auto; } }
.form-row > :only-child { grid-column: 1 / -1; }
.g-toolbar > *, .g-row2 > *, .page-hero-grid > *, .hero-grid > * { min-width: 0; }
@media (max-width: 899px) { .g-toolbar { position: relative; top: auto; } }
.award-rail.is-flowing { scroll-snap-type: none; }
form[data-contact] button[type=submit] { width: 100%; min-height: 56px; }
.award .year { gap: 12px; align-items: center; }
.award .year span { text-align: right; margin-left: auto; line-height: 1.3; max-width: 60%; }
/* chi siamo: ritaglio sui volti di Andrea e Mara */
.page-hero-img img[src*="andrea-mara-banco"] { object-position: 50% 26%; }
.intro-media img[src*="andrea-mara."] { object-position: 50% 30%; }
@media (min-width: 900px) { .page-hero-img:has(img[src*="andrea-mara-banco"]) { aspect-ratio: 1 / 1; } }
/* meno spazio prima delle recensioni */
.section.reviews { padding-top: clamp(44px, 5.5vw, 76px); }
.section--tight + .section.reviews { padding-top: clamp(16px, 2.5vw, 32px); }
/* spazi sezioni più compatti */
.section { padding-block: clamp(52px, 6.5vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section.reviews { padding-top: clamp(40px, 5vw, 68px); }
.section--tight + .section.reviews { padding-top: clamp(16px, 2.5vw, 32px); }
@media (max-width: 599px) { .section { padding-block: 48px; } .section--tight { padding-block: 36px; } .section-head { margin-bottom: 24px; } }
.craft-visual .l-vaniglia { right: -4%; top: 14%; width: 42%; }
/* vaniglia originale davanti al gelato, con il bordo destro (tagliato nella foto) sfumato */
.craft-visual .l-vaniglia { right: -6%; top: 16%; width: 38%; z-index: 2; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 96%); mask-image: linear-gradient(90deg, #000 62%, transparent 96%); }
.craft-visual .l-vaniglia img { filter: drop-shadow(0 16px 16px rgba(5,42,77,.2)); }
.craft-visual .l-vaniglia { right: -8%; top: 24%; width: 50%; }
.craft-visual .l-vaniglia { top: 12%; }
.craft-visual .l-vaniglia { top: 0; right: -4%; width: 38%; }
.craft-visual .l-vaniglia img { filter: none; }
/* griglia prodotti a mosaico: 3 righe complete (4+2, 2+4, 3+3), nessuna card da sola */
@media (min-width: 900px) {
  .products-grid > :nth-child(1) { grid-column: span 4; }
  .products-grid > :nth-child(2) { grid-column: span 2; }
  .products-grid > :nth-child(3) { grid-column: span 2; min-height: 460px; }
  .products-grid > :nth-child(4) { grid-column: span 4; min-height: 460px; }
  .products-grid > :nth-child(5), .products-grid > :nth-child(6) { grid-column: span 3; min-height: 420px; }
}

/* =========================================================
   Giro 3 di correzioni
   ========================================================= */

/* niente scorrimento orizzontale in nessuna pagina */
html, body { overflow-x: clip; }
main, main > section, .site-footer { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

/* barra di scorrimento integrata: quella del sistema sparisce, la nostra galleggia sopra il sito */
html.custom-scroll { scrollbar-width: none; }
html.custom-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.page-scroll { position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: 14px; cursor: pointer; }
.page-scroll-thumb {
  position: absolute; top: 0; right: 3px; width: 6px; border-radius: 99px;
  background: linear-gradient(180deg, var(--verde), var(--magenta));
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 2px 8px rgba(5,42,77,.25);
  opacity: 0; transition: opacity .4s var(--ease-out), width .25s var(--ease-out), right .25s var(--ease-out);
  will-change: transform; cursor: grab;
}
.page-scroll.is-active .page-scroll-thumb { opacity: .9; }
.page-scroll:hover .page-scroll-thumb, .page-scroll.is-dragging .page-scroll-thumb { width: 9px; right: 2px; opacity: 1; }
.page-scroll.is-dragging .page-scroll-thumb { cursor: grabbing; }
.menu-open .page-scroll { display: none; }

/* header desktop con "Lavora con noi": voci più compatte */
@media (min-width: 1100px) {
  .main-nav a { padding: 0 11px; font-size: .93rem; }
  .main-nav a::after { left: 11px; right: 11px; }
  .header-inner { gap: 16px; }
}
@media (min-width: 1100px) and (max-width: 1320px) { .brand-text { display: none; } }

/* scorciatoie sotto l'hero: tutte della stessa misura */
.shortcuts ul { grid-auto-rows: 1fr; }
.shortcuts li { display: flex; min-width: 0; }
.shortcuts a { flex: 1; min-width: 0; height: 100%; }
.shortcuts a > span:last-child { min-width: 0; }
.shortcuts small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* recensioni: niente frecce né pallini, barra di avanzamento larga; si scorre col dito o col mouse */
.dots, .carousel .rail-nav { display: none !important; }
.c-progress { display: flex !important; width: 100%; }
.c-progress .bar { height: 5px; }
.carousel-controls { margin-top: 4px; }
.carousel-viewport { cursor: grab; }

/* FAQ: invito a chiamare su una riga e più vicino alle domande */
.faq-call { white-space: nowrap; }
@media (max-width: 899px) {
  .faq-grid { gap: 14px; }
  #faq .section-head { margin-bottom: 0; }
}
@media (max-width: 599px) {
  .faq-call { font-size: .9rem; }
}

/* gusti: nota di aggiornamento più piccola */
.g-foot { font-size: .82rem; line-height: 1.5; }

/* "Scopri anche": pillole compatte invece dei riquadri grandi */
.other-products { display: flex; flex-wrap: wrap; gap: 8px; }
.other-products a { flex: 0 1 auto; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-size: .92rem; gap: 8px; }
.other-products svg { width: 16px; height: 16px; }

/* premi più piccoli su mobile */
@media (max-width: 599px) {
  .award { flex-basis: min(58vw, 220px); padding: 10px 10px 12px; }
  .award .year b { font-size: 1.45rem; }
  .award .year span { font-size: .7rem; }
}

/* immagini di pagina: su mobile niente rotazione 3D (evita sbordi) */
@media (max-width: 899px) {
  .page-hero-img, .page-hero-img:hover { transform: none; }
}

/* Lavora con noi: inquadratura sui volti */
.page-hero-img img[src*="andrea-mara."] { object-position: 50% 28%; }

/* ---------- Chi siamo: hero con tre pulsanti ---------- */
.chi-grid { display: grid; gap: 22px; grid-template-areas: "text" "img" "actions"; }
.chi-text { grid-area: text; }
.chi-text h1 { margin-bottom: .3em; }
.chi-text .lead { margin: 0; }
.chi-img { grid-area: img; }
.chi-img img { object-position: 50% 22%; }
.chi-actions { grid-area: actions; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chi-actions .btn { width: 100%; padding: 0 8px; min-height: 50px; font-size: .84rem; white-space: nowrap; }
@media (max-width: 899px) {
  .chi-hero { padding-top: calc(var(--header-h) + 20px); }
  .chi-img { aspect-ratio: 4 / 3.4; }
}
@media (min-width: 900px) {
  .chi-grid {
    grid-template-columns: 1.1fr .9fr; column-gap: 40px; row-gap: 28px;
    grid-template-areas: "text img" "actions img"; align-items: end;
  }
  .chi-text { align-self: end; margin-top: -24px; }
  .chi-actions { align-self: start; max-width: 600px; gap: 10px; }
  .chi-actions .btn { font-size: .93rem; padding: 0 14px; }
  .chi-img { aspect-ratio: 1 / 1; }
}
@media (max-width: 599px) { .chi-actions { gap: 6px; } .chi-actions .btn { font-size: .8rem; padding: 0 4px; } }
.page-hero .btn--ghost { --fg: var(--crema); }
.page-hero .btn--ghost:hover { --bg: var(--crema); --fg: var(--blu-notte); box-shadow: none; }
/* foto di riserva del cono: nascosta finché il 3D non fallisce, sempre contenuta nel riquadro */
.hero-stage { overflow: hidden; }
.hero-fallback { opacity: 0; transition: opacity .6s var(--ease-out); }
.hero-stage.no-3d .hero-fallback { opacity: 1; }
.hero-stage.has-3d .hero-fallback { display: none; }
.hero-fallback img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.hero-fallback picture { height: 92%; display: flex; justify-content: center; }
@media (max-width: 599px) {
  .shortcuts a { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; min-height: 0; }
  .shortcuts .ico { width: 36px; height: 36px; border-radius: 11px; }
  .shortcuts .ico svg { width: 20px; height: 20px; }
  .shortcuts a > span:last-child { font-size: .92rem; line-height: 1.2; }
  .shortcuts small { white-space: normal; overflow: visible; margin-top: 2px; }
}
.g-logo { display: inline-block; vertical-align: -3px; }
.review footer small { white-space: nowrap; }
.avatar::before { content: attr(data-i); }

/* ---------- selettore lingua IT / EN ---------- */
.lang-switch { display: flex; gap: 2px; padding: 3px; margin-left: auto; border-radius: 999px; border: 1px solid rgba(251,245,238,.22); background: rgba(251,245,238,.06); flex: none; }
.lang-switch a { display: grid; place-items: center; min-width: 40px; min-height: 38px; padding: 0 8px; border-radius: 999px; color: var(--crema); text-decoration: none; font-size: .8rem; font-weight: 600; letter-spacing: .06em; transition: background-color .3s, color .3s; }
.lang-switch a:hover { background: rgba(251,245,238,.14); }
.lang-switch a[aria-current] { background: var(--verde); color: var(--blu-notte); }
@media (min-width: 1100px) { .lang-switch { margin-left: 0; } }
.menu-open .lang-switch { position: relative; z-index: 2; }
html[lang="it"] [data-only-en] { display: none; }
.reviews-note { margin: 4px 0 0; font-size: .82rem; color: var(--testo-2); }

/* header desktop: tutto su una riga */
.main-nav a, .header-cta, .brand-text b, .brand-text small { white-space: nowrap; }
@media (min-width: 1100px) {
  .header-inner { gap: 12px; }
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 0 9px; font-size: .9rem; }
  .main-nav a::after { left: 9px; right: 9px; }
  .lang-switch { padding: 2px; gap: 0; }
  .lang-switch a { min-width: 32px; min-height: 30px; padding: 0 6px; font-size: .7rem; }
  .header-cta { padding: 0 1em; font-size: .86rem; min-height: 42px; }
  .header-cta svg { display: none; }
}
@media (min-width: 1100px) and (max-width: 1499px) { .brand-text { display: none; } }
@media (min-width: 1500px) { .main-nav a { padding: 0 12px; font-size: .95rem; } .header-cta svg { display: block; } }

/* bollino 2005 su mobile: un po' più piccolo, più in alto e più a sinistra */
@media (max-width: 899px) {
  .intro-stamp { width: 112px; height: 112px; left: 0; top: -2px; }
  .intro-stamp b { font-size: 1.62rem; }
}

/* vetrina gusti: colonne tutte uguali, così le palline hanno la stessa misura */
.vetrina { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.v-scoop { min-width: 0; }
.v-scoop i { width: 100%; max-width: 72px; }
.v-scoop b { width: 100%; overflow-wrap: anywhere; }
.v-scoop { grid-template-columns: minmax(0, 1fr); }

/* "Scopri anche": pallino del colore del prodotto; su mobile griglia ordinata a due colonne */
.op-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c); box-shadow: inset 0 0 0 1px rgba(5,42,77,.12); }
.other-products a span { flex: 1; }
@media (max-width: 599px) {
  .other-products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .other-products a { border-radius: 16px; padding: 12px 12px; min-height: 56px; font-size: .86rem; line-height: 1.2; gap: 8px; }
  .other-products a:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .other-products svg { width: 14px; height: 14px; opacity: .55; }
}

/* Contatti: il form compare subito all'apertura, con una piccola animazione */
.form-enter { animation: formIn .8s var(--ease-out) .2s both; }
@keyframes formIn { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@media (max-width: 899px) {
  body[data-page="contatti"] .page-hero { padding: calc(var(--header-h) + 20px) 0 28px; }
  body[data-page="contatti"] .page-hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); margin-bottom: .25em; }
  body[data-page="contatti"] .page-hero .lead { font-size: .98rem; margin-bottom: 1rem; }
  body[data-page="contatti"] .page-hero .breadcrumb { margin-bottom: .8rem; }
  body[data-page="contatti"] #torta { padding-top: 18px; }
  body[data-page="contatti"] .form-card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) { .form-enter { animation: none; } }
/* consenso privacy su un'unica riga */
.check > span:last-child { white-space: nowrap; font-size: clamp(.78rem, 3.6vw, .92rem); }

/* header fisso stabile su mobile: livello grafico separato (non resta indietro quando la barra
   del browser si nasconde) e sfondo che continua sopra il bordo, così non si vede mai un taglio */
.site-header {
  top: 0; transform: translate3d(0, 0, 0); -webkit-transform: translate3d(0, 0, 0);
  will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: background-color .4s var(--ease-out), box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-hidden { transform: translate3d(0, 0, 0); }
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px;
  background: inherit; pointer-events: none;
}
.quickbar { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* menu mobile aperto: header completamente trasparente, subito e in tutti i browser (anche Safari iOS) */
.menu-open .site-header, .menu-open .site-header.is-scrolled, .menu-open .site-header.is-solid {
  background: transparent !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  transition: none !important; will-change: auto;
}
.menu-open .site-header::before { display: none; }

/* niente effetto elastico/rimbalzo di fine scorrimento (Android "stretch", iOS "bounce"):
   è quello che spostava di poco anche l'header fisso mentre si scorre su mobile */
html, body { overscroll-behavior-y: none; }
html { background: var(--blu-notte); }

/* recensioni: nome sempre su una riga, stelle sempre della stessa misura (spostate in alto a destra della card) */
.review { position: relative; }
.review footer { flex-wrap: nowrap; }
.review footer > span:not(.avatar):not(.stars) { min-width: 0; flex: 1; }
.review footer b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review footer .stars { position: absolute; top: 30px; right: 26px; margin: 0; }
.stars { flex: none; }
.stars svg { flex: none; }
.review .stars svg, .review footer .stars svg { width: 16px; height: 16px; }

/* iPhone: l'header occupa anche lo spazio della barra di stato (ora, batteria), colorato di blu,
   e i contenuti partono sotto; così logo e menu non finiscono mai sotto la barra */
.site-header { box-sizing: border-box; padding-top: var(--sat); }
.site-header:not(.is-scrolled):not(.is-solid) { background: linear-gradient(180deg, var(--blu-notte) var(--sat), transparent var(--sat)); }
.menu-open .site-header { padding-top: var(--sat); }

/* iPhone/iPad durante lo scorrimento: header 14px più in basso dentro il suo sfondo, così sembra fermo */
html.ios-scrolled .site-header { padding-top: calc(var(--sat) + 14px); height: calc(var(--header-h) + 14px); }
html.ios-scrolled.menu-open .site-header { padding-top: var(--sat); height: var(--header-h); }

/* menu mobile aperto: l'header resta fermo in cima con lo stesso blu del menu (sembra parte del menu
   ma copre le voci che scorrono sotto); lo scorrimento resta dentro il menu e non muove la pagina */
html.menu-open .site-header, html.menu-open .site-header.is-scrolled, html.menu-open .site-header.is-solid { background: var(--blu-notte) !important; }
.mobile-menu { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.menu-open body { overflow: hidden; }

/* menu aperto: barra azioni rapide e "torna su" spariscono subito e il menu sta sopra di loro */
.mobile-menu { z-index: 98; }
html.menu-open .quickbar, html.menu-open .to-top { opacity: 0; visibility: hidden; pointer-events: none; transition: none; }

/* Safari iOS: il menu copre tutto lo schermo, anche la fascia dietro la barra in basso del browser
   (100lvh = altezza con le barre ritirate, + margine); spazio in fondo per raggiungere le ultime voci */
.mobile-menu { bottom: auto; height: 100vh; height: calc(100lvh + 120px); padding-bottom: calc(240px + env(safe-area-inset-bottom, 0px)); }
html.menu-open, html.menu-open body { background: var(--blu-notte); }

/* Product menus share filters while keeping availability separate. */
.menu-family { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; margin-bottom:48px; }
.menu-family a { border:1px solid var(--blu-notte); border-radius:999px; padding:12px 22px; font-weight:600; }
.menu-family a[aria-current="page"] { background:var(--blu-notte); color:var(--bianco); }
.menu-family + .gusti-menu .g-toolbar { margin-top:0; }
.menu-catalog-link { margin-top:24px; margin-bottom:24px; }
.g-card--dessert { display:flex; flex-direction:column; }
.g-product-photo { width:100%; aspect-ratio:1; object-fit:contain; border-radius:16px; }
.g-toolbar[hidden], .g-tabs[hidden] { display:none; }

body[data-menu="granite"] .page-hero-img img, body[data-menu="granite"] .gallery img { aspect-ratio:1; object-fit:contain; }

/* A compact photo with its own caption keeps the granita hero balanced. */
body[data-menu="granite"] .page-hero {
  padding: calc(var(--header-h) + clamp(32px, 4vw, 64px)) 0 clamp(36px, 5vw, 72px);
}
.granita-hero-photo {
  width: min(100%, 360px);
  margin: 0;
  justify-self: center;
  padding: 10px;
  border: 1px solid rgba(251,245,238,.22);
  border-radius: 28px;
  background: rgba(251,245,238,.07);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}
.granita-hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 19px;
}
.granita-hero-photo figcaption {
  padding: 12px 8px 4px;
  font-size: .875rem;
  line-height: 1.5;
  text-align: center;
  color: var(--crema);
}
@media (min-width: 900px) {
  body[data-menu="granite"] .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(32px, 5vw, 80px); }
  body[data-menu="granite"] .page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
}
@media (max-width: 599px) {
  .granita-hero-photo { width: min(100%, 300px); }
  body[data-menu="granite"] .page-hero-grid { gap: 28px; }
}

/* Preserve the original hero layout; scale only the photo inside its frame. */
.page-hero-img.gastronomico-hero-photo {
  aspect-ratio: 1;
  max-width: 440px;
  width: 100%;
  justify-self: center;
  display: grid;
  place-items: center;
  background: #ded2c2;
}
.page-hero-img.gastronomico-hero-photo img {
  display: block;
  position: absolute;
  inset: 3%;
  width: 94%;
  height: 94%;
  object-fit: contain;
  border-radius: 12px;
}

/* Display the available ice-lolly image without additional cropping. */
.product-card[href="ghiaccioli.html"] .pc-img { background: #d8ccba; }
.product-card[href="ghiaccioli.html"] .pc-img img { object-fit: contain; }
body[data-page="ghiaccioli"] .page-hero-img { aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; background: #d8ccba; }
body[data-page="ghiaccioli"] .page-hero-img picture {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
}
body[data-page="ghiaccioli"] .page-hero-img picture img {
  display: block; position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center;
}
body[data-page="ghiaccioli"] .page-hero-img img,
body[data-page="ghiaccioli"] .gallery img { object-fit: contain; }

.product-card[href="granite.html"] .pc-img { background: #a52d27; }
.product-card[href="granite.html"] .pc-img img { object-fit: contain; }

/* Keep the full product photos visible, including on hover. */
.product-card[href="granite.html"]:hover .pc-img img,
.product-card[href="ghiaccioli.html"]:hover .pc-img img { transform: none; }
body[data-page="ghiaccioli"] .gallery button { background: #e6dfd3; }
body[data-page="ghiaccioli"] .gallery button:hover img { transform: none; }

body[data-menu="granite"] .gallery button { background: #eee8df; }
body[data-menu="granite"] .gallery button:hover img { transform: none; }

/* A friendly empty catalogue, distinct from loading errors and filtered results. */
.g-pause { display:flex; align-items:center; justify-content:center; gap:clamp(20px,4vw,56px); padding:clamp(24px,4vw,48px); margin:16px 0 28px; border:1px solid rgba(25,45,76,.08); border-radius:32px; background:linear-gradient(120deg,#fffaf1,#f0f3e6); }
.g-pause-art { width:clamp(160px,22vw,240px); height:auto; flex-shrink:0; }
.g-pause-copy { max-width:510px; }
.g-pause h3 { margin:0 0 12px; font-size:clamp(1.6rem,3vw,2.2rem); color:var(--blu-notte); }
.g-pause p { margin:0 0 22px; color:var(--testo-2); line-height:1.65; }
.g-grid[hidden] { display:none; }
@media(max-width:599px) { .g-pause { flex-direction:column; text-align:center; gap:12px; } .g-pause-art { width:170px; } }

.brioche-feature { display:grid; gap:32px; align-items:center; }
.brioche-feature .gallery { margin:0; width:100%; max-width:400px; justify-self:center; grid-template-columns:1fr; }
.supplied-product-gallery button { background:#f5f0e9; }
.supplied-product-gallery img { object-fit:contain; }
.supplied-product-gallery button:hover img { transform:none; }
@media(min-width:900px) { .brioche-feature { grid-template-columns:1fr 1fr; } }

/* A bounded photo area prevents thumbnails from dominating the catalogue. */
.g-photo-button { position:relative; display:block; width:100%; height:240px; flex:none; padding:10px; border:0; border-radius:18px; background:#f5f1ea; cursor:zoom-in; overflow:hidden; }
.g-photo-button .g-product-photo { display:block; width:100%; height:100%; aspect-ratio:auto; object-fit:contain; border-radius:8px; }
.g-photo-button:focus-visible { outline:3px solid var(--magenta); outline-offset:3px; }
.g-card--dessert.is-in { transform:none; }
.lightbox img { max-width:calc(100vw - 48px); object-fit:contain; }
@media(max-width:599px) { .g-photo-button { height:220px; } }

/* Keep long Google reviews from stretching every card. */
.carousel-track { align-items: flex-start; }
.review { min-width: 0; }
.review p { flex: none; max-height: 12em; line-height: 1.6; overflow-y: auto; overscroll-behavior: contain; user-select: text; }

/* Classic gelato: show the full supplied photo, with copy below it. */
.product-card[href="gelato-classico.html"] .pc-img { position:relative; inset:auto; z-index:0; height:clamp(260px, 28vw, 380px); flex:none; background:#e9cfca; }
.product-card[href="gelato-classico.html"] .pc-img picture { display:block; width:100%; height:100%; }
.product-card[href="gelato-classico.html"] .pc-img img,
.product-card[href="gelato-classico.html"]:hover .pc-img img { object-fit:contain; transform:none; }
.product-card[href="gelato-classico.html"]::before { display:none; }
.product-card[href="gelato-classico.html"] .pc-chip { position:static; align-self:flex-start; order:-1; margin:18px; }
.fruit-gelato-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
.fruit-gelato-gallery button { aspect-ratio:auto; background:#eee8df; align-self:start; }
.fruit-gelato-gallery img { display:block; width:100%; height:auto; object-fit:contain; }
.fruit-gelato-gallery button:hover img { transform:none; }

/* Two complete square photos, side by side on every screen size. */
.product-card[href="gelato-classico.html"] .pc-img.gelato-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); height:auto; aspect-ratio:2 / 1; }
.product-card[href="gelato-classico.html"] .gelato-pair picture { min-width:0; }
.product-card[href="gelato-classico.html"] .gelato-pair img { display:block; object-fit:contain; }
