/* ==========================================================================
   MICHELE FALCIONI — Alta Pasticceria
   Design system & stili globali. Documentazione: docs/DESIGN-SYSTEM.md
   ========================================================================== */

/* ---------- 1. FONT (self-hosted, GDPR-friendly) ------------------------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
/* Fallback metrici: riducono il layout shift durante lo swap dei font */
@font-face { font-family: "Serif Fallback"; src: local("Times New Roman"), local("Georgia"); size-adjust: 92%; ascent-override: 92%; }
@font-face { font-family: "Sans Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 104%; }

/* ---------- 2. TOKEN ----------------------------------------------------- */
:root {
  /* Palette istituzionale */
  --navy: #051A32;
  --navy-2: #0B2A4D;
  --navy-3: #12345C;
  --ivory: #F8F3EC;
  --ivory-warm: #FAF1E9;
  --ivory-deep: #F2E8DC;
  --champagne: #D9C09A;
  --gold: #B68A4D;
  --gold-deep: #9A7038;
  --charcoal: #25231F;
  --ink-soft: #4A453E;
  --ink-mute: #7A7064;
  --white: #FFFFFF;
  --hero-bg: #1D140C;
  --line-gold: rgba(182, 138, 77, .35);
  --gradient-gold: linear-gradient(135deg, #E2CBA4 0%, #C9A46A 45%, #B68A4D 100%);

  /* Tipografia */
  --serif: "Cormorant Garamond", "Serif Fallback", Georgia, serif;
  --sans: "Manrope", "Sans Fallback", system-ui, sans-serif;
  --fs-display: clamp(2.9rem, 1.7rem + 4.6vw, 5.6rem);
  --fs-h2: clamp(2.15rem, 1.5rem + 2.5vw, 3.6rem);
  --fs-h3: clamp(1.75rem, 1.35rem + 1.4vw, 2.6rem);
  --fs-lead: clamp(1.12rem, 1.04rem + .35vw, 1.32rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-eyebrow: .7rem;

  /* Spazi e layout */
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1280px;
  --section-y: clamp(64px, 8vw, 128px);
  --header-h: 76px;
  --header-h-compact: 64px;
  --radius: 3px;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .18, 1);
  --intro-d: 0s;

  /* Ombre */
  --shadow-sm: 0 6px 18px rgba(37, 35, 31, .08);
  --shadow-md: 0 18px 44px rgba(37, 35, 31, .12);
  --shadow-lg: 0 30px 80px rgba(5, 26, 50, .22);
}
.has-intro { --intro-d: 2.35s; }

/* ---------- 3. BASE ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--ivory); color: var(--charcoal);
  font: 400 var(--fs-body)/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body:not(.has-hero) main { padding-top: calc(var(--header-h) + 84px); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dialog { color: inherit; }
::selection { background: var(--champagne); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--navy); color: var(--ivory); padding: 12px 20px; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* ---------- 4. TIPOGRAFIA ----------------------------------------------- */
.eyebrow {
  display: block; margin: 0 0 1.1rem;
  font: 700 var(--fs-eyebrow)/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase;
  color: var(--charcoal);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--navy { color: var(--navy); }
.eyebrow--light { color: var(--champagne); }
.h2 { font: 500 var(--fs-h2)/1.06 var(--serif); letter-spacing: -.01em; color: var(--charcoal); }
.text-link {
  display: inline-flex; align-items: center; gap: .6em; margin-top: .4rem;
  font: 700 .7rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--navy);
  padding-bottom: 8px; position: relative;
}
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(.35); transition: transform .6s var(--ease-out); }
.text-link:hover::after { transform: scaleX(1); }
.text-link .icon { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }
.text-link--light { color: var(--ivory); }
.linklike { text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 16px; height: 16px; }

/* ---------- 5. PULSANTI -------------------------------------------------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  min-height: 50px; padding: 0 30px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
  font: 700 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .4s, color .4s, border-color .4s, transform .25s, box-shadow .4s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.98); }
.btn .icon { width: 18px; height: 18px; }
.btn__arrow { transition: transform .45s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--gold { --btn-bg: var(--gradient-gold); --btn-fg: var(--navy); background: var(--gradient-gold); box-shadow: 0 10px 30px rgba(182, 138, 77, .25); }
.btn--gold:hover { box-shadow: 0 14px 36px rgba(182, 138, 77, .4); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--ivory); --btn-bd: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-3); --btn-bd: var(--navy-3); box-shadow: 0 12px 30px rgba(5, 26, 50, .28); }
.btn--outline { --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: var(--ivory); }
.btn--ghost { --btn-fg: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.btn--light { --btn-bg: var(--ivory); --btn-fg: var(--navy); --btn-bd: var(--ivory); }
.btn--light:hover { --btn-bg: var(--white); box-shadow: 0 14px 36px rgba(0, 0, 0, .3); }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: .64rem; }
.btn--lg { min-height: 56px; padding: 0 40px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn__spinner { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; opacity: 0; animation: spin .8s linear infinite paused; }
.btn.is-loading .btn__label, .btn.is-loading .btn__icon { opacity: 0; }
.btn.is-loading .btn__spinner { opacity: 1; animation-play-state: running; }
.btn.is-added { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }

.circle-arrow {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--navy); transition: background-color .45s, color .45s, transform .45s var(--ease-out);
}
.circle-arrow .icon { width: 16px; height: 16px; }

.badge {
  display: inline-block; padding: 5px 12px 4px; margin-bottom: .7rem;
  background: var(--gradient-gold); color: var(--navy); border-radius: 2px;
  font: 800 .58rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}

.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background-color .3s, color .3s; }
.icon-btn:hover { background: rgba(217, 192, 154, .14); color: var(--champagne); }

/* ---------- 6. INTRO / LOADER ------------------------------------------- */
.intro { display: none; }
.has-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 400;
  background: radial-gradient(ellipse at 50% 45%, var(--navy-2) 0%, var(--navy) 62%);
  color: var(--champagne);
  animation: intro-out 1s var(--ease-in-out) 2.25s forwards;
}
.intro__inner { display: grid; justify-items: center; gap: 18px; }
.intro__glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 192, 154, .16), transparent 65%); animation: intro-glow 2.4s ease-in-out both; }
.intro__mono { width: 104px; height: auto; overflow: visible; }
.intro__mono path { fill: transparent; stroke: currentColor; stroke-width: .28; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw 1.5s var(--ease-in-out) .1s forwards, intro-fill .7s ease 1.2s forwards; }
.intro__name { width: 210px; height: auto; opacity: 0; animation: intro-rise .9s var(--ease-out) .95s forwards; }
.intro__tag { font: 600 .6rem/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; color: var(--champagne); opacity: 0; animation: intro-rise .9s var(--ease-out) 1.15s forwards; }
.intro__line { width: 140px; height: 1px; background: rgba(217, 192, 154, .2); overflow: hidden; margin-top: 6px; }
.intro__line span { display: block; height: 100%; background: var(--champagne); transform: scaleX(0); transform-origin: left; animation: intro-progress 2s var(--ease-in-out) .1s forwards; }
/* Percentuale di caricamento: contatore CSS sincronizzato con la barra (stessa durata e curva) */
@property --intro-pct { syntax: "<integer>"; inherits: false; initial-value: 0; }
.intro__pct {
  margin-top: 2px; counter-reset: pct var(--intro-pct);
  font: italic 400 1.5rem/1 var(--serif); color: var(--champagne); font-variant-numeric: tabular-nums lining-nums;
  animation: intro-count 2s var(--ease-in-out) .1s forwards;
}
.intro__pct::before { content: counter(pct); }
.intro__pct::after { content: "%"; margin-left: 2px; font: 600 .6rem/1 var(--sans); letter-spacing: .1em; vertical-align: 8px; color: rgba(217, 192, 154, .7); font-style: normal; }
@keyframes intro-count { to { --intro-pct: 100; } }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fill { to { fill: currentColor; stroke-width: 0; } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(10px); letter-spacing: .7em; } to { opacity: 1; transform: none; } }
@keyframes intro-progress { to { transform: scaleX(1); } }
@keyframes intro-glow { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; } 100% { opacity: .6; transform: scale(1.1); } }
@keyframes intro-out { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- 7. HEADER --------------------------------------------------- */
/* Header sempre visibile (sticky): allo scroll si compatta, non scompare mai */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--ivory); }
.site-header__bar {
  position: relative; height: var(--header-h);
  /* Colonne laterali uguali (1fr) → logo sempre al centro esatto */
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "left brand right";
  align-items: center; padding-inline: clamp(16px, 3vw, 48px);
  background: var(--navy); transition: height .5s var(--ease-out), box-shadow .5s;
}
.site-header.is-scrolled .site-header__bar { height: var(--header-h-compact); box-shadow: 0 10px 40px rgba(5, 26, 50, .25); }
.burger { grid-area: left; display: none; }
.nav--left { grid-area: left; }
.header-right { grid-area: right; display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.nav--right { margin-right: clamp(12px, 2vw, 32px); }
.nav ul { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-block; padding: 10px 0;
  font: 600 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(248, 243, 236, .88);
  transition: color .3s;
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--champagne); transform: scaleX(0); transition: transform .5s var(--ease-out); }
.nav__link:hover, .nav__link.is-current { color: var(--champagne); }
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
.has-mega { display: flex; align-items: center; gap: 4px; }
.nav__toggle { display: grid; place-items: center; width: 22px; height: 22px; color: rgba(248, 243, 236, .65); transition: color .3s; }
.nav__toggle .icon { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.has-mega.is-open .nav__toggle { color: var(--champagne); }
.has-mega.is-open .nav__toggle .icon { transform: rotate(180deg); }
.has-mega.is-open .nav__link { color: var(--champagne); }
.has-mega.is-open .nav__link::after { transform: scaleX(1); }

/* Badge logo centrale "appeso" sotto la barra (come da mockup) */
.brand { grid-area: brand; position: relative; width: 290px; height: 100%; }
.brand__badge {
  position: absolute; top: 0; left: 50%; translate: -50% 0;
  width: 290px; height: 180px; padding-top: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 9px; overflow: hidden;
  background: var(--navy); border-radius: 0 0 50% 50% / 0 0 40% 40%;
  box-shadow: 0 20px 44px rgba(5, 26, 50, .24);
  transition: height .55s var(--ease-out), padding .55s var(--ease-out), border-radius .55s, box-shadow .55s;
}
.brand__mono { width: 62px; height: 50px; color: var(--champagne); flex: none; transition: width .55s var(--ease-out), height .55s var(--ease-out); }
.brand__text { display: flex; flex-direction: column; align-items: center; gap: 7px; transition: opacity .35s, transform .55s var(--ease-out); }
.brand__name { width: 180px; height: 14px; color: var(--ivory); }
.brand__sign { width: 130px; height: 31px; color: var(--champagne); margin-top: -2px; }
.brand__tag { font: 600 .55rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: rgba(248, 243, 236, .75); margin-top: 2px; }
.site-header.is-scrolled .brand__badge, .site-header.is-mega .brand__badge { height: var(--header-h-compact); padding-top: 10px; border-radius: 0 0 50% 50% / 0 0 0 0; box-shadow: none; }
.site-header.is-scrolled .brand__mono, .site-header.is-mega .brand__mono { width: 48px; height: 39px; }
.site-header.is-scrolled .brand__text, .site-header.is-mega .brand__text { opacity: 0; transform: translateY(-10px); }
.site-header.is-mega .site-header__bar { height: var(--header-h-compact); }

/* ---------- 7b. MEGA MENU ------------------------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: -1;
  background: radial-gradient(ellipse 55% 130% at 88% 0%, #0F3158 0%, var(--navy) 62%);
  color: var(--ivory); border-top: 1px solid rgba(217, 192, 154, .16);
  box-shadow: 0 40px 90px rgba(5, 26, 50, .4);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.mega.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .85s var(--ease-in-out), visibility 0s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--champagne), transparent); transform: scaleX(0); transition: transform 1.2s var(--ease-out) .2s; }
.mega.is-open::before { transform: scaleX(1); }
.mega__inner { width: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; padding: 52px 0 56px; display: grid; grid-template-columns: minmax(220px, 1fr) 2.4fr minmax(240px, 1fr); gap: clamp(32px, 4vw, 72px); }
.mega__eyebrow { margin: 0 0 14px; font: 700 .62rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.mega__cats li, .mega__products li, .mega__promo, .mega-card { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .8s var(--ease-out); }
.mega.is-open .mega__cats li { opacity: 1; transform: none; transition-delay: calc(.25s + var(--n) * .06s); }
.mega__cat { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(217, 192, 154, .12); }
.mega__cat::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--champagne); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.mega__num { font: 700 .6rem/1 var(--sans); letter-spacing: .14em; color: var(--gold); }
.mega__label { font: 400 clamp(1.5rem, 1.1rem + .9vw, 2rem)/1.1 var(--serif); color: rgba(248, 243, 236, .72); transition: color .4s, transform .6s var(--ease-out); }
.mega__count { grid-column: 2; margin-top: 5px; font: 600 .58rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(217, 192, 154, .55); }
.mega__cat:hover .mega__label, .mega__cat.is-active .mega__label, .mega__cat:focus-visible .mega__label { color: var(--ivory); font-style: italic; transform: translateX(10px); }
.mega__cat:hover::after, .mega__cat.is-active::after { transform: scaleX(1); }
.mega__stage { position: relative; min-height: 320px; }
.mega__list { position: absolute; inset: 0; visibility: hidden; }
.mega__list.is-active { position: relative; visibility: visible; }
.mega__list-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(217, 192, 154, .14); opacity: 0; transition: opacity .5s; }
.mega.is-open .mega__list.is-active .mega__list-head { opacity: 1; transition-delay: .3s; }
.mega__title { margin: 0; font: italic 400 1.6rem/1.1 var(--serif); color: var(--champagne); }
.mega__all { display: inline-flex; align-items: center; gap: 8px; font: 700 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); }
.mega__all .icon { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.mega__all:hover .icon { transform: translateX(5px); }
.mega__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.mega.is-open .mega__list.is-active .mega__products li { opacity: 1; transform: none; transition-delay: calc(.18s + var(--n) * .08s); }
.mega-product { display: block; text-align: center; }
.mega-product__media { position: relative; display: block; aspect-ratio: 4 / 3.2; margin-bottom: 14px; overflow: hidden; border-radius: 4px; background: var(--ivory-warm); }
.mega-product__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform 1s var(--ease-out); }
.mega-product__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1.1s var(--ease-out); pointer-events: none; }
.mega-product:hover .mega-product__media img { transform: scale(1.09) translateY(-4px); }
.mega-product:hover .mega-product__media::after { transform: translateX(120%); }
.mega-product__name { display: block; font: 500 1.28rem/1.2 var(--serif); color: var(--ivory); transition: color .3s; }
.mega-product:hover .mega-product__name { color: var(--champagne); }
.mega-product__price { display: block; margin-top: 4px; font: 700 .7rem/1 var(--sans); letter-spacing: .12em; color: var(--champagne); }
.mega__promo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 360px; padding: 24px; overflow: hidden; border-radius: 4px; background: radial-gradient(ellipse at 50% 30%, #FFFAF4, var(--ivory-warm) 70%); color: var(--navy); transform: translateX(30px); }
.mega.is-open .mega__promo { opacity: 1; transform: none; transition-delay: .4s; }
.mega__promo-media { position: absolute; inset: 40px 0 120px; }
.mega__promo-media picture, .mega__promo-media img { width: 100%; height: 100%; }
.mega__promo-media img { object-fit: contain; mix-blend-mode: multiply; transition: transform 1.2s var(--ease-out); }
.mega__promo:hover .mega__promo-media img { transform: scale(1.07) rotate(-1.5deg); }
.mega__promo-tag { position: absolute; top: 18px; left: 18px; padding: 7px 14px; border-radius: 30px; background: var(--navy); color: var(--champagne); font: 800 .58rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.mega__promo-name { position: relative; font: 500 1.6rem/1.1 var(--serif); }
.mega__promo-cta { position: relative; display: inline-flex; align-items: center; gap: 8px; font: 700 .64rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.mega__promo-cta .icon { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.mega__promo:hover .mega__promo-cta .icon { transform: translateX(6px); }
.mega__inner--cards { grid-template-columns: repeat(4, 1fr); }
.mega.is-open .mega-card { opacity: 1; transform: none; transition-delay: calc(.25s + var(--n) * .08s); }
.mega-card { display: block; }
.mega-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; margin-bottom: 16px; }
.mega-card__media picture, .mega-product__media picture, .mega__promo-media picture { height: 100%; }
.mega-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .8s; filter: saturate(.9); }
.mega-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 26, 50, .55), transparent 55%); transition: opacity .6s; }
.mega-card:hover .mega-card__media img { transform: scale(1.08); filter: none; }
.mega-card:hover .mega-card__media::after { opacity: .3; }
.mega-card__eyebrow { display: block; margin-bottom: 6px; font: 700 .6rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.mega-card__title { display: inline-flex; align-items: center; gap: 10px; font: 400 1.45rem/1.2 var(--serif); color: var(--ivory); }
.mega-card__title .icon { width: 16px; height: 16px; color: var(--champagne); transition: transform .5s var(--ease-out); }
.mega-card:hover .mega-card__title .icon { transform: translateX(6px); }
.mega-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5, 26, 50, .42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.mega-scrim.is-on { opacity: 1; visibility: visible; transition: opacity .6s; }

.header-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; padding: 6px 4px 6px 10px; border-radius: 24px; transition: background-color .3s; }
.cart-btn:hover { background: rgba(217, 192, 154, .12); }
.cart-btn__icon { position: relative; display: grid; }
.cart-btn__count {
  position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center; background: var(--gradient-gold); color: var(--navy);
  font: 800 .62rem/1 var(--sans);
}
.cart-btn__total { font: 700 .76rem/1 var(--sans); letter-spacing: .04em; color: var(--champagne); font-variant-numeric: tabular-nums; min-width: 4.6em; }
.cart-btn.is-bump .cart-btn__icon { animation: cart-bump .7s var(--ease-out); }
.cart-btn.is-bump .cart-btn__total { animation: total-flash 1.2s ease; }
@keyframes cart-bump { 0% { transform: scale(1); } 30% { transform: scale(1.28) rotate(-8deg); } 60% { transform: scale(.94) rotate(4deg); } 100% { transform: none; } }
@keyframes total-flash { 0%, 100% { color: var(--champagne); } 30% { color: var(--white); text-shadow: 0 0 14px rgba(217, 192, 154, .9); } }

/* Miniature prodotti accanto al carrello + anteprima "a mazzo di carte" */
.cart-wrap { position: relative; }
.cart-thumbs { display: flex; align-items: center; margin-right: 2px; }
.cart-thumbs__img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--ivory-warm);
  border: 2px solid var(--navy); box-shadow: 0 0 0 1px var(--champagne);
  animation: thumb-in .7s var(--ease-out) both; animation-delay: calc(var(--k) * .1s);
}
.cart-thumbs__img + .cart-thumbs__img { margin-left: -12px; }
@keyframes thumb-in { from { opacity: 0; transform: scale(.2) rotate(-25deg); } }
.mini-cart { display: none; }
@media (hover: hover) and (min-width: 1101px) {
  .mini-cart {
    display: block; position: absolute; top: calc(100% + 16px); right: -8px; z-index: 5; width: 340px;
    opacity: 0; visibility: hidden; transform: translateY(12px) scale(.97); transform-origin: top right;
    transition: opacity .35s, transform .55s var(--ease-out), visibility 0s .35s;
  }
  .mini-cart::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
  .mini-cart::after { content: ""; position: absolute; top: -6px; right: 34px; width: 12px; height: 12px; background: var(--ivory); transform: rotate(45deg); border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
  .cart-wrap:hover .mini-cart, .cart-wrap:focus-within .mini-cart { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .55s var(--ease-out), visibility 0s; }
  .cart-wrap:hover .mini-cart__item, .cart-wrap:focus-within .mini-cart__item { animation: deal .7s var(--ease-out) both; animation-delay: calc(.1s + var(--k) * .1s); }
}
@keyframes deal { from { opacity: 0; transform: translate(30px, -18px) rotate(8deg) scale(.92); } }
.mini-cart__panel { position: relative; padding: 18px 18px 16px; background: var(--ivory); color: var(--charcoal); border-radius: 6px; border-top: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.mini-cart__head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font: 500 1.3rem/1 var(--serif); color: var(--navy); }
.mini-cart__head span { font: 700 .6rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.mini-cart__list { display: grid; gap: 8px; }
.mini-cart__item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px;
  background: var(--white); border-radius: 4px; box-shadow: var(--shadow-sm);
  transform: rotate(calc((var(--k) * 2 - 1) * -1.1deg)); transition: transform .6s var(--ease-out);
}
.mini-cart__panel:hover .mini-cart__item { transform: none; }
.mini-cart__item img { width: 56px; height: 56px; object-fit: cover; border-radius: 3px; background: var(--ivory-warm); mix-blend-mode: multiply; }
.mini-cart__info { display: grid; gap: 2px; min-width: 0; }
.mini-cart__info a { font: 500 1.05rem/1.15 var(--serif); color: var(--navy); }
.mini-cart__info small { font-size: .72rem; color: var(--ink-mute); }
.mini-cart__line-total { font: 600 1.05rem var(--serif); font-variant-numeric: lining-nums; }
.mini-cart__more { margin: 10px 0 0; font: italic 400 1rem var(--serif); color: var(--gold-deep); text-align: center; }
.mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 12px; padding-top: 12px; border-top: 1px solid var(--line-gold); }
.mini-cart__total span { font: 700 .62rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.mini-cart__total strong { font: 600 1.45rem var(--serif); font-variant-numeric: lining-nums; }
.mini-cart__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-cart__actions .btn { padding: 0 10px; }
.mini-cart__empty { margin: 4px 0; text-align: center; font: italic 400 1.1rem/1.6 var(--serif); color: var(--ink-soft); }
.mini-cart__empty a { font: 700 .62rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .cart-thumbs { display: none; } }

/* Burger */
.burger { width: 44px; height: 44px; display: none; place-items: center; }
.burger__lines { display: grid; gap: 6px; width: 24px; }
.burger__lines span { display: block; height: 1.5px; background: var(--ivory); transition: transform .5s var(--ease-out), width .5s var(--ease-out); transform-origin: left; }
.burger__lines span:nth-child(2) { width: 70%; }
.burger:hover .burger__lines span:nth-child(2) { width: 100%; }

/* ---------- 8. MENU MOBILE --------------------------------------------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; gap: 22px;
  padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 0 0, var(--navy-2), var(--navy) 60%); color: var(--ivory);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0 at 40px 38px); transition: clip-path .8s var(--ease-in-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { clip-path: circle(160% at 40px 38px); }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__mono { width: 48px; height: 38px; color: var(--champagne); }
.mobile-menu__close .icon { width: 26px; height: 26px; }
.mobile-menu__search { display: flex; align-items: center; border-bottom: 1px solid rgba(217, 192, 154, .35); }
.mobile-menu__search input { flex: 1; min-width: 0; background: none; border: 0; padding: 12px 0; font: 400 1.15rem var(--serif); color: var(--ivory); }
.mobile-menu__search input::placeholder { color: rgba(248, 243, 236, .5); }
.mobile-menu__search input:focus { outline: none; }
.mobile-menu__search button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--champagne); }
.mobile-menu__nav li { border-bottom: 1px solid rgba(217, 192, 154, .14); opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .8s var(--ease-out); transition-delay: calc(.25s + var(--i) * .06s); }
.mobile-menu.is-open .mobile-menu__nav li { opacity: 1; transform: none; }
.mm-group { display: flex; align-items: center; justify-content: space-between; }
.mm-link { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; font: 500 clamp(1.7rem, 1.3rem + 2vw, 2.2rem)/1.1 var(--serif); }
.mm-link:hover { color: var(--champagne); }
.mm-num { font: 700 .62rem/1 var(--sans); letter-spacing: .14em; color: var(--gold); min-width: 20px; }
.mm-toggle { width: 44px; height: 44px; display: grid; place-items: center; color: var(--champagne); }
.mm-toggle .icon { transition: transform .4s var(--ease-out); }
.mm-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mm-sub { padding: 0 0 14px 36px; display: grid; gap: 4px; }
.mm-sub a { display: block; padding: 8px 0; font: 600 .74rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(248, 243, 236, .82); }
.mm-sub a:hover { color: var(--champagne); }
.mobile-menu__foot { margin-top: auto; display: grid; gap: 6px; }
.mm-util { display: flex; align-items: center; gap: 12px; padding: 10px 0; font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.mm-util .icon { width: 20px; height: 20px; color: var(--champagne); }
.mm-util span { margin-left: auto; color: var(--champagne); }
.mm-social { display: flex; gap: 8px; margin-top: 8px; }
.mm-social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(217, 192, 154, .3); border-radius: 50%; }

/* ---------- 9. RICERCA -------------------------------------------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: start center; padding: clamp(72px, 13vh, 150px) var(--gutter) var(--gutter); overflow-y: auto; overscroll-behavior: contain;
  background: rgba(5, 26, 50, .97); color: var(--ivory);
  opacity: 0; transition: opacity .45s;
}
.search-overlay[hidden] { display: none; }
.search-overlay.is-open { opacity: 1; }
.search-overlay__inner { width: min(760px, 100%); transform: translateY(20px); transition: transform .7s var(--ease-out); }
.search-overlay.is-open .search-overlay__inner { transform: none; }
.search-overlay .eyebrow { color: var(--champagne); }
.search-overlay__field { display: flex; align-items: center; border-bottom: 1px solid var(--champagne); }
.search-overlay__field input { flex: 1; min-width: 0; background: none; border: 0; padding: 14px 0; font: 400 clamp(1.8rem, 1.2rem + 3vw, 3rem)/1.2 var(--serif); color: var(--ivory); }
.search-overlay__field input:focus { outline: none; }
.search-overlay__field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-overlay__field input::placeholder { color: rgba(248, 243, 236, .35); }
.search-overlay__submit { width: 56px; height: 56px; display: grid; place-items: center; color: var(--champagne); }
.search-overlay__submit .icon { width: 28px; height: 28px; }
.search-overlay__hint { margin-top: 20px; font-size: .85rem; color: rgba(248, 243, 236, .65); }
.search-overlay__hint a { color: var(--champagne); }
.search-overlay__close { position: absolute; top: 20px; right: 20px; }
.search-overlay__inner { padding-bottom: 32px; }
.search-overlay__inner[hidden] { display: none; }
.search-suggest, .search-live { margin-top: 30px; }
.search-suggest[hidden], .search-live[hidden] { display: none; }
.search-suggest__label { margin: 26px 0 12px; font: 700 .66rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--champagne); }
.search-suggest__label:first-child { margin-top: 0; }
.search-suggest__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.search-chip { display: inline-block; padding: 9px 18px; border: 1px solid rgba(217, 192, 154, .4); border-radius: 999px; font: 500 .84rem var(--sans); color: var(--ivory); background: transparent; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out); }
.search-chip:hover, .search-chip:focus-visible { background: var(--champagne); border-color: var(--champagne); color: var(--navy); transform: translateY(-2px); }
.search-suggest__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.search-card { display: grid; gap: 6px; padding: 10px 10px 14px; border: 1px solid rgba(217, 192, 154, .22); border-radius: 8px; background: rgba(248, 243, 236, .04); transition: background-color .3s, border-color .3s, transform .4s var(--ease-out); }
.search-card:hover, .search-card:focus-visible { background: rgba(248, 243, 236, .1); border-color: var(--champagne); transform: translateY(-3px); }
.search-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 5px; background: var(--ivory-deep); }
.search-card__media picture, .search-card__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.search-card__name { font: 500 1.02rem/1.2 var(--serif); color: var(--ivory); }
.search-card__price { font: 600 .78rem var(--sans); color: var(--champagne); }
.search-live__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.search-hit { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border: 1px solid transparent; border-radius: 8px; transition: background-color .25s, border-color .25s, transform .35s var(--ease-out); animation: search-hit-in .45s var(--ease-out) both; }
.search-live__list li:nth-child(2) .search-hit { animation-delay: .04s; } .search-live__list li:nth-child(3) .search-hit { animation-delay: .08s; }
.search-live__list li:nth-child(4) .search-hit { animation-delay: .12s; } .search-live__list li:nth-child(5) .search-hit { animation-delay: .16s; } .search-live__list li:nth-child(6) .search-hit { animation-delay: .2s; }
.search-hit:hover, .search-hit:focus-visible { background: rgba(248, 243, 236, .08); border-color: rgba(217, 192, 154, .45); transform: translateX(4px); }
.search-hit__media { display: block; width: 72px; aspect-ratio: 4 / 3; border-radius: 5px; background: var(--ivory-deep); overflow: hidden; }
.search-hit__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.search-hit__body { display: grid; gap: 2px; min-width: 0; }
.search-hit__cat { font: 700 .6rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); }
.search-hit__name { font: 500 1.3rem/1.15 var(--serif); color: var(--ivory); }
.search-hit__short { font: 400 .8rem/1.4 var(--sans); color: rgba(248, 243, 236, .62); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-hit__price { font: 600 .92rem var(--sans); color: var(--champagne); white-space: nowrap; }
.search-hit mark { background: rgba(217, 192, 154, .28); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-live__empty { margin: 8px 0 0; font: italic 400 1.15rem/1.5 var(--serif); color: rgba(248, 243, 236, .75); }
.search-live__empty a, .search-live__all { color: var(--champagne); text-decoration: underline; text-underline-offset: 4px; }
.search-live__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.search-live__all .icon { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.search-live__all:hover .icon { transform: translateX(4px); }
@keyframes search-hit-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 760px) {
  .search-suggest__grid { grid-template-columns: repeat(2, 1fr); }
  .search-hit { grid-template-columns: 56px 1fr; } .search-hit__media { width: 56px; } .search-hit__price { grid-column: 2; }
  .search-hit__name { font-size: 1.12rem; }
}

/* ---------- 10. HERO SLIDER ---------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 620px;
  background: var(--hero-bg); color: var(--ivory); touch-action: pan-y;
}
.hero__slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 130px;
  background:
    radial-gradient(ellipse 45% 60% at 38% 46%, rgba(132, 78, 34, .26), transparent 70%),
    radial-gradient(ellipse 30% 40% at 12% 20%, rgba(182, 138, 77, .1), transparent 70%),
    var(--slide-bg, var(--hero-bg));
  visibility: hidden; z-index: 0;
}
.slide.is-active { visibility: visible; z-index: 2; }
.slide.is-leaving { visibility: visible; z-index: 1; }
/* Transizione "a sipario": la nuova slide si apre con un clip-path direzionale */
.slide.is-active:not(.is-first) { animation: slide-in 1.3s var(--ease-in-out) both; }
.slide.is-active.from-left:not(.is-first) { animation-name: slide-in-left; }
.slide.is-leaving .slide__media { animation: media-leave 1.3s var(--ease-in-out) both; }
.slide.is-leaving.to-right .slide__media { animation-name: media-leave-right; }
.slide.is-leaving .slide__content, .slide.is-leaving .hero__aside { animation: content-leave .55s ease both; }
@keyframes slide-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes slide-in-left { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes media-leave { to { transform: translateX(-10%); filter: brightness(.45); } }
@keyframes media-leave-right { to { transform: translateX(10%); filter: brightness(.45); } }
@keyframes content-leave { to { opacity: 0; transform: translateX(-36px); } }

.slide__media {
  position: absolute; inset: var(--header-h) 0 0 auto; width: var(--media-w, 72%); z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 var(--fade, 26%), #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 var(--fade, 26%), #000 94%, transparent 100%);
}
.slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 13, 8, .6), transparent 32%); pointer-events: none; }
/* Variante "frame" (slides.json → "fit": "frame"): foto panoramica intera, centrata e sfumata ai bordi */
@media (min-width: 901px) {
  .slide--frame .slide__parallax {
    inset: auto 0; top: 50%; translate: 0 -50%; aspect-ratio: var(--ratio, 16 / 9); max-height: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  .slide--frame .slide__media::after { display: none; }
}

/* Velatura opzionale sul lato del testo (slides.json → "shade") per la leggibilità */
.slide__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--slide-bg) 0%, transparent var(--shade, 0%)); }
.slide__parallax { position: absolute; inset: -3% 0; will-change: transform; transition: transform .6s var(--ease-out); }
.hero.is-dragging .slide__parallax { transition: none; }
.slide__picture, .slide__picture img { width: 100%; height: 100%; }
.slide__picture img { object-fit: cover; object-position: var(--focus, 50% 50%); transform-origin: 60% 50%; }
/* Zoom-out lento (Ken Burns) a ogni attivazione */
.slide.is-active .slide__picture img { animation: kenburns 12s cubic-bezier(.33, 0, .25, 1) both; }
.slide.is-active.is-first .slide__picture img { animation: kenburns-first 12s cubic-bezier(.33, 0, .25, 1) calc(var(--intro-d) - .4s) both; }
/* Zoom-in lento e continuo: l'immagine si avvicina per tutta la durata della slide */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.16); } }
@keyframes kenburns-first { 0% { transform: scale(1); filter: brightness(.55) saturate(.8); } 18% { filter: none; } 100% { transform: scale(1.16); filter: none; } }

.slide__content { position: relative; --sd: .5s; }
.slide.is-first .slide__content { --sd: var(--intro-d); }
.slide__title { max-width: 640px; font: 400 var(--fs-display)/.98 var(--serif); letter-spacing: -.015em; margin: 0; }
.slide__kicker {
  display: block; position: relative; width: max-content; max-width: 100%;
  margin: 0 0 1.6rem; padding-bottom: 1rem;
  font: 600 .72rem/1.5 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: rgba(248, 243, 236, .9);
  opacity: 0;
}
.slide__kicker::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 1px; background: var(--champagne); }
.slide__line { display: block; overflow: hidden; padding: .02em 0 .26em; margin-bottom: -.26em; }
.slide__line > span { display: inline-block; padding-bottom: .2em; margin-bottom: -.2em; transform: translateY(125%); } /* spazio per le discendenti (g, p, q): il testo con gradiente è ritagliato al box della riga */
.slide__line--gold > span { background: linear-gradient(100deg, #EAD6B3 0%, #D9C09A 40%, #C59A5C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide__rule { display: block; width: 56px; height: 1px; margin: 1.8rem 0 1.5rem; background: var(--champagne); transform: scaleX(0); transform-origin: left; }
.slide__text { max-width: 26em; font: 400 var(--fs-lead)/1.55 var(--serif); color: rgba(248, 243, 236, .86); opacity: 0; }
.slide__actions { margin-top: 2rem; opacity: 0; }
.slide.is-active .slide__kicker { animation: fade-up 1s var(--ease-out) calc(var(--sd) + .05s) forwards; }
.slide.is-active .slide__line > span { animation: line-up 1.2s var(--ease-out) calc(var(--sd) + .15s + var(--l, 0) * .12s) forwards; }
.slide.is-active .slide__rule { animation: rule-in 1s var(--ease-out) calc(var(--sd) + .7s) forwards; }
.slide.is-active .slide__text { animation: fade-up 1.1s var(--ease-out) calc(var(--sd) + .8s) forwards; }
.slide.is-active .slide__actions { animation: fade-up 1.1s var(--ease-out) calc(var(--sd) + .95s) forwards; }

.hero__bokeh span {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(217, 192, 154, .28), rgba(217, 192, 154, 0) 70%);
  animation: bokeh 18s ease-in-out infinite alternate;
}
.hero__bokeh span:nth-child(1) { width: 140px; height: 140px; left: 6%; top: 18%; }
.hero__bokeh span:nth-child(2) { width: 70px; height: 70px; left: 28%; top: 12%; animation-duration: 22s; }
.hero__bokeh span:nth-child(3) { width: 100px; height: 100px; left: 18%; bottom: 14%; animation-duration: 26s; }
.hero__bokeh span:nth-child(4) { width: 48px; height: 48px; left: 40%; top: 30%; animation-duration: 15s; }
.hero__bokeh span:nth-child(5) { width: 180px; height: 180px; right: 4%; top: 8%; opacity: .5; animation-duration: 30s; }
.hero.is-offscreen .hero__bokeh span { animation-play-state: paused; }
@keyframes bokeh { from { transform: translate3d(0, 0, 0); opacity: .55; } to { transform: translate3d(24px, -30px, 0); opacity: 1; } }

.hero__aside {
  position: absolute; right: clamp(24px, 3.5vw, 64px); top: 50%; width: 104px; margin: 0; translate: 0 -40%;
  font: 600 .62rem/2 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(248, 243, 236, .85);
  opacity: 0;
}
.slide.is-active .hero__aside { animation: fade-in 1.4s ease calc(var(--intro-d) + 1.2s) forwards; }
.hero__aside::before, .hero__aside::after { content: ""; display: block; width: 1px; height: 76px; background: linear-gradient(var(--champagne), transparent); margin: 0 0 18px 8px; }
.hero__aside::after { margin: 18px 0 0 8px; background: linear-gradient(transparent, var(--champagne)); }

/* Controlli slider: indicatori con avanzamento, contatore, frecce */
.slider-ui { position: absolute; left: 0; right: 0; bottom: clamp(22px, 4.5vh, 48px); z-index: 5; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; opacity: 0; animation: fade-in 1s ease calc(var(--intro-d) + 1.3s) forwards; }
.slider-ui__dots { display: flex; gap: clamp(12px, 1.6vw, 24px); }
.slider-dot { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 10px; align-items: center; width: clamp(96px, 10vw, 168px); padding: 8px 0; text-align: left; color: rgba(248, 243, 236, .5); transition: color .4s; }
.slider-dot:hover, .slider-dot.is-active { color: var(--ivory); }
.slider-dot__num { font: 700 .66rem/1 var(--sans); letter-spacing: .14em; }
.slider-dot__bar { position: relative; height: 2px; background: rgba(217, 192, 154, .22); overflow: hidden; border-radius: 2px; }
.slider-dot__bar span { position: absolute; inset: 0; background: var(--champagne); transform: scaleX(0); transform-origin: left; }
.slider-dot.is-active .slider-dot__bar span { animation: dot-progress var(--autoplay, 7000ms) linear forwards; }
.hero.is-paused .slider-dot.is-active .slider-dot__bar span { animation-play-state: paused; }
.hero.no-autoplay .slider-dot.is-active .slider-dot__bar span { animation: none; transform: scaleX(1); }
@keyframes dot-progress { to { transform: scaleX(1); } }
.slider-dot__label { grid-column: 1 / -1; font: 600 .58rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease-out); }
.slider-dot.is-active .slider-dot__label, .slider-dot:hover .slider-dot__label { opacity: .9; transform: none; }
.slider-ui__nav { display: flex; align-items: center; gap: 10px; }
.slider-ui__count { display: flex; align-items: baseline; gap: 4px; margin: 0 16px 0 0; color: var(--ivory); }
.slider-ui__current { display: inline-block; font: italic 400 2.2rem/1 var(--serif); }
.slider-ui__current.is-flip { animation: count-flip .7s var(--ease-out); }
.slider-ui__total { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; color: rgba(248, 243, 236, .55); }
@keyframes count-flip { from { opacity: 0; transform: translateY(70%) rotateX(60deg); } }
.slider-arrow { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(217, 192, 154, .45); color: var(--ivory); transition: background-color .45s, color .45s, border-color .45s, transform .45s var(--ease-out); }
.slider-arrow:hover { background: var(--champagne); border-color: var(--champagne); color: var(--navy); transform: scale(1.06); }
.slider-arrow .icon { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.slider-arrow__icon--prev { transform: rotate(180deg); }
.slider-arrow:hover .slider-arrow__icon { transform: translateX(3px); }
.slider-arrow:hover .slider-arrow__icon--prev { transform: rotate(180deg) translateX(3px); }
.hero.is-dragging { cursor: grabbing; user-select: none; }

@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes rule-in { to { transform: scaleX(1); } }

/* ---------- 11. ECCELLENZA + BOX EDITORIALI ----------------------------- */
.excellence { padding: var(--section-y) 0 clamp(32px, 3.5vw, 56px); background: linear-gradient(180deg, var(--ivory-deep) 0%, var(--ivory) 100%); }
.excellence__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.excellence__lead { max-width: 30em; margin: 1.4rem 0 2rem; font: 400 var(--fs-lead)/1.55 var(--serif); color: var(--ink-soft); }
.excellence__cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.feature-card { display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feature-card__media { aspect-ratio: 4 / 3.1; overflow: hidden; }
.feature-card__media picture, .chef__thumb picture { height: 100%; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.feature-card:hover .feature-card__media img { transform: scale(1.07); }
.feature-card__body { position: relative; padding: 22px 64px 24px 24px; }
.feature-card__title { margin-bottom: .5rem; font: 700 .7rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.feature-card__body p { margin: 0; font: 400 1.06rem/1.45 var(--serif); color: var(--ink-soft); }
.feature-card .circle-arrow { position: absolute; right: 20px; bottom: 22px; }
.feature-card:hover .circle-arrow { background: var(--navy); border-color: var(--navy); color: var(--ivory); transform: translateX(3px); }

/* ---------- 12. COLLEZIONE --------------------------------------------- */
.collection { position: relative; padding: clamp(28px, 3vw, 48px) 0 var(--section-y); background: radial-gradient(ellipse 70% 50% at 50% 30%, #FDF7F1, var(--ivory-warm) 70%); overflow: hidden; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 26px; }
.ornament__line { width: min(30vw, 400px); height: 34px; fill: none; stroke: var(--gold); stroke-width: 1; opacity: .7; }
.ornament__line--r { transform: scaleX(-1); }
.ornament__line path { stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.js .ornament__line path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out) .2s; }
.js .ornament.is-in .ornament__line path { stroke-dashoffset: 0; }
.ornament__mono { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; border: 1px solid var(--line-gold); color: var(--gold); flex: none; background: var(--ivory-warm); }
.ornament__mono svg { width: 40px; height: 32px; }
.collection__head { text-align: center; }
.collection__title { color: var(--navy); }
.collection__sub { margin: .8rem 0 0; font: italic 400 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.4 var(--serif); color: var(--ink-soft); }

.collection__row { display: grid; grid-template-columns: 1fr 1.28fr 1fr; align-items: end; margin-top: clamp(40px, 5vw, 72px); }
.collection__row.container { width: min(100% - 2 * var(--gutter), 1640px); }
.highlight {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 9px 20px 8px;
  border-radius: 40px; background: var(--navy); color: var(--champagne);
  font: 800 .62rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(5, 26, 50, .22); position: relative; overflow: hidden;
}
.highlight::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(217, 192, 154, .35) 50%, transparent 65%); transform: translateX(-120%); }
.product-card:hover .highlight::after { transform: translateX(120%); transition: transform 1.2s var(--ease-out); }
.highlight__star { color: var(--gold); font-size: .7rem; }
.product-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 clamp(10px, 2vw, 34px); }
.product-card__media { position: relative; display: block; width: 92%; margin-bottom: 18px; }
.product-card--featured .product-card__media { width: 100%; }
.product-card__media::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 4%; height: 14%; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, rgba(60, 35, 15, .2), transparent 70%); transition: transform .8s var(--ease-out), opacity .8s; }
.product-card__picture img {
  width: 100%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%);
          mask-composite: intersect;
  transition: transform 1s var(--ease-out);
}
.product-card:hover .product-card__picture img { transform: translateY(-8px) scale(1.035); }
.product-card:hover .product-card__media::after { transform: scaleX(.86); opacity: .7; }
.product-card__body { display: flex; flex-direction: column; align-items: center; }
.product-card__name { font: 500 clamp(1.45rem, 1.2rem + .8vw, 1.85rem)/1.12 var(--serif); color: var(--navy); }
.product-card--featured .product-card__name { font-size: clamp(1.8rem, 1.4rem + 1.3vw, 2.45rem); }
.product-card__name a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.product-card__name a:hover { background-size: 100% 1px; }
.product-card__desc { max-width: 23em; margin: .45rem 0 .55rem; font: 400 1.04rem/1.38 var(--serif); color: var(--ink-soft); }
.product-card__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 0 0 .5rem; font: 600 .62rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.stock::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #6E8B5B; vertical-align: 1px; }
.stock--limited::before, .stock--preorder::before { background: var(--gold); }
.stock--out_of_stock::before, .stock--coming_soon::before { background: #A3A3A3; }
.placeholder-flag { padding: 2px 6px; border: 1px dashed var(--gold); color: var(--gold-deep); }
.product-card__price { margin: 0 0 1rem; font: 600 clamp(1.7rem, 1.5rem + .8vw, 2.1rem)/1 var(--serif); color: var(--charcoal); font-variant-numeric: lining-nums; }
.product-card--featured .product-card__price { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem); }
.product-card .btn { min-height: 44px; padding: 0 22px; font-size: .64rem; }
.product-card--featured .btn { min-height: 50px; padding: 0 32px; font-size: .68rem; }
.product-card--featured::before, .product-card--featured::after {
  content: ""; position: absolute; bottom: 8px; width: 1px; height: 46%;
  background: linear-gradient(transparent, var(--line-gold) 30%, var(--line-gold) 70%, transparent);
}
.product-card--featured::before { left: 0; }
.product-card--featured::after { right: 0; }
.collection__cta { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 36px); margin-top: clamp(48px, 6vw, 80px); }
.collection__cta-line { flex: 1; max-width: 320px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.collection__cta-line:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- 13. SEZIONI EDITORIALI ------------------------------------- */
.stories { background: var(--ivory); }
.story {
  position: relative; display: grid; grid-template-columns: 40% 1fr minmax(160px, 22%); align-items: center;
  min-height: clamp(220px, 19vw, 300px); overflow: hidden;
  background: linear-gradient(90deg, #F5EBDF 0%, #FBF6F0 60%, #F6EDE3 100%);
  border-top: 1px solid rgba(182, 138, 77, .18);
}
.story + .story { margin-top: 6px; }
.story__media { align-self: stretch; overflow: hidden; position: relative; }
.story__media > div { position: absolute; inset: -10% 0; }
.story__media picture, .story__media img { width: 100%; height: 100%; }
.story__media img { object-fit: cover; }
.story__text { position: relative; padding: 36px clamp(24px, 4vw, 64px); }
.story__text::before { content: ""; position: absolute; left: clamp(4px, 1vw, 16px); top: 22%; bottom: 22%; width: 1px; background: linear-gradient(transparent, var(--gold), transparent); }
.story__text .eyebrow { margin-bottom: .6rem; }
.story__title { font: 500 var(--fs-h3)/1.08 var(--serif); color: var(--charcoal); margin-bottom: .6rem; }
.story__copy { max-width: 36em; margin-bottom: .9rem; font: italic 400 1.1rem/1.5 var(--serif); color: var(--ink-soft); }
.story__decor { align-self: center; justify-self: center; padding-right: clamp(8px, 2vw, 32px); }
.story__decor img {
  width: auto; max-height: 170px; max-width: 100%; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.story__decor--ingredients { padding-right: 0; }
.story__decor--ingredients img { max-height: 270px; width: min(400px, 100%); height: auto; }
.story__decor--ribbon img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
          mask-composite: intersect;
}
.story__decor--ribbon { align-self: stretch; justify-self: end; padding: 0; display: flex; align-items: center; }
.story__decor--ingredients { padding-right: 0; }
.story__decor--ingredients img { max-height: 270px; width: min(400px, 100%); height: auto; }
.story__decor--ribbon img { max-height: none; height: 100%; max-width: none; width: auto; min-height: 220px; object-fit: cover; object-position: left center; }

/* ---------- 14. IL PASTICCERE (a tutta larghezza, come da mockup) --- */
.chef { position: relative; overflow: hidden; background: linear-gradient(90deg, #F2E7DA 0%, #FBF6F0 46%, #F6EDE3 100%); border-top: 1px solid rgba(182, 138, 77, .18); }
.chef__grid { display: grid; grid-template-columns: 40% minmax(0, 1fr) minmax(240px, 25%); align-items: center; min-height: clamp(540px, 44vw, 780px); }
.chef__portrait { position: relative; align-self: stretch; overflow: hidden; }
.chef__portrait > div { position: absolute; inset: 0; }
.chef__portrait-pic, .chef__portrait-pic img { width: 100%; height: 100%; }
.chef__portrait-pic img {
  object-fit: cover; object-position: 58% 18%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 86%, transparent 100%);
}
.chef__text { padding: clamp(48px, 5vw, 88px) clamp(24px, 4vw, 72px); }
.chef__name { font: italic 500 clamp(2.4rem, 1.8rem + 2.2vw, 3.8rem)/1 var(--serif); color: var(--navy); }
.chef__motto { margin: .5rem 0 1.4rem; font: italic 400 1.25rem/1.4 var(--serif); color: var(--ink-soft); }
.chef__text > p:not(.eyebrow):not(.chef__motto) { font-size: .95rem; line-height: 1.8; color: var(--ink-soft); max-width: 34em; }
.chef__text .btn { margin-top: .8rem; }
.chef__sign { width: min(250px, 70%); margin-top: 1.6rem; color: var(--gold); }
.chef__sign svg { width: 100%; height: auto; aspect-ratio: 155.6 / 37.2; }
.js .chef__sign svg { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s var(--ease-in-out) .4s; }
.js .chef__sign.is-in svg { clip-path: inset(0 0 0 0); }
.chef__side { display: grid; gap: clamp(16px, 2vw, 28px); padding: 48px var(--gutter) 48px 0; }
.chef__thumb { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.chef__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.chef__thumb:hover img { transform: scale(1.06); }

/* ---------- 15. DIETRO LE QUINTE (VIDEO) ------------------------------- */
.behind { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(460px, 44vw, 700px); overflow: hidden; color: var(--ivory); background: var(--hero-bg); }
.behind__media { position: absolute; inset: -10% 0; z-index: -2; }
.behind__picture, .behind__picture img { width: 100%; height: 100%; }
.behind__picture img { object-fit: cover; object-position: 40% 12%; }
.behind::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 13, 8, .08) 0%, rgba(20, 13, 8, .45) 42%, rgba(15, 10, 6, .86) 100%); }
.behind--about .behind__picture img { object-position: 50% 55%; }
.behind__content { display: flex; align-items: center; justify-content: flex-end; gap: clamp(24px, 4vw, 56px); padding-block: 64px; }
.behind__text { max-width: 30rem; }
.behind__title { font: italic 400 clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem)/1.06 var(--serif); margin-bottom: 1.4rem; }
.play { position: relative; display: grid; place-items: center; width: 96px; height: 96px; flex: none; border-radius: 50%; border: 1.5px solid rgba(248, 243, 236, .85); color: var(--ivory); transition: background-color .5s, color .5s, transform .5s var(--ease-out); }
.play__icon { width: 30px; height: 30px; margin-left: 4px; }
.play__ring { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--champagne); animation: ring 2.8s var(--ease-out) infinite; }
.play__ring--2 { animation-delay: 1.4s; }
.play:hover { background: var(--ivory); color: var(--navy); transform: scale(1.06); }
.lightbox__soon { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; color: var(--ivory); text-align: center; }
.lightbox__poster { position: absolute; inset: 0; }
.lightbox__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 15%; filter: brightness(.35); }
.lightbox__soon-text { position: relative; padding: 24px; }
.lightbox__soon-title { margin: 0 0 1.2rem; font: italic 400 clamp(1.8rem, 1.3rem + 2vw, 3rem)/1.1 var(--serif); }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.lightbox { width: min(1200px, 94vw); max-width: none; max-height: none; padding: 0; border: 0; background: #000; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 26, 50, .92); backdrop-filter: blur(6px); }
.lightbox__frame { aspect-ratio: 16 / 9; }
.lightbox__frame video, .lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close { position: absolute; top: -52px; right: 0; color: var(--ivory); }

/* ---------- 16. CTA FINALE -------------------------------------------- */
.final-cta { position: relative; overflow: hidden; padding: clamp(52px, 6vw, 88px) 0; background: radial-gradient(ellipse 60% 120% at 80% 50%, var(--navy-2), var(--navy) 70%); color: var(--ivory); }
/* Allineata a sinistra sullo stesso container del logo nel footer */
.final-cta__inner { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: clamp(28px, 5vw, 80px); }
.final-cta__title { font: italic 400 clamp(2.3rem, 1.6rem + 2.4vw, 3.6rem)/1.05 var(--serif); }
.final-cta .eyebrow { margin-bottom: .6rem; }
.final-cta__divider { width: 1px; height: 84px; background: linear-gradient(transparent, rgba(217, 192, 154, .55), transparent); }
.final-cta__mono { position: absolute; right: -3%; top: 50%; width: clamp(260px, 30vw, 440px); translate: 0 -46%; color: var(--champagne); opacity: .09; pointer-events: none; }
.final-cta__mono svg { width: 100%; height: auto; aspect-ratio: 54 / 43.4; }

/* ---------- 17. FOOTER ------------------------------------------------ */
.site-footer { background: var(--ivory); border-top: 1px solid rgba(182, 138, 77, .25); color: var(--charcoal); }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.7fr; gap: clamp(24px, 3vw, 48px); padding: clamp(56px, 6vw, 88px) 0 clamp(40px, 4vw, 56px); }
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 1.2rem; }
.footer-logo__mono { width: 52px; height: 42px; color: var(--gold); }
.footer-logo__text { display: grid; gap: 6px; }
.footer-logo__name { width: 170px; height: 14px; color: var(--navy); }
.footer-logo__tag { font: 700 .56rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.site-footer__claim { max-width: 22em; font: italic 400 1.05rem/1.5 var(--serif); color: var(--ink-soft); }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-gold); color: var(--navy); transition: background-color .3s, color .3s; }
.social a:hover { background: var(--navy); color: var(--ivory); }
.social .icon { width: 18px; height: 18px; }
.site-footer__title { margin-bottom: 1.1rem; font: 800 .64rem/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--navy); }
.site-footer__col li + li { margin-top: .45rem; }
.site-footer__col a { font: 400 1.08rem/1.4 var(--serif); color: var(--charcoal); transition: color .3s; }
.site-footer__col a:hover { color: var(--gold-deep); }
.site-footer__news > p { font: 400 1.02rem/1.5 var(--serif); color: var(--ink-soft); }
.newsletter__field { display: flex; border-bottom: 1px solid var(--navy); }
.newsletter__field input { flex: 1; min-width: 0; padding: 12px 0; background: none; border: 0; font: 400 1.08rem var(--serif); }
.newsletter__field input:focus { outline: none; }
.newsletter__field button { width: 44px; display: grid; place-items: center; color: var(--navy); transition: transform .4s var(--ease-out); }
.newsletter__field button:hover { transform: translateX(4px); }
.newsletter__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .78rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.newsletter__msg { min-height: 1.4em; margin: 10px 0 0; font-size: .82rem; }
.newsletter__msg.is-ok { color: #4F6E3D; }
.newsletter__msg.is-error { color: #A2412E; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 22px 0 calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(182, 138, 77, .2); font-size: .76rem; color: var(--ink-mute); }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer__legal a:hover, .site-footer__legal button:hover { color: var(--navy); }

/* ---------- 18. SCROLL TO TOP: IL PANETTONE CHE SI MANGIA (frontale) - */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.to-top {
  --p: 0;
  /* Fronte del morso: da destra (92%) verso sinistra (8%) */
  --e: calc(92% - var(--p) * 84%);
  --e2: calc(var(--e) + 5%);
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: calc(clamp(14px, 2vw, 28px) + env(safe-area-inset-bottom)); z-index: 70;
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, var(--navy-3), var(--navy) 72%);
  box-shadow: 0 14px 34px rgba(5, 26, 50, .32), inset 0 0 0 1px rgba(217, 192, 154, .35);
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.5) rotate(-120deg);
  transition: opacity .5s, visibility .5s, transform .8s var(--ease-out), box-shadow .4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translate(var(--mx, 0), var(--my, 0)); }
.to-top:hover { box-shadow: 0 18px 44px rgba(5, 26, 50, .45), inset 0 0 0 1px var(--champagne), 0 0 0 6px rgba(217, 192, 154, .14); }

.cake { position: relative; width: 56px; height: 56px; margin-top: 2px; transition: transform .5s var(--ease-out), filter .4s; }
.to-top.is-eating .cake { animation: chew .3s ease-in-out infinite alternate; }
@keyframes chew { from { transform: translateY(0) scale(1); } to { transform: translateY(1px) scale(.96, .94); } }
.cake__plate, .cake__layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cake__crumbs { opacity: calc((var(--p) - .35) * 2); }
/* Il monogramma MF emerge man mano che il panettone sparisce */
.cake__mono { position: absolute; left: 50%; top: 46%; width: 30px; translate: -50% -50%; color: var(--gold); opacity: calc(var(--p) * 1.1 - .1); transform: scale(calc(.7 + var(--p) * .3)); }
.cake__mono svg { width: 100%; height: auto; aspect-ratio: 54 / 43.4; }
/* Maschera "a morsi": parte intera fino a --e, meno una colonna di morsi semicircolari centrati sul bordo */
.cake__layer--top, .cake__layer--crumb {
  -webkit-mask-image: linear-gradient(90deg, #000 var(--x), transparent var(--x)), radial-gradient(ellipse 4.6% 46% at var(--x) 50%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 var(--x), transparent var(--x)), radial-gradient(ellipse 4.6% 46% at var(--x) 50%, #000 96%, transparent 100%);
  -webkit-mask-size: 100% 100%, 100% 13%; mask-size: 100% 100%, 100% 13%;
  -webkit-mask-repeat: no-repeat, repeat-y; mask-repeat: no-repeat, repeat-y;
  -webkit-mask-position: 0 0, 0 4%; mask-position: 0 0, 0 4%;
  -webkit-mask-composite: source-out; mask-composite: subtract;
}
.cake { color: var(--champagne); }
.cake__plate { color: rgba(217, 192, 154, .75); }
.cake__layer--top { --x: var(--e); filter: drop-shadow(0 0 1.6px rgba(217, 192, 154, .75)); }
/* Interno visibile solo in una fascia che segue il fronte dei morsi (il wireframe è trasparente) */
.cake__layer--crumb {
  color: #F3DDB4; opacity: calc((1 - var(--p)) * 120); filter: drop-shadow(0 0 2px rgba(243, 221, 180, .9));
  -webkit-mask-image: linear-gradient(90deg, transparent calc(var(--e) - 9%), #000 calc(var(--e) - 2%), #000 var(--e), transparent calc(var(--e) + 3%));
          mask-image: linear-gradient(90deg, transparent calc(var(--e) - 9%), #000 calc(var(--e) - 2%), #000 var(--e), transparent calc(var(--e) + 3%));
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-over; mask-composite: add;
}
/* Wireframe che si disegna linea per linea quando il pulsante compare */
.cake .wf { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease-out) var(--d, 0s); }
.to-top.is-visible .cake .wf { stroke-dashoffset: 0; }
.to-top.is-eating .cake__layer--top { filter: drop-shadow(0 0 2.6px rgba(217, 192, 154, 1)); }
.to-top__pct {
  position: absolute; top: -9px; right: -6px; min-width: 34px; padding: 4px 6px 3px; border-radius: 20px;
  background: var(--gradient-gold); color: var(--navy); box-shadow: 0 4px 10px rgba(5, 26, 50, .25);
  font: 800 .6rem/1 var(--sans); letter-spacing: .02em; text-align: center; font-variant-numeric: tabular-nums;
  transition: transform .4s var(--ease-out);
}
.to-top__arrow {
  position: absolute; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--champagne); box-shadow: 0 6px 16px rgba(5, 26, 50, .4);
  opacity: 0; transform: translateY(14px) scale(.6); transition: opacity .35s, transform .5s var(--ease-out);
}
.to-top__arrow .icon { width: 18px; height: 18px; }
.to-top:hover .to-top__arrow, .to-top:focus-visible .to-top__arrow { opacity: 1; transform: none; }
.to-top:hover .cake, .to-top:focus-visible .cake { transform: scale(.92); filter: brightness(.8); }
.to-top:hover .to-top__pct { transform: translateY(-3px); }
.to-top.is-launch .to-top__arrow { animation: launch .9s var(--ease-in-out); }
@keyframes launch { 0% { transform: none; } 40% { transform: translateY(-60px) scale(.7); opacity: 0; } 41% { transform: translateY(30px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- 19. CARRELLO: DRAWER + POPUP ------------------------------- */
dialog::backdrop { background: rgba(5, 26, 50, .45); backdrop-filter: blur(3px); }
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0; width: min(440px, 100vw); height: 100dvh; max-height: none; max-width: none;
  background: var(--ivory); color: var(--charcoal); box-shadow: var(--shadow-lg);
}
.drawer[open] { animation: drawer-in .6s var(--ease-out); }
.drawer.is-closing { animation: drawer-out .4s var(--ease-in-out) forwards; }
.drawer[open]::backdrop { animation: fade-in .4s; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
.drawer__panel { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 18px 28px; border-bottom: 1px solid rgba(182, 138, 77, .25); }
.drawer__head .icon-btn:hover { color: var(--navy); }
.drawer__title { font: 500 1.6rem/1 var(--serif); color: var(--navy); }
.drawer__count { font: 600 .8rem var(--sans); color: var(--ink-mute); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.drawer__foot { padding: 20px 28px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(182, 138, 77, .25); background: var(--white); display: grid; gap: 10px; }
.drawer__totals div, .added-modal__summary div { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__totals { margin: 0; }
.drawer__totals dt { font: 700 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.drawer__totals dd { margin: 0; font: 600 1.7rem var(--serif); }
.drawer__note { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: .78rem; color: var(--ink-mute); }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(182, 138, 77, .18); animation: fade-up .5s var(--ease-out) both; }
.cart-line__img { width: 84px; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; background: var(--ivory-warm); }
.cart-line__name { display: block; font: 500 1.2rem/1.2 var(--serif); color: var(--navy); }
.cart-line__unit { font-size: .76rem; color: var(--ink-mute); }
.cart-line__total { font: 600 1.15rem var(--serif); text-align: right; }
.cart-line__remove { display: block; margin-top: 6px; margin-left: auto; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; }
.cart-line__remove:hover { color: #A2412E; }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid rgba(5, 26, 50, .25); border-radius: 2px; }
.qty button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--navy); }
.qty button:hover { background: var(--ivory-deep); }
.qty button .icon { width: 14px; height: 14px; }
.qty output, .qty input { width: 34px; text-align: center; font: 700 .85rem var(--sans); border: 0; background: none; }
.cart-empty { padding: 48px 0; text-align: center; }
.cart-empty p { font: italic 400 1.3rem var(--serif); color: var(--ink-soft); }

.added-modal { width: min(480px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: var(--ivory); box-shadow: var(--shadow-lg); border-radius: 4px; overflow: hidden; }
.added-modal[open] { animation: modal-in .65s var(--ease-out); }
.added-modal.is-closing { animation: modal-out .3s ease forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.98); } }
.added-modal__panel { position: relative; padding: 40px clamp(20px, 5vw, 40px) 28px; text-align: center; border-top: 3px solid var(--gold); }
.added-modal__close { position: absolute; top: 10px; right: 10px; }
.added-modal__close:hover { color: var(--navy); }
.added-modal__check { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--gold); }
.added-modal__check svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.added-modal__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.added-modal__check path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.added-modal[open] .added-modal__check circle { animation: draw-stroke .8s var(--ease-out) .15s forwards; }
.added-modal[open] .added-modal__check path { animation: draw-stroke .5s var(--ease-out) .7s forwards; }
@keyframes draw-stroke { to { stroke-dashoffset: 0; } }
.added-modal .eyebrow { margin-bottom: .3rem; }
.added-modal__title { font: 500 2rem/1.1 var(--serif); color: var(--navy); margin-bottom: 18px; }
.added-modal__product { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px; background: var(--white); text-align: left; }
.added-modal__product img { width: 96px; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; }
.added-modal__product strong { display: block; font: 500 1.25rem/1.2 var(--serif); color: var(--navy); }
.added-modal__product span { font-size: .78rem; color: var(--ink-mute); }
.added-modal__product .price { font: 600 1.3rem var(--serif); color: var(--charcoal); }
.added-modal__summary { margin: 16px 0 20px; padding: 0 4px; display: grid; gap: 6px; font-size: .86rem; }
.added-modal__summary dd { margin: 0; font-weight: 700; }
.added-modal__actions { display: grid; gap: 10px; }
.added-modal__cartlink { display: inline-block; margin-top: 16px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--navy); }

/* Prodotto che "vola" verso il carrello */
.fly-img { position: fixed; z-index: 500; pointer-events: none; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* ---------- 20. CONSENSO COOKIE --------------------------------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 460px; background: var(--white); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); animation: fade-up .6s var(--ease-out); }
.consent[hidden] { display: none; }
.consent__inner { position: relative; padding: 26px 24px 22px; }
.consent__x { position: absolute; top: 8px; right: 8px; }
.consent__title { font: 500 1.5rem var(--serif); color: var(--navy); margin-bottom: .5rem; }
.consent p { font-size: .84rem; color: var(--ink-soft); }
.consent a { text-decoration: underline; }
.consent__prefs { display: grid; gap: 4px; margin-bottom: 14px; }
.consent__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.consent__actions .btn { padding: 0 10px; min-height: 44px; font-size: .6rem; letter-spacing: .14em; }

/* ---------- 21. PLACEHOLDER IMMAGINI --------------------------------- */
.img-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, var(--ivory-deep), var(--ivory-deep) 10px, var(--ivory) 10px, var(--ivory) 20px); border: 1px dashed var(--line-gold); }
.img-placeholder span { font: 700 .62rem var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); }

/* ---------- 21b. PAGINE INTERNE ------------------------------------- */
.page-inner main { background: linear-gradient(180deg, var(--ivory-deep), var(--ivory) 420px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.6rem; font: 600 .66rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs [aria-current] { color: var(--navy); }
.page-head { padding-bottom: clamp(24px, 4vw, 48px); }
.page-head__title { color: var(--navy); max-width: 18em; }
.page-head__intro { max-width: 36em; margin-top: 1rem; font: 400 var(--fs-lead)/1.55 var(--serif); color: var(--ink-soft); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6rem; }
.filter a { padding: 10px 18px; border: 1px solid var(--line-gold); border-radius: 30px; font: 700 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--navy); transition: background-color .3s, color .3s; }
.filter a:hover, .filter a[aria-current] { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.shop-group { padding-bottom: clamp(48px, 6vw, 96px); }
.shop-group__title { margin-bottom: 1.5rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line-gold); font: 500 var(--fs-h3)/1.1 var(--serif); color: var(--charcoal); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 32px); align-items: end; }
.product-grid .product-card { background: var(--ivory-warm); padding: 28px 20px 30px; }
.product-grid .product-card--featured::before, .product-grid .product-card--featured::after { display: none; }
.stub-note { display: grid; justify-items: center; gap: 8px; margin-bottom: var(--section-y); padding: clamp(36px, 5vw, 64px) var(--gutter); text-align: center; background: var(--white); box-shadow: var(--shadow-sm); }
.stub-note p { max-width: 32em; font: italic 400 1.3rem/1.5 var(--serif); color: var(--ink-soft); }
.stub-note__mono { width: 60px; color: var(--gold); margin-bottom: 8px; }
.stub-note__mono svg { width: 100%; height: auto; aspect-ratio: 54 / 43.4; }
.stub-note__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.search-inline { display: flex; gap: 10px; max-width: 560px; margin-top: 1.4rem; }
.search-inline input { flex: 1; min-width: 0; padding: 0 16px; min-height: 50px; border: 1px solid var(--line-gold); background: var(--white); font: 400 1.1rem var(--serif); }
.notice { padding: 28px; background: var(--white); border-left: 3px solid var(--gold); box-shadow: var(--shadow-sm); }
.notice--error { border-color: #A2412E; color: #A2412E; padding: 14px 18px; }
.error-page { padding: 40px 0 var(--section-y); text-align: center; display: grid; justify-items: center; }
.error-page__code { font: italic 400 clamp(6rem, 4rem + 10vw, 12rem)/1 var(--serif); color: var(--champagne); opacity: .5; }
.error-page .search-inline { width: 100%; }

/* Scheda prodotto */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: var(--section-y); }
.product__gallery { position: sticky; top: calc(var(--header-h-compact) + 24px); }
.product__main { background: radial-gradient(ellipse at 50% 40%, #FFFBF7, var(--ivory-warm) 70%); padding: clamp(16px, 3vw, 40px); }
.product__picture img {
  width: 100%; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-composite: intersect;
}
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.product__thumb { width: 84px; aspect-ratio: 1; overflow: hidden; border: 1px solid transparent; background: var(--ivory-warm); }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.product__thumb[aria-pressed="true"] { border-color: var(--gold); }
.product__title { font: 500 clamp(2.3rem, 1.6rem + 2.4vw, 3.6rem)/1.04 var(--serif); color: var(--navy); }
.product__short { margin: 1rem 0 1.2rem; font: italic 400 var(--fs-lead)/1.5 var(--serif); color: var(--ink-soft); }
.product__price { font: 600 2.4rem/1 var(--serif); margin-bottom: .6rem; font-variant-numeric: lining-nums; }
.drawer__totals dd, .cart-line__total, .cart-row__total, .added-modal__product .price { font-variant-numeric: lining-nums; }
.product__price small { font: 500 .72rem var(--sans); letter-spacing: .1em; color: var(--ink-mute); }
.product__meta { justify-content: flex-start; }
.product__buy { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0; }
.product__buy .btn { flex: 1; min-width: 220px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--navy); border-radius: var(--radius); }
.stepper button { width: 46px; height: 52px; display: grid; place-items: center; color: var(--navy); }
.stepper button:hover { background: var(--ivory-deep); }
.stepper button .icon { width: 16px; height: 16px; }
.stepper input { width: 44px; height: 52px; border: 0; background: none; text-align: center; font: 700 1rem var(--sans); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm button, .stepper--sm input { height: 38px; width: 36px; }
.product__assurance { display: grid; gap: 8px; padding: 18px 0; border-block: 1px solid var(--line-gold); font-size: .86rem; color: var(--ink-soft); }
.product__assurance li { display: flex; align-items: center; gap: 10px; }
.product__assurance .icon { color: var(--gold); }
.product__details details { border-bottom: 1px solid var(--line-gold); }
.product__details summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; font: 700 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.product__details summary::-webkit-details-marker { display: none; }
.product__details summary::after { content: "+"; font: 300 1.4rem/1 var(--sans); color: var(--gold); transition: transform .4s var(--ease-out); }
.product__details details[open] summary::after { transform: rotate(45deg); }
.product__details p { font: 400 1.08rem/1.6 var(--serif); color: var(--ink-soft); }
.product__details a { text-decoration: underline; }
.related { padding-bottom: var(--section-y); }
.related__title { margin-bottom: 2.4rem; color: var(--navy); text-align: center; }

/* Carrello / checkout */
.cart-page { padding-bottom: var(--section-y); }
.cart-page__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-gold); }
.cart-row__media img { width: 120px; aspect-ratio: 1; object-fit: cover; mix-blend-mode: multiply; background: var(--ivory-warm); }
.cart-row__name { display: block; font: 500 1.4rem/1.2 var(--serif); color: var(--navy); }
.cart-row__unit { display: block; margin-bottom: 8px; font-size: .8rem; color: var(--ink-mute); }
.cart-row__end { text-align: right; }
.cart-row__total { font: 600 1.35rem var(--serif); }
.summary { position: sticky; top: calc(var(--header-h-compact) + 24px); padding: 28px; background: var(--white); box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.summary__title { font: 500 1.7rem var(--serif); color: var(--navy); margin-bottom: .4rem; }
.summary dl { margin: 0 0 8px; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; }
.summary dt { font-size: .86rem; color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 700; }
.summary__lines { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-gold); font-size: .9rem; }
.summary__lines li { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 900px) {
  .product, .cart-page__grid { grid-template-columns: 1fr; }
  .product__gallery, .summary { position: static; }
}
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 84px 1fr; }
  .cart-row__media img { width: 84px; }
  .cart-row__end { grid-column: 2; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .search-inline { flex-direction: column; }
}

/* ---------- 22. MOTION: REVEAL ALLO SCROLL --------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Il clip-path va sul figlio: l'elemento osservato deve restare "visibile" per l'IntersectionObserver */
.js [data-mask] > * { clip-path: inset(0 0 100% 0); opacity: 0; transition: clip-path 1.4s var(--ease-in-out), opacity 1s ease; transition-delay: var(--delay, 0s); }
.js [data-mask] img { transform: scale(1.18); transition: transform 2s var(--ease-out); transition-delay: var(--delay, 0s); }
.js [data-mask].is-in > * { clip-path: inset(0 0 0 0); opacity: 1; }
.js [data-fade] picture { opacity: 0; transform: scale(1.07); transition: opacity 1.6s var(--ease-out), transform 2.4s var(--ease-out); }
.js [data-fade].is-in picture { opacity: 1; transform: none; }
.js [data-mask].is-in img { transform: none; }
.js .story__media[data-mask] > * { clip-path: inset(0 100% 0 0); }
.js .story__media[data-mask].is-in > * { clip-path: inset(0 0 0 0); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(110%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + var(--delay, 0s)); }
.js [data-split].is-in .w > span { transform: none; }
[data-parallax], [data-float] { will-change: transform; }

/* ---------- 23. RESPONSIVE ------------------------------------------- */
@media (max-width: 1360px) {
  .mega__inner { grid-template-columns: minmax(200px, 1fr) 2.2fr minmax(220px, .9fr); }
}
@media (max-width: 1280px) {
  .nav ul { gap: 18px; }
  .nav__link { letter-spacing: .14em; font-size: .64rem; }
  .brand, .brand__badge { width: 250px; }
  .brand__badge { height: 166px; }
  .brand__name { width: 160px; height: 13px; }
  .cart-btn__total { display: none; }
  .mega__promo { display: none; }
  .mega__inner { grid-template-columns: minmax(200px, 1fr) 2.6fr; }
  .chef__grid { grid-template-columns: 38% minmax(0, 1fr) minmax(210px, 24%); }
}
@media (max-width: 1100px) {
  :root { --header-h: 66px; --header-h-compact: 60px; }
  .site-header__bar { grid-template-columns: 1fr auto 1fr; grid-template-areas: "left brand right"; }
  .burger { display: grid; justify-self: start; }
  .nav, .mega, .mega-scrim { display: none; }
  .header-actions { justify-self: end; }
  .header-actions__account { display: none; }
  .cart-btn__total { display: inline; }
  .brand, .brand__badge { width: 214px; }
  .brand__badge { height: 136px; padding-top: 11px; gap: 7px; }
  .brand__mono { width: 48px; height: 39px; }
  .brand__name { width: 144px; height: 11px; }
  .brand__sign { width: 100px; height: 24px; }
  .brand__tag { display: none; }
  .site-header.is-scrolled .brand__mono { width: 40px; height: 32px; }
  .hero__aside { display: none; }
  .slide__media { width: 70%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 48%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 22%, #000 48%); }
  .slider-dot__label { display: none; }
  .excellence__grid { grid-template-columns: 1fr; }
  .chef__grid { grid-template-columns: 1fr 1fr; }
  .chef__portrait { min-height: 520px; }
  .chef__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; padding: 0 var(--gutter) 56px; }
  .site-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand, .site-footer__news { grid-column: span 3; }
  .site-footer__news { max-width: 520px; }
}
@media (max-width: 900px) {
  /* Hero mobile: foto in alto a tutta larghezza, testo sotto, slider a tutto schermo */
  .slide { align-items: flex-end; padding: 0 0 118px; }
  .slide__media { inset: var(--header-h) 0 auto 0; width: 100%; height: 58%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .slide__media::after { display: none; }
  .slide__title { font-size: clamp(2.6rem, 1.6rem + 5vw, 4rem); }
  .slide__kicker { margin-bottom: 1rem; padding-bottom: .8rem; }
  .slide__rule { margin: 1.1rem 0 1rem; }
  .slide__actions { margin-top: 1.4rem; }
  .slider-ui { bottom: 22px; align-items: center; }
  .slider-dot { width: clamp(34px, 9vw, 64px); }
  .slider-dot__num { display: none; }
  .slider-dot__bar { grid-column: 1 / -1; }
  .slider-ui__count { display: none; }
  .slider-arrow { width: 46px; height: 46px; }
  .story { grid-template-columns: 1fr; }
  .story__media { aspect-ratio: 2.4 / 1; }
  .story__text { padding: 28px var(--gutter) 34px calc(var(--gutter) + 10px); }
  .story__text::before { left: calc(var(--gutter) - 4px); top: 30px; bottom: 34px; }
  .story__decor { display: none; }
  .behind { align-items: end; min-height: clamp(480px, 120vw, 640px); }
  .behind::before { background: linear-gradient(180deg, rgba(20, 13, 8, .05) 20%, rgba(15, 10, 6, .88) 85%); }
  .behind__picture img { object-position: 50% 25%; }
  .behind__content { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 22px; padding-block: 40px; }
  .play { width: 76px; height: 76px; }
  .final-cta__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .final-cta__divider { width: 70px; height: 1px; background: linear-gradient(90deg, rgba(217, 192, 154, .55), transparent); }
  .final-cta__mono { right: -20%; opacity: .07; }
}
@media (max-width: 760px) {
  .excellence__cards { grid-template-columns: 1fr; }
  .feature-card { flex-direction: row; }
  .feature-card__media { width: 42%; aspect-ratio: auto; flex: none; }
  .feature-card__body { padding: 18px 16px 52px; }
  .feature-card .circle-arrow { right: 14px; bottom: 14px; }
  /* minmax(0, 1fr): le colonne non si allargano per contenere i pulsanti (riga fuori centro) */
  .collection__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .product-card { padding: 0 8px; min-width: 0; }
  .product-card__body { width: 100%; }
  .product-card--side .buy { width: 100%; }
  .product-card--side .buy__cta { flex: 1; min-width: 0; white-space: normal; line-height: 1.25; text-align: center; }
  .product-card--featured { grid-column: 1 / -1; order: -1; padding-bottom: 36px; }
  .product-card--featured::before { display: none; }
  .product-card--featured::after { left: 20%; right: 20%; bottom: 0; top: auto; width: auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); }
  .product-card--featured .product-card__media { width: min(100%, 460px); }
  .product-card--side .product-card__desc { font-size: .95rem; }
  .product-card--side .product-card__meta { letter-spacing: .1em; }
  .product-card--side .btn { width: 100%; padding: 0 10px; }
  .collection__cta-line { display: none; }
  .chef__grid { grid-template-columns: 1fr; }
  .chef__portrait { min-height: 0; aspect-ratio: 1 / 1.02; }
  .chef__portrait-pic img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .chef__text { padding: 8px var(--gutter) 36px; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand, .site-footer__news { grid-column: 1 / -1; }
  .site-footer__col:last-of-type { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .header-actions__search { display: none; }
  .brand, .brand__badge { width: 180px; }
  .brand__badge { height: 118px; }
  .brand__mono { width: 44px; height: 35px; }
  .brand__name { width: 120px; height: 10px; }
  .brand__sign { width: 84px; height: 20px; }
  .cart-btn { gap: 8px; padding-left: 6px; }
  .cart-btn__total { font-size: .7rem; min-width: 0; }
  .slide__kicker { letter-spacing: .22em; font-size: .62rem; }
  .slide__text { font-size: 1.05rem; }
  .btn--lg { padding: 0 24px; }
  .collection__row { column-gap: 4px; }
  .product-card--side .product-card__name { font-size: 1.3rem; }
  .product-card--side .product-card__price { font-size: 1.5rem; }
  .product-card--side .buy__qty button { width: 24px; }
  .product-card--side .buy__qty input { width: 22px; }
  .product-card--side .buy__cta { padding: 0 6px; letter-spacing: .1em; }
  .product-card--side .buy__cta .btn__icon { display: none; }
  .highlight { letter-spacing: .2em; }
  .consent__actions { grid-template-columns: 1fr 1fr; }
  .consent__actions .btn--navy { grid-column: 1 / -1; order: -1; }
}

/* ---------- 24. ACCESSIBILITÀ: MOVIMENTO RIDOTTO --------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-mask] > *, .js [data-split] .w > span, .js .chef__sign svg { opacity: 1; transform: none; clip-path: none; }
  .js [data-mask] img { transform: none; }
  .js [data-fade] picture { opacity: 1; transform: none; }
  .hero__bokeh, .play__ring { display: none; }
}

/* ---------- 25. STAMPA --------------------------------------------- */
@media print {
  .site-header, .to-top, .consent, .intro, .hero__bokeh, dialog { display: none !important; }
  body:not(.has-hero) main { padding-top: 0; }
}

/* ---------- 26. CHECKOUT (interfaccia essenziale a due colonne) ----- */
.page-checkout { --co-line: #DDD5C9; --co-field-h: 50px; background: var(--white); }
.page-checkout main { padding-top: 0 !important; min-height: calc(100vh - 140px); }
.co-header { border-bottom: 1px solid var(--co-line); background: var(--white); }
.co-header__bar { max-width: 1060px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.co-header__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); }
.co-header__mono { width: 40px; height: 32px; }
.co-header__name { width: clamp(150px, 22vw, 230px); height: auto; aspect-ratio: 254 / 20.4; }
.co-header__cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--navy); }
.co-header__cart span { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--navy); color: var(--ivory); font: 600 .62rem/18px var(--sans); text-align: center; }

.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main summary"; min-height: calc(100vh - 81px); }
.co-main { grid-area: main; justify-self: end; width: 100%; max-width: calc(500px + 2 * var(--gutter)); padding: 40px var(--gutter) 64px; font-family: var(--sans); color: var(--charcoal); }
.co-summary { grid-area: summary; background: var(--ivory-deep); border-left: 1px solid var(--co-line); }
.co-summary__body { position: sticky; top: 0; max-width: calc(440px + 2 * var(--gutter)); padding: 40px var(--gutter); }
.co-summary__toggle { display: none; }

.co-section { margin-bottom: 34px; }
.co-section h2, .co-section h3 { margin: 0 0 14px; font: 600 1.3rem/1.2 var(--sans); letter-spacing: -.01em; color: var(--navy); }
.co-section h3 { font-size: 1.02rem; }
.co-section__head { display: flex; align-items: baseline; justify-content: space-between; }
.co-section__head a, .co-terms a, .co-alert a, .co-result a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; font-size: .86rem; }
.co-muted { color: var(--ink-mute); }
.co-sub { display: flex; align-items: center; gap: 6px; margin: -8px 0 14px; font-size: .84rem; }

/* Campi con etichetta flottante */
.co-field { position: relative; margin-bottom: 12px; }
.co-field input, .co-field select {
  width: 100%; height: var(--co-field-h); padding: 18px 14px 4px; border: 1px solid var(--co-line); border-radius: 6px;
  background: var(--white); font: 400 .92rem var(--sans); color: var(--charcoal); appearance: none; transition: border-color .2s, box-shadow .2s;
}
.co-field label { position: absolute; left: 15px; top: 50%; translate: 0 -50%; font-size: .9rem; color: var(--ink-mute); pointer-events: none; transition: top .18s var(--ease-out), font-size .18s var(--ease-out), translate .18s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 46px); }
.co-field input:focus + label, .co-field input:not(:placeholder-shown) + label, .co-field select + label { top: 8px; translate: 0 0; font-size: .7rem; }
.co-field input:focus, .co-field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.co-field.is-invalid input { border-color: #A2412E; box-shadow: 0 0 0 1px #A2412E; }
/* Campi obbligatori: asterisco sull'etichetta (campi flottanti, caselle di consenso) e legenda sotto il modulo */
.co-field:has(:is(input, textarea, select)[required]) > label::after,
.co-check:has(input[required]) > span::after,
.check:has(input[required]) > span::after { content: " *"; color: var(--gold-deep); font-weight: 700; }
.form-req { margin: 2px 0 12px; font: 400 .76rem/1.4 var(--sans); color: var(--ink-mute); }
.form-req span { color: var(--gold-deep); font-weight: 700; }
.co-field__err { display: block; margin-top: 5px; font-size: .76rem; color: #A2412E; }
.co-field__chev, .co-field__icon { position: absolute; right: 14px; top: 17px; color: var(--ink-mute); pointer-events: none; }
.co-field__hint { position: absolute; right: 13px; top: 15px; display: grid; place-items: center; width: 18px; height: 18px; border: 1.3px solid var(--ink-mute); border-radius: 50%; font: 600 .66rem/1 var(--sans); color: var(--ink-mute); cursor: help; }
.co-field__hint::after { content: attr(aria-label); position: absolute; right: -8px; bottom: calc(100% + 8px); width: max-content; max-width: 220px; padding: 8px 10px; border-radius: 5px; background: var(--navy); color: var(--ivory); font: 400 .74rem/1.4 var(--sans); opacity: 0; translate: 0 4px; pointer-events: none; transition: opacity .2s, translate .2s; }
.co-field__hint:hover::after, .co-field__hint:focus::after { opacity: 1; translate: 0 0; }
.co-field:has(.co-field__hint) input, .co-field:has(.co-field__icon) input { padding-right: 42px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.co-row--3 { grid-template-columns: 1fr 1.4fr .8fr; }
.co-row--addr { grid-template-columns: 1fr minmax(96px, 150px); }
.co-row > .co-field { min-width: 0; }
.co-field--select select { padding-right: 38px; cursor: pointer; }

.co-check { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: .86rem; cursor: pointer; }
.co-check input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; }

/* Spedizione / Ritiro */
.co-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 8px; background: #F3EFE9; }
.co-segment input { position: absolute; opacity: 0; pointer-events: none; }
.co-segment span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: background .25s, box-shadow .25s, color .25s; }
.co-segment span b { font-weight: inherit; }
.co-segment span small { display: block; font-size: .64rem; font-weight: 500; letter-spacing: .04em; color: var(--gold-deep); }
.co-segment label.is-disabled span { flex-wrap: wrap; align-content: center; column-gap: 8px; row-gap: 0; color: var(--ink-mute); cursor: not-allowed; opacity: .75; }
.co-segment label.is-disabled span small { flex-basis: 100%; text-align: center; line-height: 1.2; }
.co-guest { margin: 10px 0 0; font-size: .86rem; color: var(--ink-mute); }
.co-segment input:checked + span { background: var(--white); color: var(--navy); box-shadow: 0 1px 4px rgba(37, 35, 31, .14); }
.co-segment input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

.co-alert { display: flex; gap: 12px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid #EBCF9E; border-radius: 6px; background: #FDF6EA; font-size: .86rem; line-height: 1.5; }
.co-alert .icon { margin-top: 2px; color: var(--gold-deep); }
.co-alert p { margin: 6px 0 0; }
.co-alert--error { border-color: #E2B4A8; background: #FBEFEC; color: #8A3524; }
.co-alert--error ul { margin: 0; padding-left: 18px; }

.co-box { padding: 18px; border-radius: 6px; background: #F5F2EE; text-align: center; font-size: .86rem; margin: 0; }
.co-option { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--navy); border-radius: 6px; background: #F8F6F2; font-size: .9rem; }
.co-option small { display: block; margin-top: 3px; color: var(--ink-mute); font-size: .8rem; }
.co-option > span:last-child { font-weight: 600; white-space: nowrap; }

/* Metodi di pagamento */
.co-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.co-pay__tile { position: relative; display: grid; gap: 14px; padding: 14px; border: 1px solid var(--co-line); border-radius: 6px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.co-pay__tile input { position: absolute; opacity: 0; }
.co-pay__tile:has(input:checked) { border-color: var(--gold); background: #FBF5EC; box-shadow: 0 0 0 1px var(--gold); }
.co-pay__tile:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.co-pay__logo { display: grid; place-items: center; width: 40px; height: 28px; border-radius: 4px; background: #F1ECE4; color: var(--ink-soft); }
.co-pay__logo svg { width: 26px; height: 18px; }
.co-pay__label { font-size: .88rem; font-weight: 600; }
.co-pay__label small { display: block; margin-top: 2px; font-size: .64rem; font-weight: 500; letter-spacing: .04em; color: var(--gold-deep); }
.co-pay__tile.is-disabled { cursor: not-allowed; opacity: .6; background: #F8F6F2; }
.co-pay__tile.is-disabled .co-pay__logo { filter: grayscale(1); }

/* Metodo di spedizione: scelta unica già selezionata */
.co-option--choice { align-items: center; cursor: default; }
.co-option--choice input { position: absolute; opacity: 0; pointer-events: none; }
.co-option--choice > span:nth-of-type(2) { flex: 1; font-weight: 400; white-space: normal; }
.co-option__dot { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--navy); border-radius: 50%; background: radial-gradient(circle, var(--navy) 0 45%, transparent 50%); }
.co-option--choice:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Metodi accettati (Stripe) */
.co-accepted { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--co-line); border-radius: 8px; background: #FBF9F6; }
.co-accepted__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.co-accepted__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.co-accepted__label { flex: 0 0 100%; font-size: .74rem; color: var(--ink-mute); }
.co-accepted__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.co-accepted__chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--co-line); border-radius: 999px; background: var(--white); font: 600 .8rem var(--sans); color: var(--navy); }
.co-accepted__chip--visa { font: italic 800 .9rem var(--sans); letter-spacing: .04em; color: #1A1F71; }
.co-accepted__chip--mastercard::before { content: ""; width: 20px; height: 12px; background: radial-gradient(circle at 6px 6px, #EB001B 0 5.5px, transparent 6px), radial-gradient(circle at 14px 6px, #F79E1B 0 5.5px, transparent 6px); }
.co-accepted__chip--americanexpress { color: #006FCF; }
.co-accepted__chip--applepay::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #111; }
.co-accepted__chip--googlepay::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: conic-gradient(#4285F4 0 25%, #34A853 0 50%, #FBBC05 0 75%, #EA4335 0); }
.co-accepted__chip--link::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #00D66F; }
.co-accepted__chip--klarna::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #FFA8CD; }
.co-accepted .co-note { margin: 4px 0 0; }
.co-card { margin: 0; padding: 0; border: 0; min-width: 0; }
.co-card input:disabled { background: #FAF9F7; cursor: not-allowed; }
.co-note { margin: 0 0 6px; font-size: .78rem; }
.co-billing { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.co-billing legend { margin-bottom: 12px; font-weight: 600; font-size: .95rem; color: var(--navy); }

.co-result { display: flex; gap: 12px; padding: 16px 18px; margin: 0 0 16px; border: 1px solid #B7C9A8; border-radius: 6px; background: #F1F6EC; font-size: .86rem; line-height: 1.5; animation: co-in .5s var(--ease-out); }
.co-result .icon { color: #4F6E3D; }
.co-result p { margin: 6px 0 0; }
@keyframes co-in { from { opacity: 0; translate: 0 8px; } }

.co-pay-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 58px; border-radius: 6px; background: var(--navy); color: var(--ivory); font: 600 1.02rem var(--sans); letter-spacing: .01em; overflow: hidden; transition: background .25s, box-shadow .25s; }
.co-pay-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(217, 192, 154, .35) 50%, transparent 65%); translate: -120% 0; transition: translate 1s var(--ease-out); }
.co-pay-btn:hover { background: var(--navy-3, #0B2A4D); box-shadow: 0 12px 30px rgba(5, 26, 50, .22); }
.co-pay-btn:hover::after { translate: 120% 0; }
.co-pay-btn.is-loading .btn__label { opacity: 0; }
.co-pay-btn.is-loading .btn__spinner { opacity: 1; animation-play-state: running; }
.co-terms { margin: 18px 0 0; font-size: .76rem; line-height: 1.5; }
.co-terms a { font-size: inherit; }

/* Riepilogo */
.co-lines { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.co-line { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; font-size: .88rem; }
.co-line__img { position: relative; width: 64px; height: 64px; border: 1px solid var(--co-line); border-radius: 8px; background: var(--white); }
.co-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; border-radius: 8px; }
.co-line__qty { position: absolute; top: -8px; right: -8px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; background: var(--navy); color: var(--ivory); font: 600 .7rem/21px var(--sans); text-align: center; }
.co-line__name a { font-weight: 500; }
.co-line__name a:hover { text-decoration: underline; }
.co-line__name small { display: block; color: var(--ink-mute); font-size: .76rem; }
.co-line__total { font-weight: 500; }
.co-discount { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; margin-bottom: 24px; }
.co-discount .co-field { margin: 0; }
.co-discount__btn { height: var(--co-field-h); padding: 0 20px; border: 1px solid var(--co-line); border-radius: 6px; background: #EFEAE3; font: 600 .86rem var(--sans); color: var(--ink-soft); transition: background .2s, color .2s; }
.co-discount__btn:hover { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.co-discount__msg { grid-column: 1 / -1; min-height: 0; margin: 6px 0 0; font-size: .78rem; }
.co-discount__msg:empty { display: none; }
.co-discount__msg.is-error { color: #A2412E; }
.co-discount__msg.is-ok { color: #4F6E3D; }
.co-totals { margin: 0; display: grid; gap: 10px; font-size: .88rem; }
.co-totals > div { display: flex; justify-content: space-between; gap: 16px; }
.co-totals > div[hidden] { display: none; }
.co-totals dd { margin: 0; text-align: right; }
.co-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 4px; background: rgba(5, 26, 50, .07); font-size: .74rem; font-weight: 600; }
.co-tag__remove { margin-left: 6px; font-size: .74rem; color: var(--ink-mute); }
.co-totals__grand { margin-top: 8px; align-items: baseline; }
.co-totals__grand dt { font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.co-totals__grand small { font-size: .72rem; color: var(--ink-mute); margin-right: 4px; }
.co-totals__grand strong { font: 600 1.35rem var(--sans); color: var(--navy); }
.co-vat { margin: 4px 0 0; font-size: .78rem; }

.co-empty { max-width: 560px; margin: 0 auto; padding: 100px var(--gutter); text-align: center; display: grid; justify-items: center; gap: 10px; }
.co-footer { border-top: 1px solid var(--co-line); padding: 20px var(--gutter); }
.co-footer ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1060px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .78rem; }
.co-footer a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .co { grid-template-columns: 1fr; grid-template-areas: "summary" "main"; min-height: 0; }
  .co-main { justify-self: center; max-width: 560px; padding-top: 28px; }
  .co-summary { border-left: 0; border-bottom: 1px solid var(--co-line); }
  .co-summary__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 560px; margin: 0 auto; padding: 18px var(--gutter); font: 500 .9rem var(--sans); color: var(--gold-deep); }
  .co-summary__toggle > span { display: inline-flex; align-items: center; gap: 8px; }
  .co-summary__toggle strong { font-size: 1.05rem; color: var(--navy); }
  .co-summary__chev { transition: rotate .3s var(--ease-out); }
  .co-summary__toggle[aria-expanded="true"] .co-summary__chev { rotate: 180deg; }
  .co-summary__body { position: static; max-width: 560px; margin: 0 auto; padding-top: 4px; }
  .js .co-summary:not(.is-open) .co-summary__body { display: none; }
}
@media (max-width: 520px) {
  .co-row, .co-row--3 { grid-template-columns: 1fr; }
  .co-row--3 { grid-template-columns: 1fr 1fr; }
  .co-row--3 > :nth-child(2) { grid-row: 1; grid-column: 2; }
  .co-row--3 > :nth-child(3) { grid-column: 1 / -1; }
}
.co [hidden], .co-pickup[hidden] { display: none !important; }
@media (min-width: 901px) { .page-checkout .co-header__bar { max-width: none; display: grid; grid-template-columns: 1fr 1fr; padding-inline: 0; } .co-header__brand { justify-self: end; width: 500px; margin-right: var(--gutter); } .co-header__cart { justify-self: start; margin-left: calc(var(--gutter) + 440px - 34px); } .co-footer ul { max-width: none; width: calc(1000px + 4 * var(--gutter)); } }

/* ---------- 27. IL NOSTRO MONDO (filosofia) ------------------------- */
.world-hero { position: relative; display: grid; place-items: center; min-height: max(560px, 92svh); overflow: hidden; background: var(--hero-bg); color: var(--ivory); text-align: center; }
.world-hero__media { position: absolute; inset: -6% 0; }
.world-hero__media picture, .world-hero__pic, .world-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, 50% 50%); }
.world-hero__media img { animation: world-zoom 18s var(--ease-out) both; }
@keyframes world-zoom { from { scale: 1; } to { scale: 1.08; } }
.world-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(5, 26, 50, .25), rgba(5, 26, 50, .62) 75%), linear-gradient(180deg, rgba(5, 26, 50, .55), transparent 30%); }
.world-hero__content { position: relative; z-index: 1; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; max-width: 900px; }
.world-hero__title { margin: .3em 0 .25em; font: 500 var(--fs-display)/.98 var(--serif); letter-spacing: .01em; text-transform: uppercase; }
.world-hero__lead { margin: 0 auto; max-width: 34ch; font: italic 400 var(--fs-lead)/1.5 var(--serif); color: var(--champagne); }
.world-hero__scroll { position: absolute; z-index: 1; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1px solid rgba(248, 243, 236, .6); border-radius: 13px; }
.world-hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--champagne); animation: world-scroll 1.8s var(--ease-in-out) infinite; }
@keyframes world-scroll { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

.world-know { background: var(--navy); color: rgba(248, 243, 236, .82); padding: var(--section-y) 0; overflow: hidden; }
.world-know__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 110px); align-items: center; max-width: 1120px; }
/* Chi sono: ritratto a tutta larghezza con motto */
.about-portrait { position: relative; height: min(82vh, 780px); overflow: hidden; background: var(--hero-bg); }
.about-portrait__media { position: absolute; inset: -5% 0; }
.about-portrait__media picture, .about-portrait__pic, .about-portrait__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 26, 50, .62), transparent 45%); pointer-events: none; }
.about-portrait__quote { position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 64px); z-index: 1; margin: 0 auto; font: italic 400 clamp(1.7rem, 1.2rem + 2vw, 3rem)/1.1 var(--serif); color: var(--ivory); }
@media (max-width: 760px) { .about-portrait { height: 78vw; min-height: 300px; } }

.world-know__media { aspect-ratio: 4 / 5; overflow: hidden; }
.world-know__media > div, .world-know__media picture { height: 100%; }
.world-know__media img { width: 100%; height: 115%; object-fit: cover; }
.world-know__title { margin: .35em 0 .6em; font: 500 var(--fs-h2)/1.02 var(--serif); color: var(--ivory); text-transform: uppercase; letter-spacing: .01em; }
.world-know__text p:not(.eyebrow) { max-width: 52ch; font-size: .98rem; line-height: 1.75; }
.world-know__text .text-link { margin-top: 1.2rem; }

.world-grid { background: var(--ivory); padding: var(--section-y) var(--gutter); }
.world-grid__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; }
.world-tile { aspect-ratio: 3 / 4; overflow: hidden; }
.world-tile--img picture, .world-tile--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.world-tile--img img { transition: scale 1.4s var(--ease-out); }
.world-tile--img:hover img { scale: 1.05; }
.world-tile--text { display: grid; align-content: center; justify-items: center; gap: .2rem; padding: clamp(24px, 4vw, 56px); text-align: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.world-tile__title { margin: .25em 0 .5em; font: 500 var(--fs-h2)/1 var(--serif); color: var(--navy); text-transform: uppercase; }
.world-tile--text p:not(.eyebrow) { margin: 0 0 .9em; max-width: 34ch; font-size: .92rem; line-height: 1.7; color: var(--ink-soft); }
.world-tile--text:target .world-tile__title { color: var(--gold-deep); }

.world-chef { position: relative; display: flex; align-items: center; min-height: min(86vh, 820px); overflow: hidden; background: var(--hero-bg); }
.world-chef__media { position: absolute; inset: -5% 0; }
.world-chef__media picture, .world-chef__pic, .world-chef__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.world-chef__card { position: relative; z-index: 1; width: min(480px, calc(100% - 2 * var(--gutter))); margin: 60px 0 60px max(var(--gutter), calc((100vw - 1120px) / 2)); padding: clamp(28px, 4vw, 52px); background: var(--ivory); box-shadow: var(--shadow-lg); }
.world-chef__name { margin: .3em 0 .2em; font: 500 var(--fs-h2)/1 var(--serif); color: var(--navy); text-transform: uppercase; }
.world-chef__motto { margin: 0 0 1em; font: italic 400 1.25rem/1.3 var(--serif); color: var(--gold-deep); }
.world-chef__card p:not(.eyebrow):not(.world-chef__motto) { font-size: .94rem; line-height: 1.7; color: var(--ink-soft); }
.world-chef__card .btn { margin-top: .8rem; }

.world-promise { background: var(--ivory-warm); border-top: 1px solid var(--line-gold); }
.world-promise__list { list-style: none; margin: 0 auto; padding: 44px var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; }
.world-promise__list li { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .86rem; line-height: 1.5; color: var(--ink-soft); }
.world-promise__list .icon { color: var(--gold); flex: none; }
.world-promise__list strong { color: var(--navy); }
.world-promise__list a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .world-know__grid { grid-template-columns: 1fr; }
  .world-know__media { aspect-ratio: 4 / 3; }
  .world-grid__inner { grid-template-columns: 1fr 1fr; }
  .world-grid__inner > :nth-child(1) { order: 1; } .world-grid__inner > :nth-child(2) { order: 2; }
  .world-grid__inner > :nth-child(4) { order: 3; } .world-grid__inner > :nth-child(3) { order: 4; }
  .world-grid__inner > :nth-child(5) { order: 5; } .world-grid__inner > :nth-child(6) { order: 6; }
  .world-chef { flex-direction: column; align-items: stretch; min-height: 0; }
  .world-chef__media { position: relative; inset: auto; height: 62vw; min-height: 300px; }
  .world-chef__card { width: auto; margin: -60px var(--gutter) 40px; }
  .world-promise__list { grid-template-columns: 1fr; justify-items: start; }
  .world-promise__list li { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .world-grid { padding-inline: 0; }
  .world-grid__inner { grid-template-columns: 1fr; }
  .world-tile { aspect-ratio: auto; }
  .world-tile--img { aspect-ratio: 4 / 3; }
  .world-grid__inner > * { order: 0 !important; }
}

/* ---------- 27b. IL NOSTRO MONDO — navigazione e varianti di layout -- */
.mega__inner--cards { grid-template-columns: repeat(3, 1fr); }

.world-nav { position: relative; z-index: 2; background: var(--ivory); border-bottom: 1px solid var(--line-gold); }
.world-nav__list { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1120px; display: grid; grid-template-columns: repeat(3, 1fr); }
.world-nav__link { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; padding: 22px 8px 20px; color: var(--ink-mute); transition: color .3s; }
.world-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.world-nav__link:hover, .world-nav__link.is-current { color: var(--navy); }
.world-nav__link:hover::after, .world-nav__link.is-current::after { transform: scaleX(1); }
.world-nav__num { grid-row: span 2; font: italic 400 1.5rem/1 var(--serif); color: var(--gold); }
.world-nav__label { font: 500 1.35rem/1.1 var(--serif); }
.world-nav__sub { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }

.world-know--light { background: var(--ivory-warm); color: var(--ink-soft); }
.world-know--light .world-know__title { color: var(--navy); }
.world-know--reverse .world-know__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.world-know--reverse .world-know__media { order: 2; }

.world-steps { background: var(--navy); color: rgba(248, 243, 236, .78); padding: var(--section-y) 0; }
.world-steps__head { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.world-steps__title { margin: .35em 0 0; font: 500 var(--fs-h2)/1.02 var(--serif); color: var(--ivory); text-transform: uppercase; }
.world-steps__list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); max-width: 1120px; }
.world-step:nth-child(2) { margin-top: clamp(0px, 5vw, 72px); }
.world-step__media { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 20px; }
.world-step__media picture, .world-step__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.world-step__num { font: italic 400 1.6rem/1 var(--serif); color: var(--champagne); }
.world-step__title { margin: .2em 0 .45em; font: 500 1.9rem/1.1 var(--serif); color: var(--ivory); text-transform: uppercase; }
.world-step p { margin: 0; max-width: 36ch; font-size: .92rem; line-height: 1.7; }

.world-chef--right { justify-content: flex-end; }
.world-chef--right .world-chef__card { margin: 60px max(var(--gutter), calc((100vw - 1120px) / 2)) 60px 0; }
.world-chef--right .world-chef__media img { object-position: 35% 40%; }
.world-chef--packaging .world-chef__media img { object-position: 50% 40%; } /* il box sta a sinistra (come in La filosofia) */

.world-quote { background: var(--ivory); padding: var(--section-y) 0 calc(var(--section-y) * .6); text-align: center; }
.world-quote__inner { max-width: 860px; display: grid; justify-items: center; }
.world-quote__mono { width: 64px; color: var(--gold); margin-bottom: 18px; }
.world-quote__mono svg { width: 100%; height: auto; }
.world-quote__text { margin: 0 0 .7em; font: italic 400 clamp(1.9rem, 1.3rem + 2.4vw, 3.3rem)/1.15 var(--serif); color: var(--navy); }
.world-quote p { max-width: 52ch; margin: 0; color: var(--ink-soft); line-height: 1.7; }

.world-grid--duo { padding-top: 0; }
.world-grid--duo .world-grid__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
.world-grid--duo .world-tile { aspect-ratio: 1 / 1; }
.world-tile--img img { object-position: var(--pos, 50% 50%); }

@media (max-width: 900px) {
  .world-nav__list { padding: 0; }
  .world-nav__link { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 16px 6px 14px; }
  .world-nav__num { grid-row: auto; font-size: 1.1rem; }
  .world-nav__label { font-size: 1.05rem; }
  .world-nav__sub { display: none; }
  .world-know--reverse .world-know__grid { grid-template-columns: 1fr; }
  .world-know--reverse .world-know__media { order: 0; }
  .world-steps__list { grid-template-columns: 1fr; max-width: 520px; }
  .world-step:nth-child(2) { margin-top: 0; }
  .world-step__media { aspect-ratio: 4 / 3; }
  .world-chef--right .world-chef__card { margin: -60px var(--gutter) 40px; }
}
@media (max-width: 560px) {
  .world-grid--duo .world-grid__inner { grid-template-columns: 1fr; }
  .world-grid--duo .world-tile { aspect-ratio: auto; }
  .world-grid--duo .world-tile--img { aspect-ratio: 4 / 3; }
  .world-grid--duo .world-grid__inner > :nth-child(3) { order: 4; }
}
@media (max-width: 560px) { .world-grid--duo .world-grid__inner > :nth-child(3) { order: 4 !important; } }
.world-tile--img img { scale: 1.06; } .world-tile--img:hover img { scale: 1.11; } .world-hero__lead, .world-hero__title { text-shadow: 0 2px 24px rgba(5, 26, 50, .55); } .world-hero::after { background: radial-gradient(ellipse at 50% 50%, rgba(5, 26, 50, .45), rgba(5, 26, 50, .7) 75%), linear-gradient(180deg, rgba(5, 26, 50, .55), transparent 30%); }

/* ---------- 26b. CHECKOUT — barra blu navy con logo centrale ------- */
.co-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(182, 138, 77, .45); color: var(--ivory); box-shadow: 0 8px 30px rgba(5, 26, 50, .18); }
.page-checkout .co-header__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; max-width: none; width: 100%; height: var(--header-h); padding: 0 clamp(16px, 3vw, 48px); }
.page-checkout .co-header__brand { grid-column: 2; justify-self: center; width: auto; margin: 0; display: inline-flex; align-items: center; gap: 14px; color: var(--ivory); }
.co-header__mono { width: 46px; height: 37px; color: var(--champagne); }
.co-header__text { display: grid; justify-items: center; gap: 2px; }
.co-header__name { width: 190px; height: 15px; color: var(--ivory); aspect-ratio: auto; }
.co-header__sign { width: 92px; height: 22px; color: var(--champagne); }
.co-header__back { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; font: 600 .64rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ivory); opacity: .85; transition: opacity .3s, color .3s; }
.co-header__back:hover { opacity: 1; color: var(--champagne); }
.co-header__back .icon { transition: translate .4s var(--ease-out); }
.co-header__back:hover .icon { translate: -4px 0; }
.page-checkout .co-header__cart { grid-column: 3; justify-self: end; margin: 0; color: var(--ivory); }
.page-checkout .co-header__cart span { background: var(--gold); color: var(--navy); }
.co { min-height: calc(100vh - var(--header-h)); }
.co-summary__body { top: var(--header-h); }
@media (max-width: 900px) { .co-header { position: relative; } }
@media (max-width: 600px) {
  .co-header__back span { display: none; }
  .co-header__back { width: 44px; height: 44px; justify-content: center; }
  .co-header__mono { width: 36px; height: 29px; }
  .co-header__name { width: 140px; height: 11px; }
  .co-header__sign { width: 70px; height: 17px; }
  .page-checkout .co-header__brand { gap: 10px; }
}

/* ---------- 28. AREA CLIENTI (accesso / registrazione) -------------- */
.page-account main { padding-top: var(--header-h); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--header-h)); background: var(--ivory); }
.auth__media { position: relative; overflow: hidden; background: var(--navy); }
.auth__media picture, .auth__pic, .auth__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.auth__media img { animation: world-zoom 20s var(--ease-out) both; }
.auth__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 26, 50, .88) 0%, rgba(5, 26, 50, .25) 50%, transparent 75%); }
.auth__media-text { position: absolute; z-index: 1; left: clamp(24px, 5vw, 72px); right: clamp(24px, 5vw, 72px); bottom: clamp(32px, 6vw, 80px); color: var(--ivory); }
.auth__claim { margin: .4em 0 .9em; max-width: 18ch; font: 500 clamp(2rem, 1.4rem + 2vw, 3.1rem)/1.05 var(--serif); }
.auth__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; color: rgba(248, 243, 236, .85); }
.auth__perks li { display: flex; align-items: center; gap: 10px; }
.auth__perks .icon { color: var(--champagne); }
.auth__panel { display: grid; place-items: center; padding: clamp(40px, 6vw, 96px) var(--gutter); }
.auth__box { width: min(440px, 100%); font-family: var(--sans); }
.auth__mono { display: block; width: 54px; margin-bottom: 18px; color: var(--gold); }
.auth__mono svg { width: 100%; height: auto; }
.auth__title { margin: 0 0 22px; font: 500 clamp(2.2rem, 1.8rem + 1.4vw, 3rem)/1 var(--serif); color: var(--navy); }
.auth__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 6px 0 24px; border-bottom: 1px solid var(--co-line, #DDD5C9); }
.auth__tabs button { padding: 14px 0; font: 600 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); transition: color .3s; }
.auth__tabs button[aria-selected="true"] { color: var(--navy); }
.auth__tabs-ink { position: absolute; left: 0; bottom: -1px; width: 50%; height: 2px; background: var(--gold); transition: translate .5s var(--ease-out), opacity .3s; }
.auth__tabs[data-active="register"] .auth__tabs-ink { translate: 100% 0; }
.auth__tabs[data-active="reset"] .auth__tabs-ink { opacity: 0; }
.auth__form { animation: co-in .45s var(--ease-out); }
.auth__row { display: flex; align-items: center; justify-content: space-between; margin: -2px 0 18px; }
.auth__row .co-check { margin: 0; }
.auth__forgot, .auth__back { font-size: .82rem; color: var(--gold-deep); }
.auth__back { display: block; margin: 14px auto 0; text-decoration: none; }
.auth__hint { margin: 0 0 16px; font-size: .9rem; color: var(--ink-soft); line-height: 1.6; }
.auth__form .co-check { margin-bottom: 10px; }
.auth__form .co-check a { text-decoration: underline; text-underline-offset: 2px; }
.auth__form .co-pay-btn { margin-top: 10px; }
.auth__pwhint { margin: -6px 0 16px; font-size: .78rem; line-height: 1.5; color: var(--ink-mute); }
.auth__meter { height: 3px; margin: -4px 0 16px; border-radius: 2px; background: #ECE6DD; overflow: hidden; }
.auth__meter span { display: block; height: 100%; width: calc(var(--s, 0) * 100%); background: #A2412E; transition: width .4s var(--ease-out), background .4s; }
.auth__meter span[data-level="mid"] { background: var(--gold); }
.auth__meter span[data-level="high"] { background: #4F6E3D; }
.auth__msg { min-height: 0; margin: 14px 0 0; font-size: .86rem; line-height: 1.5; }
.auth__msg:empty { display: none; }
.auth__msg.is-error { padding: 12px 14px; border-radius: 6px; background: #FBEFEC; color: #8A3524; }
.auth__msg.is-ok { padding: 12px 14px; border-radius: 6px; background: #F1F6EC; color: #3F5A31; }
.auth__foot { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line-gold); font-size: .86rem; color: var(--ink-mute); text-align: center; }
.auth__foot a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.auth .co-alert { margin-bottom: 8px; }
.auth .co-alert a { font-size: inherit; }
.co-field__eye { position: absolute; right: 8px; top: 7px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-mute); border-radius: 50%; }
.co-field__eye .icon { width: 18px; height: 18px; }
.co-field__eye[aria-pressed="true"] { color: var(--navy); }
.co-field--pw input { padding-right: 48px; }

/* ---------- 29. CONTATTI -------------------------------------------- */
.world-hero--short { min-height: max(440px, 62svh); }
.contact { background: var(--ivory); padding: var(--section-y) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); max-width: 1180px; align-items: start; }
.contact__info { position: sticky; top: calc(var(--header-h-compact) + 32px); }
.contact__title { margin: .35em 0 .5em; font: 500 var(--fs-h2)/1.04 var(--serif); color: var(--navy); }
.contact__lead { margin: 0 0 28px; max-width: 44ch; color: var(--ink-soft); line-height: 1.7; }
.contact__cards { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.contact__cards .placeholder-flag { font-size: .78rem; line-height: 1.5; padding: 10px 12px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line-gold); transition: border-color .3s, box-shadow .3s, translate .4s var(--ease-out); }
.contact-card:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); translate: 4px 0; }
.contact-card small { display: block; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--champagne); flex: none; }
.contact-card__icon .icon { width: 20px; height: 20px; }
.contact__help-title { margin: 0 0 8px; font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.contact__help ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-gold); }
.contact__help a { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line-gold); font-size: .92rem; color: var(--navy); }
.contact__help a .icon:first-child { color: var(--gold); }
.contact__help a .icon:last-child { margin-left: auto; transition: translate .4s var(--ease-out); }
.contact__help a:hover .icon:last-child { translate: 5px 0; }
.contact__form-wrap { scroll-margin-top: calc(var(--header-h) + 24px); }
.contact-form { --co-line: #DDD5C9; --co-field-h: 50px; padding: clamp(24px, 4vw, 52px); background: var(--white); box-shadow: var(--shadow-md); border-top: 3px solid var(--gold); font-family: var(--sans); }
.contact-form__title { margin: 0 0 20px; font: 500 1.9rem/1.1 var(--serif); color: var(--navy); }
.contact-form__topics { margin: 0 0 20px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form__topics legend { margin-bottom: 10px; font-size: .86rem; color: var(--ink-soft); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--co-line, #DDD5C9); border-radius: 999px; font-size: .82rem; color: var(--ink-soft); transition: background .25s, color .25s, border-color .25s; }
.chip:hover span { border-color: var(--gold); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.co-field textarea { width: 100%; min-height: 150px; padding: 26px 14px 10px; border: 1px solid var(--co-line, #DDD5C9); border-radius: 6px; font: 400 .92rem/1.6 var(--sans); color: var(--charcoal); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.co-field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.co-field--area label { top: 24px; }
.co-field textarea:focus + label, .co-field textarea:not(:placeholder-shown) + label { top: 9px; translate: 0 0; font-size: .7rem; }
.co-field.is-invalid textarea { border-color: #A2412E; box-shadow: 0 0 0 1px #A2412E; }
.contact-form .co-check { margin: 4px 0 18px; align-items: flex-start; font-size: .82rem; line-height: 1.5; }
.contact-form .co-check input { margin-top: 1px; }
.contact-form .co-check a { text-decoration: underline; text-underline-offset: 2px; }
.contact-form [hidden] { display: none !important; }
.page-contact, .page-account { --co-line: #DDD5C9; --co-field-h: 50px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__media { min-height: 320px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__info { position: static; }
}

/* ---------- 30. SCHEDA PRODOTTO (schermo diviso) -------------------- */
.page-pdp main { padding-top: var(--header-h); }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ivory); }
.pdp__gallery { position: relative; }
.pdp__frame { position: relative; margin: 0; height: max(560px, calc(100svh - var(--header-h))); overflow: hidden; display: grid; place-items: center; }
.pdp__frame:nth-child(3n+1) { background: radial-gradient(ellipse at 50% 45%, #F4E9DA 0%, #E6D3B8 75%); }
.pdp__frame:nth-child(3n+2) { background: radial-gradient(ellipse at 50% 40%, #E9D8BF 0%, #D6BC98 80%); }
.pdp__frame:nth-child(3n+3) { background: #DCC6A6; }
.pdp__frame picture { display: block; width: 100%; height: 100%; }
.pdp__frame img { width: 100%; height: 100%; }
.pdp__frame--full img { object-fit: contain; padding: clamp(32px, 7vw, 110px); filter: drop-shadow(0 30px 40px rgba(60, 40, 20, .22)); transition: scale 1.2s var(--ease-out); }
.pdp__frame--full:hover img { scale: 1.03; }
.pdp__frame--detail img { object-fit: cover; object-position: 50% 18%; scale: 1.9; transform-origin: 50% 22%; }
.pdp__frame--cover img { object-fit: cover; }
.pdp__dots { display: none; }

.pdp__info { position: relative; }
.pdp__panel { position: sticky; top: var(--header-h); min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; max-width: 560px; margin: 0 auto; padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 64px); }
.pdp__panel .breadcrumbs { margin-bottom: 18px; }
.pdp__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pdp__badges:empty { display: none; }
.pdp__badge { padding: 5px 12px; border: 1px solid var(--line-gold); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.pdp__badge--gold { background: var(--gradient-gold); border-color: transparent; color: var(--navy); }
.pdp__title { margin: 0; font: 500 clamp(2.1rem, 1.5rem + 2vw, 3.3rem)/1.04 var(--serif); color: var(--navy); }
.pdp__short { margin: .9rem 0 1.1rem; font: italic 400 1.15rem/1.5 var(--serif); color: var(--ink-soft); }
.pdp__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 1.4rem; font-size: .8rem; color: var(--ink-mute); }
.pdp__buy { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.pdp__buy > .pdp__cta:first-of-type:last-child { grid-column: 1 / -1; } /* senza quantità (non acquistabile) */
.pdp__cta { width: 100%; padding-inline: 20px; }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 1.4rem; }
.pdp__price-value { font: 600 clamp(2.4rem, 2rem + 1.4vw, 3.2rem)/1 var(--serif); color: var(--charcoal); font-variant-numeric: lining-nums; }
.pdp__vat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.pdp__pdf { display: flex; width: 100%; margin-top: 14px; justify-content: center; --btn-bg: #EEDFC6; --btn-fg: var(--navy); --btn-bd: var(--gold); background: #EEDFC6; }
.pdp__pdf:hover { --btn-bg: var(--champagne); --btn-bd: var(--gold-deep); --btn-fg: var(--navy); background: var(--champagne); box-shadow: 0 10px 26px rgba(182, 138, 77, .25); }
.pdp__tabs { margin-top: 28px; }
.pdp__tablist { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--line-gold); }
.pdp__tablist button { position: relative; padding: 12px 0; font: 600 .64rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); transition: color .3s; }
.pdp__tablist button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.pdp__tablist button[aria-selected="true"] { color: var(--navy); }
.pdp__tablist button[aria-selected="true"]::after { transform: scaleX(1); }
.pdp__tabpanel { padding: 16px 0 0; animation: co-in .4s var(--ease-out); }
.pdp__tabpanel p { margin: 0 0 .6em; font: 400 1.05rem/1.6 var(--serif); color: var(--ink-soft); }
.pdp__tabpanel a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; font-family: var(--sans); font-size: .84rem; }
.pdp__assurance { list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-gold); display: grid; gap: 8px; font-size: .82rem; color: var(--ink-soft); }
.pdp__assurance li { display: flex; align-items: center; gap: 10px; }
.pdp__assurance .icon { color: var(--gold); }

.pdp-related { background: var(--ivory-deep); padding: var(--section-y) var(--gutter); text-align: center; }
.pdp-related__title { margin: 0 0 clamp(28px, 4vw, 52px); font: 500 var(--fs-h2)/1 var(--serif); color: var(--navy); text-transform: uppercase; }
.pdp-related__list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 2vw, 28px); max-width: 1120px; }
.pdp-tile { flex: 0 1 340px; text-align: left; }
.pdp-tile__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #F4E9DA 0%, #E2CDAE 80%); }
.pdp-tile__media picture, .pdp-tile__media img { display: block; width: 100%; height: 100%; }
.pdp-tile__media img { object-fit: contain; padding: 14%; transition: scale 1s var(--ease-out); filter: drop-shadow(0 18px 24px rgba(60, 40, 20, .2)); }
.pdp-tile:hover .pdp-tile__media img { scale: 1.06; }
.pdp-tile__media { position: relative; }
.pdp-tile__body { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 10px; }
.pdp-tile__name { font: 500 1.15rem/1.2 var(--serif); color: var(--navy); }
.pdp-tile__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp-tile__price { font: 600 1.05rem var(--serif); color: var(--charcoal); white-space: nowrap; }
.pdp-tile__add { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 7px 16px; border: 1px solid var(--navy); border-radius: 999px; font: 600 .62rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--navy); transition: background .3s, color .3s; }
.pdp-tile__add:hover { background: var(--navy); color: var(--ivory); }
.pdp-tile__add.is-loading .btn__label { opacity: 0; }
.pdp-tile__add .btn__spinner { width: 14px; height: 14px; }
.pdp-tile__add.is-loading .btn__spinner { opacity: 1; animation-play-state: running; }
.pdp-tile__add.is-added { background: var(--gold); border-color: var(--gold); color: var(--white); }
.pdp-band .world-chef__media img { object-position: 30% 50%; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pdp__gallery::-webkit-scrollbar { display: none; }
  .pdp__frame { flex: 0 0 100%; height: auto; aspect-ratio: 1 / 1.05; scroll-snap-align: start; }
  .pdp__dots { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .pdp__dots li { width: 7px; height: 7px; border-radius: 50%; background: rgba(5, 26, 50, .25); transition: background .3s, width .3s; }
  .pdp__dots li.is-active { width: 22px; border-radius: 4px; background: var(--navy); }
  .pdp__gallery { position: relative; }
  .pdp__panel { position: static; min-height: 0; }
}
.pdp__media { position: relative; min-width: 0; }
.pdp__frame--cover img { scale: 1.07; } .pdp__tablist { flex-wrap: nowrap; gap: 18px; overflow-x: auto; scrollbar-width: none; } .pdp__tablist::-webkit-scrollbar { display: none; } .pdp__tablist button { flex: none; letter-spacing: .14em; }
@media (max-width: 560px) { .pdp__buy { grid-template-columns: 1fr; } .pdp__buy .stepper { justify-self: start; } .pdp__cta { letter-spacing: .12em; } }
@media (max-width: 900px) { .pdp { grid-template-columns: minmax(0, 1fr); } .pdp__info, .pdp__panel { min-width: 0; max-width: 100%; } }

/* ---------- 31. SHOP: card tutte uguali ----------------------------- */
.product-grid { align-items: stretch; }
.product-grid .product-card { height: 100%; }
.product-grid .product-card__media { width: 100%; aspect-ratio: 1.35 / 1; display: grid; place-items: center; }
.product-grid .product-card__media picture { display: block; width: 100%; height: 100%; }
.product-grid .product-card__picture img { width: 100%; height: 100%; object-fit: contain; }
.product-grid .product-card__body { flex: 1; width: 100%; }
.product-grid .product-card__desc { flex: 1; }
.product-grid .product-card__name { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); }
.product-grid .highlight { position: absolute; z-index: 2; top: 14px; left: 50%; translate: -50% 0; margin: 0; }
.product-grid .product-card:has(.highlight) { padding-top: 28px; }
.product-grid .add-to-cart { margin-top: auto; }
.badge--empty { visibility: hidden; }
.product-grid .product-card:has(.highlight) { padding-top: 28px; }
.product-grid .product-card { padding-top: 28px; }
.product-grid .product-card__name { min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.product-grid .product-card__desc { flex: none; min-height: 3.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 31b. ANTEPRIME: SECONDA FOTO + MINIATURE --------------- */
/* Card dello shop, "Da abbinare" e home: sotto l'immagine due miniature (prodotto intero / foto con la fetta)
   avvisano che esiste un'altra foto e la mostrano con una dissolvenza, senza entrare nella scheda. */
[data-card-gallery] .gallery-pic { transition: opacity .5s var(--ease-out); }
/* La foto 0 è quella in flusso; le foto 1 e 2 le si sovrappongono, invisibili finché la card non passa a .shot-1 / .shot-2 */
[data-card-gallery] .gallery-pic--1, [data-card-gallery] .gallery-pic--2 { position: absolute; inset: 0; display: block; opacity: 0; }
[data-card-gallery] .gallery-pic--1 img, [data-card-gallery] .gallery-pic--2 img { width: 100%; height: 100%; object-fit: contain; }
[data-card-gallery].shot-1 .gallery-pic:not(.gallery-pic--1), [data-card-gallery].shot-2 .gallery-pic:not(.gallery-pic--2) { opacity: 0; }
[data-card-gallery].shot-1 .gallery-pic--1, [data-card-gallery].shot-2 .gallery-pic--2 { opacity: 1; }
.card-thumbs { display: flex; justify-content: center; gap: 8px; height: 48px; margin: -4px 0 14px; }
.card-thumb { position: relative; width: 48px; height: 48px; padding: 4px; flex: none; border: 1px solid rgba(182, 138, 77, .35); border-radius: 12px; background: var(--ivory); cursor: pointer; overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out); }
.card-thumb picture, .card-thumb img { display: block; width: 100%; height: 100%; }
.card-thumb img { object-fit: contain; }
.card-thumb:hover { transform: translateY(-2px); border-color: var(--gold); }
.card-thumb[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.card-thumb:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pdp-tile .card-thumbs { margin: 10px 0 0; }
@media (max-width: 760px) { .product-card--side .card-thumbs { gap: 6px; } .product-card--side .card-thumb { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { [data-card-gallery] .gallery-pic, .card-thumb { transition: none; } }

/* ---------- 31c. IL PACKAGING: confezioni delle colombe ------------ */
.pack-range { padding: var(--section-y) 0; background: var(--ivory-deep); text-align: center; }
.pack-range--alt { background: var(--ivory); }
.pack-range__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 52px); }
.pack-range__title { margin: .4rem 0 .8rem; font: italic 400 clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem)/1.06 var(--serif); color: var(--navy); }
.pack-range__lead { margin: 0 auto; max-width: 36rem; font: 400 1.1rem/1.5 var(--serif); color: var(--ink-soft); }
.pack-range__list { list-style: none; margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); max-width: 1180px; }
.pack-card { position: relative; display: flex; flex-direction: column; align-items: center; }
.pack-card__media { position: relative; display: block; width: 100%; aspect-ratio: 1.35 / 1; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #F4E9DA 0%, #E2CDAE 80%); }
.pack-card__media picture, .pack-card__media img { display: block; width: 100%; height: 100%; }
.pack-card__media img { object-fit: contain; padding: 3%; filter: drop-shadow(0 16px 20px rgba(60, 40, 20, .18)); transition: scale 1s var(--ease-out); }
.pack-card:hover .pack-card__media img { scale: 1.04; }
.pack-card .card-thumbs { margin: 12px 0 8px; }
.pack-card__name { margin: .4rem 0 .3rem; font: 500 1.45rem/1.15 var(--serif); color: var(--navy); }
.pack-card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pack-card__text { margin: 0 0 .9rem; max-width: 22em; font: 400 1.04rem/1.4 var(--serif); color: var(--ink-soft); }
@media (max-width: 900px) { .pack-range__list { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 40px; } }

/* ---------- 32. CHI SONO ------------------------------------------- */
.mega__inner--cards { grid-template-columns: repeat(4, 1fr); }
.world-nav__list { grid-template-columns: repeat(4, 1fr); }
.about__motto { margin-top: 1.4rem !important; font: italic 400 1.5rem/1.2 var(--serif) !important; color: var(--champagne); letter-spacing: .02em; }
.about__sign { width: 170px; color: var(--champagne); opacity: .85; }
.about__sign svg { width: 100%; height: auto; }

.about-awards { background: var(--ivory); padding: var(--section-y) 0; text-align: center; }
.about-awards__title { margin: .3em 0 0; font: 500 var(--fs-h2)/1 var(--serif); color: var(--navy); text-transform: uppercase; }
.about-awards__list { list-style: none; margin: clamp(36px, 5vw, 64px) auto 0; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.about-awards__list::before { content: ""; position: absolute; left: 10%; right: 10%; top: 96px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent); }
.award { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 0 12px; }
.award__year { font: 300 clamp(2.6rem, 2rem + 2vw, 3.8rem)/1 var(--serif); color: var(--navy); font-variant-numeric: lining-nums; }
.award__medal { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin: 8px 0 10px; border-radius: 50%; background: var(--ivory); color: var(--gold); transition: transform .6s var(--ease-out); }
.award__medal svg { width: 44px; height: 44px; }
.award:hover .award__medal { transform: rotate(18deg) scale(1.08); }
.award__name { font: 500 1.2rem/1.2 var(--serif); color: var(--navy); }
.award__result { padding: 4px 12px; border: 1px solid var(--line-gold); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.award:first-child .award__result, .award:nth-child(2) .award__result, .award:nth-child(3) .award__result { background: var(--gradient-gold); border-color: transparent; color: var(--navy); }
.about-awards__note { max-width: 720px; margin: clamp(32px, 4vw, 48px) auto 0; font-size: .78rem; line-height: 1.6; color: var(--ink-mute); }

.about-collab { background: var(--ivory-warm); border-block: 1px solid var(--line-gold); padding-bottom: var(--section-y); }
.about-collab__name { margin: .3em 0 .5em; font: 500 clamp(2rem, 1.5rem + 2vw, 3.2rem)/1.05 var(--serif); color: var(--navy); text-transform: uppercase; }
.about-collab__name span { color: var(--gold-deep); font-style: italic; text-transform: none; }
.about-collab__text { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem) !important; }
.about-collab__note { margin: 0 0 1.4rem !important; font-size: .8rem !important; color: var(--ink-mute) !important; }

.about-press { background: var(--navy); padding: var(--section-y) 0; color: var(--ivory); }
.about-press__head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.about-press__title { margin: .3em 0 0; font: 500 var(--fs-h2)/1 var(--serif); color: var(--ivory); text-transform: uppercase; }
.about-press__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(217, 192, 154, .22); border: 1px solid rgba(217, 192, 154, .22); }
.about-press__list li { background: var(--navy); }
.press-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; height: 100%; min-height: 220px; padding: clamp(24px, 3vw, 36px); color: var(--ivory); overflow: hidden; transition: background .4s; }
.press-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 0 0, rgba(182, 138, 77, .25), transparent 60%); opacity: 0; transition: opacity .5s; }
.press-card:hover { background: #0A2442; }
.press-card:hover::before { opacity: 1; }
.press-card__top { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.press-card__outlet { font: 600 .68rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--champagne); }
.press-card__year { font: italic 400 1.2rem var(--serif); color: rgba(248, 243, 236, .55); }
.press-card__title { position: relative; font: 400 clamp(1.35rem, 1.15rem + .6vw, 1.7rem)/1.22 var(--serif); }
.press-card__link { position: relative; display: inline-flex; align-items: center; gap: 8px; font: 600 .62rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--champagne); }
.press-card__link .icon { transition: translate .4s var(--ease-out); }
.press-card:hover .press-card__link .icon { translate: 3px -3px; }

@media (max-width: 1100px) {
  .mega__inner--cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .world-nav__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .world-nav__label { font-size: .92rem; }
  .about-awards__list { grid-template-columns: 1fr; gap: 28px; max-width: 420px; }
  .about-awards__list::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, transparent, var(--gold) 6%, var(--gold) 94%, transparent); }
  .award { background: var(--ivory); padding: 14px 12px; }
  .about-press__list { grid-template-columns: 1fr; }
}
.about-collab__name span { color: inherit; font-style: normal; text-transform: inherit; } .about-collab__place { color: var(--gold-deep); font-style: italic; text-transform: none; }

/* 33 · Dati del titolare nel footer */
.site-footer__contacts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.site-footer__contacts a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); transition: color .3s; }
.site-footer__contacts a:hover { color: var(--navy); }
.site-footer__contacts .icon { color: var(--gold, #B68A4D); flex: none; }
.site-footer__legal-id { display: grid; gap: 4px; }
.site-footer__legal-id p + p { letter-spacing: .02em; }
.co-footer__id { margin: 10px 0 0; font-size: .72rem; color: var(--ink-mute); text-align: center; }

/* 34 · Per aziende */
.b2b-hero__cta { margin-top: 26px; }
.page-b2b .world-quote .eyebrow { margin-bottom: 14px; }
.b2b-paths { background: var(--ivory); padding: 0 0 var(--section-y); }
.b2b-paths__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); max-width: 1180px; }
.b2b-path { display: grid; align-content: start; }
.b2b-path__media { aspect-ratio: 4 / 3; overflow: hidden; }
.b2b-path__media picture, .b2b-path__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b2b-path__media img { transition: scale 1.2s var(--ease-out); }
.b2b-path:hover .b2b-path__media img { scale: 1.04; }
.b2b-path__body { padding: 26px 4px 0; }
.b2b-path__num { display: block; margin-bottom: 10px; font: 600 .7rem var(--sans); letter-spacing: .24em; color: var(--gold); }
.b2b-path__title { margin: 0 0 .5em; font: 500 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.1 var(--serif); color: var(--navy); }
.b2b-path__body p { margin: 0 0 18px; max-width: 46ch; color: var(--ink-soft); line-height: 1.7; }
.b2b-awards { list-style: none; margin: 6px 0 22px; padding: 0; border-top: 1px solid rgba(182, 138, 77, .35); }
.b2b-awards li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(182, 138, 77, .35); font-size: .92rem; }
.b2b-awards span { min-width: 3.2em; font-weight: 600; color: var(--gold); }
.b2b-collab { font-style: italic; }
.b2b-collection__eyebrow { margin: 0 0 12px; }
.b2b-tile__link { text-decoration: none; }
.b2b-how { background: var(--navy); color: var(--ivory); padding: var(--section-y) 0; }
.b2b-how__head { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.b2b-how__title { margin: .3em 0 0; font: 500 var(--fs-h2)/1.05 var(--serif); color: var(--ivory); }
.b2b-how__list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); max-width: 1120px; }
.b2b-how__list li { padding-top: 22px; border-top: 1px solid rgba(182, 138, 77, .5); }
.b2b-how__num { display: block; font: italic 400 2.6rem/1 var(--serif); color: var(--gold); }
.b2b-how__list h3 { margin: 14px 0 8px; font: 500 1.35rem/1.2 var(--serif); color: var(--ivory); }
.b2b-how__list p { margin: 0; line-height: 1.7; color: rgba(247, 241, 232, .78); }
.b2b-form { scroll-margin-top: calc(var(--header-h-compact) + 8px); }
@media (max-width: 900px) {
  .b2b-paths__grid, .b2b-how__list { grid-template-columns: minmax(0, 1fr); }
}

/* 35 · Popup di benvenuto newsletter */
.nl-pop { width: min(880px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.nl-pop::backdrop { background: rgba(3, 14, 28, .62); backdrop-filter: blur(6px); }
.nl-pop[open]::backdrop { animation: nl-fade .6s ease both; }
.nl-pop.is-closing::backdrop { animation: nl-fade .38s ease reverse both; }
.nl-pop__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 540px; max-height: calc(100dvh - 32px); background: var(--ivory); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, .45); }
.nl-pop.is-in .nl-pop__inner { animation: nl-in 1s var(--ease-out) both; }
.nl-pop.is-closing .nl-pop__inner { animation: nl-out .38s ease both; }
@keyframes nl-fade { from { opacity: 0; } }
@keyframes nl-in { from { opacity: 0; transform: translateY(40px) scale(.94); clip-path: inset(8% 8% 8% 8% round 6px); } to { clip-path: inset(0 0 0 0 round 6px); } }
@keyframes nl-out { to { opacity: 0; transform: translateY(18px) scale(.97); } }

/* Colonna immagine con il "10%" */
.nl-pop__media { position: relative; overflow: hidden; background: var(--navy); isolation: isolate; }
.nl-pop__media picture, .nl-pop__pic, .nl-pop__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nl-pop.is-in .nl-pop__media img { animation: nl-zoom 9s ease-out both; }
@keyframes nl-zoom { from { scale: 1.18; filter: brightness(.6); } to { scale: 1; filter: none; } }
.nl-pop__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 26, 50, .05) 30%, rgba(5, 26, 50, .82) 100%); z-index: 1; }
.nl-pop__badge { position: absolute; left: clamp(22px, 4vw, 40px); bottom: clamp(22px, 4vw, 40px); z-index: 2; display: grid; color: var(--ivory); }
.nl-pop__pct { display: flex; align-items: flex-start; font: 500 clamp(5.5rem, 4rem + 6vw, 8.4rem)/.85 var(--serif); letter-spacing: -.02em;
  background: linear-gradient(110deg, #B68A4D 0%, #F3E2C2 28%, #C9A063 46%, #FFF4DC 60%, #B68A4D 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nl-shine 4.5s linear infinite; font-variant-numeric: lining-nums; }
.nl-pop__pct small { font-size: .42em; margin: .18em 0 0 .06em; }
@keyframes nl-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.nl-pop__off { margin-top: 8px; font: 600 .74rem var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--champagne); }
.nl-pop.is-in .nl-pop__badge { animation: nl-rise 1s var(--ease-out) .35s both; }
@keyframes nl-rise { from { opacity: 0; transform: translateY(26px); } }
.nl-pop__spark { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 10px; height: 10px; pointer-events: none; animation: nl-twinkle 3s ease-in-out var(--d) infinite both; }
.nl-pop__spark::before, .nl-pop__spark::after { content: ""; position: absolute; inset: 0; background: #F3E2C2; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.nl-pop__spark::after { filter: blur(4px); opacity: .8; }
@keyframes nl-twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1.4) rotate(90deg); } }

/* Pannello */
.nl-pop__panel { position: relative; display: grid; align-content: center; padding: clamp(36px, 5vw, 56px) clamp(24px, 4.5vw, 52px); overflow-y: auto; border-top: 3px solid var(--gold); }
.nl-pop__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-soft); transition: background .25s, color .25s, rotate .4s var(--ease-out); }
.nl-pop__close:hover { background: var(--navy); color: var(--ivory); rotate: 90deg; }
.nl-pop__mono { width: 42px; margin-bottom: 14px; color: var(--gold); }
.nl-pop__mono svg { width: 100%; height: auto; }
.nl-pop__title { margin: .25em 0 .45em; font: 500 clamp(2.2rem, 1.6rem + 2vw, 3.1rem)/1 var(--serif); color: var(--navy); outline: none; }
.nl-pop__title em { font-style: italic; color: var(--gold); }
.nl-pop__lead { margin: 0 0 20px; font-size: .92rem; line-height: 1.65; color: var(--ink-soft); }
.nl-pop__lead strong { color: var(--navy); }
.nl-pop.is-in .nl-pop__step > * { animation: nl-rise .8s var(--ease-out) both; }
.nl-pop.is-in .nl-pop__step > :nth-child(2) { animation-delay: .1s; }
.nl-pop.is-in .nl-pop__step > :nth-child(3) { animation-delay: .18s; }
.nl-pop.is-in .nl-pop__step > :nth-child(4) { animation-delay: .26s; }
.nl-pop.is-in .nl-pop__step > :nth-child(5) { animation-delay: .34s; }
.nl-pop__field input { width: 100%; height: 54px; padding: 18px 14px 6px; border: 1px solid #DDD5C9; border-radius: 6px; background: var(--white); font: 400 .95rem var(--sans); }
.nl-pop__check { align-items: flex-start; margin: 6px 0 16px; font-size: .78rem; line-height: 1.5; color: var(--ink-soft); }
.nl-pop__check input { margin-top: 1px; }
.nl-pop__check a { text-decoration: underline; text-underline-offset: 2px; }
.nl-pop__skip { display: block; margin: 14px auto 0; font-size: .74rem; letter-spacing: .06em; color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; }
.nl-pop__skip:hover { color: var(--navy); }

/* Codice ottenuto */
.nl-pop__ticket { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; margin: 4px 0 18px; padding: 18px 20px; background: var(--white); border: 1.5px dashed var(--gold); border-radius: 8px; }
.nl-pop__ticket::before, .nl-pop__ticket::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--ivory); border: 1.5px dashed var(--gold); }
.nl-pop__ticket::before { left: -10px; clip-path: inset(0 0 0 50%); }
.nl-pop__ticket::after { right: -10px; clip-path: inset(0 50% 0 0); }
.nl-pop__ticket-label { grid-column: 1 / -1; font: 600 .62rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.nl-pop__code { font: 600 clamp(1.4rem, 1.1rem + 1vw, 1.8rem) var(--sans); letter-spacing: .12em; color: var(--navy); user-select: all; }
.nl-pop__copy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--navy); border-radius: 999px; font: 600 .66rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); transition: background .25s, color .25s; }
.nl-pop__copy .icon { display: none; }
.nl-pop__copy:hover, .nl-pop__copy.is-copied { background: var(--navy); color: var(--ivory); }
.nl-pop__copy.is-copied .icon { display: block; }
.nl-pop.is-done .nl-pop__ticket { animation: nl-ticket .9s var(--ease-out) .15s both; }
@keyframes nl-ticket { from { opacity: 0; transform: translateY(16px) rotate(-3deg) scale(.9); } 60% { transform: rotate(1deg) scale(1.03); } }
.nl-pop.is-done .nl-pop__spark { animation-duration: 1.4s; }

@media (max-width: 760px) {
  .nl-pop { width: calc(100vw - 20px); }
  .nl-pop__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); min-height: 0; max-height: calc(100dvh - 20px); }
  .nl-pop__media { height: clamp(150px, 28dvh, 220px); }
  .nl-pop__pct { font-size: 4.6rem; }
  .nl-pop__badge { left: 20px; bottom: 16px; }
  .nl-pop__panel { align-content: start; padding: 26px 20px 22px; }
  .nl-pop__mono { display: none; }
  .nl-pop__title { font-size: 2rem; }
  .nl-pop__title br { display: none; }
  .nl-pop__lead { font-size: .86rem; margin-bottom: 14px; }
  .nl-pop__close { top: auto; bottom: calc(100% + 8px); right: 8px; background: rgba(5, 26, 50, .55); color: var(--ivory); }
  .nl-pop__panel { position: static; }
  .nl-pop__inner { position: relative; }
}
@media (max-width: 760px) {
  .nl-pop__close { position: absolute; top: 10px; bottom: auto; right: 10px; z-index: 3; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-pop *, .nl-pop *::before, .nl-pop *::after, .nl-pop::backdrop { animation: none !important; }
}
.nl-pop__code { white-space: nowrap; font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); letter-spacing: .08em; }

/* Pagina /newsletter: modulo con campi facoltativi + riquadro del codice sconto */
.nl-page__perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.nl-page__perks li { display: flex; align-items: center; gap: 10px; font: 400 .92rem/1.5 var(--sans); color: var(--ink-soft); }
.nl-page__perks .icon { color: var(--gold-deep); flex: none; }
.nl-form .co-field--select select { padding-right: 38px; cursor: pointer; }
.nl-form .co-row > .co-field { min-width: 0; }
.nl-form input[type="date"] { color-scheme: light; }
.nl-form input[type="date"] + label { top: 8px; translate: 0 0; font-size: .7rem; }
.nl-form input[readonly] { background: var(--ivory); color: var(--ink-soft); }
.nl-form__optional { margin: 6px 0 14px; padding: 0; border: 0; min-width: 0; }
.nl-form__optional legend { padding: 0; margin-bottom: 12px; font: 600 .66rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.nl-form__optional legend span { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-mute); }
.nl-page__done { padding-bottom: clamp(28px, 4vw, 52px); }
.nl-page__done .contact-form__title em { font-style: italic; color: var(--gold-deep); }
.nl-page__ticket { margin: 6px 0 16px; padding: 22px 24px; }
.nl-page__ticket::before, .nl-page__ticket::after { background: var(--white); }
.nl-page__ticket.is-locked { grid-template-columns: 1fr; overflow: visible; }
.nl-page__ticket.is-locked .nl-pop__code { filter: blur(8px); user-select: none; pointer-events: none; opacity: .85; }
.nl-page__lock { position: absolute; right: 20px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--ivory); box-shadow: 0 6px 18px rgba(5, 26, 50, .25); }
.nl-page__lock .icon { width: 20px; height: 20px; }
.nl-page__note { margin: 0 0 18px; font: 400 .88rem/1.6 var(--sans); color: var(--ink-soft); }
.nl-page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

/* 36 · Area clienti (utente autenticato) */
.header-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #D9C09A, #B68A4D); color: var(--navy); font: 700 .66rem var(--sans); letter-spacing: .04em; box-shadow: 0 0 0 2px rgba(217, 192, 154, .35); }
.acct { background: var(--ivory); padding-bottom: var(--section-y); }
.acct__hero { background: var(--navy); color: var(--ivory); padding: calc(var(--header-h) + clamp(28px, 4vw, 56px)) 0 clamp(64px, 7vw, 96px); position: relative; overflow: hidden; }
.acct__hero::after { content: ""; position: absolute; right: -8%; top: -40%; width: 46vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(182, 138, 77, .22), transparent 65%); pointer-events: none; }
.acct__hero-inner { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); position: relative; z-index: 1; }
.acct__avatar { flex: none; display: grid; place-items: center; width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(217, 192, 154, .6); font: 500 clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem) var(--serif); color: var(--champagne); letter-spacing: .04em; }
.acct__title { margin: .2em 0 .25em; font: 500 clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem)/1 var(--serif); color: var(--ivory); }
.acct__title em { color: var(--champagne); }
.acct__meta { margin: 0; font-size: .86rem; color: rgba(247, 241, 232, .7); }
.acct__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1180px; margin-top: clamp(-48px, -4vw, -36px); position: relative; z-index: 2; }
.acct__nav { position: sticky; top: calc(var(--header-h-compact) + 24px); background: var(--white); border-radius: 6px; box-shadow: 0 18px 50px rgba(5, 26, 50, .1); padding: 10px; }
.acct__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.acct__nav a, .acct__logout button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 4px; font-size: .9rem; color: var(--ink-soft); transition: background .25s, color .25s; }
.acct__nav a:hover, .acct__logout button:hover { background: var(--ivory); color: var(--navy); }
.acct__nav a[aria-current="page"] { background: var(--navy); color: var(--ivory); }
.acct__nav a[aria-current="page"] .icon { color: var(--champagne); }
.acct__logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-gold); }
.acct__logout button { position: relative; text-align: left; }
.acct__logout .btn__spinner { position: static; margin-left: auto; }
.acct__main { display: grid; gap: 20px; min-width: 0; }
.acct__main > .auth__msg { margin: 0; }
.acct-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acct-card { display: grid; align-content: start; gap: 4px; padding: 22px; background: var(--white); border-radius: 6px; box-shadow: 0 18px 50px rgba(5, 26, 50, .08); border-top: 2px solid transparent; transition: border-color .3s, translate .4s var(--ease-out), box-shadow .4s; min-width: 0; }
.acct-card:hover { border-top-color: var(--gold); translate: 0 -3px; box-shadow: 0 24px 60px rgba(5, 26, 50, .12); }
.acct-card__icon { color: var(--gold); margin-bottom: 10px; }
.acct-card__label { font: 600 .64rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-mute); }
.acct-card__value { font: 500 1.45rem/1.15 var(--serif); color: var(--navy); overflow-wrap: anywhere; }
.acct-card__hint { font-size: .8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.acct-block { padding: clamp(22px, 3vw, 34px); background: var(--white); border-radius: 6px; box-shadow: 0 18px 50px rgba(5, 26, 50, .06); }
.acct-block__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.acct-block__head .acct-block__title { margin: 0; }
.acct-block__title { margin: 0 0 18px; font: 500 1.7rem/1.1 var(--serif); color: var(--navy); }
.acct-block__hint { margin: 4px 0 0; font: 400 .84rem/1.5 var(--sans); color: var(--ink-mute); }
.acct-block--cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--navy); color: rgba(247, 241, 232, .8); }
.acct-block--cta .acct-block__title { color: var(--ivory); margin-bottom: 6px; }
.acct-block--cta p { margin: 0; }
.acct-block--cta .btn--navy { --btn-bg: var(--ivory); --btn-fg: var(--navy); --btn-bd: var(--ivory); }
.acct-ticket { margin: 0 0 10px; grid-template-columns: 1fr; }
.acct-ticket::before, .acct-ticket::after { background: var(--white); }
.acct-ticket.is-used { opacity: .5; }
.acct-ticket.is-used .nl-pop__code { text-decoration: line-through; }
.acct-empty { display: grid; justify-items: center; gap: 4px; padding: clamp(20px, 4vw, 40px) 10px; text-align: center; color: var(--ink-soft); }
.acct-empty p { margin: 0; max-width: 46ch; line-height: 1.6; }
.acct-empty strong { color: var(--navy); font: 500 1.3rem var(--serif); }
.acct-empty__mono { width: 48px; color: var(--gold); margin-bottom: 10px; }
.acct-empty__mono svg { width: 100%; height: auto; }
.acct-empty .btn { margin-top: 16px; }
.acct-form .co-check { margin: 4px 0 14px; }
.acct-form__actions { display: flex; align-items: center; gap: 20px; }
.acct-form__actions .co-pay-btn { width: auto; padding: 0 34px; height: 52px; }
.acct-link { font-size: .82rem; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.acct-link:hover { color: var(--gold-deep, #8E6A37); }
.acct-link--danger { color: #8A3524; }
.acct-addresses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acct-address { padding: 18px 20px; border: 1px solid #E7DFD3; border-radius: 6px; }
.acct-address.is-default { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.acct-address__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-address__top strong { font: 500 1.2rem var(--serif); color: var(--navy); }
.acct-address p { margin: 8px 0 12px; font-size: .88rem; line-height: 1.6; color: var(--ink-soft); }
.acct-address__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.acct-address__actions form { display: contents; }
.acct-address__actions .auth__msg { display: none; }
.acct-badge { padding: 4px 10px; border-radius: 999px; background: var(--ivory); font: 600 .6rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep, #8E6A37); }
.acct-danger summary { cursor: pointer; font: 500 1.1rem var(--serif); color: #8A3524; }
.acct-danger p { font-size: .88rem; color: var(--ink-soft); }
.acct-danger__btn { background: #8A3524; }
.acct-danger__btn:hover { background: #6E2919; }
@media (max-width: 900px) {
  .acct__grid { grid-template-columns: minmax(0, 1fr); }
  .acct__nav { position: static; padding: 6px; }
  .acct__nav ul { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .acct__nav a { padding: 11px 12px; font-size: .82rem; }
  .acct__logout { margin-top: 4px; padding-top: 4px; }
  .acct__logout button { padding: 10px 12px; font-size: .82rem; }
  .acct-cards, .acct-addresses { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .acct__main::after { content: none; }
}

/* 37 · Logo dell'header: riflesso oro animato (config site.logo_shine) */
.brand__gold { position: relative; display: inline-flex; line-height: 0; }
.brand--shine .brand__gold::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  background: linear-gradient(110deg, #B68A4D 0%, #F3E2C2 28%, #C9A063 46%, #FFF4DC 60%, #B68A4D 80%) 0 0 / 250% 100%;
  animation: nl-shine 5s linear infinite;
}
.brand--shine .brand__gold--mono { --m: url("/assets/img/brand/mask-mono.svg"); }
.brand--shine .brand__gold--sign::after { content: none; }   /* firma: nessun riflesso (resa non buona) */
/* Nome: resta avorio, attraversato da un riflesso dorato */
.brand--shine .brand__gold--name { --m: url("/assets/img/brand/mask-name.svg"); }
.brand--shine .brand__gold--name::after { background: linear-gradient(110deg, transparent 0 38%, rgba(243, 226, 194, .95) 48%, #FFF4DC 50%, rgba(243, 226, 194, .95) 52%, transparent 62% 100%) 0 0 / 300% 100%; animation: brand-sweep 6s var(--ease-out) 1.5s infinite; }
@keyframes brand-sweep { 0% { background-position: 100% 0; } 45%, 100% { background-position: -50% 0; } }
.brand__spark { position: absolute; left: calc(50% - 31px + var(--x)); top: calc(16px + var(--y)); width: 9px; height: 9px; pointer-events: none; z-index: 2; opacity: 0; animation: nl-twinkle 4.8s ease-in-out var(--d) infinite both; transition: opacity .3s; }
.brand__spark::before, .brand__spark::after { content: ""; position: absolute; inset: 0; background: #F3E2C2; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.brand__spark::after { filter: blur(3px); opacity: .8; }
.site-header.is-scrolled .brand__spark, .site-header.is-mega .brand__spark { display: none; }
@media (prefers-reduced-motion: reduce) {
  .brand--shine .brand__gold::after { animation: none; }
  .brand__spark { display: none; }
}

/* 38 · Preferiti (cuoricino) */
.fav { margin: 0; line-height: 0; }
.fav__btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .86); box-shadow: 0 6px 18px rgba(5, 26, 50, .12); color: var(--navy); transition: transform .3s var(--ease-out), background .3s, box-shadow .3s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fav__btn:hover { transform: scale(1.08); background: var(--white); box-shadow: 0 10px 26px rgba(5, 26, 50, .18); }
.fav__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.fav__heart { width: 20px; height: 20px; fill: transparent; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; overflow: visible; transition: fill .3s, stroke .3s, transform .3s; }
.fav__btn[aria-pressed="true"] .fav__heart { fill: #B68A4D; stroke: #B68A4D; }
.fav__btn.is-pop .fav__heart { animation: fav-pop .6s var(--ease-out); }
@keyframes fav-pop { 0% { transform: scale(1); } 25% { transform: scale(.7); } 55% { transform: scale(1.32); } 100% { transform: scale(1); } }
.fav__burst { position: absolute; inset: 0; pointer-events: none; }
.fav__burst i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #D9C09A; opacity: 0; }
.fav__btn.is-pop .fav__burst i { animation: fav-burst .65s var(--ease-out) forwards; }
.fav__burst i:nth-child(1) { --a: 0deg; } .fav__burst i:nth-child(2) { --a: 60deg; } .fav__burst i:nth-child(3) { --a: 120deg; }
.fav__burst i:nth-child(4) { --a: 180deg; } .fav__burst i:nth-child(5) { --a: 240deg; } .fav__burst i:nth-child(6) { --a: 300deg; }
@keyframes fav-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-24px) scale(.4); } }
/* Posizioni */
.fav--card { position: absolute; top: 4px; right: clamp(10px, 2vw, 30px); z-index: 3; }
.product-card--featured .fav--card { top: 44px; }
.pdp-tile, .acct-fav { position: relative; }
.fav--tile { position: absolute; top: 12px; right: 12px; z-index: 2; }
.pdp__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.fav--pdp { flex: none; margin-top: 6px; }
.fav--pdp .fav__btn { width: 46px; height: 46px; background: var(--white); border: 1px solid var(--line-gold); box-shadow: none; }
.fav--pdp .fav__heart { width: 22px; height: 22px; }
/* Header */
.header-actions__fav { position: relative; }
.header-actions__fav .icon { width: 21px; height: 21px; }
.fav-count { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; background: var(--gradient-gold); color: var(--navy); font: 800 .56rem/1 var(--sans); }
.fav-count[hidden] { display: none; }
.fav-count.is-bump { animation: cart-bump .7s var(--ease-out); }
/* Messaggio di conferma */
.fav-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--navy); color: var(--ivory); box-shadow: 0 18px 40px rgba(5, 26, 50, .3); font-size: .86rem; translate: -50% 140%; opacity: 0; transition: translate .5s var(--ease-out), opacity .4s; pointer-events: none; }
.fav-toast.is-in { translate: -50% 0; opacity: 1; pointer-events: auto; }
.fav-toast svg { width: 18px; height: 18px; flex: none; fill: #D9C09A; stroke: #D9C09A; stroke-width: 1.5; }
.fav-toast a { color: var(--champagne); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* Area clienti: griglia preferiti */
.acct-block__count { font-size: .8rem; color: var(--ink-mute); }
.acct-favs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.acct-fav { display: grid; align-content: start; gap: 10px; transition: opacity .4s, transform .45s var(--ease-out); }
.acct-fav.is-removing { opacity: 0; transform: scale(.92); }
.acct-fav__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: radial-gradient(ellipse at 50% 45%, #F4E9DA 0%, #E2CDAE 80%); }
.acct-fav__media picture, .acct-fav__media img { display: block; width: 100%; height: 100%; }
.acct-fav__media img { object-fit: contain; padding: 14%; filter: drop-shadow(0 14px 20px rgba(60, 40, 20, .2)); transition: scale .8s var(--ease-out); }
.acct-fav:hover .acct-fav__media img { scale: 1.05; }
.acct-fav__body { display: flex; justify-content: space-between; gap: 10px; }
.acct-fav__name { font: 500 1.1rem/1.2 var(--serif); color: var(--navy); }
.acct-fav__price { font: 600 1rem var(--serif); white-space: nowrap; }
.acct-fav__buy { justify-self: start; }
.acct-empty__heart .icon { width: 44px; height: 44px; }
.co-alert--fav .icon { color: var(--gold); flex: none; margin-top: 2px; }
.co-alert--fav p { margin: 2px 0 0; }
@media (max-width: 900px) { .acct-favs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .acct-favs { gap: 12px; } .fav-toast { font-size: .8rem; padding: 10px 14px; } }
.cart-btn__total { white-space: nowrap; }
@media (max-width: 480px) {
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 36px; height: 36px; }
  .cart-btn { gap: 8px; padding-left: 6px; }
  .cart-btn__total { min-width: 0; }
}

/* 39 · Pulsante Acquista con quantità integrata */
.buy { --b-fg: var(--navy); --b-bg: transparent; --b-line: var(--navy);
  display: inline-flex; align-items: stretch; height: 44px; max-width: 100%; border: 1.5px solid var(--b-line); border-radius: var(--radius); background: var(--b-bg); color: var(--b-fg); overflow: hidden; }
.buy--navy { --b-fg: var(--ivory); --b-bg: var(--navy); --b-line: var(--navy); }
.buy__qty { display: flex; align-items: center; border-right: 1px solid color-mix(in srgb, var(--b-line) 35%, transparent); }
.buy--navy .buy__qty { border-right-color: rgba(247, 241, 232, .22); }
.buy__qty button { display: grid; place-items: center; width: 30px; height: 100%; color: inherit; transition: background .25s; }
.buy__qty button:hover { background: color-mix(in srgb, var(--b-fg) 10%, transparent); }
.buy__qty button .icon { width: 13px; height: 13px; }
.buy__qty input { width: 26px; height: 100%; border: 0; padding: 0; background: none; color: inherit; text-align: center; font: 700 .86rem var(--sans); -moz-appearance: textfield; }
.buy__qty input::-webkit-outer-spin-button, .buy__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy__qty input:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.buy__cta { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65em; padding: 0 18px; color: inherit; font: 700 .64rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; overflow: hidden; isolation: isolate; transition: background .35s, color .35s; }
.buy__cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1s var(--ease-out); }
.buy__cta:hover::after { transform: translateX(120%); }
.buy--outline .buy__cta:hover { background: var(--navy); color: var(--ivory); }
.buy--navy .buy__cta:hover { background: var(--navy-3); }
.buy__cta .icon { width: 17px; height: 17px; }
.buy__cta .btn__spinner { width: 16px; height: 16px; }
.buy__cta.is-loading .btn__label, .buy__cta.is-loading .btn__icon { opacity: 0; }
.buy__cta.is-loading .btn__spinner { opacity: 1; animation-play-state: running; }
.buy__cta.is-added { background: var(--gold); color: var(--white); }
.buy.is-disabled { opacity: .45; }
.buy__cta[disabled] { cursor: not-allowed; }
.product-card--featured .buy { height: 48px; }
.product-card--featured .buy__cta { padding: 0 22px; }
.pdp-tile .buy, .acct-fav .buy { height: 40px; }
.pdp-tile .buy__cta, .acct-fav .buy__cta { padding: 0 14px; }
@media (max-width: 480px) {
  .buy__qty button { width: 28px; }
  .buy__cta { padding: 0 12px; letter-spacing: .14em; }
}
