/* ===========================================================================
   Vitalone Ricambi — foglio di stile del tema
   Derivato dal design "Vitalone Ricambi.dc.html" (design system Nocturne,
   con i token ridefiniti in chiaro dal design stesso).

   Tutto è sotto il prefisso .vt- per non entrare in conflitto con il CSS del
   core. I valori vengono dai token: nessun colore scritto a mano fuori dal
   blocco :root qui sotto.

   Il design originale porta ogni regola in attributi style inline, che non
   possono contenere media query: la versione per dispositivi stretti esisteva
   solo come ramo JavaScript (isMobile). Qui la stessa struttura è in classi
   CSS, così i punti di rottura sono veri e rispondono al ridimensionamento
   della finestra, non a un valore letto una volta sola.
   ======================================================================== */

/* I token stanno su :root, non su un contenitore del tema: intestazione,
   piè di pagina e corpo della pagina sono resi dal core in punti diversi
   dell'albero, e un wrapper intorno all'intestazione spezzerebbe il suo
   position:sticky (lo sticky si ferma al bordo del genitore). Il prefisso
   --vt- garantisce che nessuna variabile del core venga sovrascritta. */
:root {
  /* — fondamenta — */
  --vt-bg: #F2EFE7;
  --vt-surface: #FFFFFF;
  --vt-text: #22262B;
  --vt-divider: #DCD6C8;

  /* — rampa neutra — */
  --vt-n100: #FAF8F3;
  --vt-n200: #F2EFE7;
  --vt-n300: #E4DFD2;
  --vt-n400: #CBC5B4;
  --vt-n500: #A8A395;
  --vt-n600: #7D7A6F;
  --vt-n700: #57554E;
  --vt-n800: #3A3935;
  --vt-n900: #22262B;

  /* — rampa accento (verde) — */
  --vt-a100: #EFF7F0;
  --vt-a200: #D8ECDD;
  --vt-a300: #B0D9BC;
  --vt-a400: #7DBD8E;
  --vt-a500: #3E9B4F;
  --vt-a600: #2E7A3D;
  --vt-a700: #1E5631;
  --vt-a800: #173F26;
  --vt-a900: #0F2A19;

  /* — rampa accento 2 (ocra) — */
  --vt-o100: #FDF3DC;
  --vt-o200: #FAE6BB;
  --vt-o300: #F1CE83;
  --vt-o400: #E4B247;
  --vt-o500: #D99A16;
  --vt-o600: #B07C0F;
  --vt-o700: #855D0B;
  --vt-o800: #5E4208;
  --vt-o900: #3A2905;

  /* — ruoli applicativi — */
  --vt-green: #2E7A3D;
  --vt-green-bright: #3E9B4F;
  --vt-green-bg: #E7F4EA;
  --vt-ochre: #B07C0F;
  --vt-ochre-bg: #FDF3DC;
  --vt-orange: #E4611A;
  --vt-orange-dark: #C24E10;
  --vt-red: #B8342A;
  --vt-red-bg: #FBEBE9;

  /* — elevazione — */
  --vt-shadow-sm: 0 1px 2px rgba(34, 38, 43, .07), 0 0 0 1px #E4DFD2;
  --vt-shadow-md: 0 3px 10px rgba(34, 38, 43, .09), 0 0 0 1px #E4DFD2;
  --vt-shadow-lg: 0 14px 36px rgba(34, 38, 43, .16), 0 0 0 1px #DCD6C8;

  /* — tipografia —
     Inter se l'installazione la serve già, altrimenti lo stack di sistema:
     il tema non carica font da un CDN esterno, così non aggiunge né una
     dipendenza di rete né un trasferimento di IP verso terzi da valutare nel
     registro dei trattamenti. Il mono è la cifra distintiva del design (i
     codici ricambio) e lo stack di sistema lo copre su ogni piattaforma. */
  --vt-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             Helvetica, Arial, sans-serif;
  --vt-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
             "Liberation Mono", monospace;

  /* — misure — */
  --vt-max: 1320px;
  --vt-gutter: 18px;
  --vt-radius: 12px;
}

/* Le radici del tema: il corpo delle pagine porta la classe .vt,
   intestazione e piè di pagina sono riconosciuti dalla loro classe.
   Il reset universale (box-sizing, margini, bordi) lo fa già il CSS del
   core: qui non va ripetuto. */
.vt,
.vt-topbar,
.vt-header,
.vt-footer,
.vt-tabbar,
.vt-toast,
.vt-sheet {
  font-family: var(--vt-font);
  -webkit-font-smoothing: antialiased;
}
.vt { color: var(--vt-text); background: var(--vt-bg); }

.vt button,
.vt-header button,
.vt-footer button,
.vt-tabbar button,
.vt-sheet button { font-family: inherit; }

/* Stati interattivi tematizzati, mai l'anello blu di default. */
.vt :focus-visible,
.vt-header :focus-visible,
.vt-footer :focus-visible,
.vt-tabbar :focus-visible,
.vt-sheet :focus-visible,
.vt-topbar :focus-visible {
  outline: 2px solid var(--vt-a700);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Sul verde scuro l'anello verde non si vedrebbe: lì passa al chiaro. */
.vt-hero :focus-visible,
.vt-band :focus-visible,
.vt-footer :focus-visible,
.vt-topbar :focus-visible {
  outline-color: var(--vt-a300);
}
.vt ::selection,
.vt-header ::selection,
.vt-footer ::selection { background: var(--vt-a200); }

/* ─────────────────────────── impalcatura ─────────────────────────────── */

.vt-wrap {
  max-width: var(--vt-max);
  margin-inline: auto;
  padding-inline: var(--vt-gutter);
  width: 100%;
}
.vt-wrap--narrow { max-width: 1000px; }

.vt-section { padding-block: clamp(20px, 3vw, 40px); }
.vt-section--tight { padding-block: 0 clamp(20px, 3vw, 40px); }
.vt-section--head { padding-block: clamp(14px, 2.4vw, 30px) 0; }

/* Griglia fluida riusata da tutte le sezioni: le colonne si contano da sole,
   e il min(100%, …) impedisce che una colonna più larga dello schermo
   costringa la pagina a scorrere in orizzontale. */
.vt-grid { display: grid; gap: 12px; }
.vt-grid--cat   { grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 10px; }
.vt-grid--brand { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.vt-grid--type  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.vt-grid--prod  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr)); }
.vt-grid--rel   { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.vt-grid--mini  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.vt-grid--fit   { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.vt-grid--fit-sm{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.vt-grid--fit-lg{ grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }

.vt-h1 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0 0 6px;
  text-wrap: balance;
}
.vt-h2 {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 0;
}
.vt-h3 { font-size: 17.5px; font-weight: 700; margin: 0; line-height: 1.2; }
.vt-lead { font-size: 14.5px; line-height: 1.55; color: var(--vt-n700); margin: 0; }
.vt-muted { color: var(--vt-n600); }
.vt-mono { font-family: var(--vt-mono); font-variant-ligatures: none; }

.vt-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ───────────────────────────── bottoni ───────────────────────────────── */

.vt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;          /* bersaglio tattile */
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: var(--vt-text);
  transition: background-color .15s, border-color .15s, color .15s;
}
.vt-btn:disabled { opacity: .45; cursor: not-allowed; }

.vt-btn--cta { background: var(--vt-orange); color: #fff; }
.vt-btn--cta:hover:not(:disabled) { background: var(--vt-orange-dark); }
.vt-btn--cta:active:not(:disabled) { background: #A94310; }

.vt-btn--solid { background: var(--vt-a700); color: #fff; }
.vt-btn--solid:hover:not(:disabled) { background: var(--vt-a600); }
.vt-btn--solid:active:not(:disabled) { background: var(--vt-a800); }

.vt-btn--outline { border: 1px solid var(--vt-a700); color: var(--vt-a700); }
.vt-btn--outline:hover:not(:disabled) { background: var(--vt-a100); }
.vt-btn--outline:active:not(:disabled) { background: var(--vt-a200); }

.vt-btn--quiet { border: 1px solid var(--vt-divider); background: var(--vt-surface); font-weight: 600; }
.vt-btn--quiet:hover:not(:disabled) { border-color: var(--vt-n400); background: var(--vt-n100); }

.vt-btn--ghost-light { border: 1.5px solid var(--vt-a300); color: #fff; }
.vt-btn--ghost-light:hover { background: rgba(255, 255, 255, .12); }

.vt-btn--lg { min-height: 48px; font-size: 16px; border-radius: 10px; }
.vt-btn--sm { min-height: 38px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.vt-btn--block { width: 100%; }

/* Link testuale verde: la variante usata in tutto il design per le azioni
   secondarie in linea. */
.vt-link {
  background: none;
  border: 0;
  padding: 2px 0;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--vt-green);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.vt-link:hover { color: var(--vt-a700); text-decoration: underline; }
.vt-link--plain { font-weight: 400; color: inherit; }
.vt-link--danger { color: var(--vt-red); font-weight: 400; font-size: 12.5px; text-decoration: underline; }

/* Bottone icona quadrato (cuore, confronto, chiudi). */
.vt-icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--vt-divider);
  border-radius: 8px;
  background: var(--vt-surface);
  cursor: pointer;
  color: var(--vt-n700);
  transition: border-color .15s, color .15s, background-color .15s;
}
.vt-icon-btn:hover { border-color: var(--vt-green); color: var(--vt-green); }

/* ─────────────────────── campi e controlli ───────────────────────────── */

.vt-field { display: block; min-width: 0; }
.vt-field > span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--vt-n600);
  margin-bottom: 5px;
}
.vt-input,
.vt-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--vt-n400);
  border-radius: 9px;
  padding: 0 11px;
  font: inherit;
  font-size: 14.5px;
  color: var(--vt-text);
  background: var(--vt-surface);
}
.vt-input::placeholder { color: var(--vt-n500); }
.vt-input:hover:not(:disabled),
.vt-select:hover:not(:disabled) { border-color: var(--vt-n500); }
.vt-input:focus-visible,
.vt-select:focus-visible { border-color: var(--vt-a700); outline-offset: 0; }
.vt-input:disabled,
.vt-select:disabled { background: var(--vt-n200); color: var(--vt-n500); cursor: not-allowed; }
textarea.vt-input { min-height: 112px; padding: 11px; resize: vertical; line-height: 1.5; }

.vt-check {
  display: flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
  font-size: 13.5px;
  min-height: 32px;
}
.vt-check input { width: 18px; height: 18px; flex: none; accent-color: var(--vt-green); }

/* Selettore di quantità. */
.vt-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--vt-divider);
  border-radius: 9px;
  overflow: hidden;
  background: var(--vt-surface);
}
.vt-stepper button {
  width: 46px;
  height: 48px;
  border: 0;
  background: var(--vt-n100);
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
  color: var(--vt-text);
}
.vt-stepper button:hover:not(:disabled) { background: var(--vt-n200); }
.vt-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.vt-stepper span {
  min-width: 52px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vt-stepper--sm button { width: 40px; height: 44px; font-size: 18px; }
.vt-stepper--sm span { min-width: 42px; font-size: 15px; }

/* Interruttore IVA inclusa/esclusa. */
.vt-seg {
  display: inline-flex;
  border: 1px solid var(--vt-divider);
  border-radius: 9px;
  overflow: hidden;
  background: var(--vt-surface);
}
.vt-seg button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.vt-seg button + button { border-left: 1px solid var(--vt-divider); }
.vt-seg button[aria-pressed="true"] { background: var(--vt-a700); color: #fff; }
.vt-seg--sm button { min-height: 36px; padding: 0 11px; font-size: 12px; }

/* ──────────────────────── schede e superfici ─────────────────────────── */

.vt-card {
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 13px;
  padding: 15px;
}
.vt-card--flat { padding: 0; overflow: hidden; }
.vt-card--raised { border: 0; box-shadow: var(--vt-shadow-md); border-radius: 16px; }

.vt-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}
.vt-tag--type { background: var(--vt-a200); color: var(--vt-a800); text-transform: uppercase; }
.vt-tag--cta { background: var(--vt-orange); color: #fff; }
.vt-tag--plain { background: var(--vt-surface); color: var(--vt-n800); font-size: 10.5px; }

.vt-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.45;
}
.vt-note--ok { background: var(--vt-green-bg); color: var(--vt-text); }
.vt-note--warn { background: var(--vt-ochre-bg); color: var(--vt-text); }
.vt-note--err { background: var(--vt-red-bg); color: var(--vt-text); }
.vt-note svg { flex: none; margin-top: 1px; }

.vt-empty {
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 14px;
  padding: clamp(24px, 5vw, 34px);
  text-align: center;
}
.vt-empty svg { margin: 0 auto 10px; color: var(--vt-n500); }

/* ──────────────────────── barra informativa ─────────────────────────── */

.vt-topbar {
  background: var(--vt-a800);
  color: var(--vt-a100);
  font-size: 12px;
}
.vt-topbar .vt-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
  padding-block: 7px;
}
.vt-topbar li {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.vt-topbar ul { display: contents; margin: 0; padding: 0; }
.vt-topbar .vt-topbar__last { margin-left: auto; }

/* ───────────────────────────── testata ──────────────────────────────── */

.vt-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--vt-surface);
  box-shadow: 0 1px 0 var(--vt-divider);
}

/* Tre zone: marchio, ricerca, azioni. Su schermi larghi stanno in riga e la
   ricerca prende lo spazio avanzato; sotto 860px la ricerca scende su una
   riga propria a larghezza piena, invece di comprimersi sotto la soglia
   leggibile. */
.vt-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-block: 12px;
}

.vt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.vt-brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
  background: var(--vt-a700);
  color: #fff;
  display: grid;
  place-items: center;
}
.vt-brand__name {
  display: block;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--vt-a700);
  line-height: 1.05;
  white-space: nowrap;
}
.vt-brand__dot { color: var(--vt-orange); }
.vt-brand__kicker {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vt-n600);
  white-space: nowrap;
}

/* Ricerca per codice: il bordo verde spesso è la firma del design. */
.vt-search { position: relative; min-width: 0; }
.vt-search__box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--vt-n100);
  border: 2px solid var(--vt-a700);
  border-radius: 10px;
  padding: 0 6px 0 12px;
  height: 48px;
}
.vt-search__box:focus-within { box-shadow: 0 0 0 3px var(--vt-a200); }
.vt-search__box > svg { flex: none; color: var(--vt-a700); }
.vt-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--vt-text);
  outline: none;
  height: 100%;
}
.vt-search button {
  height: 36px;
  flex: none;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--vt-orange);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.vt-search button:hover { background: var(--vt-orange-dark); }

/* Suggerimenti sotto la ricerca. */
.vt-sug {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  background: var(--vt-surface);
  border-radius: 12px;
  box-shadow: var(--vt-shadow-lg);
  overflow: hidden auto;
  z-index: 60;
  max-height: min(70vh, 460px);
}
.vt-sug__label {
  padding: 9px 14px 4px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vt-n600);
}
.vt-sug__row {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--vt-n200);
  cursor: pointer;
  text-align: left;
  color: inherit;
  text-decoration: none;
}
.vt-sug__row:hover { background: var(--vt-n100); }
.vt-sug__thumb {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 7px;
  background: var(--vt-n200);
  display: grid;
  place-items: center;
  color: var(--vt-n600);
  overflow: hidden;
}
.vt-sug__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Azioni della testata. */
.vt-actions { display: flex; align-items: center; gap: 4px; }
.vt-act {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--vt-text);
  min-width: 52px;
  min-height: 48px;
  font-size: 10.5px;
  text-decoration: none;
  white-space: nowrap;
}
.vt-act:hover { background: var(--vt-n100); }
.vt-act--cart { background: var(--vt-a100); color: var(--vt-a700); min-width: 58px; }
.vt-act--cart:hover { background: var(--vt-a200); }
.vt-act--cart span:last-child { font-weight: 600; }
.vt-badge {
  position: absolute;
  top: 0;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--vt-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
  font-variant-numeric: tabular-nums;
}
.vt-badge--dark { background: var(--vt-n800); }

/* Riga delle categorie: scorre in orizzontale senza barra visibile. */
.vt-nav { border-top: 1px solid var(--vt-n200); background: var(--vt-surface); }
.vt-nav__row {
  display: flex;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.vt-nav__row::-webkit-scrollbar { display: none; }
.vt-nav a, .vt-nav button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 12px;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--vt-text);
  white-space: nowrap;
  text-decoration: none;
  min-height: 44px;
}
.vt-nav a:hover, .vt-nav button:hover { color: var(--vt-green); }
.vt-nav .vt-nav__all { font-weight: 600; color: var(--vt-a700); padding-left: 0; }
.vt-nav .vt-nav__pro { margin-left: auto; font-weight: 600; color: var(--vt-ochre); }

/* ───────────────────────────── vetrina ─────────────────────────────── */

.vt-hero {
  background: var(--vt-a900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.vt-hero__media { position: absolute; inset: 0; opacity: .5; }
.vt-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.vt-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(15, 42, 25, .96) 0%, rgba(15, 42, 25, .86) 45%, rgba(15, 42, 25, .38) 100%);
  pointer-events: none;
}
.vt-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 34px;
  align-items: center;
  padding-block: clamp(28px, 5vw, 64px);
}
.vt-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vt-a300);
  margin-bottom: 14px;
}
.vt-hero h1 {
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.04;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.vt-hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--vt-a200);
  margin: 0 0 22px;
  max-width: 46ch;
}
.vt-hero__panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 14px;
  max-width: 560px;
}
.vt-hero__search { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-hero__search > div {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 9px;
  padding: 0 10px;
  height: 46px;
}
.vt-hero__search > div > svg { flex: none; color: var(--vt-a700); }
.vt-hero__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 14.5px;
  color: var(--vt-text);
  background: transparent;
  height: 100%;
}
.vt-hero__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 11.5px;
  color: var(--vt-a200);
  letter-spacing: .06em;
}
.vt-hero__or::before,
.vt-hero__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .2);
}
.vt-hero__points {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--vt-a200);
}
.vt-hero__points span { display: flex; align-items: center; gap: 6px; }
.vt-hero__points svg { color: var(--vt-green-bright); flex: none; }
.vt-hero__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vt-hero__tile {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--vt-a800);
}
.vt-hero__tile img { width: 100%; height: 100%; object-fit: cover; }

/* Riquadri delle categorie / marche / tipologie. */
.vt-tile {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  color: var(--vt-text);
  min-height: 104px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.vt-tile:hover { border-color: var(--vt-green); box-shadow: var(--vt-shadow-md); }
.vt-tile svg { color: var(--vt-a700); }
.vt-tile__name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.vt-tile__meta { font-size: 11.5px; color: var(--vt-n600); margin-top: auto; }

.vt-tile--brand {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  min-height: 86px;
  padding: 16px 10px;
}
.vt-tile--brand .vt-tile__name { font-size: 14.5px; font-weight: 700; }
.vt-tile--brand .vt-tile__meta { margin-top: 0; }

/* Numerate: "Come trovare il ricambio corretto". */
.vt-step {
  border: 1px solid var(--vt-divider);
  border-radius: 13px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--vt-surface);
}
.vt-step__n {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--vt-a100);
  color: var(--vt-a700);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.vt-step p { font-size: 13.5px; color: var(--vt-n700); margin: 0; flex: 1; line-height: 1.5; }

/* Fascia verde di invito all'assistenza. */
.vt-band {
  background: var(--vt-a700);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  align-items: center;
  color: #fff;
}
.vt-band h2 {
  font-size: clamp(21px, 2.6vw, 28px);
  margin: 0 0 8px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.02em;
}
.vt-band p { font-size: 14.5px; color: var(--vt-a200); margin: 0 0 16px; max-width: 52ch; line-height: 1.5; }
.vt-band__media { display: flex; gap: 12px; align-items: stretch; }
.vt-band__media > span {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  min-height: 190px;
  background: var(--vt-a800);
}
.vt-band__media img { width: 100%; height: 100%; object-fit: cover; }

/* Schede "tipologia di ricambio" e recensioni. */
.vt-info {
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vt-info p { font-size: 13px; color: var(--vt-n700); margin: 0; flex: 1; line-height: 1.5; }
.vt-info__foot { font-size: 12px; color: var(--vt-n600); display: flex; align-items: center; gap: 6px; }

/* ──────────────────── scheda prodotto in elenco ─────────────────────── */

.vt-prod {
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.vt-prod:hover { border-color: var(--vt-n400); box-shadow: var(--vt-shadow-md); }
.vt-prod__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--vt-n100);
  overflow: hidden;
}
.vt-prod__media img { width: 100%; height: 100%; object-fit: cover; }
.vt-prod__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--vt-n400); }
.vt-prod__flags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  pointer-events: none;
  max-width: calc(100% - 58px);
}
.vt-prod__wish {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--vt-n700);
}
.vt-prod__wish:hover { color: var(--vt-red); }
.vt-prod__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.vt-prod__kicker {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vt-n600);
}
.vt-prod__name {
  background: none;
  border: 0;
  padding: 2px 0;
  min-height: 24px;
  text-align: left;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  color: var(--vt-text);
  text-decoration: none;
  /* un nome lungo non deve allungare la scheda all'infinito */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vt-prod__name:hover { color: var(--vt-green); }
.vt-prod__codes {
  font-family: var(--vt-mono);
  font-size: 11.5px;
  color: var(--vt-n700);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.vt-prod__feature { font-size: 12.5px; color: var(--vt-n700); line-height: 1.4; }
.vt-prod__stock { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.vt-prod__stock--in { color: var(--vt-green); }
.vt-prod__stock--low { color: var(--vt-ochre); }
.vt-prod__stock--out { color: var(--vt-red); }
.vt-prod__foot {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  flex-wrap: wrap;
}
.vt-prod__price-old {
  display: block;
  font-size: 12px;
  color: var(--vt-n600);
  text-decoration: line-through;
}
.vt-prod__price {
  display: block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.vt-prod__vat { display: block; font-size: 11px; color: var(--vt-n600); }
.vt-prod__buy { display: flex; gap: 6px; align-items: center; }

/* Riga "visti recentemente". */
.vt-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 11px;
  padding: 9px;
  cursor: pointer;
  text-align: left;
  color: var(--vt-text);
  min-height: 64px;
  text-decoration: none;
}
.vt-mini:hover { border-color: var(--vt-green); }
.vt-mini__thumb {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--vt-n100);
  display: grid;
  place-items: center;
  color: var(--vt-n400);
}
.vt-mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-mini__text { min-width: 0; }
.vt-mini__text > span { display: block; }

/* ────────────────────────────── catalogo ───────────────────────────── */

.vt-crumb {
  font-size: 12.5px;
  color: var(--vt-n600);
  margin-bottom: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}
.vt-crumb a, .vt-crumb button {
  background: none;
  border: 0;
  padding: 2px 0;
  font: inherit;
  font-size: 12.5px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.vt-crumb a:hover, .vt-crumb button:hover { text-decoration: underline; }
.vt-crumb__here { color: var(--vt-text); }

.vt-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.vt-cat-tools { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }

/* Pillole delle sottocategorie. */
.vt-chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vt-chips::-webkit-scrollbar { display: none; }
.vt-chip {
  white-space: nowrap;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--vt-divider);
  border-radius: 99px;
  background: var(--vt-surface);
  color: var(--vt-text);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.vt-chip:hover { border-color: var(--vt-green); }
.vt-chip[aria-current="true"] { background: var(--vt-a700); border-color: var(--vt-a700); color: #fff; }

/* Catalogo: filtri a sinistra, elenco a destra. Sotto 860px i filtri
   diventano un pannello a comparsa dal basso. */
.vt-shop { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.vt-shop__side {
  flex: 1 1 210px;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vt-shop__list { flex: 1 1 460px; min-width: 0; }
.vt-filters { display: flex; flex-direction: column; gap: 13px; }
.vt-filters__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vt-filters__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--vt-n600);
}
.vt-filters__group > span:first-child {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 7px;
}
.vt-filters__list { display: flex; flex-direction: column; gap: 6px; }
.vt-range { width: 100%; accent-color: var(--vt-green); min-height: 32px; }

.vt-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(34, 38, 43, .5);
  display: flex;
  align-items: flex-end;
}
.vt-sheet__panel {
  width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  overflow-y: auto;
  background: var(--vt-surface);
  border-radius: 18px 18px 0 0;
  padding: 18px;
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}
.vt-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* ──────────────────────── scheda prodotto ──────────────────────────── */

.vt-pdp { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.vt-pdp__media { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.vt-pdp__buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 13px; }

.vt-gal__main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 14px;
  overflow: hidden;
}
.vt-gal__main img { width: 100%; height: 100%; object-fit: contain; }
.vt-gal__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--vt-n400); }
.vt-gal__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.vt-gal__thumb {
  aspect-ratio: 1;
  border: 2px solid var(--vt-divider);
  border-radius: 9px;
  overflow: hidden;
  background: var(--vt-surface);
  cursor: pointer;
  padding: 0;
}
.vt-gal__thumb[aria-current="true"] { border-color: var(--vt-a700); }
.vt-gal__thumb img { width: 100%; height: 100%; object-fit: cover; }

.vt-pdp__brand {
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--vt-n600);
}
.vt-pdp h1 {
  font-size: clamp(21px, 2.8vw, 30px);
  margin: 3px 0 8px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  text-wrap: pretty;
}
.vt-pdp__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Riquadro dei codici. */
.vt-codes {
  background: var(--vt-n100);
  border-radius: 11px;
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 9px;
}
.vt-codes__k {
  display: block;
  font-size: 11px;
  color: var(--vt-n600);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.vt-codes__v {
  font-family: var(--vt-mono);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.vt-buybox {
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 13px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vt-buybox__price { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.vt-buybox__now {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.vt-buybox__was { display: block; font-size: 13px; color: var(--vt-n600); text-decoration: line-through; }
.vt-buybox__vat { display: block; font-size: 12px; color: var(--vt-n600); }
.vt-buybox__facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.vt-buybox__facts > span { display: flex; align-items: center; gap: 6px; }
.vt-buybox__add { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.vt-buybox__add .vt-btn { flex: 1 1 200px; }
.vt-buybox__aux { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-buybox__aux .vt-btn { flex: 1 1 130px; font-size: 13.5px; font-weight: 600; }

/* Varianti: pulsanti, menu o campioni colore. */
.vt-variants { display: flex; flex-direction: column; gap: 8px; }
.vt-variants__label { font-size: 12.5px; font-weight: 600; }
.vt-variants__opts { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-variant {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--vt-n400);
  border-radius: 9px;
  background: var(--vt-surface);
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.vt-variant:hover:not(:disabled) { border-color: var(--vt-green); }
.vt-variant[aria-pressed="true"] {
  border-color: var(--vt-a700);
  box-shadow: inset 0 0 0 1px var(--vt-a700);
  font-weight: 600;
}
.vt-variant:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.vt-variant__swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--vt-divider); flex: none; }

/* Schede a linguette. */
.vt-tabs {
  margin-top: 28px;
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 14px;
  overflow: hidden;
}
.vt-tabs__bar {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--vt-divider);
  padding: 8px 8px 0;
  scrollbar-width: none;
}
.vt-tabs__bar::-webkit-scrollbar { display: none; }
.vt-tabs__bar button {
  white-space: nowrap;
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--vt-n700);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  flex: none;
}
.vt-tabs__bar button:hover { background: var(--vt-n100); }
.vt-tabs__bar button[aria-selected="true"] { background: var(--vt-a700); color: #fff; }
.vt-tabs__body { padding: clamp(14px, 2vw, 22px); }
.vt-tabs__split { display: flex; flex-wrap: wrap; gap: 24px; }
.vt-tabs__split > div:first-child { flex: 1 1 380px; min-width: 0; }
.vt-tabs__aside {
  flex: 1 1 240px;
  max-width: 340px;
  background: var(--vt-n100);
  border-radius: 12px;
  padding: 16px;
}
.vt-prose { font-size: 14.5px; line-height: 1.6; color: var(--vt-n800); max-width: 70ch; }
.vt-prose :where(h2, h3) { font-weight: 700; margin: 16px 0 7px; line-height: 1.25; }
.vt-prose h2 { font-size: 19px; margin-top: 0; }
.vt-prose h3 { font-size: 15.5px; }
.vt-prose p { margin: 0 0 12px; }
.vt-prose :where(ul, ol) { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
.vt-prose a { color: var(--vt-green); }

/* Righe specifica. */
.vt-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 24px; }
.vt-specs__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--vt-n200);
  font-size: 14px;
}
.vt-specs__row > span:first-child { color: var(--vt-n700); }
.vt-specs__row > span:last-child {
  font-weight: 600;
  font-family: var(--vt-mono);
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Tabella larga: scorre dentro il suo contenitore, non trascina la pagina. */
.vt-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vt-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
.vt-table thead tr { background: var(--vt-n100); }
.vt-table th {
  text-align: left;
  padding: 10px;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--vt-n700);
  white-space: nowrap;
}
.vt-table td { padding: 10px; border-bottom: 1px solid var(--vt-n200); vertical-align: top; }

.vt-faq {
  background: var(--vt-n100);
  border-radius: 10px;
  padding: 13px;
}
.vt-faq + .vt-faq { margin-top: 9px; }
.vt-faq summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.vt-faq p { font-size: 13.5px; color: var(--vt-n800); margin: 9px 0 0; line-height: 1.55; }

/* Barra prezzo+acquista appiccicata in basso sui telefoni. */
.vt-pdp-bar {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 45;
  padding: 10px 14px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  background: var(--vt-surface);
  box-shadow: 0 -2px 10px rgba(34, 38, 43, .12);
  gap: 10px;
  align-items: center;
}
.vt-pdp-bar .vt-btn { flex: 1; }

/* ───────────────────────────── carrello ───────────────────────────── */

.vt-cart { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.vt-cart__lines { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.vt-cart__side {
  flex: 1 1 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vt-line {
  padding: 14px;
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--vt-n200);
}
.vt-line:last-child { border-bottom: 0; }
.vt-line__thumb {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--vt-n100);
  display: grid;
  place-items: center;
  color: var(--vt-n400);
}
.vt-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vt-line__main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vt-line__name {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--vt-text);
  line-height: 1.25;
  text-decoration: none;
}
.vt-line__name:hover { color: var(--vt-green); }
.vt-line__side { display: flex; flex-direction: column; gap: 9px; align-items: flex-end; margin-left: auto; }
.vt-line__tot { text-align: right; }
.vt-line__tot > span:first-child {
  display: block;
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vt-line__tot > span:last-child { display: block; font-size: 11.5px; color: var(--vt-n600); }

.vt-sum { display: flex; flex-direction: column; gap: 10px; }
.vt-sum__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.vt-sum__row > span:first-child { color: var(--vt-n700); }
.vt-sum__row > span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.vt-sum__tot {
  border-top: 1px solid var(--vt-divider);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.vt-sum__tot > span:first-child { font-size: 15px; font-weight: 700; }
.vt-sum__tot > span:last-child {
  font-size: 23px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────── piè di pagina ────────────────────────── */

.vt-footer { background: var(--vt-a900); color: var(--vt-a200); margin-top: auto; }
.vt-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 26px;
  padding-block: clamp(28px, 3.5vw, 44px);
}
.vt-footer__about { min-width: min(100%, 220px); }
.vt-footer__brand {
  display: block;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  margin-bottom: 8px;
}
.vt-footer p { font-size: 13px; line-height: 1.55; margin: 0 0 12px; }
.vt-footer__legal { font-size: 12px; line-height: 1.6; margin: 0; color: var(--vt-n500); }
.vt-footer h3 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
}
.vt-footer__links { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.vt-footer__links a, .vt-footer__links button {
  background: none;
  border: 0;
  padding: 3px 0;
  text-align: left;
  font: inherit;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
}
.vt-footer__links a:hover, .vt-footer__links button:hover { color: #fff; text-decoration: underline; }
.vt-footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); }
.vt-footer__bar .vt-wrap {
  padding-block: 14px;
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--vt-n500);
}
.vt-footer__social { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.vt-footer__social a { color: inherit; }
.vt-footer__social a:hover { color: #fff; }

/* ───────────────── barra di navigazione per telefoni ─────────────── */

.vt-tabbar {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: var(--vt-surface);
  box-shadow: 0 -1px 0 var(--vt-divider);
  grid-template-columns: repeat(4, 1fr);
  padding: 4px 2px;
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px));
}
.vt-tabbar a, .vt-tabbar button {
  position: relative;
  min-height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--vt-text);
  font-size: 10.5px;
  text-decoration: none;
}
.vt-tabbar .vt-tabbar__cart { color: var(--vt-orange); }
.vt-tabbar .vt-badge { right: calc(50% - 20px); top: 2px; }

/* ──────────────────────────── notifica ─────────────────────────────── */

.vt-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 90;
  background: var(--vt-n900);
  color: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  box-shadow: var(--vt-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  animation: vt-toast-in 3.6s ease forwards;
}
.vt-toast svg { color: var(--vt-green-bright); flex: none; }

@keyframes vt-toast-in {
  0%   { opacity: 0; transform: translateX(-50%) translateY(14px); }
  10%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  88%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

.vt-spin { animation: vt-spin 1s linear infinite; }
@keyframes vt-spin { to { transform: rotate(360deg); } }

.vt-skel {
  background: linear-gradient(90deg, var(--vt-n200) 25%, var(--vt-n100) 37%, var(--vt-n200) 63%);
  background-size: 420px 100%;
  animation: vt-shimmer 1.3s linear infinite;
  border-radius: 8px;
}
@keyframes vt-shimmer {
  0%   { background-position: -420px 0; }
  100% { background-position: 420px 0; }
}

/* Solo per lettori di schermo. */
.vt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   Punti di rottura
   Il design nativo cambiava disposizione solo tramite un flag JavaScript
   letto una volta; qui sono media query, quindi valgono anche ruotando il
   telefono o ridimensionando la finestra.
   ====================================================================== */

/* — tablet orizzontale — */
@media (max-width: 1080px) {
  .vt-cart__side { position: static; }
  .vt-shop__side { max-width: 240px; }
  .vt-band__media > span { min-height: 150px; }
}

/* — tablet verticale: la ricerca passa a riga propria — */
@media (max-width: 920px) {
  .vt-header__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }
  .vt-search { grid-column: 1 / -1; grid-row: 2; }
  .vt-actions { justify-content: flex-end; }
}

/* — telefoni: pannello filtri, barra inferiore, griglie più strette — */
@media (max-width: 860px) {
  :root { --vt-gutter: 14px; }

  /* I filtri laterali escono dal flusso: li apre il pulsante "Filtri". */
  .vt-shop__side { display: none; }
  .vt-shop__side--open {
    display: flex;
    max-width: none;
    flex: 1 1 100%;
  }
  .vt-shop__list { flex: 1 1 100%; }

  .vt-tabbar { display: grid; }
  .vt-pdp-bar { display: flex; }

  /* Le icone "Account" e "Liste" vivono nella barra inferiore e nel menu:
     nella testata resta il carrello, che è l'azione che serve sempre. */
  .vt-act--hide-sm { display: none; }

  .vt-grid--prod { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; }
  .vt-grid--cat  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); }
  .vt-band__media { display: none; }
  .vt-footer__cols { gap: 20px; }
  .vt-hero__tiles { grid-template-columns: repeat(2, 1fr); }
  .vt-tabs { margin-top: 20px; }
  .vt-line__thumb { width: 68px; height: 68px; }
}

/* — telefoni stretti — */
@media (max-width: 640px) {
  .vt-brand__kicker { display: none; }
  .vt-search__box { height: 46px; }
  .vt-search button { padding: 0 13px; }

  .vt-cat-head { align-items: stretch; }
  .vt-cat-tools { width: 100%; }
  .vt-cat-tools > label { flex: 1 1 auto; }

  .vt-gal__thumbs { grid-template-columns: repeat(4, 1fr); }
  .vt-specs__row { font-size: 13.5px; }

  /* Il totale riga scende sotto al nome invece di schiacciarlo. */
  .vt-line__side {
    margin-left: 0;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .vt-line__tot { text-align: left; }

  .vt-buybox__now { font-size: 26px; }
  .vt-footer__cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
}

/* — telefoni molto stretti (360px e meno) — */
@media (max-width: 420px) {
  .vt-grid--prod { grid-template-columns: 1fr; }
  .vt-grid--cat  { grid-template-columns: repeat(2, 1fr); }
  .vt-grid--brand { grid-template-columns: repeat(2, 1fr); }
  .vt-hero__tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vt-prod__foot { flex-direction: column; align-items: stretch; }
  .vt-prod__buy { justify-content: space-between; }
  .vt-tabs__bar button { padding: 0 11px; font-size: 13px; }
}

/* Chi ha chiesto meno animazioni non ne riceve. */
@media (prefers-reduced-motion: reduce) {
  .vt *, .vt *::before, .vt *::after,
  .vt-header *, .vt-footer *, .vt-tabbar *, .vt-sheet * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .vt-toast, .vt-skel, .vt-spin { animation: none; }
}

/* In stampa: via tutto ciò che non è contenuto. */
@media print {
  .vt-topbar, .vt-nav, .vt-tabbar, .vt-pdp-bar, .vt-toast, .vt-actions,
  .vt-search, .vt-footer__social { display: none !important; }
  .vt-header { position: static; box-shadow: none; }
  .vt { background: #fff; }
}

/* Su schermi stretti la barra informativa si riduce: cinque promesse
   impilate su tre righe rubano l'altezza che serve al contenuto. */
@media (max-width: 640px) {
  .vt-topbar li:nth-child(n+3) { display: none; }
  .vt-topbar .vt-wrap { gap: 6px 16px; }
}

/* Sotto i 360px il pulsante di ricerca si accorcia per non schiacciare il
   campo di testo. */
@media (max-width: 360px) {
  .vt-search button { font-size: 0; padding: 0 12px; }
  .vt-search button::after { content: "OK"; font-size: 14px; font-weight: 600; }
}

/* Riquadro di iscrizione agli avvisi: superficie chiara, perché il modulo
   del core porta la propria grafica, tarata su un fondo chiaro. */
.vt-newsletter {
  background: var(--vt-surface);
  border: 1px solid var(--vt-divider);
  border-radius: 16px;
  padding: clamp(18px, 2.5vw, 28px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
  align-items: center;
}

/* Il pulsante "Filtri" serve solo dove la colonna laterale è nascosta:
   sopra gli 860px i filtri sono già in pagina e il pulsante sarebbe un
   doppione che apre un foglio inutile. */
.vt-cat-tools .vt-btn--outline { display: none; }
@media (max-width: 860px) {
  .vt-cat-tools .vt-btn--outline { display: inline-flex; }
}
