/* ============================================================
   gods3dplan — HOME: hero, categorie, bestseller, linea delle garanzie
   Ritocchi sopra site.css / ui.css / design-cat.css (questo file si carica dopo).
   I testi secondari usano Bricolage Grotesque, la stessa famiglia dei titoli,
   alle dimensioni ottiche piccole: più carattere di un sans generico, stessa voce dei titoli.
   ============================================================ */
:root {
  --font-sub: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --ink-soft: rgba(21, 20, 15, .64);
}

/* ---------- etichette di sezione: tre «strati» al posto del trattino ---------- */
.hero .eyebrow,
#categorie .sec-kicker,
#bestseller .sec-kicker {
  font-family: var(--font-sub); font-variation-settings: "opsz" 14; font-feature-settings: "ss01";
}
#categorie .sec-kicker,
#bestseller .sec-kicker { gap: 11px; font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--ink-soft); }
#categorie .sec-kicker::before,
#bestseller .sec-kicker::before {
  width: 14px; height: 10px; border-radius: 0;
  background:
    linear-gradient(var(--cat), var(--cat)) 50% 0 / 6px 2px no-repeat,
    linear-gradient(color-mix(in srgb, var(--cat) 60%, transparent), color-mix(in srgb, var(--cat) 60%, transparent)) 50% 50% / 10px 2px no-repeat,
    linear-gradient(color-mix(in srgb, var(--cat) 32%, transparent), color-mix(in srgb, var(--cat) 32%, transparent)) 50% 100% / 14px 2px no-repeat;
}
#categorie .sec-title em,
#bestseller .sec-title em { font-variation-settings: "opsz" 96; }
#categorie .sec-link,
#bestseller .sec-link { font-family: var(--font-sub); font-variation-settings: "opsz" 16; font-weight: 600; letter-spacing: -.01em; }

/* ============================================================
   HERO
   ============================================================ */
.hero .eyebrow { gap: 10px; padding: 7px 15px 7px 12px; font-size: 13px; font-weight: 550; letter-spacing: .005em; color: var(--ink-2); }

/* sottotitolo: le passioni come una riga di parole, poi una frase */
.hero .hero-sub { display: grid; gap: 12px; max-width: 34em; margin-top: 26px; overflow: hidden; }
.hero-passioni {
  --sep: calc(5px + 1.56em);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-left: calc(-1 * var(--sep));
  font-family: var(--font-sub); font-variation-settings: "opsz" 24; font-weight: 600;
  font-size: clamp(1.02rem, 1.18vw, 1.16rem); line-height: 1.2; letter-spacing: -.012em; color: var(--ink);
}
.hero-passioni > span { position: relative; display: inline-flex; align-items: center; transition: color .6s var(--ease); }
/* tra una parola e l'altra un punto di filamento, nel colore della passione.
   Ogni parola ha il suo punto davanti; la riga parte spostata a sinistra di un separatore e il
   sottotitolo taglia ciò che esce: così nessuna riga, anche andando a capo, comincia con un punto. */
.hero-passioni > span::before {
  content: ""; flex: 0 0 auto; width: 5px; height: 5px; margin: 0 .78em; border-radius: 50%;
  background: color-mix(in srgb, var(--cat) 55%, rgba(21, 20, 15, .25)); transition: background .6s var(--ease);
}
.hero-passioni > span.is-on { color: var(--cat); }
.hero-sub-txt {
  font-size: clamp(.98rem, 1.06vw, 1.06rem); line-height: 1.6; letter-spacing: -.003em; color: var(--ink-soft); text-wrap: pretty;
}
.hero-sub-txt em { font-style: normal; font-weight: 600; color: var(--ink-2); }

/* pulsanti: stessa altezza, testo nella voce dei titoli */
.hero .hero-cta { gap: 12px; margin-top: 30px; }
.hero .hero-cta .btn {
  height: 58px; font-family: var(--font-sub); font-variation-settings: "opsz" 20; font-size: 15.5px; font-weight: 600; letter-spacing: -.012em;
}
.hero .hero-cta .btn-primary { padding: 0 8px 0 26px; gap: 16px; }
.hero .hero-cta .btn-primary .arr { width: 42px; height: 42px; }
.hero .hero-cta .btn-ghost { padding: 0 24px 0 8px; gap: 12px; }
.hero .hero-cta .btn-ghost .ic { width: 42px; height: 42px; }

/* riquadri delle garanzie: valore, poi una riga piccola ma leggibile */
.hero .hero-trust { gap: 10px; margin-top: 30px; }
.hero .hero-trust li {
  gap: 13px; padding: 14px 14px 16px 15px; border-radius: var(--r-md);
  background: linear-gradient(170deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .72) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 1px 2px rgba(60, 45, 25, .05), 0 14px 28px -22px rgba(60, 45, 25, .45);
}
.hero .hero-trust li::after { opacity: .7; }
.hero .hero-trust .t-ic { width: 28px; height: 28px; border-radius: var(--r-sm); }
.hero .hero-trust .t-ic svg { width: 15px; height: 15px; }
.hero .hero-trust li > span:last-child { gap: 6px; }
.hero .hero-trust b {
  font-family: var(--font-display); font-variation-settings: "opsz" 36; font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: -.035em;
}
.hero .hero-trust small {
  font-family: var(--font-sub); font-variation-settings: "opsz" 12; font-size: 12.5px; font-weight: 500;
  line-height: 1.25; letter-spacing: .004em; color: var(--ink-soft);
}

/* ---------- pallini dei pezzi: piccoli, sotto il palco (non sopra il modello) ---------- */
.hero .stage-pager .pager-dots,
.hero .is-fine .stage-pager .pager-dots {
  top: calc(100% + 12px); bottom: auto; gap: 0; padding: 0; background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: opacity .4s;
}
.hero .pager-dot { width: 16px; height: 16px; }
.hero .pager-dot i { width: 6px; height: 6px; border-radius: 3px; background: rgba(21, 20, 15, .22); }
.hero .pager-dot:hover i { background: rgba(21, 20, 15, .5); }
.hero .pager-dot.is-on { width: 26px; border-radius: var(--r-sm); }
.hero .pager-dot.is-on i { width: 16px; background: var(--ink); }
.hero .pager-dot.is-fine i { width: 6px; height: 6px; border-radius: 1.5px; background: transparent; box-shadow: inset 0 0 0 1.4px rgba(21, 20, 15, .4); }
.hero .pager-dot.is-fine.is-on { width: 16px; }
.hero .pager-dot.is-fine.is-on i { width: 7px; height: 7px; background: var(--cat); box-shadow: none; }
.hero .pager-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; }
/* con la foto reale i pallini restano: sono fuori dal palco */
.hero .is-real .stage-pager .pager-dots { opacity: 1; pointer-events: auto; }

/* ============================================================
   LINEA DELLE GARANZIE — ora è l'ultima fascia della home, prima del footer
   Scorre sempre: non si ferma mai al passaggio del mouse.
   ============================================================ */
main > .trust-line:last-child { margin-top: clamp(48px, 6vw, 96px); }
.trust-line .trust-view:hover .trust-track,
.trust-line .trust-view:focus-within .trust-track { animation-play-state: running; }
/* con la tastiera si ferma, così la voce a fuoco resta leggibile */
.trust-line .trust-view:has(:focus-visible) .trust-track { animation-play-state: paused; }
.trust-line .trust-txt b { font-family: var(--font-sub); font-variation-settings: "opsz" 18; font-weight: 600; letter-spacing: -.012em; }
.trust-line .trust-txt small { font-family: var(--font-sub); font-variation-settings: "opsz" 12; font-weight: 450; letter-spacing: .01em; }

/* ============================================================
   CATEGORIE — gli strati salgono solo intorno agli oggetti
   Le linee e la testina hanno la stessa scatola, scala e inquadratura della foto e una maschera
   ricavata dal ritaglio (assets/img/cat-<id>-strati.png, _strumenti/cat_maschere.py):
   dove ci sono gli oggetti e le basi la maschera è vuota, quindi non passano mai sopra.
   ============================================================ */
.cg-media .cg-strati,
.cg-media .cg-testina {
  inset: 0 0 auto 0; height: calc(100% + 2 * var(--dy, 8%));
  transform-origin: 50% 62%; transform: scale(1.02);
  -webkit-mask-size: cover; mask-size: cover;
  -webkit-mask-position: var(--ox, 50%) var(--oy, 58%); mask-position: var(--ox, 50%) var(--oy, 58%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.cg-media .cg-strati { z-index: 1; transition: clip-path 1.3s var(--ease), transform 1.4s var(--ease); }
/* la testina è una riga di luce che sale dentro la sua scatola mascherata, sotto il ritaglio */
.cg-media .cg-testina {
  z-index: 1; bottom: auto; opacity: 0; box-shadow: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .5) 38%, #fff 50%, rgba(255, 255, 255, .5) 62%, rgba(255, 255, 255, 0) 100%) 0 calc(100% + 40px) / 100% 18px no-repeat;
  transition: background-position 1.3s var(--ease), transform 1.4s var(--ease);
}
.cg-tile:hover .cg-media .cg-strati, .cg-tile:hover .cg-media .cg-testina { transform: scale(1.07); }
.cg-tile:hover .cg-testina, .cg-tile:focus-visible .cg-testina { bottom: auto; background-position: 0 -40px; }
@media (hover: none) {
  .cg-tile.in .cg-testina { bottom: auto; background-position: 0 -40px; transition-delay: calc(.35s + var(--i, 0) * .07s); }
}
.cg-tile[href$="cat=collect"] :is(.cg-strati, .cg-testina) { -webkit-mask-image: url(../img/cat-collect-strati.png); mask-image: url(../img/cat-collect-strati.png); }
.cg-tile[href$="cat=feste"] :is(.cg-strati, .cg-testina) { -webkit-mask-image: url(../img/cat-feste-strati.png); mask-image: url(../img/cat-feste-strati.png); }
.cg-tile[href$="cat=games"] :is(.cg-strati, .cg-testina) { -webkit-mask-image: url(../img/cat-games-strati.png); mask-image: url(../img/cat-games-strati.png); }
.cg-tile[href$="cat=sport"] :is(.cg-strati, .cg-testina) { -webkit-mask-image: url(../img/cat-sport-strati.png); mask-image: url(../img/cat-sport-strati.png); }
.cg-tile[href$="cat=cinema"] :is(.cg-strati, .cg-testina) { -webkit-mask-image: url(../img/cat-cinema-strati.png); mask-image: url(../img/cat-cinema-strati.png); }
.cg-tile[href$="cat=casa"] :is(.cg-strati, .cg-testina) { -webkit-mask-image: url(../img/cat-casa-strati.png); mask-image: url(../img/cat-casa-strati.png); }
.cg-tile[href$="cat=zodiac"] :is(.cg-strati, .cg-testina) { -webkit-mask-image: url(../img/cat-zodiac-strati.png); mask-image: url(../img/cat-zodiac-strati.png); }
.cg-tile[href$="cat=biz"] :is(.cg-strati, .cg-testina) { -webkit-mask-image: url(../img/cat-biz-strati.png); mask-image: url(../img/cat-biz-strati.png); }
.cg-tile[href$="cat=custom"] :is(.cg-strati, .cg-testina) { -webkit-mask-image: url(../img/cat-custom-strati.png); mask-image: url(../img/cat-custom-strati.png); }
@media (prefers-reduced-motion: reduce) { .cg-media .cg-strati, .cg-media .cg-testina { transition: none; } }

/* testi delle tessere */
.cg-desc { font-family: var(--font-sub); font-variation-settings: "opsz" 16; font-weight: 450; letter-spacing: -.004em; color: var(--ink-soft); }
.cg-conta { font-family: var(--font-sub); font-variation-settings: "opsz" 12; font-weight: 500; letter-spacing: .01em; }

/* ============================================================
   BESTSELLER
   Il N°1: la foto in una cornice propria, i testi e il prezzo sotto, su un pannello scuro.
   Niente scritte grandi sopra il pezzo.
   ============================================================ */
.bs-feat { gap: 0; padding: 8px; background: #1C1A15; }
.bs-feat::before {
  background: radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--cc) 34%, transparent) 0%, transparent 70%);
}
.bs-feat-media {
  position: relative; inset: auto; z-index: 0; display: block; flex: 1 1 auto; min-height: 300px; overflow: hidden;
  border-radius: 23px; background: #2A261F;
}
.bs-feat-media img { position: absolute; inset: 0; }
/* solo una leggera ombra in alto per l'etichetta, il resto della foto resta pulito */
.bs-feat-media::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 90px; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 12, 9, .3), rgba(14, 12, 9, 0));
}
.bs-feat-top { position: absolute; z-index: 1; top: 22px; left: 22px; right: 22px; pointer-events: none; }
.bs-feat-top > * { pointer-events: auto; }
.bs-feat-n {
  display: inline-flex; align-items: baseline; gap: 2px; padding: 7px 12px 6px; border-radius: var(--r-pill);
  background: rgba(21, 20, 15, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
  font-size: 17px; line-height: 1; letter-spacing: -.03em; text-shadow: none;
}
.bs-feat-n small { margin-right: 1px; font-family: var(--font-sub); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; vertical-align: baseline; opacity: .75; }
.bs-feat-body { gap: 8px; padding: 20px 14px 10px; }
.bs-kick { gap: 9px; font-family: var(--font-sub); font-variation-settings: "opsz" 12; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; color: rgba(255, 255, 255, .66); }
.bs-kick::before {
  width: 12px; height: 9px; border-radius: 0;
  background:
    linear-gradient(var(--cc), var(--cc)) 50% 0 / 5px 1.6px no-repeat,
    linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .55)) 50% 50% / 9px 1.6px no-repeat,
    linear-gradient(rgba(255, 255, 255, .3), rgba(255, 255, 255, .3)) 50% 100% / 12px 1.6px no-repeat;
}
.bs-feat-name { font-size: clamp(1.75rem, 2.5vw, 2.4rem); text-shadow: none; }
.bs-feat-desc { font-size: 14.5px; color: rgba(255, 255, 255, .66); }
.bs-feat-buy { margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.bs-feat-price { font-size: clamp(1.5rem, 1.9vw, 1.8rem); }
.bs-feat .prod-rate.real-tag { font-family: var(--font-sub); font-variation-settings: "opsz" 12; font-weight: 500; }
.bs-feat-add.btn { height: 50px; font-family: var(--font-sub); font-variation-settings: "opsz" 20; font-size: 15px; letter-spacing: -.01em; }

/* le sei card: foto pulita, numero discreto, testi ordinati */
.bs-card {
  padding: 6px; border-radius: var(--r-md); background: #fff;
  box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .05), 0 1px 2px rgba(60, 45, 25, .05), 0 18px 34px -28px rgba(60, 45, 25, .5);
}
.bs-card:hover { box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .04), 0 1px 2px rgba(60, 45, 25, .05), 0 30px 46px -30px rgba(60, 45, 25, .6); }
.bs-card-media { border-radius: var(--r-md); }
.bs-card-n {
  top: 8px; left: 8px; padding: 4px 7px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .78); font-size: 11.5px; letter-spacing: .02em; color: var(--ink-2);
}
.bs-card-info { padding: 12px 8px 4px; }
.bs-card .prod-cat.cat-tag {
  margin-bottom: 7px; padding: 0; background: none; box-shadow: none; gap: 6px;
  font-family: var(--font-sub); font-variation-settings: "opsz" 12; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-ink);
}
.bs-card .cat-tag-ic { width: 18px; height: 18px; }
.bs-card-name { font-size: 15.5px; line-height: 1.18; letter-spacing: -.022em; }
.bs-card-row { padding-top: 12px; }
.bs-card-price { font-size: 16.5px; letter-spacing: -.025em; }
.bs-card-add { width: 34px; height: 34px; }
.best-foot { font-family: var(--font-sub); font-variation-settings: "opsz" 14; letter-spacing: -.004em; }
#bestNote { color: var(--ink-soft); }
#bestseller .tab { font-family: var(--font-sub); font-variation-settings: "opsz" 16; font-weight: 600; letter-spacing: -.01em; }

/* ============================================================
   TELEFONO
   ============================================================ */
@media (max-width: 900px) {
  /* spazio per i pallini sotto il palco */
  .hero .hero-stage { margin-bottom: 20px; }
  .hero .hero-trust li { flex-direction: row; align-items: center; gap: 11px; padding: 12px 12px 13px; }
  .hero .hero-trust b { font-size: 18px; }
  .hero .hero-trust li > span:last-child { gap: 6px; }
}
@media (max-width: 600px) {
  .hero .hero-sub { gap: 10px; margin-top: 18px; }
  .hero-passioni { font-size: 1rem; }
  .hero-passioni { --sep: calc(4px + 1.2em); }
  .hero-passioni > span::before { margin: 0 .6em; width: 4px; height: 4px; }
  .hero-sub-txt { font-size: .97rem; }
  .hero .hero-cta .btn { height: 56px; font-size: 15px; }
  .hero .hero-trust { gap: 8px; }
  .hero .hero-trust li { padding: 11px 10px 12px; gap: 10px; border-radius: var(--r-md); }
  .hero .hero-trust .t-ic { width: 26px; height: 26px; border-radius: var(--r-sm); }
  .hero .hero-trust .t-ic svg { width: 14px; height: 14px; }
  .hero .hero-trust b { font-size: 17px; }
  .hero .hero-trust small { font-size: 12px; }
  .hero .stage-pager .pager-dots, .hero .is-fine .stage-pager .pager-dots { top: calc(100% + 7px); }
  .bs-feat-media { min-height: 260px; border-radius: var(--r-md); }
  .bs-feat-top { top: 18px; left: 18px; right: 18px; }
  .bs-feat-body { padding: 16px 10px 8px; }
  .bs-card .prod-cat.cat-tag { font-size: 11.5px; letter-spacing: .1em; }
  .bs-card-name { font-size: 14.5px; }
}

/* ============================================================
   RIFINITURE (passata qualità)
   ============================================================ */
/* scheda del pezzo sul palco: il nome non passa mai sotto al pulsante, si chiude con i puntini */
.hud-main { overflow: hidden; }
.hud-main .hud-name { max-width: 100%; }

/* tessere: l'etichetta lunga resta intera; sul telefono si accorcia invece di uscire dalla tessera */
.cg-conta { max-width: 100%; }
@media (max-width: 700px) {
  .cg-conta-x { display: none; }
}

/* dietro le quinte: i tre numeri restano su una riga ciascuno */
@media (max-width: 600px) {
  #sfere .bq-num li { padding-right: 10px; }
  #sfere .bq-num li + li { padding-left: 12px; }
  #sfere .bq-num span { font-size: 12px; white-space: nowrap; }
}

/* bestseller sul telefono: nomi e categorie interi, niente puntini a metà parola */
@media (max-width: 600px) {
  .bs-card .prod-cat.cat-tag { letter-spacing: .06em; max-width: 100%; }
  .bs-card-name { -webkit-line-clamp: 3; text-wrap: pretty; }
  .bs-feat-desc { -webkit-line-clamp: 4; }
}

/* focus da tastiera sulle parti scure (dietro le quinte, N°1 dei bestseller): anello chiaro */
#sfere :focus-visible,
.bs-feat :focus-visible { outline-color: #F3EFE6; }

/* etichette tecniche (timelapse, linguette di «Come nasce»): IBM Plex Mono come nel resto del sito */
#sfere .tl-top, #sfere .tl-n, #come-nasce .cn-tab-t b { font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace); }

/* nome del pezzo sul palco: su due righe invece di troncato (a qualsiasi larghezza: un nome che sta su una riga resta com'era) */
.hero .hud-main .hud-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; text-overflow: clip; text-wrap: balance;
}
@media (max-width: 600px) { .hero .hud-main .hud-name { line-height: 1.12; } }
/* telefono molto stretto (320): la colonna del nome è ~90 px; con 13,5 px e 4 px in meno di spazio «Stemma Roma con base» sta in due righe */
@media (max-width: 360px) { .hero .hud-card { gap: 10px; } .hero .hud-main .hud-name { font-size: 13.5px; } }

/* categorie: le ultime quattro tessere (Casa, Oroscopo, Aziende, Su misura) avevano oggetti piccoli e una luce
   più cupa delle prime cinque. Stessa inquadratura (scala dal basso, gli strati restano allineati perché si
   scala tutto il gruppo) e stessa luce morbida, senza immagini nuove. */
/* (29/11) le copertine di Casa, Oroscopo, Aziende e Su misura sono state rifatte nello stile delle altre: niente più filtri */
@media (min-width: 701px) {
  .cg-tile:nth-child(n + 6) .cg-media { transform: scale(1.1); transform-origin: 50% 100%; }
}

/* (dettagli) passioni sotto il titolo, telefono stretto: due parole per riga invece di «Collezionismo» da solo.
   Un elemento largo quanto la riga si mette tra la seconda e la terza parola; i punti a inizio riga restano nascosti come prima. */
@media (max-width: 430px) {
  .hero-passioni > span:nth-child(-n + 2) { order: 1; }
  .hero-passioni { row-gap: 0; }
  .hero-passioni::after { content: ""; order: 2; flex: 0 0 100%; height: 0; }
  .hero-passioni > span:nth-child(n + 3) { order: 3; margin-top: 4px; }
}

/* (dettagli) bestseller sui telefoni stretti: «Collezionismo» intero, con una spaziatura appena più stretta */
@media (max-width: 400px) {
  .bs-card .prod-cat.cat-tag { letter-spacing: .03em; gap: 5px; max-width: none; }
  .bs-card .cat-tag > span:last-child { overflow: visible; }
}
@media (max-width: 370px) {
  .bs-card .prod-cat.cat-tag { font-size: 11px; letter-spacing: .02em; }
}

/* (dettagli) riquadri delle garanzie: righe della stessa altezza anche quando una descrizione va a capo */
.hero .hero-trust { grid-auto-rows: 1fr; }
.hero .hero-trust small { text-wrap: balance; min-height: calc(2 * 1.25em); }

/* (dettagli) tessere piccole delle categorie sul telefono: una luce morbida sotto il titolo, così albero,
   cinepresa e luna non gli passano sopra; Videogames inquadrata un po' più a sinistra perché il joypad resti intero.
   --ox sposta insieme foto, ritaglio e maschera degli strati. */
@media (max-width: 600px) {
  .cg-tile:nth-child(n + 2) .cg-media::before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, rgba(255, 255, 255, .72)) 0%, color-mix(in srgb, var(--c) 5%, rgba(255, 255, 255, .44)) 30%, rgba(255, 255, 255, 0) 54%);
  }
  .cg-tile[href$="cat=games"] { --ox: 40%; }
  /* gli oggetti scendono di poco e si rimpiccioliscono appena; la parte alta della foto sfuma nel fondo della tessera */
  .cg-grid > .cg-tile.cg-tile:nth-child(n + 2) { --dy: 3%; }
  .cg-tile:nth-child(n + 2) .cg-media :is(img, .cg-strati, .cg-testina) { top: 20px; }
  .cg-tile:nth-child(n + 2) .cg-media .cg-foto { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34px); mask-image: linear-gradient(180deg, transparent 0, #000 34px); }
}

/* (dettagli 2) telefono, prima apertura: titolo, sottotitolo, bottoni e testata ci sono subito, senza dissolvenza;
   il riquadro della stampante mostra da subito la foto della camera di stampa invece del grigio */
@media (max-width: 900px) {
  .is-ready .nav, .is-ready .hero .eyebrow, .is-ready .hero-title .ln > span,
  .is-ready .hero .hero-sub, .is-ready .hero .hero-cta, .is-ready .hero .stage-bg { animation: none; }
  #hero .hero-stage, #hero .stage-bg { background-image: url(../fal/img/card-camera-media.webp); background-position: 50% 58%; background-size: cover; background-repeat: no-repeat; }
}

/* (dettagli 2) cambio pezzo: nome e prezzo rientrano insieme, nello stesso istante */
.hud-card.is-swap .hud-main > :nth-child(2) { animation-delay: 0s; }
.hud-card.is-swap .hud-add strong { animation: hudIn .75s var(--ease) backwards; }

/* (dettagli 2) tablet (701–900 px): le etichette restano dentro le tessere piccole («Preventivo» senza «gratuito»),
   i sottotitoli delle due grandi non passano sopra orsetto e albero, i titoli non toccano gli oggetti */
@media (min-width: 701px) and (max-width: 900px) {
  .cg-conta-x { display: none; }
  .cg-tile:nth-child(n + 6) .cg-conta { max-width: 100%; padding: 5px 8px; font-size: 11px; white-space: nowrap; }
  .cg-tile:nth-child(-n + 2) .cg-desc { max-width: 58%; }
  .cg-tile:nth-child(-n + 2) { --ox: 22%; }
  .cg-tile[href$="cat=feste"] { --ox: 4%; }
  .cg-tile[href$="cat=feste"] .cg-desc { max-width: 46%; }
  .cg-tile .cg-media :is(img, .cg-strati, .cg-testina) { top: 22px; }
  .cg-tile .cg-media .cg-foto { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 36px); mask-image: linear-gradient(180deg, transparent 0, #000 36px); }
  .cg-tile .cg-media::before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, rgba(255, 255, 255, .7)) 0%, color-mix(in srgb, var(--c) 5%, rgba(255, 255, 255, .42)) 30%, rgba(255, 255, 255, 0) 52%);
  }
}

/* (dettagli 2) sotto i 900 px il titolo dei bestseller prende tutta la riga e le linguette vanno sotto */
@media (max-width: 900px) {
  .best-head > div:first-child { flex: 1 1 100%; }
}

/* (dettagli 2) telefono: pallini e «Rivedi la stampa» restano piccoli ma si toccano su un’area di 44 px */
@media (max-width: 900px) {
  .hero .pager-dot, .hero .stage-replay { position: relative; }
  .hero .pager-dot::after { content: ""; position: absolute; inset: -14px 0; }
  .hero .stage-replay::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
}

/* (dettagli 3) contatore degli strati: sparisce mentre il nuovo modello arriva e ricompare al primo strato */
.hero .stage-print-txt { transition: opacity .5s var(--ease); }
.hero .hero-stage.is-strato-attesa .stage-print-txt { opacity: 0; }

/* (dettagli 3) foto della home: mentre arrivano si vede un fondo nella tinta del pezzo, poi la foto entra in dissolvenza */
.bs-card-media { background: color-mix(in srgb, var(--cc, var(--cat)) 12%, #F4EFE6); }
.bq-foto, .cn-tab-img { background-color: color-mix(in srgb, var(--tc, var(--cat)) 12%, #F4EFE6); }
.js :is(.bs-card-media, .bs-feat-media, .bq-foto, .cn-tab-img) img { transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.js :is(.bs-card-media, .bs-feat-media, .bq-foto, .cn-tab-img) img:not(.is-in) { opacity: 0; }

/* (giro 9) dita sul telefono: ogni comando piccolo della home si tocca su almeno 44 px, senza cambiare come appare */
@media (pointer: coarse), (max-width: 900px) {
  .hero .pager-btn, .bs-card-add, #categorie .sec-link, #bestseller .sec-link, .sm-addr-v { position: relative; }
  .hero .pager-btn::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
  .bs-card-add::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
  :is(#categorie, #bestseller) .sec-link::after, .sm-addr-v::after { content: ""; position: absolute; inset: -4px -2px; }
  .trust-line .trust-it { min-height: 44px; }
}

/* (giro 9) risposta al tocco: linguette, «aggiungi» e foto reale si premono un attimo */
@media (prefers-reduced-motion: no-preference) {
  #bestseller .tab:active, .hud-add:active, .bs-card-add:active, .real-btn:active, .hero-cats .cat-chip:active { scale: .96; }
}
