/* ==========================================================================
   AFFINITY CMS — sistema di stile del sito pubblico

   L'idea: un sito di affiliazione non vende un catalogo, vende un giudizio.
   Amazon ha il catalogo; tu hai l'opinione. Quindi la pagina è impaginata come
   una rivista che vende, non come un negozio: display in grazie, corpo neutro,
   filetti sottili al posto delle ombre, e il gradiente del marchio usato una
   volta sola per volta, dove serve davvero.

   Tutti i colori arrivano dalle variabili scritte da Services/Theme.php.
   ========================================================================== */

/* ------------------------------------------------------------------ font */

/* Ospitati qui e non su un CDN: nessuna richiesta esterna, nessun indirizzo IP
   dei visitatori che finisce a terzi, e la pagina si disegna anche offline. */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/Barlow-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/Barlow-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/Barlow-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/Barlow-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/Barlow-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/Barlow-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/BarlowCondensed-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/BarlowCondensed-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/BarlowCondensed-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/BarlowCondensed-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/InstrumentSerif-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/InstrumentSerif-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/InstrumentSerif-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('../fonts/InstrumentSerif-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/PublicSans-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/PublicSans-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/PublicSans-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/PublicSans-600-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/PublicSans-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/PublicSans-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
/* I titoli portano il carattere del sito. Il display è in grazie perché il
   valore di un sito di affiliazione è il giudizio, non l'assortimento: la
   tipografia deve dire «qui qualcuno ha scelto», non «qui c'è tutto». */
/* Titoli in grottesca stretta: pesano 600, non 400, e reggono misure grandi
   senza mangiarsi la riga. Una condensata a 56 px occupa quanto una normale a
   44, quindi la scala qui sotto è più alta di quella di un carattere neutro. */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 5.6vw, 62px); }
h2 { font-size: clamp(28px, 3.8vw, 42px); }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Etichette e occhielli: stesso carattere dei titoli, maiuscolo spaziato. È la
   voce che nel riferimento numera, data e classifica ogni cosa. */
.eyebrow, .kicker, .label-xs {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}

/* ------------------------------------------------------- cornice tecnica --- */

/* Il segno distintivo del sistema: un filetto sottile e quattro crocette di
   registro ai vertici, come su un disegno esecutivo. Le crocette sono disegnate
   con un solo pseudo-elemento — otto strati di sfondo invece di quattro <i>
   vuoti in ogni scheda del sito. */
.bp {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.bp::after {
  content: ''; position: absolute; inset: -5px; pointer-events: none; z-index: 2;
  --seg: linear-gradient(var(--mark, rgba(0,0,0,.55)), var(--mark, rgba(0,0,0,.55)));
  background-image: var(--seg), var(--seg), var(--seg), var(--seg),
                    var(--seg), var(--seg), var(--seg), var(--seg);
  background-repeat: no-repeat;
  background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px,
                   11px 1px, 1px 11px, 11px 1px, 1px 11px;
  background-position:
    left top 5px,     left 5px top,
    right top 5px,    right 5px top,
    left bottom 5px,  left 5px bottom,
    right bottom 5px, right 5px bottom;
}
.bp { --mark: var(--line-mark); }
.bp-flat::after { display: none; }
.bp-accent { --mark: var(--accent-2); }

/* ------------------------------------------------- segnaposto tratteggiato --- */

/* Dove manca la foto non si mette un'icona grigia in mezzo al vuoto: si mette
   un retino, che dichiara «qui va un'immagine» invece di fingere che ci sia. */
.ph {
  position: relative; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg,
    var(--surface) 0 6px, var(--surface-2) 6px 12px);
  color: var(--muted);
}
.ph-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; opacity: .7;
}

/* I numeri incolonnati — prezzi, contatori — restano allineati. */
.num, .p-now, .p-was, .card-now, .card-was, .rc-now, .rc-was, .stat-v {
  font-variant-numeric: tabular-nums;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: var(--brand-ink);
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

.ic { flex: none; }
.ic.flip { transform: rotate(180deg); }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (max-width: 640px) { .wrap { padding-inline: 14px; } }

.main { min-height: 50vh; }

/* L'intestazione di un archivio: titolo grande, una riga di contesto, e una
   linea che chiude. La sezione sotto parte senza altro spazio in mezzo. */
.page-head {
  margin-block: clamp(22px, 3.4vw, 38px) 0;
  padding-bottom: clamp(16px, 2.2vw, 24px);
  border-bottom: 1px solid var(--line);
}
.page-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.02em;
  line-height: 1.05; text-wrap: balance;
}
.page-sub { color: var(--muted); margin-top: 10px; font-size: 16.5px; max-width: 62ch; line-height: 1.55; }
.page-head + .sec { padding-top: clamp(22px, 2.6vw, 34px); }

/* ------------------------------------------------------------- admin bar */

.admin-bar {
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: var(--brand-ink); font-size: 13px;
}
.admin-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 7px; }
.admin-bar-in span { display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.admin-bar nav { display: flex; gap: 16px; }
.admin-bar nav a { font-weight: 600; opacity: .9; }
.admin-bar nav a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 640px) { .admin-bar-in > span { display: none; } }

/* ----------------------------------------------------------------- header */

/* Non una barra di chrome scura come ogni e-commerce dal 2010, ma una testata:
   fondo chiaro, marchio in grazie, un filetto sottile a chiudere. Il gradiente
   del logo compare qui in due pixel di altezza — è la firma, e basta una volta. */

.hdr { z-index: 90; background: var(--bg); }
.hdr.is-sticky { position: sticky; top: 0; }
/* Un filetto, non una barra colorata: la testata chiude come chiude ogni
   sezione della pagina. */
.hdr::after { content: ''; display: block; height: 1px; background: var(--line); }

/* La striscia in cima: fondo scuro, maiuscoletto, due o tre informazioni che
   valgono per tutto il sito. Si spegne dalle impostazioni. */
.topbar {
  background: var(--accent-900); color: #F2F2F3;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
}
.topbar-in {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  flex-wrap: wrap; padding-block: 7px; text-align: center;
}
.topbar-sep { opacity: .45; }
.topbar-alt { opacity: .72; }
/* Su schermo stretto la striscia andava a capo: resta la frase, il conteggio
   si legge comunque in ogni elenco. */
@media (max-width: 560px) { .topbar-sep, .topbar-alt { display: none; } }
.hdr-main { background: var(--bg); }
.hdr-in {
  display: flex; align-items: center; gap: 22px;
  min-height: 76px; padding-block: 14px;
}

/* Il pulsante del menu compare quando le voci in riga non ci stanno più:
   sopra i 1080 px il menu è visibile e il pulsante sarebbe solo un doppione. */
.hdr-burger {
  display: none; color: var(--text); padding: 8px; margin-left: -8px;
  border-radius: var(--radius);
}
.hdr-burger:hover { background: var(--surface); }
@media (max-width: 1080px) { .hdr--classic .hdr-burger { display: inline-flex; } }
@media (max-width: 760px) { .hdr-burger { display: inline-flex; } }

/* marchio ----------------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  background: var(--accent-2); color: var(--accent-2-on);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  border-radius: 0;
}
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; letter-spacing: .02em; line-height: 1;
  text-transform: uppercase;
  white-space: nowrap; color: var(--text);
}
.brand-logo { max-height: 40px; width: auto; object-fit: contain; }

/* ricerca ----------------------------------------------------------------- */

/* Un riquadro a filetto, come ogni altro contenitore del sistema. */
.search { flex: 1 1 auto; max-width: 460px; position: relative; }
.search-box {
  display: flex; align-items: center;
  background: transparent; padding-inline: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s ease;
}
.search:focus-within .search-box { border-color: var(--accent-2); }
.search-box input {
  flex: 1; border: 0; background: transparent; color: var(--text);
  padding: 9px 4px; font-size: 15px; min-width: 0;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { outline: none; }
.search-btn {
  background: transparent; color: var(--muted);
  padding: 8px 0 8px 8px; display: grid; place-items: center;
  transition: color .16s ease;
}
.search-btn:hover { color: var(--accent-2); }

.search-sug {
  position: absolute; inset-inline: 0; top: calc(100% + 10px);
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(11,21,51,.13);
  overflow: hidden; z-index: 20; max-height: 70vh; overflow-y: auto;
  border-radius: 2px;
}
.sug-item {
  display: flex; align-items: center; gap: 13px; padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft); width: 100%; text-align: left;
}
.sug-item:last-child { border-bottom: 0; }
.sug-item:hover, .sug-item.is-active { background: var(--surface); }
.sug-item img { width: 44px; height: 44px; object-fit: contain; background: var(--surface); flex: none; }
.sug-noimg { width: 44px; height: 44px; background: var(--surface); flex: none; }
.sug-t { font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.sug-p { font-size: 13.5px; color: var(--price); font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.sug-all {
  display: block; padding: 12px 15px; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2-ink); background: var(--surface);
}

.search-big { max-width: 560px; margin-top: 22px; }
.search-big .search-box { padding-inline: 14px; }
.search-big input { padding: 13px 4px; font-size: 16px; }
.search-hint { color: var(--muted); margin-bottom: 12px; }

/* azioni ------------------------------------------------------------------ */

.hdr-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.hdr-chan, .hdr-deals {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--text); border: 1px solid transparent;
  transition: border-color .16s ease, color .16s ease;
}
.hdr-chan:hover, .hdr-deals:hover { border-color: var(--line); }
.hdr-deals { color: var(--accent-2-ink); }
.hdr-deals .ic { color: var(--accent-2); }
.hdr-chan .ic { color: var(--muted); }
@media (max-width: 1080px) { .hdr-chan span, .hdr-deals span { display: none; } }

/* -------------------------------------------------- disposizioni header --- */

/* Centrata: marchio al centro della prima riga, ricerca su una riga sua sotto.
   Regge meglio un logo largo, perché non deve dividersi lo spazio. */
.hdr--centered .hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.hdr--centered .hdr-burger { grid-column: 1; justify-self: start; }
.hdr--centered .hdr-claim {
  grid-column: 1; justify-self: start; align-self: center;
  max-width: 22ch; font-size: 11px; font-weight: 600; line-height: 1.4;
  color: var(--muted); text-transform: uppercase; letter-spacing: .14em;
}
@media (max-width: 980px) { .hdr--centered .hdr-claim { display: none; } }
.hdr--centered .brand { grid-column: 2; justify-self: center; }
.hdr--centered .hdr-actions { grid-column: 3; justify-self: end; }
.hdr--centered .brand-name { font-size: 36px; }
.hdr--centered .hdr-searchrow { padding-bottom: 18px; }
.hdr--centered .search-wide { max-width: 520px; margin-inline: auto; }
.hdr--centered .hdr-nav-in { justify-content: center; }
@media (max-width: 700px) {
  .hdr--centered .brand-name { font-size: 27px; }
  .hdr--centered .hdr-in { grid-template-columns: auto 1fr auto; }
  .hdr--centered .hdr-searchrow { padding-bottom: 12px; }
  .hdr--centered .search-wide { max-width: none; }
}

/* Compatta: una riga sola, senza barra delle categorie. */
.hdr--compact .hdr-in { min-height: 62px; }
.hdr--compact .search { max-width: 320px; }
.hdr--compact .brand-name { font-size: 25px; }
.hdr--compact .hdr-nav { display: none; }

/* --------------------------------------------------------------- nav row */

/* Voci in tondo, alla misura del testo: un indice, non una barra di pulsanti.
   Nella disposizione classica stanno in riga col marchio; nelle altre due
   occupano una riga sotto, scorrevole su schermo stretto. */
.hdr-nav { background: var(--bg); }
.hdr-nav:not(.hdr-nav--inline) { border-top: 1px solid var(--line); }
.hdr-nav-in {
  display: flex; align-items: center; gap: var(--space-6);
  overflow-x: auto; scrollbar-width: none; padding-block: 11px;
}
.hdr-nav-in::-webkit-scrollbar { display: none; }
.hdr-nav--inline {
  display: flex; align-items: center; gap: var(--space-6);
  margin-left: var(--space-6); min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.hdr-nav--inline::-webkit-scrollbar { display: none; }
.nav-all, .nav-link {
  font-size: 14px; color: var(--text); white-space: nowrap;
  transition: color .16s ease;
}
.nav-all { display: inline-flex; align-items: center; gap: 7px; }
.nav-all .ic { display: none; }
.nav-link:hover, .nav-all:hover { color: var(--accent-ink); }
.nav-all.is-active, .nav-link.is-active { color: var(--accent-ink); font-weight: 500; }
.nav-deals { color: var(--accent-ink); font-weight: 500; }

/* Nella classica la ricerca è un riquadro stretto a destra, non un campo che
   si prende tutta la riga. */
.hdr--classic .hdr-in { gap: var(--space-4); }
.hdr--classic .search { flex: 0 1 240px; margin-left: auto; }
@media (max-width: 1080px) {
  .hdr--classic .hdr-nav--inline { display: none; }
  .hdr--classic .search { flex: 1 1 auto; }
}
/* Su telefono la riga non ci sta: marchio e azioni restano in alto, la ricerca
   prende una riga sua e le categorie tornano a scorrere sotto. Prima il campo
   di ricerca sfondava il bordo destro dello schermo. */
@media (max-width: 760px) {
  .hdr--classic .hdr-in { flex-wrap: wrap; row-gap: var(--space-3); }
  .hdr--classic .brand { margin-right: auto; }
  .hdr--classic .search { flex: 1 1 100%; order: 3; margin-left: 0; min-width: 0; }
  .hdr--classic .hdr-nav--inline {
    display: flex; order: 4; flex: 1 1 100%; margin-left: 0;
    padding-top: var(--space-3); border-top: 1px solid var(--line);
  }
}

/* ------------------------------------------------------------------ hero */

/* Nessun pannello scuro a gradiente: una dichiarazione tipografica e, accanto,
   il prodotto del momento presentato come una scelta della redazione. */
/* ================================================================= PULSANTI */

/* Nel sistema di riferimento un pulsante è un rettangolo con un filetto: niente
   angoli tondi, niente ombre, testo nel carattere dei titoli. Cambia solo il
   riempimento — pieno per l'azione principale, vuoto per tutto il resto. */

.btn-primary, .btn-ghost, .btn-buy, .btn-generic, .btn-secondary, .btn-sticky {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; line-height: 1.2; letter-spacing: .01em;
  padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-align: center;
  transition: background .16s ease, border-color .16s ease, filter .16s ease;
}

/* L'azione principale è l'azzurro del sistema — non l'inchiostro — e porta le
   crocette di registro come ogni altro oggetto disegnato della pagina. */
.btn-primary {
  position: relative;
  background: var(--accent); color: var(--accent-on); border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary::after {
  content: ''; position: absolute; inset: -5px; pointer-events: none;
  --seg: linear-gradient(var(--line-mark), var(--line-mark));
  background-image: var(--seg), var(--seg), var(--seg), var(--seg),
                    var(--seg), var(--seg), var(--seg), var(--seg);
  background-repeat: no-repeat;
  background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px,
                   11px 1px, 1px 11px, 11px 1px, 1px 11px;
  background-position:
    left top 5px, left 5px top, right top 5px, right 5px top,
    left bottom 5px, left 5px bottom, right bottom 5px, right 5px bottom;
}
/* Dentro un fondo scuro le crocette sparirebbero: lì il pulsante resta liscio. */
.nl-band .btn-primary::after, .hero-card .btn-primary::after { display: none; }

.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }

/* Il pulsante di acquisto è l'unico punto caldo della pagina, ed è l'unico che
   può permettersi di essere grosso. Sotto i 48 px di altezza si sbaglia il tocco. */
.btn-buy {
  width: 100%; padding: 16px 24px; font-size: 18px;
  min-height: 56px; letter-spacing: .01em;
  flex-direction: column; gap: 1px;
  background: var(--cta); color: var(--cta-ink); border-color: var(--cta);
}
.btn-buy:hover { filter: brightness(.95); }
.btn-buy-label { line-height: 1.15; }
.btn-buy-sub { font-family: var(--font); font-size: 12px; font-weight: 500; opacity: .8; letter-spacing: 0; }
.btn-outline { background: transparent !important; border-width: 1px; }

.btn-secondary {
  width: 100%; margin-top: var(--space-2); border-color: var(--line);
  color: var(--text); font-size: 14px; min-height: 44px;
}
.btn-secondary:hover { background: var(--surface); border-color: var(--muted); }

/* Il pulsante dei blocchi: le misure stanno qui, una volta sola.
   Averle anche più avanti nel foglio significava che vinceva l'ultima. */
.btn-generic { padding: 11px 20px; border-color: var(--line); }
.btn-generic.size-sm { padding: 8px 15px; font-size: 13px; min-height: 36px; }
.btn-generic.size-md { padding: 11px 20px; font-size: 15px; }
.btn-generic.size-lg { padding: 14px 28px; font-size: 17px; min-height: 52px; }
.btn-generic.is-full { width: 100%; }
.btn-generic:hover { filter: brightness(.96); }

/* ==================================================================== EROE */

/* Titolo grande in grottesca stretta, tre numeri che misurano la selezione, e
   accanto la scheda della settimana dentro una cornice tecnica. La sezione
   chiude con un filetto a tutta larghezza, come ogni sezione del sistema. */

.hero { border-bottom: 1px solid var(--line); }
.hero-in {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(28px, 4vw, 54px);
  padding-block: clamp(34px, 5vw, 60px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink);
}
.hero-kicker .ic { display: none; }
.hero-title {
  font-size: clamp(38px, 5vw, 58px); line-height: 1.02;
  letter-spacing: -.02em; max-width: 16ch; margin: 0;
}
.hero-text { font-size: 16px; line-height: 1.6; max-width: 48ch; color: var(--muted); }
.hero-text strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions > * { width: 100%; justify-content: center; }
}

/* I numeri della selezione: valore in grande nel carattere dei titoli,
   etichetta in maiuscoletto sotto. */
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: var(--space-4) var(--space-6);
  margin: var(--space-2) 0 0; padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-v {
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.hero-stat-v .ic { color: var(--accent-2); }
.hero-stat-k {
  margin: 0; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* la scheda della settimana */
.hero-card {
  align-self: center; display: flex; flex-direction: column;
  position: relative; border: 1px solid var(--line); color: var(--text);
}
.hero-card::after {
  content: ''; position: absolute; inset: -5px; pointer-events: none; z-index: 2;
  --seg: linear-gradient(var(--line-mark), var(--line-mark));
  background-image: var(--seg), var(--seg), var(--seg), var(--seg),
                    var(--seg), var(--seg), var(--seg), var(--seg);
  background-repeat: no-repeat;
  background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px,
                   11px 1px, 1px 11px, 11px 1px, 1px 11px;
  background-position:
    left top 5px, left 5px top, right top 5px, right 5px top,
    left bottom 5px, left 5px bottom, right bottom 5px, right 5px bottom;
}
.hero-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line);
}
.hero-card-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2-ink);
}
.hero-off {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  padding: 3px 9px; background: var(--accent-2); color: var(--accent-2-on);
  font-variant-numeric: tabular-nums;
}
.hero-card-media {
  position: relative; aspect-ratio: 16 / 10; background: var(--surface);
  display: grid; place-items: center; padding: 22px; overflow: hidden;
}
.hero-card-media img { width: 100%; height: 100%; object-fit: contain; }
.hero-card-body {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-4); border-top: 1px solid var(--line);
}
.hero-card-title { font-size: 26px; line-height: 1.1; margin: 0; }
.hero-card-text { font-size: 13px; line-height: 1.6; color: var(--muted); }
.hero-card-foot { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.hero-now {
  font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1;
  color: var(--price); font-variant-numeric: tabular-nums;
}
.hero-was { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.hero-card-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; padding: 9px 18px;
  background: var(--cta); color: var(--cta-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.hero-card:hover .hero-card-cta { filter: brightness(.95); }
.hero-card:hover .hero-card-title { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ product grid */

/* auto-fill e non auto-fit: con due prodotti in catalogo le schede restano
   larghe quanto le altre invece di gonfiarsi fino a riempire la riga. */
.pgrid {
  display: grid; gap: var(--space-8) var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.pgrid.cols-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.pgrid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 520px) {
  .pgrid, .pgrid.cols-2, .pgrid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 12px; }
}

/* Una scheda non è una scatola: è una voce. Immagine su fondo tenue, titolo in
   grazie, prezzo incolonnato, e un filetto che compare al passaggio invece di
   un bordo sempre acceso e un'ombra sempre presente. */
/* Una scheda è un oggetto tecnico: cornice a filetto con le crocette di
   registro, foto in alto, e sotto la riga il blocco dei dati. Lo sconto è
   l'unica pastiglia piena, e sta nell'angolo come un timbro. */
.card {
  display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--line); background: transparent;
}
.card::after {
  content: ''; position: absolute; inset: -5px; pointer-events: none; z-index: 2;
  --seg: linear-gradient(var(--line-mark), var(--line-mark));
  background-image: var(--seg), var(--seg), var(--seg), var(--seg),
                    var(--seg), var(--seg), var(--seg), var(--seg);
  background-repeat: no-repeat;
  background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px,
                   11px 1px, 1px 11px, 11px 1px, 1px 11px;
  background-position:
    left top 5px,     left 5px top,
    right top 5px,    right 5px top,
    left bottom 5px,  left 5px bottom,
    right bottom 5px, right 5px bottom;
}
.card-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--surface);
  display: grid; place-items: center; padding: 16px; overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card-media img { transform: scale(1.03); }
.card-noimg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg,
    var(--surface) 0 6px, var(--surface-2) 6px 12px);
}

.card-off {
  position: absolute; top: 0; left: 0; z-index: 1;
  background: var(--accent-2); color: var(--accent-2-on);
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; padding: 3px 9px; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.card-badge {
  position: absolute; top: 0; right: 0; z-index: 1;
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--font-display); font-weight: 600;
  font-size: 12px; padding: 3px 9px;
  letter-spacing: .1em; text-transform: uppercase;
}

.card-body {
  padding: var(--space-3); display: flex; flex-direction: column; flex: 1;
  gap: var(--space-2); border-top: 1px solid var(--line);
}
.card-brand {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2-ink);
}
.card-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; line-height: 1.15; letter-spacing: -.01em;
}
.card-title a { display: block; }
.card:hover .card-title a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.card-rating { display: flex; align-items: center; gap: 7px; }
.card-rating-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card-excerpt { font-size: 13px; line-height: 1.55; color: var(--muted); }

.card-price { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: baseline; gap: 8px; }
.card-now {
  font-family: var(--font-display); font-weight: 600;
  font-size: 24px; line-height: 1; color: var(--price); letter-spacing: -.01em;
}
.card-was { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.card-price-empty { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Nel sistema di riferimento ogni scheda porta il suo pulsante: la riga di
   chiusura che dice dove si va a finire. */
.card-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: var(--space-2); padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line); border-radius: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--text); transition: background .16s ease, border-color .16s ease;
}
.card-cta:hover, .card:hover .card-cta { background: var(--surface); border-color: var(--muted); }

/* ------------------------------------------------------------------ stelle */

/* Due file di stelle sovrapposte: quella piena viene tagliata alla percentuale
   del voto. Serve larghezza fissa, altrimenti la fila sotto sborda e si vedono
   più stelle di quante ce ne siano. */
.stars {
  position: relative; display: inline-block; flex: none;
  font-size: 15px; line-height: 1; letter-spacing: .08em;
  white-space: nowrap; vertical-align: middle;
}
.stars-bg, .stars-fg { display: block; }
.stars-bg { color: var(--line); }
.stars-fg {
  position: absolute; inset-block: 0; left: 0;
  overflow: hidden; color: var(--star); white-space: nowrap;
}
.stars-sm { font-size: 13px; }
.stars-n { margin-left: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------- intestazioni --- */

/* Il titolo di sezione in grazie, il collegamento a destra in maiuscoletto:
   due voci diverse, non due link uguali. */
.sec { padding-block: clamp(34px, 4vw, 54px); }
/* Ogni sezione chiude con un filetto: è il ritmo del sistema di riferimento,
   dove il foglio è diviso in fasce e non in schede che galleggiano. */
.sec::after {
  content: ''; display: block; height: 1px; background: var(--line);
  margin-top: clamp(34px, 4vw, 54px);
  margin-inline: calc(var(--pad, 0px) * -1);
}
.sec:last-of-type::after { display: none; }
.sec + .sec { padding-top: 0; }
.sec + .sec::before { content: none; }
.hero + .sec, .hero + * .sec:first-child { padding-top: clamp(36px, 4vw, 56px); }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: clamp(22px, 2.6vw, 34px);
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.sec-title {
  display: flex; align-items: baseline; gap: 11px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -.012em; line-height: 1.1;
}
.sec-title .ic { color: var(--accent-2); align-self: center; }
.sec-more, .sec-count {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 7px;
  transition: color .16s ease, gap .16s ease;
}
.sec-more:hover { color: var(--accent-2-ink); gap: 11px; }

/* ------------------------------------------------------------ category tiles */

.catrail {
  display: grid; gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
/* Ogni categoria è una tessera tecnica: nome, quanti prodotti, e la riga che
   dice dove porta. La cornice con le crocette è la stessa delle schede. */
.cattile {
  --tile: var(--accent-2);
  background: transparent; padding: var(--space-4);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  position: relative; transition: background .16s ease;
}
.cattile::after {
  content: ''; position: absolute; inset: -5px; pointer-events: none;
  --seg: linear-gradient(var(--line-mark), var(--line-mark));
  background-image: var(--seg), var(--seg), var(--seg), var(--seg),
                    var(--seg), var(--seg), var(--seg), var(--seg);
  background-repeat: no-repeat;
  background-size: 11px 1px, 1px 11px, 11px 1px, 1px 11px,
                   11px 1px, 1px 11px, 11px 1px, 1px 11px;
  background-position:
    left top 5px, left 5px top, right top 5px, right 5px top,
    left bottom 5px, left 5px bottom, right bottom 5px, right 5px bottom;
}
.cattile:hover { background: var(--surface); }

.cattile img { width: 40px; height: 40px; object-fit: cover; flex: none; }
.cattile-ic {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center; color: var(--tile);
}
.cattile-body { min-width: 0; flex: 1; display: block; }
/* La riga di chiusura in maiuscoletto, come nel riferimento: dice dove porta
   la tessera senza aggiungere un pulsante. */
.cattile-go {
  margin-top: var(--space-3); display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2-ink);
  transition: gap .18s ease;
}
.cattile:hover .cattile-go { gap: 10px; }
/* La tinta scelta per la categoria colora la riga di chiusura, non l'icona:
   così una categoria verde e una viola non spezzano la tavolozza della pagina. */
.cattile-ic { color: var(--accent-ink); }
.cattile-name {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -.01em; line-height: 1.12;
}
.cattile-n {
  display: block;
  font-size: 10.5px; color: var(--muted); margin-top: 3px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* chips ------------------------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 2px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { background: var(--surface); border-color: var(--muted); }
.chip.is-active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip-n {
  font-size: 10.5px; font-weight: 700; opacity: .6;
  font-variant-numeric: tabular-nums;
}

/* toolbar ----------------------------------------------------------------- */

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.toolbar-count {
  color: var(--muted); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
}
.toolbar-count strong { color: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.toolbar-page { opacity: .7; }
.toolbar-sort { display: flex; align-items: center; gap: 10px; }
.toolbar-sort label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
}
.toolbar-sort select {
  border: 0; border-bottom: 1px solid var(--text); background: transparent; color: var(--text);
  padding: 6px 22px 6px 2px; border-radius: 0; font-size: 14.5px; font-weight: 600; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235B6784' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.toolbar-sort select:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* pagination -------------------------------------------------------------- */

.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.pager-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 2px; border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 700; background: var(--bg);
  text-transform: uppercase; letter-spacing: .12em;
  transition: border-color .16s ease;
}
.pager-btn:hover:not(.is-off) { border-color: var(--text); }
.pager-btn.is-off { opacity: .4; cursor: default; }
.pager-nums { display: flex; align-items: center; gap: 4px; }
.pager-num {
  min-width: 40px; height: 40px; padding-inline: 10px;
  display: grid; place-items: center; border-radius: 2px;
  font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.pager-num:hover { background: var(--surface); }
.pager-num.is-active { background: var(--brand); color: var(--brand-ink); }
.pager-gap { color: var(--muted); padding-inline: 2px; }
@media (max-width: 560px) { .pager-btn span { display: none; } }

/* empty state ------------------------------------------------------------- */

.empty {
  text-align: center; padding: clamp(44px, 8vw, 84px) 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty .ic { color: var(--muted); opacity: .4; }
.empty h2, .empty h3 { font-size: clamp(22px, 2.4vw, 27px); margin-top: 8px; }
.empty p { color: var(--muted); max-width: 44ch; }
.empty .btn-primary { margin-top: 12px; }

/* ============================================================ PRODUCT PAGE */

.preview-bar {
  background: #FFF4CE; color: #6B4E00; font-size: 14px;
  padding: 10px 20px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.preview-bar a { font-weight: 700; text-decoration: underline; }

.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-block: 22px 4px; color: var(--muted);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.crumbs a:hover { color: var(--accent-2); text-decoration: underline; }
.crumbs-sep { opacity: .5; display: inline-flex; }
.crumbs-now { color: var(--text); }

.pdp { padding-block: 26px 12px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 52px); }
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; gap: 26px; } }

.pdp-noimg {
  aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: 0;
  background: repeating-linear-gradient(135deg,
    var(--surface) 0 6px, var(--surface-2) 6px 12px);
  display: grid; place-items: center; align-content: center; gap: 10px;
  color: var(--muted); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-display);
}

/* gallery ----------------------------------------------------------------- */

.gal { display: grid; gap: 14px; position: sticky; top: 88px; }
.gal-left { grid-template-columns: 72px minmax(0, 1fr); }
.gal-below { grid-template-columns: 1fr; }
.gal-grid { grid-template-columns: 1fr; }
/* Una foto sola: nessuna colonna per le miniature, altrimenti l'immagine
   principale ci finisce dentro e si riduce a 72 px. */
.gal.gal-single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) { .gal-left { grid-template-columns: 1fr; } .gal { position: static; } }

.gal-thumbs {
  display: flex; flex-direction: column; gap: 9px;
  max-height: 520px; overflow-y: auto; scrollbar-width: thin;
}
.gal-left .gal-thumbs { order: -1; }
@media (max-width: 640px) {
  .gal-thumbs { flex-direction: row; overflow-x: auto; max-height: none; order: 2; }
}
.gal-below .gal-thumbs, .gal-grid .gal-thumbs { flex-direction: row; overflow-x: auto; max-height: none; }

.gal-thumb {
  width: 68px; height: 68px; flex: none; padding: 5px;
  border: 1px solid var(--line); border-radius: 0; background: var(--surface);
  transition: border-color .16s ease, background .16s ease;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal-thumb:hover { border-color: var(--muted); }
.gal-thumb.is-active { border-color: var(--text); background: var(--bg); }

.gal-main {
  position: relative; background: var(--surface); border-radius: 0;
  border: 1px solid var(--line); overflow: hidden;
}
.gal-stage { aspect-ratio: 1/1; display: grid; place-items: center; padding: 34px; cursor: zoom-in; }
.ratio-portrait .gal-stage { aspect-ratio: 4/5; }
.ratio-landscape .gal-stage { aspect-ratio: 4/3; }
.ratio-auto .gal-stage { aspect-ratio: auto; min-height: 320px; }
/* A una colonna la foto quadrata si prende quasi tutto lo schermo e il prezzo
   finisce sotto la piega: la si tiene entro due terzi di altezza. La regola sta
   qui e non più su, con .pdp-grid: prima della definizione qui sopra sarebbe
   stata la proporzione quadrata a vincere. */
@media (max-width: 900px) {
  .gal-stage, .ratio-portrait .gal-stage, .ratio-landscape .gal-stage {
    aspect-ratio: auto; height: min(62vh, 520px); padding: 22px;
  }
}
/* Larghezza e altezza automatiche: con width:100% l'immagine restava incollata
   a sinistra quando la sua proporzione non era quella del riquadro. */
.gal-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; transition: transform .25s ease;
}
.has-zoom .gal-stage:hover img { transform: scale(1.6); }

.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 0;
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  display: grid; place-items: center; opacity: 0; transition: opacity .18s ease;
}
.gal-main:hover .gal-nav, .gal-nav:focus-visible { opacity: 1; }
.gal-prev { left: 12px; }
.gal-prev .ic { transform: rotate(180deg); }
.gal-next { right: 12px; }
.gal-count {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,.62); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 2px;
}
.gal-expand {
  position: absolute; bottom: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 2px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.gal-expand:hover { background: var(--surface); }
@media (max-width: 640px) { .gal-nav { opacity: 1; } }

/* product info ------------------------------------------------------------ */

.pdp-info { display: flex; flex-direction: column; gap: 12px; }
.pdp-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-cats a {
  font-size: 10.5px; font-weight: 700; color: var(--accent-2-ink);
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
}
.pdp-cats a:hover { border-bottom-color: var(--accent-2); }

.p-brand {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em;
}
.p-title {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.04; text-wrap: balance;
}
.p-title.size-lg  { font-size: clamp(28px, 3.4vw, 38px); }
.p-title.size-xl  { font-size: clamp(32px, 4.2vw, 46px); }
.p-title.size-xxl { font-size: clamp(36px, 5vw, 54px); }
.p-subtitle { color: var(--muted); font-size: 17px; line-height: 1.5; }

.p-rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-rating-v { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.p-rating-n { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

.p-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.p-badge {
  background: transparent; color: var(--accent-2-ink);
  border: 1px solid var(--accent-2);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius);
  text-transform: uppercase; letter-spacing: .08em;
}

.p-rule { height: 1px; background: var(--line-soft); margin-block: 6px; }

/* Il prezzo è l'informazione che decide: grande, incolonnato, e con lo sconto
   accanto invece che dentro un'altra pastiglia colorata. */
.p-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.p-now {
  font-family: var(--font-display); font-weight: 600; color: var(--price);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.p-price.size-md .p-now { font-size: 30px; }
.p-price.size-lg .p-now { font-size: clamp(34px, 4.4vw, 44px); }
.p-price.size-xl .p-now { font-size: clamp(38px, 5.4vw, 54px); }
.p-was { color: var(--muted); text-decoration: line-through; font-size: 17px; font-variant-numeric: tabular-nums; }
.p-off {
  background: var(--accent-2); color: var(--accent-2-on);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 4px 10px; border-radius: var(--radius); align-self: center;
  font-variant-numeric: tabular-nums;
}
.p-price-note { font-size: 13px; color: var(--muted); }
.p-short { font-size: 17px; line-height: 1.62; color: var(--text); }

/* buy box ----------------------------------------------------------------- */

.buybox { margin-top: 10px; display: flex; flex-direction: column; gap: 14px; }

.buy-form {
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-4);
}
.buy-form-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 24px; margin-bottom: 8px; line-height: 1.15;
}
.buy-form-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ok); font-weight: 600; margin-bottom: 16px;
}
.buy-form-embed { min-height: 40px; }
.buy-form-embed input:not([type=checkbox]):not([type=radio]),
.buy-form-embed select, .buy-form-embed textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 2px; background: var(--bg); font-size: 15.5px; margin-bottom: 10px;
}
.buy-form-embed button, .buy-form-embed input[type=submit] {
  width: 100%; padding: 16px; border: 0; border-radius: 3px;
  background: var(--cta); color: var(--cta-ink);
  font-weight: 700; font-size: 16.5px; cursor: pointer; min-height: 54px;
}
.buy-form-embed button:hover, .buy-form-embed input[type=submit]:hover { filter: brightness(.96); }

.buy-missing {
  background: #FFF4CE; border: 1px solid #F0DFA8; color: #6B4E00;
  padding: 14px 16px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start;
}
.buy-missing a { font-weight: 700; text-decoration: underline; }

.trust-row { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.trust-row li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text); }
.trust-row .ic { color: var(--ok); flex: none; }

.p-platform {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em;
  border-left: 2px solid var(--accent-2); padding-left: 10px; align-self: flex-start;
}
.p-disclosure { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.p-share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.p-share-btn[hidden] { display: none; }
.p-share-btn span { white-space: nowrap; }
/* Ogni rete si riconosce dal suo colore al passaggio: sempre acceso sarebbe una
   fila di loghi altrui in mezzo alla scheda, che è la cosa che si voleva evitare. */
.p-share-btn .ic { transition: color .16s ease; }
.p-share-facebook:hover { border-color: #1877F2; color: #1877F2; }
.p-share-whatsapp:hover { border-color: #25D366; color: #128C4B; }
.p-share-telegram:hover { border-color: #229ED9; color: #1B85B8; }
.p-share-channel { margin-top: 4px; }
@media (max-width: 420px) {
  /* Su schermo stretto restano le icone: tre etichette vanno a capo e la riga
     si sfalda. */
  .p-share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .p-share-channel span { position: static; width: auto; height: auto; clip-path: none; }
}
.p-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 2px; padding: 8px 14px;
  transition: border-color .16s ease, color .16s ease;
}
.p-share-btn:hover { border-color: var(--text); color: var(--text); }

.p-admin-note {
  margin-top: 6px; font-size: 12.5px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: 2px; padding: 9px 12px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.p-admin-note a { color: var(--accent-2); font-weight: 600; }

/* sticky buy bar ---------------------------------------------------------- */

.sticky-buy {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 80;
  background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(11,21,51,.08);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .26s cubic-bezier(.2,.7,.3,1);
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy[hidden] { display: none; }
.sticky-buy-inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 14px;
}
.sticky-buy-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sticky-buy-info img { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); background: var(--surface); flex: none; }
.sticky-buy-title {
  font-size: 14px; font-weight: 600; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sticky-buy-price { font-size: 16px; font-weight: 700; color: var(--price); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn-sticky { width: auto; min-width: 170px; min-height: 46px; font-size: 15.5px; flex: none; }
@media (min-width: 901px) { .sticky-buy { display: none; } }
@media (max-width: 420px) { .btn-sticky { min-width: 130px; padding-inline: 16px; font-size: 14.5px; } }

/* ------------------------------------------------------- ci piace / non --- */

/* Due colonne affiancate: quello che va e quello che non va. Se la seconda è
   vuota si capisce subito, ed è esattamente l'informazione che serve. */
.verdict {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6); margin-block: var(--space-2);
}
.verdict-h {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-3);
}
.verdict-pro .verdict-h { color: var(--accent-2-ink); }
.verdict-con .verdict-h { color: var(--muted); }
.verdict ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.verdict li {
  position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5;
}
.verdict li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 9px; height: 1px; background: currentColor; opacity: .55;
}
.verdict-pro li::before { background: var(--accent-2); opacity: 1; }

/* ================================================================== OFFERTE */

/* La pagina delle offerte è una tabella, non una griglia: incolonnati, i prezzi
   si confrontano scorrendo una colonna sola invece che a memoria. */

.page-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--space-6); flex-wrap: wrap;
}
/* Il timbro in alto a destra: stessa voce delle etichette, dentro un filetto. */
.stamp {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 11px; border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap;
}

.deals-wrap { padding: var(--space-4); }
.deals-table { font-size: 14px; }
.deals-table th, .deals-table td { padding: var(--space-2) var(--space-3); vertical-align: middle; }
.deals-table thead th {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; text-align: left;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.deals-table tbody tr { border-bottom: 1px solid var(--line-soft); }
.deals-table tbody tr:last-child { border-bottom: 0; }
.deals-table tbody tr:hover { background: var(--surface); }
.deals-name { text-align: left; font-weight: 400; }
.deals-name a {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  line-height: 1.15; display: block;
}
.deals-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.deals-brand {
  display: block; margin-top: 2px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.col-cat { color: var(--muted); white-space: nowrap; }
.col-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-go { text-align: right; }
.deals-now { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.deals-was { color: var(--muted); text-decoration: line-through; }
.tag-off {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  padding: 2px 9px; background: var(--accent-2); color: var(--accent-2-on);
  font-variant-numeric: tabular-nums;
}
.btn-xs { padding: 5px 12px; font-size: 13px; min-height: 0; }

/* Sotto i 760 px la tabella diventa un elenco: ogni riga una scheda, ogni cella
   con la sua etichetta davanti, perché lo scorrimento orizzontale su telefono
   nasconde proprio la colonna dei prezzi. */
@media (max-width: 760px) {
  .deals-wrap { padding: 0; border: 0; }
  .deals-wrap::after { display: none; }
  .deals-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .deals-table, .deals-table tbody, .deals-table tr, .deals-table th, .deals-table td { display: block; width: auto; }
  .deals-table tbody tr {
    border: 1px solid var(--line); padding: var(--space-3);
    margin-bottom: var(--space-4);
  }
  .deals-table tbody tr:hover { background: transparent; }
  .deals-table td { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); text-align: right; }
  .deals-table td::before {
    content: attr(data-l);
    /* L'etichetta eredita la barratura della cella del listino: qui la si
       toglie, altrimenti sembra che sia annullata la voce, non il prezzo. */
    text-decoration: none;
    font-family: var(--font-display); font-size: 11px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  }
  .col-go { justify-content: flex-end; }
  .col-go::before { content: none; }
}

/* ================================================================== BLOCKS */

.pdp-content { display: flex; flex-direction: column; }
.blk { width: 100%; }
.blk.pad-none { padding-block: 0; }
.blk.pad-sm { padding-block: 14px; }
.blk.pad-md { padding-block: clamp(22px, 3vw, 34px); }
.blk.pad-lg { padding-block: clamp(34px, 5vw, 60px); }
.blk.ta-left { text-align: left; }
.blk.ta-center { text-align: center; }
.blk.ta-right { text-align: right; }
.blk.hide-mob { display: block; }
@media (max-width: 720px) { .blk.hide-mob { display: none; } }
@media (min-width: 721px) { .blk.hide-desk { display: none; } }
.blk.w-wide > * { max-width: none; }
.blk.w-full { margin-inline: calc(50% - 50vw); padding-inline: 20px; }

.blk-h {
  font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 16px;
  letter-spacing: -.025em;
}
.blk-placeholder {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 18px; color: var(--muted); font-size: 14px;
}
.blk-placeholder strong { display: block; color: var(--text); }

/* rich text --------------------------------------------------------------- */

.rich { font-size: 16px; line-height: 1.72; color: var(--text); max-width: 72ch; }
.rich.rich-sm { font-size: 14.5px; }
.rich.rich-lg { font-size: 17.5px; }
.rich.cols-2 { max-width: none; columns: 2; column-gap: 44px; }
@media (max-width: 720px) { .rich.cols-2 { columns: 1; } }
.rich > * + * { margin-top: 1em; }
.rich h2 { font-size: 1.35em; margin-top: 1.6em; }
.rich h3 { font-size: 1.16em; margin-top: 1.5em; }
.rich a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.rich ul, .rich ol { padding-left: 1.35em; }
.rich li + li { margin-top: .4em; }
.rich img { border-radius: var(--radius-sm); margin-block: 1.2em; }
.rich blockquote {
  border-left: 3px solid var(--accent); padding-left: 18px;
  color: var(--muted); font-style: italic;
}
.rich code {
  background: var(--surface); padding: 2px 6px; border-radius: 5px;
  font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.rich table { margin-block: 1.4em; font-size: 15px; }
.rich th, .rich td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.rich th { background: var(--surface); font-weight: 700; }

/* specs / tables ---------------------------------------------------------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.specs, .cmp { font-size: 15px; min-width: 340px; }
.specs th, .specs td { padding: 12px 16px; text-align: left; vertical-align: top; }
.specs th {
  width: 38%; font-weight: 700; color: var(--muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em; padding-top: 15px;
}
.specs-striped tr:nth-child(odd) { background: var(--surface); }

.specs-bordered th, .specs-bordered td { border: 1px solid var(--line); }
.specs-clean tr + tr th, .specs-clean tr + tr td { border-top: 1px solid var(--line-soft); }

.cmp th, .cmp td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.cmp thead th { background: var(--brand); color: var(--brand-ink); font-weight: 650; }
.cmp tbody tr:nth-child(even) { background: var(--surface); }

/* faq --------------------------------------------------------------------- */

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 76ch; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item[open] { border-color: var(--text); }
.faq-item[open] summary { border-left: 2px solid var(--accent-2); padding-left: 16px; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; cursor: pointer; font-weight: 650; font-size: 16.5px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface); }
.faq-ic { color: var(--muted); transition: transform .2s ease; flex: none; display: inline-flex; }
.faq-item[open] .faq-ic { transform: rotate(180deg); }
.faq-a { padding: 0 18px 17px; font-size: 15.5px; }

/* headings / features ----------------------------------------------------- */

.hd { max-width: 72ch; }
.hd.ta-center { margin-inline: auto; }
.hd-kicker {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-2-ink);
  text-transform: uppercase; letter-spacing: .16em; margin-bottom: 10px;
}
.hd-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.015em; line-height: 1.1;
}

/* I punti di forza sono numerati e appesi a un filetto d'accento: nel sistema
   di riferimento è così che si presenta un metodo, non con tre icone in fila
   dentro altrettanti quadratini colorati. Il numero lo mette il CSS. */
.feats { display: grid; gap: var(--space-6); counter-reset: feat; }
.feats-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feats-list { grid-template-columns: 1fr; max-width: 74ch; }
.feats-inline { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.feat {
  counter-increment: feat;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: var(--space-3); border-top: 2px solid var(--accent-2);
}
.feat::before {
  content: counter(feat, decimal-leading-zero);
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; color: var(--accent-2-ink);
}
.feat-ic { display: none; }
.feat-t { font-size: 19px; font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
.feat-x { font-size: 13px; color: var(--muted); line-height: 1.6; }
/* Con l'icona scelta a mano la si mostra al posto del numero. */
.feats-inline .feat { align-items: center; text-align: center; border-top-width: 1px; }

.checklist { list-style: none; display: grid; gap: 11px; max-width: 74ch; }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; max-width: none; }
@media (max-width: 640px) { .checklist.cols-2 { grid-template-columns: 1fr; } }
.checklist li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; line-height: 1.5; }
.chk-ic { color: var(--ok); flex: none; margin-top: 2px; }

/* image / gallery blocks -------------------------------------------------- */

.fig { margin: 0; }
.fig-narrow { max-width: 560px; margin-inline: auto; }
.fig-wide { max-width: 900px; margin-inline: auto; }
.blk-img { width: 100%; }
.blk-img.is-rounded { border-radius: var(--radius-lg); }
.fig figcaption, .fig-cap { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px; }

.grid-gal { display: grid; }
.grid-gal.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-gal.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-gal.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-gal.gap-sm { gap: 8px; }
.grid-gal.gap-md { gap: 14px; }
.grid-gal.gap-lg { gap: 22px; }
@media (max-width: 720px) { .grid-gal.cols-4, .grid-gal.cols-3 { grid-template-columns: repeat(2, 1fr); } }
.grid-gal-item {
  aspect-ratio: 1/1; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in;
}
.grid-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.grid-gal-item:hover img { transform: scale(1.05); }

/* video facade ------------------------------------------------------------ */

.video-facade {
  position: relative; aspect-ratio: 16/9; background: var(--surface);
  border-radius: var(--radius-lg); overflow: hidden;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play { position: absolute; inset: 0; width: 100%; display: block; }
.video-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 52px; border-radius: 14px; background: rgba(0,0,0,.72);
  transition: background .18s ease, transform .18s ease;
}
.video-btn::after {
  content: ''; position: absolute; top: 50%; left: 52%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.video-play:hover .video-btn { background: var(--price); transform: translate(-50%, -50%) scale(1.06); }

/* quote / reviews --------------------------------------------------------- */

.quote {
  margin: 0; padding: 6px 0 6px 26px; background: transparent;
  border-left: 2px solid var(--accent-2); border-radius: 0;
  max-width: 68ch;
}
.quote p {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(21px, 2.4vw, 27px); line-height: 1.35; letter-spacing: -.01em;
}
.quote footer { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.quote cite { font-style: normal; font-weight: 700; font-size: 14.5px; }
.quote-role { color: var(--muted); font-size: 13.5px; }

.reviews { display: grid; gap: 16px; }
.reviews-grid { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.reviews-slider {
  grid-auto-flow: column; grid-auto-columns: minmax(272px, 1fr);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.reviews-slider .review { scroll-snap-align: start; }
.review {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 0; padding: 22px;
  display: flex; flex-direction: column; gap: 9px;
}
.review-t { font-size: 17px; font-family: var(--font-display); font-weight: 400; }
.review-x { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.review-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; font-size: 13px; }
.review-a { font-weight: 700; }
.review-v { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; }
.review-d { color: var(--muted); }

/* marketing blocks -------------------------------------------------------- */

.cta-banner { border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 46px); }
.cta-inner { max-width: 62ch; }
.cta-t { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.015em; }
.cta-x { margin-top: 10px; opacity: .92; font-size: 16.5px; line-height: 1.6; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 15px 28px; border-radius: 3px; font-weight: 700; font-size: 16px;
  transition: filter .16s ease;
}
.cta-btn:hover { filter: brightness(.96); }

.btn-wrap.ta-center { text-align: center; }
.btn-wrap.ta-right { text-align: right; }

.countdown {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; border-radius: var(--radius); font-weight: 700;
}
.cd-ic { display: inline-flex; }
.cd-t { font-size: 15.5px; }
.cd-clock {
  margin-left: auto; font-size: 21px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}

.trust { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.trust li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; font-weight: 550; }
.trust .ic { color: var(--accent-2); flex: none; }
.trust-boxed li {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px 16px;
}

/* telegram ---------------------------------------------------------------- */

.tg-box {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #1B85B8; color: #fff; border-radius: 2px; padding: 22px 24px;
}
.tg-banner { padding: 28px 32px; }
.tg-ic { display: inline-flex; opacity: .95; }
.tg-body { flex: 1; min-width: 190px; }
.tg-t { font-size: 19px; }
.tg-x { opacity: .92; margin-top: 4px; font-size: 15px; }
.tg-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: #1B85B8; font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 3px; white-space: nowrap;
  transition: filter .16s ease;
}
.tg-btn:hover { filter: brightness(.94); }
.tg-members { font-size: 13px; opacity: .85; width: 100%; }

.tg-band {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #1B85B8; color: #fff; border-radius: 2px; padding: clamp(24px, 3vw, 36px);
}
.tg-band-ic { display: inline-flex; opacity: .95; }
.tg-band-body { flex: 1; min-width: 220px; }
.tg-band-body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1; }
.tg-band-body p { opacity: .92; margin-top: 6px; font-size: 15.5px; }
.tg-band-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; color: #1B85B8; font-weight: 750; font-size: 15.5px;
  padding: 14px 24px; border-radius: 3px;
  transition: filter .16s ease;
}
.tg-band-btn:hover { filter: brightness(.94); }
.tg-band-n { font-size: 13px; opacity: .85; }

.tg-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px;
  background: #229ED9; color: #fff; font-weight: 650; font-size: 14.5px;
  padding: 14px 18px; border-radius: 3px; box-shadow: var(--shadow-lg);
  transition: transform .18s ease, opacity .25s ease;
}
.tg-float:hover { transform: translateY(-2px) scale(1.02); }
.tg-float.is-hidden { opacity: 0; pointer-events: none; transform: translateY(20px); }
@media (max-width: 900px) {
  .tg-float { bottom: 84px; padding: 12px; }
  .tg-float-label { display: none; }
}

/* columns / dividers ------------------------------------------------------ */

.cols { display: grid; gap: clamp(20px, 3.5vw, 44px); align-items: center; }
.cols.r-50 { grid-template-columns: 1fr 1fr; }
.cols.r-40 { grid-template-columns: 4fr 6fr; }
.cols.r-60 { grid-template-columns: 6fr 4fr; }
@media (max-width: 800px) { .cols, .cols.r-40, .cols.r-60 { grid-template-columns: 1fr; } }
.cols-media img { width: 100%; border-radius: var(--radius-lg); }
.cols-body > * + * { margin-top: 14px; }

.divider { height: 1px; background: var(--line); margin-block: 0; }
.divider-dots {
  height: 4px; background: none;
  background-image: radial-gradient(circle, var(--line) 1.6px, transparent 1.6px);
  background-size: 14px 4px; background-repeat: repeat-x;
}
.divider-space { background: none; height: 0; }
.spacer-sm { height: 18px; }
.spacer-md { height: 36px; }
.spacer-lg { height: 60px; }
.spacer-xl { height: 92px; }

.raw-html { max-width: 100%; overflow-x: auto; }
.raw-html.is-full { margin-inline: calc(50% - 50vw); padding-inline: 20px; }
.raw-html img { border-radius: var(--radius-sm); }

/* ============================================================== RACCOLTE */

.rc { --rc-accent: var(--accent); }

.rc-head { padding-block: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 28px); }
.rc-head.has-cover { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
@media (max-width: 820px) { .rc-head.has-cover { grid-template-columns: 1fr; } }
.rc-cover img { width: 100%; border-radius: 0; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--line); }

.rc-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  color: color-mix(in srgb, var(--rc-accent) 82%, var(--text));
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.rc-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.02em;
  line-height: 1.04; margin-top: 18px; text-wrap: balance;
}
.rc-sub { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); margin-top: 12px; max-width: 60ch; line-height: 1.5; }
.rc-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px;
  font-size: 13.5px; color: var(--muted);
}
.rc-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.rc-share {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 2px; padding: 6px 13px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.rc-share:hover { border-color: var(--text); color: var(--text); }
.rc-desc { margin-top: 18px; font-size: 16.5px; }
.rc-blocks { display: flex; flex-direction: column; }

/* elenco e classifica ------------------------------------------------------ */

/* Una classifica è un elenco, non una pila di schede: righe separate da un
   filo, numero in grande a sinistra, il primo posto marcato da una barra. */
.rc-list { display: flex; flex-direction: column; margin-block: 8px clamp(28px, 4vw, 44px); }
/* Le colonne dipendono dalla presenza del numero, non dal tipo di raccolta:
   una classifica con la numerazione spenta ha tre celle, non quattro, e senza
   questa distinzione l'immagine si prende tutta la riga. */
.rc-item {
  display: grid; grid-template-columns: 168px minmax(0, 1fr) 210px;
  gap: 24px; align-items: center;
  background: var(--bg); border: 0; border-top: 1px solid var(--line);
  border-radius: 0; padding: 26px 0;
  transition: background .2s ease;
}
.rc-list .rc-item:last-child { border-bottom: 1px solid var(--line); }
.rc-item.has-num { grid-template-columns: 64px 168px minmax(0, 1fr) 210px; }
.rc-item:hover { background: var(--surface); }
.rc-item.is-first { border-top: 2px solid var(--rc-accent); }
@media (max-width: 900px) {
  .rc-item, .rc-item.has-num {
    grid-template-columns: 92px minmax(0, 1fr); grid-template-areas: 'media body' 'side side';
    gap: 16px;
  }
  .rc-item.has-num { grid-template-areas: 'num body' 'media body' 'side side'; }
  .rc-item > .rc-num { grid-area: num; }
  .rc-item > .rc-item-media { grid-area: media; }
  .rc-item > .rc-item-body { grid-area: body; }
  .rc-item > .rc-item-side { grid-area: side; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 560px) {
  .rc-item, .rc-item.has-num {
    grid-template-columns: 1fr; grid-template-areas: 'media' 'body' 'side';
    text-align: left;
  }
  .rc-item.has-num { grid-template-areas: 'num' 'media' 'body' 'side'; }
  .rc-item > .rc-item-media { max-width: 200px; }
  /* In colonna stretta prezzo, pulsante e collegamento non stanno su una
     riga sola: affiancati, «Vedi i dettagli» si spezzava a metà parola. */
  .rc-item > .rc-item-side { flex-direction: column; align-items: stretch; }
  .rc-details { text-align: left; }
}

.rc-num {
  width: 54px; flex: none; text-align: center;
  font-family: var(--font-display); font-weight: 400;
  font-size: 46px; line-height: 1; color: var(--line);
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.rc-item.is-first .rc-num { color: var(--rc-accent); }
.rc-num-sm {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 2px;
  background: var(--rc-accent); color: #0F1111; font-size: 12.5px; font-weight: 700;
}

/* L'immagine è posizionata, non centrata da griglia: dentro una cella con
   proporzione fissa un'altezza in percentuale non ha un riferimento certo e
   l'immagine può collassare a zero. */
.rc-item-media {
  position: relative; aspect-ratio: 1/1; background: var(--surface);
  border-radius: 0; display: block; overflow: hidden;
}
.rc-item-media img {
  position: absolute; inset: 12px;
  width: calc(100% - 24px); height: calc(100% - 24px);
  object-fit: contain; transition: transform .3s ease;
}
.rc-item-media .card-noimg {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted);
}
.rc-item:hover .rc-item-media img { transform: scale(1.05); }

.rc-item-body { min-width: 0; }
.rc-item-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.rc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--rc-accent); color: #0F1111;
  font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .12em;
}
.rc-brand { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.rc-item-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(21px, 2.3vw, 27px); line-height: 1.12; letter-spacing: -.015em;
}
.rc-item-title a:hover { color: var(--accent-2-ink); }
.rc-rating { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.rc-rating-n { font-size: 12.5px; color: var(--muted); }
.rc-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 11px; padding: 11px 14px;
  background: transparent; border-left: 2px solid var(--rc-accent);
  border-radius: 0; font-size: 14.5px; line-height: 1.55;
}
.rc-note .ic { color: var(--rc-accent); flex: none; margin-top: 2px; }
.rc-excerpt { margin-top: 9px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.rc-specs { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.rc-specs li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border-radius: 2px; padding: 5px 10px; font-size: 12.5px;
}
.rc-specs span { color: var(--muted); }

.rc-item-side { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.rc-price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.rc-now { font-size: 26px; font-weight: 700; color: var(--price); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rc-was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.rc-details { font-size: 13px; color: var(--muted); text-align: center; }
.rc-details:hover { color: var(--accent-2); text-decoration: underline; }

.rc-buy {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; font-weight: 700; text-align: center;
  background: var(--cta); color: var(--cta-ink);
  transition: filter .16s ease;
}
.rc-buy:hover { filter: brightness(.95); }
.rc-buy-md { padding: 14px 22px; font-size: 16px; }
.rc-buy-sm { padding: 11px 18px; font-size: 14.5px; }
.rc-buy-form { background: var(--accent-2); color: #fff; }
.rc-buy-alt { background: var(--bg); color: var(--text); border: 1px solid var(--line); }
.rc-buy-alt:hover { border-color: var(--text); filter: none; }

/* griglia ------------------------------------------------------------------ */

.rc-grid-wrap { margin-block: 8px clamp(28px, 4vw, 44px); }
.rc-card { position: relative; }
.rc-card-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--rc-accent); color: #0F1111;
  font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .12em;
}
.rc-card .rc-note { margin-top: 8px; font-size: 13.5px; padding: 9px 11px; }

/* confronto ---------------------------------------------------------------- */

.rc-compare-wrap { margin-block: 8px clamp(28px, 4vw, 44px); }
.rc-compare { font-size: 14.5px; min-width: 620px; }
.rc-compare th, .rc-compare td {
  padding: 13px 15px; border: 1px solid var(--line-soft); text-align: left; vertical-align: top;
}
.rc-compare thead th { background: var(--surface); vertical-align: bottom; }
.rc-compare-corner { width: 160px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rc-compare tbody th { width: 160px; font-weight: 650; color: var(--muted); background: var(--surface); }
.rc-compare-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rc-compare-head img { width: 84px; height: 84px; object-fit: contain; background: var(--bg); border-radius: 2px; }
.rc-compare-t { font-weight: 650; line-height: 1.3; font-size: 14px; }
.rc-compare-head:hover .rc-compare-t { color: var(--accent-2); }
.rc-compare-price strong { font-size: 18px; color: var(--price); }
.rc-compare-price .rc-was { display: block; font-size: 13px; }
.rc-compare-note { font-size: 13.5px; line-height: 1.55; }
.rc-compare-buy td { background: var(--surface); }

/* invito finale ------------------------------------------------------------ */

.rc-cta-wrap { margin-bottom: clamp(28px, 4vw, 44px); }
.rc-cta {
  background: var(--brand); color: var(--brand-ink);
  border-radius: 2px; padding: clamp(28px, 4vw, 44px);
  text-align: center;
}
.rc-cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.rc-cta p { font-size: 17px; opacity: .9; margin-bottom: 18px; max-width: 56ch; margin-inline: auto; }
.rc-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cta); color: var(--cta-ink);
  padding: 15px 30px; border-radius: 3px; font-weight: 700; font-size: 16.5px;
  transition: filter .16s ease;
}
.rc-cta-btn:hover { filter: brightness(.96); }
.rc-disclosure { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: 32px; max-width: 80ch; }

/* elenco delle raccolte ---------------------------------------------------- */

.rc-tile {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  overflow: hidden; transition: border-color .2s ease;
}
.rc-tile:hover { border-color: var(--text); }
.rc-tile-media { position: relative; aspect-ratio: 16/10; background: var(--surface); display: grid; place-items: center; }
.rc-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.rc-tile-count {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,.68); color: #fff; font-size: 12px; font-weight: 650;
  padding: 4px 10px; border-radius: 2px;
}
.rc-tile-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rc-tile-t { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; }
.rc-tile-x { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.rc-tile-cta {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent-2); font-weight: 650; font-size: 14px;
}

/* raccolta richiamata in una pagina ---------------------------------------- */

.rc-embed { display: block; }
.rc-embed-card, .rc-embed-banner {
  display: flex; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0; padding: 20px; overflow: hidden;
  transition: border-color .18s ease;
}
.rc-embed-banner { padding: 26px; }
.rc-embed-card:hover, .rc-embed-banner:hover { border-color: var(--text); }
.rc-embed-media { flex: none; width: 140px; }
.rc-embed-banner .rc-embed-media { width: 220px; }
.rc-embed-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.rc-embed-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rc-embed-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; color: var(--accent-2-ink);
  text-transform: uppercase; letter-spacing: .16em;
}
.rc-embed-t { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.12; letter-spacing: -.012em; }
.rc-embed-x { font-size: 14px; color: var(--muted); line-height: 1.5; }
.rc-embed-cta { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-2); font-weight: 650; font-size: 14.5px; margin-top: 4px; }
.rc-embed-inline .rc-embed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rc-embed-link { color: var(--accent-2); font-weight: 650; font-size: 14.5px; display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 640px) {
  .rc-embed-card, .rc-embed-banner { flex-direction: column; align-items: flex-start; }
  .rc-embed-media, .rc-embed-banner .rc-embed-media { width: 100%; }
}

/* accesso protetto --------------------------------------------------------- */

.gate-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.gate-form input {
  flex: 1 1 240px; max-width: 320px;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 16px;
  background: var(--bg); color: var(--text);
}
.gate-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gate-error {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  color: var(--price); font-size: 14.5px; font-weight: 600;
}
.gate-back { margin-top: 22px; font-size: 14px; color: var(--muted); }
.gate-back a:hover { text-decoration: underline; }

/* ============================================================== NEWSLETTER */

/* Il modulo di iscrizione è l'unica richiesta che il sito fa al lettore: sta
   sopra il piè di pagina, su fondo pieno, senza cornici né icone dentro un
   quadratino colorato. Un titolo, una riga, un campo. */

/* Fascia scura, come nel sistema di riferimento: è l'unica richiesta che il
   sito fa al lettore, e si stacca dal foglio invece di confondersi. */
.nl-band {
  background: var(--accent-900); color: #F2F2F3;
  padding-block: clamp(38px, 5vw, 62px);
  margin-top: 0;
}
.nl-band .nl-title, .nl-band h2 { color: #F2F2F3; }
.nl-band .nl-text { color: rgba(242,242,243,.8); }
.nl-band .nl-consent { color: rgba(242,242,243,.62); }
.nl-band .nl-consent a { color: #F2F2F3; }
.nl-band .nl-input {
  background: rgba(242,242,243,.06); color: #F2F2F3;
  border: 1px solid rgba(242,242,243,.32);
}
.nl-band .nl-btn { background: var(--accent); color: var(--accent-on); }
.nl-band .nl-input::placeholder { color: rgba(242,242,243,.55); }
.nl-band .nl-input:focus { border-color: #F2F2F3; }
.nl-inline { display: block; }
.nl-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px);
  align-items: end;
}
.nl-inline .nl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0; padding: clamp(24px, 3.4vw, 38px);
}
@media (max-width: 820px) { .nl-card { grid-template-columns: 1fr; gap: 24px; align-items: start; } }

.nl-ic { display: none; }
.nl-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.015em; line-height: 1.08;
}
.nl-text { color: var(--muted); margin-top: 12px; font-size: 16.5px; line-height: 1.6; max-width: 46ch; }

.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-fields { display: flex; gap: 0; flex-wrap: wrap; align-items: stretch; }
.nl-input {
  flex: 1 1 200px; min-width: 0;
  padding: 12px 12px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: transparent; color: var(--text);
  font-size: 15px; transition: border-color .16s ease;
}
.nl-input::placeholder { color: var(--muted); }
.nl-input:focus { outline: none; border-color: var(--accent-2); }
.nl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); margin-left: var(--space-2);
  background: var(--cta); color: var(--cta-ink);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  white-space: nowrap; min-height: 46px;
  transition: filter .16s ease;
}
.nl-btn:hover { filter: brightness(.96); }
.nl-btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) {
  .nl-fields { flex-direction: column; }
  /* In colonna il campo non deve crescere per riempire la fascia. */
  .nl-input { flex: 0 0 auto; }
  .nl-btn { margin-left: 0; margin-top: var(--space-2); width: 100%; justify-content: center; }
}
.nl-consent {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.5;
}
.nl-consent input { margin-top: 3px; accent-color: var(--accent-2); flex: none; }
.nl-consent a { color: var(--accent-2-ink); text-decoration: underline; }
.nl-msg { margin-top: 12px; font-size: 14.5px; min-height: 1.2em; font-weight: 600; }
.nl-msg .is-ok { color: var(--ok); }
.nl-msg .is-err { color: var(--price); }

/* ================================================================== FOOTER */

/* Il piè di pagina sta sul foglio, non su una fascia scura: l'unica banda
   scura della pagina è l'iscrizione qui sopra, e due bande di fila
   spegnerebbero il contrasto proprio dove serve. Le colonne sono elenchi di
   testo, i titolini in maiuscoletto, i collegamenti nell'azzurro del sistema. */

.ftr {
  background: var(--bg); color: var(--text);
  border-top: 1px solid var(--line); margin-top: 0;
}

.ftr-top {
  width: 100%; padding: 12px; background: transparent; color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  transition: color .16s ease;
}
.ftr-top:hover { color: var(--text); }

.ftr-main { padding-block: clamp(28px, 3.6vw, 44px); }
/* Righe flessibili e non una griglia: repeat(auto-fit, …) non è ammesso
   insieme a una traccia in «fr», e la dichiarazione intera veniva buttata via
   dal browser — il piè di pagina finiva su una colonna sola senza che nulla
   segnalasse l'errore. Con flex il numero di colonne si adatta da sé, che
   siano due o cinque. */
.ftr-grid {
  display: flex; flex-wrap: wrap;
  gap: var(--space-8) clamp(24px, 4vw, 64px);
}
.ftr-brand { flex: 1 1 260px; max-width: 44ch; }
.ftr-col { flex: 0 1 150px; min-width: 130px; }
@media (max-width: 560px) {
  .ftr-grid { gap: var(--space-6); }
  .ftr-brand { flex: 1 1 100%; }
  .ftr-col { flex: 1 1 42%; }
}

.brand-ftr { margin-bottom: var(--space-3); }
.ftr .brand-name { font-size: 20px; }
.ftr .brand-mark { width: 26px; height: 26px; font-size: 15px; }
.ftr-about { color: var(--muted); font-size: 13.5px; line-height: 1.65; max-width: 38ch; }
.ftr-logo { margin-bottom: var(--space-3); }

.ftr-social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.ftr-social a {
  width: 34px; height: 34px; border-radius: var(--radius);
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--muted);
  transition: border-color .16s ease, color .16s ease;
}
.ftr-social a:hover { border-color: var(--text); color: var(--text); }

.ftr-col h2 {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text); margin-bottom: var(--space-3);
}
.ftr-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.ftr-col a { color: var(--accent-ink); font-size: 13.5px; }
.ftr-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.ftr-tg p { color: var(--muted); font-size: 13.5px; margin-bottom: var(--space-3); line-height: 1.55; }
.ftr-tg-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #229ED9; color: #fff !important;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 9px 14px; border-radius: var(--radius);
}
.ftr-tg-btn:hover { filter: brightness(1.08); }
.ftr-wa-btn { margin-top: var(--space-2); background: #25D366; color: #06331A !important; }

.ftr-legal { border-top: 1px solid var(--line); padding-block: var(--space-4); }
.ftr-legal-in {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-4); flex-wrap: wrap; text-align: left;
}
.ftr-legal p { color: var(--muted); font-size: 11.5px; line-height: 1.6; margin: 0; }
.ftr-disclosure { max-width: 62ch; text-align: right; }
.ftr-powered { opacity: .7; }
@media (max-width: 700px) {
  .ftr-legal-in { flex-direction: column; gap: var(--space-2); }
  .ftr-disclosure { text-align: left; }
}

/* ================================================================ LIGHTBOX */

.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 40px 20px;
  animation: fade .18s ease;
}
.lb[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-figure img { max-width: min(1100px, 92vw); max-height: 82vh; width: auto; object-fit: contain; border-radius: 8px; }
.lb-figure figcaption { color: rgba(255,255,255,.8); font-size: 14px; text-align: center; }
.lb-close { position: absolute; top: 18px; right: 20px; color: #fff; opacity: .8; }
.lb-close:hover { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center; transition: background .16s ease;
}
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (max-width: 640px) { .lb-nav { width: 42px; height: 42px; } }

/* ================================================================= CONSENT */

.consent {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
  padding: 16px; animation: slideUp .3s cubic-bezier(.2,.7,.3,1);
}
.consent[hidden] { display: none; }
@keyframes slideUp { from { transform: translateY(100%); } }
.consent-in {
  max-width: 940px; margin-inline: auto;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.consent-text { flex: 1; min-width: 240px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.consent-text a { color: var(--accent-2); text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-btn { padding: 10px 20px; border-radius: 10px; font-weight: 650; font-size: 14.5px; }
.consent-deny { border: 1px solid var(--line); color: var(--muted); }
.consent-deny:hover { background: var(--surface); color: var(--text); }
.consent-accept { background: var(--brand); color: var(--brand-ink); }
.consent-accept:hover { filter: brightness(1.15); }

/* ================================================================== STATIC */

.static { max-width: 820px; margin-inline: auto; padding-block: 20px 60px; }
.static-head { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.static-date { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.static-body > .blk:first-child { padding-top: 0; }

.plain { max-width: 520px; margin-inline: auto; text-align: center; padding-block: clamp(50px, 10vw, 100px); }
.plain-ic {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 22px;
  display: grid; place-items: center; background: var(--surface); color: var(--muted);
}
.plain-ic.is-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.plain-ic.is-err { background: color-mix(in srgb, var(--price) 14%, transparent); color: var(--price); }
.plain .btn-primary { margin-top: 24px; }
.plain-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

.notfound { text-align: center; padding-block: clamp(50px, 9vw, 96px) 20px; max-width: 620px; margin-inline: auto; }
.notfound-code {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(72px, 15vw, 132px);
  line-height: .9; letter-spacing: -.04em; color: var(--line);
  font-variant-numeric: tabular-nums;
}
.notfound .page-head, .notfound .page-title { border: 0; }
.notfound .page-sub { margin-inline: auto; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.notfound .search-big { margin-inline: auto; }

/* Stessa intestazione degli archivi: la categoria non è una pagina diversa,
   è lo stesso elenco con un titolo più stretto. */
.cat-head {
  display: grid; gap: 26px;
  margin-block: clamp(22px, 3.4vw, 38px) 0;
  padding-bottom: clamp(16px, 2.2vw, 24px);
  border-bottom: 1px solid var(--line);
}
.cat-head.has-img { grid-template-columns: 220px 1fr; align-items: center; }
@media (max-width: 640px) { .cat-head.has-img { grid-template-columns: 1fr; } }
.cat-head-img img { width: 100%; border-radius: 0; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--line); }
.cat-desc { margin-top: 12px; font-size: 16.5px; color: var(--muted); line-height: 1.55; max-width: 62ch; }
.cat-head + .sec { padding-top: clamp(22px, 2.6vw, 34px); }

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--brand); color: var(--brand-ink);
  padding: 13px 22px; border-radius: 3px; font-size: 14.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 300;
  opacity: 0; transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ print */

@media print {
  .hdr, .ftr, .nl, .sticky-buy, .tg-float, .consent, .admin-bar, .p-share, .lb { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}


/* -------------------------------------------------- disposizioni footer --- */

/* Compatto: marchio e link su una riga sola, senza colonne. */
.ftr--compatto .ftr-grid { grid-template-columns: 1fr; gap: 22px; }
.ftr--compatto .ftr-col ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ftr--compatto .ftr-about { max-width: 60ch; }

/* Minimo: resta solo la riga legale, più una barra di link se servono. */
.ftr-thin { border-top: 1px solid var(--line); }
.ftr-thin-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; padding-block: 16px;
}
.ftr-thin-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ftr-thin-nav a { font-size: 13.5px; color: var(--accent-ink); }
.ftr-thin-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
