/* ============================================================
   gods3dplan — direzione A, versione raffinata
   Fondo caldo, superfici morbide, luce da studio, un colore
   per passione. Nessun contorno nero, nessuna ombra dura.
   ============================================================ */

/* carattere a spaziatura fissa del marchio (codici, contatori, didascalie tecniche): vedi --font-mono */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap");

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; }
/* l'anello segue la forma dell'elemento (pillola, cerchio, card): niente raggio imposto */
:focus-visible { outline: 2px solid var(--ring, var(--ink)); outline-offset: 3px; }
/* sui fondi scuri l'anello diventa chiaro: basta che il contenitore imposti --ring */
.announce, .footer, .custom, .cta-band, .panel.is-dark, .banner.is-dark, .stage-cta, .rev.is-top, .is-dark, .tl, .club-hero, .cs-hero { --ring: #fff; }
:focus:not(:focus-visible) { outline: none; }
a:not([class]):focus-visible { border-radius: 4px; }
body { text-rendering: optimizeLegibility; font-kerning: normal; font-optical-sizing: auto; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: color-mix(in srgb, var(--brand) 24%, #fff); color: var(--ink); }

:root {
  --lift: -4px; /* sollevamento unico delle card cliccabili al passaggio */
  --bg: #FAF6EE; --surface: #FFFFFF; --ink: #15140F; --ink-2: #3B392F; --muted: #716C60;
  --line: rgba(21, 20, 15, .11); --line-2: rgba(21, 20, 15, .06);
  --cat: #F0561D;
  --sub: #6E6759; /* seconda parte dei titoli (em): un solo grigio, 5,2:1 sul fondo avorio */
  --brand: #F0561D; /* colore del marchio: logo («3D» e faccia del dado) uguale su tutte le pagine */
  --pad: clamp(18px, 4vw, 56px); --max: 1480px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sh-sm: 0 1px 2px rgba(21, 20, 15, .05), 0 4px 14px -3px rgba(21, 20, 15, .07);
  --sh-md: 0 2px 4px rgba(21, 20, 15, .04), 0 20px 44px -14px rgba(21, 20, 15, .18);
  --sh-lg: 0 4px 10px rgba(21, 20, 15, .05), 0 40px 80px -30px rgba(21, 20, 15, .32);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* raggi: piccolo (chip, campi piccoli), medio (campi, miniature), grande (card, pannelli), molto grande (sezioni), pillola */
  --r-sm: 12px; --r-md: 18px; --r-lg: 28px; --r-xl: 44px; --r-pill: 999px;
  /* ombre: 1 appoggiato, 2 sollevato, 3 in primo piano (pannelli, menu) */
  --shadow-1: var(--sh-sm); --shadow-2: var(--sh-md); --shadow-3: var(--sh-lg);
  /* pulsanti: due taglie, stessa altezza e stesso corpo ovunque */
  --btn-h: 56px; --btn-fs: 15.5px; --btn-arr: 40px;
  --btn-h-lg: 62px; --btn-fs-lg: 16.5px; --btn-arr-lg: 46px;
}
@media (max-width: 520px) {
  :root { --btn-h: 54px; --btn-h-lg: 58px; --btn-arr-lg: 44px; }
}

.glass {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: var(--sh-sm);
}

/* ============================================================
   BARRA ANNUNCI + NAVIGAZIONE
   ============================================================ */
.announce {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px;
  padding: 9px var(--pad); background: var(--ink); color: #F4EFE4; font-size: 13px; font-weight: 500; text-align: center;
}
.announce i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.announce a { text-decoration: underline; text-decoration-color: rgba(244, 239, 228, .4); text-underline-offset: 3px; transition: text-decoration-color .3s; }
.announce a:hover { text-decoration-color: currentColor; }

.nav {
  position: sticky; top: 10px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: min(calc(100% - 2 * var(--pad)), calc(var(--max) - 2 * var(--pad))); margin: 12px auto 0;
  padding: 8px 8px 8px 20px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--line-2); box-shadow: var(--sh-sm);
  transition: box-shadow .5s var(--ease), background .5s;
}
.nav.is-stuck { box-shadow: var(--sh-md); background: rgba(255, 255, 255, .84); }
.logo { display: inline-flex; align-items: center; gap: 10px; padding-block: 10px; margin-block: -10px; }
.logo-mark { display: block; flex: none; width: 28px; height: 28px; transition: transform .7s var(--ease); }
.logo-mark .die-s { display: none; }
.die { display: block; width: 100%; height: 100%; overflow: visible; }
.die-hot { fill: var(--brand); stroke: var(--brand); }
.logo:hover .logo-mark { transform: rotate(120deg); }
@media (prefers-reduced-motion: reduce) { .logo-mark { transition: none; } .logo:hover .logo-mark { transform: none; } }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.035em; line-height: 1; }
.logo-word b { font-weight: 700; color: var(--brand); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 9px 15px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .3s, color .3s; }
.nav-links a:hover { background: rgba(21, 20, 15, .06); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-cta {
  margin-right: 6px; padding: 12px 19px; border-radius: var(--r-pill); background: var(--ink); color: #fff;
  font-size: 14.5px; font-weight: 600; line-height: 1; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }
.nav-icon { position: relative; flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; transition: background .3s; }
.nav-icon:hover { background: rgba(21, 20, 15, .06); }
.cart-n {
  position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center;
  border-radius: var(--r-sm); background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1;
}
.cart-n.bump { animation: bump .6s var(--ease); }
@keyframes bump { 35% { transform: scale(1.25); background: var(--cat); } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(22px, 3vw, 44px) var(--pad) 0;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px) clamp(28px, 4vw, 72px); align-items: center;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .6); font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); transition: background .6s; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cat) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
.hero-title {
  margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.7rem, 5.6vw, 5.8rem);
  line-height: .97; letter-spacing: -.04em; font-variation-settings: "opsz" 96;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero-title .ln > span { display: inline-block; }
.hero-title .accent { color: var(--cat); transition: color .7s var(--ease); }
.hero-sub { margin-top: 24px; max-width: 33em; font-size: clamp(1.02rem, 1.2vw, 1.17rem); line-height: 1.55; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 14px; border-radius: var(--r-pill); font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .35s, border-color .35s;
}
.btn-primary { padding: 8px 8px 8px 26px; background: var(--ink); color: #fff; box-shadow: var(--sh-md); }
.btn-primary:hover { box-shadow: var(--sh-lg); }
.btn .arr { position: relative; display: block; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); overflow: hidden; transition: background .45s var(--ease), color .45s var(--ease); }
.btn .arr::before, .btn .arr::after { content: "→"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; transition: transform .45s var(--ease); }
.btn .arr::after { transform: translateX(-140%); }
.btn:hover .arr { background: var(--cat); color: #fff; }
.btn:hover .arr::before { transform: translateX(140%); }
.btn:hover .arr::after { transform: none; }
.btn-ghost { padding: 20px 24px; border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; border-color: transparent; box-shadow: var(--sh-sm); }

.hero-trust { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; margin-top: 36px; }
.hero-trust li { display: flex; flex-direction: column; gap: 3px; padding: 1px clamp(12px, 1.4vw, 22px); border-left: 1px solid var(--line); }
.hero-trust li:first-child { padding-left: 0; border-left: 0; }
.hero-trust b { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.025em; line-height: 1.1; }
.hero-trust span { max-width: 9.5em; font-size: 13px; line-height: 1.3; color: var(--muted); }

/* ---------- palco ---------- */
.hero-stage { position: relative; min-height: clamp(420px, 45vw, 650px); border-radius: var(--r-xl); isolation: isolate; }
.stage-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit;
  background: #EDE5D6; box-shadow: inset 0 0 0 1px var(--line-2);
}
/* fotografia dello studio: leggermente sfocata, si muove appena con il cursore per dare profondità */
.stage-photo {
  position: absolute; top: -4%; left: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; object-position: center 80%;
  filter: blur(2.5px) saturate(.9);
  transform: translate(calc(var(--px, 0) * -1.1%), calc(var(--py, 0) * -.8%)); transition: transform 1s var(--ease);
}
/* velo chiaro in alto per le etichette + tinta del colore della categoria */
.stage-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(250, 246, 238, .66) 0%, rgba(250, 246, 238, .26) 46%, rgba(250, 246, 238, 0) 74%); }
.stage-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--cat); mix-blend-mode: soft-light; opacity: .26; transition: background-color .9s var(--ease); }
#stage { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.is-ready #stage { opacity: 1; }
.stage-top { position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.hud-replay, .stage-avail { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; line-height: 1; }
.hud-replay { opacity: 0; transform: translateY(-4px); transition: opacity .5s, transform .6s var(--ease), background .3s; }
.is-done .hud-replay { opacity: 1; transform: none; pointer-events: auto; }
.hud-replay:hover { background: #fff; }
.hud-replay svg { transition: transform .7s var(--ease); }
.hud-replay:hover svg { transform: rotate(-180deg); }
.stage-avail { margin-left: auto; }
.stage-avail i { width: 7px; height: 7px; border-radius: 50%; background: #12A150; box-shadow: 0 0 0 3px rgba(18, 161, 80, .18); }
.hud-hint { position: absolute; z-index: 2; top: 27px; left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 500; color: rgba(21, 20, 15, .5); opacity: 0; transition: opacity .6s; pointer-events: none; white-space: nowrap; }
.is-done .hud-hint { opacity: 1; }
.hud { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; pointer-events: none; }
.hud-product { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 16px 13px; border-radius: var(--r-md); pointer-events: auto; transition: background .3s, transform .6s var(--ease), box-shadow .6s var(--ease); }
.hud-product:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--sh-md); }
.hud-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.hud-price { font-size: 13.5px; color: var(--muted); line-height: 1.2; }
.hud-price .go { display: inline-block; color: var(--ink); transition: transform .5s var(--ease); }
.hud-product:hover .go { transform: translateX(4px); }
.hud-layer { flex: 0 0 auto; min-width: 122px; padding: 11px 14px 13px; border-radius: var(--r-md); }
.hud-layer-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; color: var(--muted); }
.hud-layer-num { font-variant-numeric: tabular-nums; }
.hud-layer b { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.hud-bar { display: block; height: 3px; margin-top: 8px; border-radius: 2px; overflow: hidden; background: rgba(21, 20, 15, .1); }
.hud-bar i { display: block; height: 100%; background: var(--cat); transform-origin: left center; transform: scaleX(0); transition: background .6s; }

/* ---------- selettore categorie ---------- */
.hero-cats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-width: 0; }
.cats-label { font-size: 14px; font-weight: 500; color: var(--muted); }
.cats-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 13px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .5); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background .35s, border-color .35s, color .35s, transform .6s var(--ease), box-shadow .5s var(--ease);
}
.cat-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--chip); transition: transform .5s var(--ease); }
.cat-chip:hover { background: #fff; border-color: transparent; box-shadow: var(--sh-sm); transform: translateY(-2px); }
.cat-chip:hover i { transform: scale(1.35); }
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; transform: none; }

/* ---------- ingresso ---------- */
@keyframes lineUp { from { transform: translateY(112%); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes stageIn { from { opacity: 0; transform: scale(.975); } }
@keyframes navIn { from { opacity: 0; transform: translateY(-14px); } }
.is-ready .nav { animation: navIn 1s var(--ease) backwards; }
.is-ready .eyebrow { animation: rise 1s var(--ease) .05s backwards; }
.is-ready .hero-title .ln > span { animation: lineUp 1.15s var(--ease) .12s backwards; }
.is-ready .hero-title .ln + .ln > span { animation-delay: .22s; }
.is-ready .hero-sub { animation: rise 1s var(--ease) .4s backwards; }
.is-ready .hero-cta { animation: rise 1s var(--ease) .5s backwards; }
.is-ready .hero-trust { animation: rise 1s var(--ease) .6s backwards; }
.is-ready .stage-bg { animation: stageIn 1.4s var(--ease) .1s backwards; }
.is-ready .stage-avail { animation: rise 1s var(--ease) .9s backwards; }
.is-ready .hud > * { animation: rise 1s var(--ease) .8s backwards; }
.is-ready .hud > * + * { animation-delay: .9s; }
.is-ready .cats-label { animation: rise 1s var(--ease) .7s backwards; }
.is-ready .cat-chip { animation: rise .9s var(--ease) backwards; animation-delay: calc(.74s + var(--i, 0) * 45ms); }

/* ============================================================
   NASTRO
   ============================================================ */
.ticker {
  margin-top: clamp(30px, 3.6vw, 52px); padding: 17px 0; border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker-track { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; animation: ticker 64s linear infinite; will-change: transform; }
.ticker span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 1.45vw, 1.28rem); letter-spacing: -.015em; color: var(--ink-2); }
.ticker i { width: 7px; height: 7px; border-radius: 50%; background: #F0561D; }
.ticker i:nth-of-type(4n+2) { background: #2B50E8; }
.ticker i:nth-of-type(4n+3) { background: #0C9B6A; }
.ticker i:nth-of-type(4n) { background: #E8436F; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   SEZIONI
   ============================================================ */
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 124px) var(--pad) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 24px; margin-bottom: clamp(26px, 3vw, 42px); }
.sec-kicker { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sec-kicker::before { content: ""; width: 20px; height: 2px; border-radius: 1px; background: var(--cat); transition: background .6s; }
.sec-title { max-width: 17em; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.9vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; font-variation-settings: "opsz" 96; text-wrap: balance; }
.sec-title em { color: var(--sub); }
.sec-link { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.sec-link .circ { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; transition: background .35s, color .35s, border-color .35s, transform .6s var(--ease); }
.sec-link:hover .circ { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateX(4px); }

@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: reveal 1.1s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 6) * 55ms); }
/* le card entrano dopo il titolo della loro sezione: il titolo ha indice 0, le card partono da 1 */
.reveal.in:is(.prod, .bs-card, .cg-tile, .rev, .sm-card) { animation-delay: calc((min(var(--i, 0), 5) + 1) * 55ms); }

/* ============================================================
   CATEGORIE — bento
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 17vw, 256px); gap: 16px; }
.cat-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 22px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--c) 13%, #F6F1E7);
  transition: background-color .6s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease);
}
.cat-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s;
  background: radial-gradient(52% 62% at var(--mx, 68%) var(--my, 18%), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 72%);
}
.cat-tile:hover::before { opacity: 1; }
.cat-tile:hover { transform: translateY(-5px); box-shadow: var(--sh-md); background-color: color-mix(in srgb, var(--c) 21%, #F6F1E7); }
.cat-tile img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover;
  object-position: var(--ox, 70%) var(--oy, 60%); transform-origin: var(--ox, 70%) var(--oy, 60%);
  --tx: 6%; --ty: -10%;
  transform: translate(var(--tx), var(--ty)) scale(var(--z, 1.3)); transition: transform 1.4s var(--ease);
}
.cat-tile:hover img { transform: translate(var(--tx), var(--ty)) scale(calc(var(--z, 1.3) * 1.06)); }
.cat-tile:nth-child(1) img { --tx: 0%; --ty: -3%; }
.cat-tile:nth-child(8) img { --tx: 0%; --ty: -4%; }
.cat-tile strong { display: block; font-family: var(--font-display); font-weight: 650; font-size: clamp(1.22rem, 1.75vw, 1.65rem); line-height: 1.05; letter-spacing: -.03em; }
.cat-tile small { display: block; margin-top: 5px; font-size: 13px; color: rgba(21, 20, 15, .62); }
.cat-tile .desc { display: none; margin-top: 8px; max-width: 16em; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.cat-tile .arrow {
  position: absolute; top: 16px; left: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .82); box-shadow: var(--sh-sm); font-size: 15px;
  transition: background .35s, color .35s, transform .7s var(--ease);
}
.cat-tile:hover .arrow { background: var(--ink); color: #fff; transform: rotate(-45deg); }

.cat-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; padding: 30px 32px; }
.cat-tile:nth-child(1) strong { font-size: clamp(2.2rem, 4.2vw, 3.9rem); letter-spacing: -.04em; }
.cat-tile:nth-child(1) small { font-size: 14px; margin-top: 10px; }
.cat-tile:nth-child(1) .desc, .cat-tile:nth-child(8) .desc { display: block; }
.cat-tile:nth-child(1) .arrow { top: 24px; left: 28px; width: 44px; height: 44px; font-size: 18px; }

/* tessera "Su misura": scura, è la porta d'ingresso ai preventivi */
.cat-tile:nth-child(8) { grid-column: span 2; background: var(--ink); color: #fff; }
.cat-tile:nth-child(8)::before { background: radial-gradient(52% 90% at var(--mx, 76%) var(--my, 10%), rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 72%); }
.cat-tile:nth-child(8):hover { background-color: #000; }
.cat-tile:nth-child(8) strong { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.cat-tile:nth-child(8) small, .cat-tile:nth-child(8) .desc { color: rgba(255, 255, 255, .68); }
.cat-tile:nth-child(8) .arrow { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.cat-tile:nth-child(8):hover .arrow { background: #fff; color: var(--ink); }

/* ============================================================
   PRODOTTI
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 20px; }
.prod { position: relative; --ar: 1.3333; } /* come le foto (3:4): il pezzo si vede intero, mai tagliato */
.prod-media {
  position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 1 / var(--ar); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--c) 11%, #F5F0E6);
  transition: background-color .7s var(--ease), transform .7s var(--ease), box-shadow .7s var(--ease);
}
.prod-media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 62% at var(--mx, 50%) var(--my, 14%), rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 72%);
}
.prod:hover .prod-media { transform: translateY(var(--lift)); box-shadow: var(--sh-md); }
.prod-media img { width: 100%; margin-top: 2%; transition: transform 1.1s var(--ease), opacity .3s; }
.prod:hover .prod-media img { transform: scale(1.06); }
.prod-media img.is-swapping { opacity: 0; }
.prod-badge { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 7px 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; line-height: 1; }
.prod-add {
  position: absolute; z-index: 2; top: 0; right: 14px; margin-top: calc(100% * var(--ar) - 62px); display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); font-size: 22px; line-height: 1;
  transition: background .35s, color .35s, transform .6s var(--ease), box-shadow .6s var(--ease);
}
.prod:hover .prod-add { transform: translateY(var(--lift)); }
.prod-add:hover { background: var(--ink); color: #fff; box-shadow: var(--sh-md); }
.prod-add span { display: block; transition: transform .6s var(--ease); }
.prod-add:hover span { transform: rotate(90deg); }
.prod-add.added { background: #12A150; color: #fff; }
.prod-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 3px 12px; padding-top: 15px; }
.prod-cat { grid-column: 1 / -1; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.prod-name { font-family: var(--font-display); font-weight: 650; font-size: 18.5px; line-height: 1.15; letter-spacing: -.025em; }
.prod-price { font-weight: 600; font-size: 16.5px; white-space: nowrap; }
.prod-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 9px; }
.prod-rate { font-size: 13px; color: var(--muted); }
.prod-rate .star { color: #E39A00; }
.prod-rate b { font-weight: 600; color: var(--ink); }
.swatches { display: flex; gap: 7px; }
.swatch { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--s); box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .12); transition: transform .5s var(--ease), box-shadow .3s; }
.swatch::after { content: ""; position: absolute; inset: -6px; }
.swatch:hover { transform: scale(1.18); }
.swatch.is-on { box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .12), 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }

/* ============================================================
   FOOTER PROVVISORIO
   ============================================================ */
.foot-mini {
  max-width: var(--max); margin: clamp(64px, 8vw, 120px) auto 0; padding: 22px var(--pad) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-trust li { padding-inline: 16px; }
  .hero-trust span { font-size: 12.5px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .hero-copy { display: contents; }
  .eyebrow { order: 1; justify-self: start; }
  .hero-title { order: 2; font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .hero-sub { order: 3; }
  .hero-stage { order: 4; min-height: min(104vw, 480px); margin-top: 28px; border-radius: var(--r-lg); }
  .hero-cats { order: 5; margin-top: 22px; }
  .hero-cta { order: 6; margin-top: 24px; }
  .hero-trust { order: 7; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; margin-top: 30px; }
  .hero-trust li { padding: 0 16px 0 0; border-left: 0; }
  .hero-trust span { max-width: none; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero-cta .btn-ghost { justify-content: center; }
  .cats-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding: 4px var(--pad) 10px; }
  .cats-list::-webkit-scrollbar { display: none; }
  .cat-chip { flex: 0 0 auto; }
  .hud-hint { display: none; }
  .stage-top, .hud { left: 12px; right: 12px; }
  .stage-top { top: 12px; }
  .hud { bottom: 12px; gap: 8px; }
  .hud-product { padding: 10px 13px 11px; border-radius: var(--r-md); }
  .hud-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud-layer { min-width: 104px; padding: 10px 12px 11px; border-radius: var(--r-md); }
  .sec-head { grid-template-columns: 1fr; }
  .sec-link { justify-self: start; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 43vw, 236px); gap: 12px; }
  .cat-tile { padding: 16px; border-radius: var(--r-md); }
  .cat-tile .arrow { top: 12px; left: 14px; width: 32px; height: 32px; }
  .cat-tile:nth-child(1) { grid-row: span 1; padding: 18px 20px; }
  /* card piccole su mobile: titolo su etichetta in vetro, sempre leggibile sopra la foto */
  .cat-tile:not(:nth-child(1)):not(:nth-child(8)) { padding: 10px; }
  .cat-tile:not(:nth-child(1)):not(:nth-child(8)) .cat-body {
    align-self: flex-start; max-width: 100%; padding: 8px 12px 9px; border-radius: var(--r-sm);
    background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .7);
  }
  .cat-tile:not(:nth-child(1)):not(:nth-child(8)) strong { font-size: 1.08rem; }
  .cat-tile:not(:nth-child(1)):not(:nth-child(8)) small { margin-top: 2px; font-size: 12px; }
  .cat-tile:not(:nth-child(1)):not(:nth-child(8)) img { --tx: 8%; --ty: -12%; }
  .cat-tile:nth-child(1) strong { font-size: clamp(1.9rem, 8.4vw, 2.8rem); }
  .cat-tile:nth-child(1) .arrow { top: 12px; left: 14px; width: 32px; height: 32px; font-size: 15px; }
  .cat-tile:nth-child(1) .desc, .cat-tile:nth-child(8) .desc { display: none; }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .prod-media { border-radius: var(--r-md); }
  .prod-name { font-size: 16.5px; }
  .prod-info { grid-template-columns: 1fr; }
  .prod-meta { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .announce i, .announce > span { display: none; }
  .nav { padding-left: 16px; }
  .nav-cta { display: none; }
  .logo-word { font-size: 20px; }
  .stage-avail { font-size: 12px; padding: 8px 11px; }
  .hud-replay { font-size: 0; gap: 0; padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
}

/* ============================================================
   SU MISURA — preventivo indicativo dal vivo
   ============================================================ */
[id] { scroll-margin-top: 92px; }
.custom { max-width: var(--max); margin: clamp(64px, 8vw, 124px) auto 0; padding: 0 var(--pad); }
.custom-in {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  gap: clamp(28px, 5vw, 84px); align-items: center; padding: clamp(26px, 5vw, 78px); border-radius: var(--r-xl); background: var(--ink); color: #fff;
}
.custom-in::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(58% 72% at 90% -6%, color-mix(in srgb, var(--cat) 40%, transparent), transparent 70%),
    radial-gradient(46% 60% at -4% 106%, rgba(255, 255, 255, .08), transparent 70%);
}
.custom-in::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 13px);
  -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 100%); mask-image: linear-gradient(180deg, transparent 35%, #000 100%);
}
.custom-photo {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right center; opacity: .85;
  -webkit-mask-image: linear-gradient(90deg, transparent 16%, #000 68%); mask-image: linear-gradient(90deg, transparent 16%, #000 68%);
}
.custom .sec-kicker { color: rgba(255, 255, 255, .6); }
.custom .sec-title { margin-top: 14px; }
.custom .sec-title em { display: block; color: rgba(255, 255, 255, .42); }
.custom-lead { margin-top: 20px; max-width: 30em; font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.55; color: rgba(255, 255, 255, .72); }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.path {
  padding: 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-md); background: rgba(255, 255, 255, .04); text-align: left;
  transition: background .35s, border-color .35s, color .35s, transform .6s var(--ease);
}
.path:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.path.is-on { background: #fff; border-color: #fff; color: var(--ink); }
.path-ic { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .1); transition: background .35s, color .35s; }
.path.is-on .path-ic { background: color-mix(in srgb, var(--cat) 15%, #fff); color: var(--cat); }
.path strong { display: block; font-family: var(--font-display); font-weight: 650; font-size: 18px; letter-spacing: -.02em; line-height: 1.15; }
.path small { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: rgba(255, 255, 255, .62); transition: color .35s; }
.path.is-on small { color: var(--muted); }

.steps { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: rgba(255, 255, 255, .82); }
.steps b { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; font-size: 12.5px; font-weight: 600; }

.quote {
  padding: clamp(20px, 2.4vw, 32px); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: var(--sh-lg);
}
.quote-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-bottom: 20px; }
.quote-head h3 { font-family: var(--font-display); font-weight: 650; font-size: 22px; letter-spacing: -.025em; }
.quote-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.quote-live i { width: 7px; height: 7px; border-radius: 50%; background: #2ED47A; animation: pingG 2.4s var(--ease) infinite; }
@keyframes pingG { 0% { box-shadow: 0 0 0 0 rgba(46, 212, 122, .5); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.q-row { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.q-row legend, .q-row > label { display: flex; justify-content: space-between; width: 100%; margin-bottom: 9px; padding: 0; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .62); }
.q-row output { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.opts { display: flex; flex-wrap: wrap; gap: 7px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-pill); font-size: 14px; font-weight: 500; line-height: 1.2; transition: background .3s, color .3s, border-color .3s; }
.opt:hover span { background: rgba(255, 255, 255, .09); }
.opt input:checked + span { background: #fff; border-color: #fff; color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-md); background: rgba(255, 255, 255, .07); }
.seg .opt span { padding: 9px 6px 10px; border: 0; border-radius: var(--r-sm); text-align: center; }
.seg small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; opacity: .62; }

.quote input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 0; background: none; cursor: pointer; --p: 5%; }
.quote input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, .18) var(--p)); }
.quote input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); transition: transform .4s var(--ease); }
.quote input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
.quote input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, .18) var(--p)); }
.quote input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--sh-sm); }

.quote-result { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 22px; padding: 18px 20px; border-radius: var(--r-md); background: #fff; color: var(--ink); }
.qr-label { display: block; font-size: 12.5px; color: var(--muted); }
.quote-result strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 2.2vw, 2.05rem); line-height: 1.15; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-result strong.tick { animation: tick .5s var(--ease); }
@keyframes tick { from { opacity: .35; transform: translateY(5px); } }
.quote-result p { grid-column: 1 / -1; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.quote-send, .news { display: flex; gap: 8px; }
.quote-send { margin-top: 12px; }
.quote-send input, .news input {
  flex: 1 1 170px; min-width: 0; height: 58px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 16px; transition: border-color .3s, background .3s;
}
.quote-send input::placeholder, .news input::placeholder { color: rgba(255, 255, 255, .5); }
.quote-send input:focus, .news input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-light { padding: 8px 8px 8px 22px; background: #fff; color: var(--ink); }
.btn-light .arr { background: var(--ink); color: #fff; }
.quote-fine, .news-fine { margin-top: 12px; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
/* messaggi dei moduli: scuri sui fondi chiari, chiari sui fondi scuri (contrasto AA in entrambi i casi) */
.is-err { color: #B3261E !important; }
.is-ok { color: #0B6232 !important; }
:is(.footer, .sm, .custom, .is-dark, .club-hero, .cs-hero, .announce, .cta-band:not(:last-child)) .is-err { color: #FF8F7A !important; }
:is(.footer, .sm, .custom, .is-dark, .club-hero, .cs-hero, .announce, .cta-band:not(:last-child)) .is-ok { color: #5BE39A !important; }
.quiz-fine.is-ok { color: #0E8A47 !important; }
.quiz-fine.is-err { color: #C2272D !important; }

/* ============================================================
   TROVA‑REGALO
   ============================================================ */
.finder-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
.finder-copy .sec-title { margin-top: 14px; }
.finder-lead { margin-top: 20px; max-width: 31em; font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.55; color: var(--ink-2); }
.finder-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.finder-points li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.finder-points li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; transition: background-color .6s;
  background: var(--cat) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E");
}

.quiz { display: flex; flex-direction: column; min-height: 452px; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-md); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.quiz-step { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quiz-back { font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .3s; }
.quiz-back:hover { color: var(--ink); }
.quiz-bar { display: block; height: 3px; margin-top: 14px; border-radius: 2px; overflow: hidden; background: rgba(21, 20, 15, .08); }
.quiz-bar i { display: block; height: 100%; background: var(--cat); transform-origin: left center; transform: scaleX(.25); transition: transform .9s var(--ease), background .6s; }
.quiz-body { flex: 1; display: flex; flex-direction: column; margin-top: 26px; transition: opacity .25s, transform .55s var(--ease); }
.quiz-body.is-out { opacity: 0; transform: translateX(-16px); }
.quiz-body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.05; letter-spacing: -.03em; }
.quiz-sub { margin-top: 8px; font-size: 14px; color: var(--muted); }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.quiz-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 19px 18px; border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 16px; font-weight: 600; text-align: left; line-height: 1.2;
  transition: border-color .3s, transform .6s var(--ease), box-shadow .6s var(--ease);
}
.quiz-opt::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .5s var(--ease); }
.quiz-opt:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.quiz-opt:hover::after { opacity: 1; transform: none; }
.quiz-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.quiz-pick .ph { display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--r-md); background: color-mix(in srgb, var(--c) 12%, #F5F0E6); }
.quiz-pick img { width: 100%; transition: transform 1s var(--ease); }
.quiz-pick:hover img { transform: scale(1.07); }
.quiz-pick b { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 650; font-size: 15px; line-height: 1.15; letter-spacing: -.02em; }
.quiz-pick span:not(.ph) { font-size: 13px; color: var(--muted); }
.quiz-send { display: flex; gap: 8px; margin-top: auto; padding-top: 22px; }
.quiz-send input { flex: 1; min-width: 0; height: 58px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .3s; }
.quiz-send input:focus { outline: none; border-color: var(--ink); }
.quiz-fine { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.quiz-again { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   RECENSIONI
   ============================================================ */
.rev-score { display: flex; align-items: center; gap: 14px; }
.rev-score strong { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.rev-score > span { display: flex; flex-direction: column; gap: 3px; }
.stars { color: #E39A00; font-size: 15px; letter-spacing: 2px; }
.rev-score small { font-size: 13px; color: var(--muted); }
.rev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rev { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 2vw, 28px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-sm); transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.rev:hover { transform: translateY(var(--lift)); box-shadow: var(--sh-md); }
.rev blockquote { margin: 0; font-size: clamp(1.02rem, 1.22vw, 1.15rem); font-weight: 500; line-height: 1.5; letter-spacing: -.01em; }
.rev footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rev .av { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--c) 15%, #F5F0E6); color: var(--c); font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.rev b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.rev small { font-size: 12.5px; color: var(--muted); }
.rev-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; isolation: isolate; overflow: hidden; margin-top: clamp(64px, 8vw, 124px); border-radius: 44px 44px 0 0; background: var(--ink); color: #fff; }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(48% 62% at -2% 104%, color-mix(in srgb, var(--cat) 34%, transparent), transparent 70%),
    radial-gradient(40% 50% at 102% -4%, rgba(255, 255, 255, .08), transparent 70%);
}
.footer-in { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--pad) 26px; container-type: inline-size; }
.foot-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.foot-news h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3.3rem); line-height: 1; letter-spacing: -.035em; font-variation-settings: "opsz" 96; }
.foot-news > p:not(.news-fine) { margin-top: 14px; max-width: 26em; color: rgba(255, 255, 255, .68); }
.news { max-width: 480px; margin-top: 22px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-cols h3 { margin-bottom: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.foot-cols a {
  display: block; width: fit-content; padding: 5px 0; font-size: 15px; color: rgba(255, 255, 255, .86);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 3px) / 0 1px no-repeat; transition: background-size .55s var(--ease), color .3s;
}
.foot-cols a:hover { background-size: 100% 1px; color: #fff; }
.foot-mid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: 15px; }
.foot-contact a:not(.foot-wa) { color: rgba(255, 255, 255, .86); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 4px; }
.foot-wa { display: inline-flex; align-items: center; gap: 9px; padding: 13px 19px; border-radius: var(--r-pill); background: #1FAF5A; color: #fff; font-weight: 600; line-height: 1; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.foot-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(31, 175, 90, .7); }
.foot-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-pay li { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-sm); font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .75); }

/* il marchio gigante è fatto di strati e si "stampa" dal basso quando entra in vista */
.foot-word {
  margin-top: clamp(26px, 4vw, 54px); padding-bottom: .14em; font-family: var(--font-display); font-weight: 700; font-size: 18.8vw; font-size: 20.3cqw;
  line-height: .82; letter-spacing: -.035em; text-align: center; white-space: nowrap; font-variation-settings: "opsz" 96; user-select: none;
  background: repeating-linear-gradient(180deg, #FFFFFF 0 .05em, #A9A69E .05em .068em);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  clip-path: inset(100% 0 0 0); transition: clip-path 2.2s var(--ease);
}
.foot-word b {
  font-weight: 700; background: repeating-linear-gradient(180deg, var(--cat) 0 .05em, color-mix(in srgb, var(--cat) 62%, #15140F) .05em .068em);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.foot-word.in { clip-path: inset(0 0 0 0); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 6px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: #fff; }

/* ---------- responsive nuove sezioni ---------- */
@media (max-width: 900px) {
  .custom-in { grid-template-columns: minmax(0, 1fr); border-radius: var(--r-lg); }
  .finder-in { grid-template-columns: minmax(0, 1fr); }
  .quiz { min-height: 0; border-radius: var(--r-lg); }
  .rev-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sec-head .rev-score { justify-self: start; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer { border-radius: 30px 30px 0 0; }
}
@media (max-width: 520px) {
  .paths { grid-template-columns: 1fr; }
  .quote { border-radius: var(--r-lg); }
  .quote-send, .news, .quiz-send { flex-direction: column; }
  .quote-send input, .news input, .quiz-send input { flex: 0 0 auto; width: 100%; }
  .quote-send .btn, .news .btn, .quiz-send .btn { justify-content: space-between; }
  .quote-result { grid-template-columns: 1fr; gap: 12px; }
  .quote-result strong { font-size: 1.6rem; }
  .quote-result p { margin-top: 2px; }
  .quiz-opts { grid-template-columns: 1fr; }
  .quiz-opt { padding: 16px; }
  .seg small { font-size: 11.5px; }
}

/* ============================================================
   COME NASCE — video del processo
   ============================================================ */
.making-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); align-items: center; }
.making-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r-xl); background: #E9E1D2; box-shadow: var(--sh-md); }
.making-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.making-chip { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; line-height: 1; }
.making-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cat); transition: background .6s; animation: ping 2.4s var(--ease) infinite; }
.making-copy .sec-title { margin-top: 14px; }
.making-lead { margin-top: 20px; max-width: 30em; font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.55; color: var(--ink-2); }
.specs { margin: 28px 0 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(112px, .42fr) 1fr; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1; letter-spacing: -.03em; }
.specs dd { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) {
  .making-in { grid-template-columns: minmax(0, 1fr); }
  .making-media { border-radius: var(--r-lg); }
}

/* prodotti reali: la fotografia riempie la card */
.prod.is-photo .prod-media img { margin-top: 0; height: 100%; object-fit: cover; }
.prod.is-photo .prod-media::before { display: none; }

/* (dettagli) niente parole sole a fine riga: i titoli e i nomi brevi si dividono in righe pari,
   i paragrafi evitano l'ultima parola isolata. Cambia solo dove va a capo, non misure né impaginazione;
   :where() lascia vincere ogni regola già scritta. */
:where(h1, h2, h3, h4, .prod-name, .bs-card-name, .cg-name) { text-wrap: balance; }
:where(p, .page-lead, .sec-lead, figcaption, blockquote) { text-wrap: pretty; }

/* (dettagli 3) stampa: solo il contenuto (checkout, assistenza), su fondo chiaro e leggibile */
@media print {
  .announce, #announce, .nav, #nav, header.site-head, .footer, #footer, .skip, .scrim, .cart, .search, .club-chip, .mega, .trust-line, .doc-nav, #live { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; animation: none !important; transition: none !important; }
  main, main * { background: transparent !important; color: #111 !important; border-color: #ccc !important; }
  .reveal, .js .reveal:not(.in) { opacity: 1 !important; transform: none !important; }
  a { color: inherit; text-decoration: underline; }
  img, svg { max-width: 100% !important; }
  h1, h2, h3 { break-after: avoid; }
  /* le risposte delle domande frequenti si stampano aperte */
  details::details-content { display: block !important; content-visibility: visible !important; }
  details > summary { list-style: none; font-weight: 700; }
}
