/* ==========================================================================
   Ricambi, manutenzione e listino, piano v3 (P2.4). JS in t4-shop.js
   (scaffale e anteprima) e t4-maint.js (manutenzione e listino).
   Impianto della pagina specifiche di rideradian.com, come Supporto (P5):
   - .t4sh__frame  cornice a 2 colonne: a sinistra (25%) titolo, ricerca a
                   pillola e indice col pallino, fissata con t4fx.pin da 992px;
                   sotto i 992px una colonna, con ricerca e chip fermi in alto
                   (sticky nativo: lì c'è Lenis, non lo smoother)
   - .t4sh-shelf   scaffale: righe di card appoggiate su un ripiano (linea
                   sottile + ombra morbida); le righe le compone il JS
   - .t4shp        anteprima dello scaffale nella pagina Kart (capitolo 9)
   - .t4mt / .t4ls piano di manutenzione e listino
   Token, .t4-pill, .t4-dot e .t4fx-mark da t4-fx.css. Misure in px con
   clamp(): la root del tema cambia valore con la larghezza. Con "riduci
   movimento" niente transizioni.
   ========================================================================== */
.t4sh { --t4sh-line: rgba(14, 20, 48, .16); background: var(--t4-page); color: var(--t4-navy); position: relative; }
.t4sh *, .t4sh *::before, .t4sh *::after { box-sizing: border-box; }
.t4sh--main { padding: clamp(40px, 5vw, 96px) 0 clamp(64px, 7vw, 128px); }
/* stessa colonna di .t4h__inner (e di Supporto) */
.t4sh__wrap { margin: 0 auto; width: 89.23%; }
.t4sh__frame { display: flex; flex-direction: column; gap: 0; }
@media (min-width: 992px) {
  .t4sh__wrap { max-width: 108.375rem; width: 90.94%; }
  /* la colonna sinistra non scende sotto i 260px: a 992-1100px la ricerca a pillola tagliava il testo d'esempio */
  .t4sh__frame { column-gap: clamp(32px, 3.4vw, 72px); display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 3fr); }
}
.t4sh__main { min-width: 0; }
/* finché i dati non arrivano il blocco tiene il posto: quello che sta sotto non salta (CLS) */
[data-t4sh-shelf][aria-busy="true"], [data-t4mt-plan][aria-busy="true"], [data-t4ls][aria-busy="true"] { min-height: 100vh; }
/* le due card delle revisioni (Manutenzione) più la nota sotto: misurate a
   320-1920px; comparendo dopo il caricamento spingevano giù il piano (CLS) */
[data-t4mt-svcs][aria-busy="true"] { min-height: 580px; }
@media (min-width: 600px) { [data-t4mt-svcs][aria-busy="true"] { min-height: 472px; } }
@media (min-width: 768px) { [data-t4mt-svcs][aria-busy="true"] { min-height: 323px; } }
@media (min-width: 992px) { [data-t4mt-svcs][aria-busy="true"] { min-height: 345px; } }
@media (min-width: 1700px) { [data-t4mt-svcs][aria-busy="true"] { min-height: 300px; } }
/* da telefono la colonna sinistra si scioglie nella cornice: così ricerca e
   chip possono restare fermi in alto per tutta la sezione */
@media (max-width: 991px) {
  .t4sh-side, .t4sh-side__in { display: contents; }
}

.t4sh .t4sh__k { font-family: var(--t4-mono); font-size: 12px; letter-spacing: .1em; line-height: 1.3; margin: 0 0 14px; opacity: .75; text-transform: uppercase; }
.t4sh .t4sh__h2 { color: inherit; font-family: var(--t4-head); font-size: var(--t4-h2); font-weight: 500; letter-spacing: var(--t4-h2-track); line-height: 1.02; margin: 0; }
.t4sh .t4sh__lead { font-family: var(--t4-head); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.5; margin: 14px 0 0; max-width: 34ch; opacity: .72; }
/* nota di più righe: testo normale (il maiuscolo mono resta alle etichette brevi) */
.t4sh .t4sh__note { font-family: var(--t4-head); font-size: 13px; letter-spacing: 0; line-height: 1.55; margin: 18px 0 0; max-width: 46ch; opacity: .78; text-transform: none; }

/* --------------------------------------------------------------------------
   Ricerca a pillola
   -------------------------------------------------------------------------- */
.t4sh-search {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(14, 20, 48, .12);
  border-radius: 999px;
  color: var(--t4-navy);
  display: flex;
  gap: 10px;
  height: 52px;
  margin: 0;
  max-width: 460px;
  padding: 0 6px 0 18px;
  transition: border-color var(--t4-dur) var(--t4-ease), box-shadow var(--t4-dur) var(--t4-ease);
}
.t4sh-search:focus-within { border-color: var(--t4-blue); box-shadow: 0 0 0 3px rgba(36, 72, 216, .14); }
.t4sh-search > svg { flex: 0 0 auto; height: 18px; opacity: .55; width: 18px; }
.t4sh .t4sh-search__in, .t4shp .t4sh-search__in {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  flex: 1;
  font-family: var(--t4-head);
  font-size: 16px;            /* 16px: da iPhone niente zoom al tocco */
  height: 100%;
  margin: 0;
  min-width: 0;
  outline: none;
  padding: 0;
  text-overflow: ellipsis;
}
.t4sh-search__in::placeholder { color: rgba(14, 20, 48, .45); }
.t4sh-search__in::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.t4sh-search__x, .t4sh-search__go { align-items: center; background: rgba(14, 20, 48, .06); border: 0; border-radius: 50%; color: inherit; cursor: pointer; display: grid; flex: 0 0 auto; height: 40px; justify-items: center; padding: 0; width: 40px; }
.t4sh-search__x[hidden] { display: none; }
.t4sh-search__x:hover { background: var(--t4-navy); color: #fff; }
.t4sh-search__go { background: var(--t4-grad); color: #fff; }
.t4sh-search__go:hover { box-shadow: 0 8px 20px rgba(36, 72, 216, .3); }
.t4sh-search__x:focus-visible, .t4sh-search__go:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }
.t4sh-search__x svg, .t4sh-search__go svg { height: 14px; width: 14px; }
.t4sh .t4sh-count { font-family: var(--t4-mono); font-size: 11px; letter-spacing: .08em; margin: 10px 0 0 18px; min-height: 1.5em; opacity: .7; text-transform: uppercase; }

/* esempi sotto la ricerca (etichette dei concetti di Filament) */
.t4sh-try { align-items: center; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 0; }
.t4sh-try[hidden] { display: none; }
.t4sh-try__list { display: contents; }
.t4sh .t4sh-try__k { font-family: var(--t4-mono); font-size: 11px; letter-spacing: .08em; margin: 0 4px 0 0; opacity: .6; text-transform: uppercase; }
.t4sh-try__b {
  background: transparent;
  border: 1px solid rgba(14, 20, 48, .18);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font-family: var(--t4-head);
  font-size: 13px;
  line-height: 1;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
  transition: background-color var(--t4-dur) var(--t4-ease), border-color var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease);
}
a.t4sh-try__b { align-items: center; display: inline-flex; }
.t4sh-try__b:hover { background: var(--t4-navy); border-color: var(--t4-navy); color: #fff; text-decoration: none; }
.t4sh-try__b:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Indice a sinistra (albero delle categorie, gruppi del piano) col pallino
   -------------------------------------------------------------------------- */
.t4sh-tree { margin-top: 24px; }
.t4sh-tree ul { list-style: none; margin: 0; padding: 0; }
.t4sh-tree li[hidden] { display: none; }
.t4sh-tree__sub { margin: 0 0 6px 14px !important; }
.t4sh-tree__sub[hidden] { display: none; }
.t4sh-tree__b {
  align-items: baseline;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font-family: var(--t4-head);
  font-size: clamp(15px, 1.05vw, 17px);
  gap: 10px;
  justify-content: space-between;
  line-height: 1.3;
  color: rgba(14, 20, 48, .72);
  padding: 5px 0;
  position: relative;
  text-align: left;
  transition: color var(--t4-dur) var(--t4-ease);
  width: 100%;
}
.t4sh-tree__sub .t4sh-tree__b { font-size: clamp(14px, .95vw, 15px); padding: 4px 0; }
.t4sh-tree__b::before {
  background: var(--t4-blue);
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: calc(50% - 3px);
  transform: scale(0);
  transition: transform var(--t4-dur) var(--t4-ease);
  width: 6px;
}
.t4sh-tree__b > span { display: inline-block; transition: transform var(--t4-dur) var(--t4-ease); }
.t4sh-tree__b > em { font-family: var(--t4-mono); font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.t4sh-tree__b:hover, .t4sh-tree__b[aria-expanded="true"], .t4sh-tree__b[aria-current="true"] { color: var(--t4-navy); }
.t4sh-tree__b[aria-current="true"]::before { transform: scale(1); }
.t4sh-tree__b[aria-current="true"] > span { transform: translateX(14px); }
.t4sh-tree__b:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }
@media (max-width: 991px) { .t4sh-tree { display: none; } }

/* --------------------------------------------------------------------------
   Barra ferma da telefono: ricerca + chip (il chip attivo è pieno blu)
   --t4sh-top lo misura il JS: subito sotto la pillola dell'header
   -------------------------------------------------------------------------- */
.t4sh-dock { margin: 28px 0 0; }
.t4sh-chips { display: none; }
@media (max-width: 991px) {
  .t4sh-dock {
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    /* opaca: sotto non devono trasparire conteggio e filtri che scorrono */
    background: var(--t4-page);
    border-bottom: 1px solid var(--t4sh-line);
    margin: 22px -5.385vw 0;
    padding: 10px 5.385vw 0;
    position: sticky;
    top: var(--t4sh-top, 84px);
    z-index: 6;
  }
  /* lo stacco di 6px tra la pillola dell'header e la barra: pieno anche lui */
  .t4sh-dock::before { background: var(--t4-page); bottom: 100%; content: ""; height: 8px; left: 0; pointer-events: none; position: absolute; right: 0; }
  .t4sh-dock .t4sh-search { max-width: none; }
  .t4sh-chips { display: block; margin: 0 -5.385vw; }
  .t4sh-chips__scroll {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5.385vw, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5.385vw, #000 calc(100% - 32px), transparent 100%);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .t4sh-chips__scroll::-webkit-scrollbar { display: none; }
  .t4sh-chips ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 10px 5.385vw; width: max-content; }
  .t4sh-chips li[hidden] { display: none; }
  .t4sh-chips__sep { align-self: center; background: var(--t4sh-line); height: 22px; width: 1px; }
  .t4sh .t4sh-count { margin: 12px 0 0; }
}
.t4sh-chips__b {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(14, 20, 48, .14);
  border-radius: 999px;
  color: var(--t4-navy);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--t4-head);
  font-size: 14px;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  transition: background-color var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease), border-color var(--t4-dur) var(--t4-ease);
  white-space: nowrap;
}
.t4sh-chips__b em { font-family: var(--t4-mono); font-size: 11px; font-style: normal; opacity: .7; }
.t4sh-chips__b[aria-current="true"] { background: var(--t4-blue); border-color: var(--t4-blue); color: #fff; }
.t4sh-chips__b:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Filtri (servizi, fascia di prezzo) e ordinamento sopra lo scaffale
   -------------------------------------------------------------------------- */
.t4sh-tools { align-items: center; border-bottom: 1px solid var(--t4sh-line); display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; padding: 0 0 16px; }
/* da telefono il contenuto viene sotto la colonna del titolo */
@media (max-width: 991px) { .t4sh__main { margin-top: 24px; } .t4sh-tools { margin-top: 0; } }
.t4sh-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.t4sh-f {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(14, 20, 48, .2);
  border-radius: 999px;
  color: var(--t4-navy);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--t4-head);
  font-size: 14px;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  transition: background-color var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease), border-color var(--t4-dur) var(--t4-ease);
}
.t4sh-f em { font-family: var(--t4-mono); font-size: 11px; font-style: normal; opacity: .7; }
.t4sh-f:hover { border-color: var(--t4-navy); }
.t4sh-f[aria-pressed="true"] { background: var(--t4-navy); border-color: var(--t4-navy); color: #fff; }
.t4sh-f[aria-pressed="true"]::before { background: var(--t4-sky); border-radius: 50%; content: ""; height: 6px; width: 6px; }
.t4sh-f:disabled { cursor: default; opacity: .35; }
.t4sh-f:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }
.t4sh-sort { align-items: center; display: inline-flex; gap: 8px; }
.t4sh .t4sh-sort label { font-family: var(--t4-mono); font-size: 11px; letter-spacing: .08em; margin: 0; opacity: .65; text-transform: uppercase; }
.t4sh .t4sh-sort select {
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230e1430' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  border: 1px solid rgba(14, 20, 48, .2);
  border-radius: 999px;
  color: var(--t4-navy);
  cursor: pointer;
  font-family: var(--t4-head);
  font-size: 14px;
  height: 40px;
  margin: 0;
  padding: 0 36px 0 14px;
}
.t4sh-sort select:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }

@media (max-width: 991px) {
  .t4sh-filters, .t4sh-try { flex-wrap: nowrap; margin-left: -5.385vw; margin-right: -5.385vw; overflow-x: auto; padding: 2px 5.385vw; scrollbar-width: none; }
  .t4sh-filters::-webkit-scrollbar, .t4sh-try::-webkit-scrollbar { display: none; }
  .t4sh-filters > *, .t4sh-try__b, .t4sh-try__k { flex: 0 0 auto; white-space: nowrap; }
  .t4sh-tools { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
  .t4sh-sort { justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Intestazione dei risultati ("Probabilmente ti servono") e servizio consigliato
   -------------------------------------------------------------------------- */
.t4sh-head { padding: clamp(20px, 2vw, 32px) 0 4px; }
.t4sh-head[hidden] { display: none; }
.t4sh .t4sh-head__k { color: var(--t4-blue); font-family: var(--t4-mono); font-size: 11px; letter-spacing: .1em; margin: 0 0 8px; text-transform: uppercase; }
.t4sh .t4sh-head__t { color: inherit; font-family: var(--t4-head); font-size: clamp(22px, 1.75vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 0; overflow-wrap: anywhere; text-transform: none; }
.t4sh .t4sh-head__p { font-family: var(--t4-head); font-size: 15px; line-height: 1.5; margin: 8px 0 0; opacity: .7; }
.t4sh-wait { align-items: center; display: inline-flex; font-family: var(--t4-mono); font-size: 11px; gap: 8px; letter-spacing: .08em; margin-top: 10px; text-transform: uppercase; }
.t4sh-wait[hidden] { display: none; }
.t4sh-wait::before { animation: t4sh-pulse 1s ease-in-out infinite; background: var(--t4-blue); border-radius: 50%; content: ""; height: 6px; width: 6px; }
@keyframes t4sh-pulse { 50% { opacity: .25; } }

.t4sh-svc {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(14, 20, 48, .06);
  border-radius: 20px;
  display: grid;
  gap: 14px 20px;
  grid-template-columns: 88px minmax(0, 1fr);
  margin: 18px 0 6px;
  padding: 16px;
}
.t4sh-svc[hidden] { display: none; }
.t4sh-svc__img { align-items: center; aspect-ratio: 1; background: #f2f2f2; border-radius: 14px; display: flex; justify-content: center; overflow: hidden; }
.t4sh-svc__img img { height: 100%; mix-blend-mode: multiply; object-fit: contain; width: 100%; }
.t4sh .t4sh-svc__k { color: var(--t4-blue); font-family: var(--t4-mono); font-size: 11px; letter-spacing: .1em; margin: 0 0 4px; text-transform: uppercase; }
.t4sh .t4sh-svc__n { color: inherit; font-family: var(--t4-head); font-size: clamp(18px, 1.3vw, 22px); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; margin: 0; text-transform: none; }
.t4sh .t4sh-svc__p { font-family: var(--t4-mono); font-size: 13px; margin: 6px 0 0; }
.t4sh-svc__go { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
@media (min-width: 768px) {
  .t4sh-svc { grid-template-columns: 96px minmax(0, 1fr) auto; padding: 18px 18px 18px 18px; }
  .t4sh-svc__go { grid-column: auto; justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   Scaffale: blocchi (una categoria = un blocco), righe e card
   -------------------------------------------------------------------------- */
.t4sh-block { padding-top: clamp(24px, 2.2vw, 40px); }
.t4sh-block__h { align-items: baseline; display: flex; gap: 10px; justify-content: space-between; margin: 0 0 4px; }
.t4sh .t4sh-block__t { color: inherit; font-family: var(--t4-head); font-size: clamp(19px, 1.4vw, 24px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 0; text-transform: none; }
.t4sh-block__t em { font-family: var(--t4-mono); font-size: 11px; font-style: normal; letter-spacing: .06em; margin-left: 6px; opacity: .6; vertical-align: middle; }
.t4sh-block__all { background: none; border: 0; color: var(--t4-blue); cursor: pointer; font-family: var(--t4-mono); font-size: 11px; letter-spacing: .08em; min-height: 40px; padding: 0; text-transform: uppercase; white-space: nowrap; }
.t4sh-block__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.t4sh-block__all:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }

.t4sh-shelf { --cols: 2; --gap: clamp(12px, 1.4vw, 24px); }
.t4sh-row {
  border-bottom: 1px solid rgba(14, 20, 48, .22);
  box-shadow: 0 14px 18px -16px rgba(14, 20, 48, .35);   /* l'ombra morbida sotto il ripiano */
  column-gap: var(--gap);
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  margin-bottom: clamp(22px, 2vw, 36px);
  padding-top: 14px;
}
@media (min-width: 600px) { .t4sh-shelf { --cols: 3; } }
@media (min-width: 1200px) { .t4sh-shelf { --cols: 4; } }

.t4sh-card { display: flex; flex-direction: column; min-width: 0; padding: 0 0 16px; position: relative; }
.t4sh-card__img {
  align-items: flex-end;
  aspect-ratio: 1;
  background: #f6f6f6;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 12%;
  position: relative;
}
/* il pezzo "appoggiato": ombra a ellisse sotto la foto */
.t4sh-card__img::after { background: radial-gradient(closest-side, rgba(14, 20, 48, .16), rgba(14, 20, 48, 0)); bottom: 6%; content: ""; height: 8%; left: 20%; position: absolute; right: 20%; }
.t4sh-card__img.is-none, .t4sh-svc__img.is-none, .t4mt-svc__img.is-none { align-items: center; padding: 12px; text-align: center; }
.t4sh-card__img.is-none::after { display: none; }
.is-none > span { font-family: var(--t4-mono); font-size: 10px; letter-spacing: .08em; line-height: 1.4; opacity: .5; text-transform: uppercase; }
.t4sh-card__img img { height: 100%; mix-blend-mode: multiply; object-fit: contain; position: relative; transition: transform .6s var(--t4-ease-out); width: 100%; z-index: 1; }
.t4sh-card__chips { display: flex; flex-wrap: wrap; gap: 4px; left: 8px; position: absolute; top: 8px; z-index: 2; }
.t4sh-chip { background: #fff; border: 1px solid rgba(14, 20, 48, .1); border-radius: 999px; font-family: var(--t4-mono); font-size: 10px; letter-spacing: .06em; line-height: 1; padding: 5px 8px; text-transform: uppercase; }
.t4sh-chip--svc { background: var(--t4-blue); border-color: var(--t4-blue); color: #fff; }
.t4sh .t4sh-card__n { color: inherit; display: -webkit-box; font-family: var(--t4-head); font-size: clamp(14px, 1vw, 16px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; margin: 12px 0 0; overflow: hidden; text-transform: none; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.t4sh-card__meta { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.t4sh .t4sh-card__p { font-family: var(--t4-mono); font-size: 13px; font-variant-numeric: tabular-nums; margin: 0; white-space: nowrap; }
.t4sh .t4sh-card__c { color: rgba(14, 20, 48, .72); font-family: var(--t4-mono); font-size: 10px; letter-spacing: .04em; margin: 6px 0 0; overflow-wrap: anywhere; text-transform: uppercase; }
.t4sh-card__buy {
  align-items: center;
  border-top: 1px solid var(--t4sh-line);
  color: var(--t4-navy);
  display: flex;
  font-family: var(--t4-mono);
  font-size: 11px;
  gap: 6px;
  justify-content: space-between;
  letter-spacing: .06em;
  margin-top: 10px;
  min-height: 40px;
  text-decoration: none;
  text-transform: uppercase;
}
.t4sh-card__buy svg { flex: 0 0 auto; height: 12px; transition: transform var(--t4-dur) var(--t4-ease); width: 12px; }
/* tutta la card porta al prodotto (un solo link, il nome per i lettori di schermo) */
.t4sh-card__buy::after { content: ""; inset: 0; position: absolute; z-index: 3; }
.t4sh-card__buy:hover, .t4sh-card__buy:focus { color: var(--t4-blue); text-decoration: none; }
.t4sh-card__buy:focus-visible { outline: none; }
.t4sh-card:focus-within { border-radius: 16px; outline: 2px solid var(--t4-blue); outline-offset: 4px; }
@media (hover: hover) {
  .t4sh-card:hover .t4sh-card__img img { transform: translateY(-4px) scale(1.03); }
  .t4sh-card:hover .t4sh-card__buy { color: var(--t4-blue); }
  .t4sh-card:hover .t4sh-card__buy svg { transform: translate(2px, -2px); }
}
/* card che entrano (filtri, "Mostra altri"): opacità e 12px, una volta */
@media (prefers-reduced-motion: no-preference) {
  .t4sh-card.is-new { animation: t4sh-in .5s var(--t4-ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }
}
@keyframes t4sh-in { from { opacity: 0; transform: translateY(12px); } }

.t4sh-more { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 8px 0 0; }
.t4sh-more[hidden] { display: none; }
.t4sh .t4sh-more__n { font-family: var(--t4-mono); font-size: 11px; letter-spacing: .08em; margin: 0; opacity: .65; text-transform: uppercase; }

/* nessun risultato e uscite sempre presenti (assistente, WhatsApp o email) */
.t4sh-none { border-top: 1px solid var(--t4sh-line); padding: clamp(24px, 2.4vw, 40px) 0 0; }
.t4sh-none[hidden] { display: none; }
.t4sh .t4sh-none__t { color: inherit; font-family: var(--t4-head); font-size: clamp(22px, 1.75vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 0; overflow-wrap: anywhere; text-transform: none; }
.t4sh .t4sh-none__p { font-family: var(--t4-head); font-size: 16px; line-height: 1.5; margin: 10px 0 0; opacity: .72; }
.t4sh-none .t4sh-exits__go { margin-top: 20px; }
.t4sh-exits {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(14, 20, 48, .06);
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  margin-top: clamp(28px, 3vw, 48px);
  padding: clamp(18px, 1.8vw, 28px);
}
.t4sh .t4sh-exits__t { font-family: var(--t4-head); font-size: clamp(18px, 1.3vw, 22px); font-weight: 500; letter-spacing: -.015em; line-height: 1.2; margin: 0; }
.t4sh .t4sh-exits__p { font-family: var(--t4-head); font-size: 14px; line-height: 1.45; margin: 4px 0 0; opacity: .7; }
.t4sh-exits__go { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599px) {
  .t4sh-exits__go, .t4sh-exits__go .t4-pill { width: 100%; }
  .t4sh-exits__go .t4-pill { justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Anteprima nella pagina Kart (capitolo 9, chiaro)
   -------------------------------------------------------------------------- */
.t4shp { background: var(--t4-page); color: var(--t4-navy); padding: clamp(64px, 7vw, 128px) 0; position: relative; }
.t4shp *, .t4shp *::before, .t4shp *::after { box-sizing: border-box; }
.t4shp__head { align-items: end; display: grid; gap: 20px 40px; grid-template-columns: minmax(0, 1fr); margin-bottom: clamp(24px, 2.4vw, 40px); }
@media (min-width: 992px) { .t4shp__head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.t4shp .t4sh__h2 { font-size: var(--t4-h2); }
.t4shp .t4sh-search { max-width: none; }
.t4shp__side { display: flex; flex-direction: column; gap: 4px; }
.t4shp__foot { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; margin-top: 8px; }
.t4shp .t4sh__note { margin: 0; }
.t4shp .t4sh-shelf { --cols: 2; }
@media (min-width: 768px) { .t4shp .t4sh-shelf { --cols: 4; } }

/* --------------------------------------------------------------------------
   Manutenzione: servizi in testa, piano a gruppi (righe tra linee sottili)
   -------------------------------------------------------------------------- */
.t4mt-svcs { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .t4mt-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t4mt-svc {
  background: #fff;
  border: 1px solid rgba(14, 20, 48, .06);
  border-radius: 24px;
  display: grid;
  gap: 16px 20px;
  grid-template-columns: 96px minmax(0, 1fr);
  height: 100%;
  padding: clamp(18px, 1.7vw, 26px);
  scroll-margin-top: 140px;
}
/* 992-1099px: con la colonna sinistra di almeno 260px le card si stringono;
   meno margine interno e "Acquista su MP Kart Shop" resta intero */
@media (min-width: 992px) and (max-width: 1099px) { .t4mt-svc { padding: 12px; } }
.t4mt-svc.is-picked { box-shadow: 0 0 0 2px var(--t4-blue); }
.t4mt-svc__img { align-items: center; aspect-ratio: 1; background: #f2f2f2; border-radius: 16px; display: flex; justify-content: center; overflow: hidden; }
.t4mt-svc__img img { height: 100%; mix-blend-mode: multiply; object-fit: contain; width: 100%; }
.t4sh .t4mt-svc__k { color: var(--t4-blue); font-family: var(--t4-mono); font-size: 11px; letter-spacing: .1em; margin: 0 0 6px; text-transform: uppercase; }
.t4sh .t4mt-svc__n { color: inherit; font-family: var(--t4-head); font-size: clamp(20px, 1.6vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.12; margin: 0; text-transform: none; }
.t4sh .t4mt-svc__p { align-items: baseline; display: flex; flex-wrap: wrap; font-family: var(--t4-mono); font-size: clamp(18px, 1.4vw, 24px); gap: 4px 10px; margin: 10px 0 0; }
.t4mt-svc__p small { font-size: 11px; letter-spacing: .06em; opacity: .6; text-transform: uppercase; }
.t4mt-svc__go { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
@media (max-width: 599px) { .t4mt-svc__go .t4-pill { justify-content: space-between; width: 100%; } }

.t4mt-sec { padding: clamp(48px, 5vw, 96px) 0; }
.t4mt-sec + .t4mt-sec { padding-top: 0; }
.t4mt-sec--checks { padding-bottom: clamp(56px, 6vw, 112px); }
.t4mt-group { border-top: 1px solid var(--t4sh-line); display: grid; gap: 4px 24px; grid-template-columns: minmax(0, 1fr); padding: clamp(18px, 2vw, 32px) 0 clamp(20px, 2.4vw, 40px); scroll-margin-top: 140px; }
.t4mt-group[hidden] { display: none; }
@media (min-width: 992px) {
  .t4mt-group { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .t4mt-group__h { grid-column: span 3; }
  .t4mt-group__list { grid-column: span 7; }
}
.t4sh .t4mt-group__t { color: inherit; font-family: var(--t4-head); font-size: clamp(22px, 1.75vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; padding: 10px 0 6px; text-transform: none; }
.t4mt-group__t em { display: block; font-family: var(--t4-mono); font-size: 11px; font-style: normal; letter-spacing: .08em; margin-top: 8px; opacity: .6; text-transform: uppercase; }
.t4mt-group__list { list-style: none; margin: 0; padding: 0; }
.t4mt-row { border-bottom: 1px solid var(--t4sh-line); padding: 18px 0; }
.t4mt-row[hidden] { display: none; }
.t4mt-row:last-child { border-bottom: 0; }
.t4sh .t4mt-row__t { color: inherit; font-family: var(--t4-head); font-size: clamp(17px, 1.3vw, 22px); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; margin: 0; text-transform: none; }
.t4mt-specs { display: grid; gap: 8px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); margin: 12px 0 0; }
.t4mt-specs > div { min-width: 0; }
.t4sh .t4mt-specs dt { color: rgba(14, 20, 48, .72); font-family: var(--t4-mono); font-size: 10px; letter-spacing: .08em; margin: 0 0 3px; text-transform: uppercase; }
.t4sh .t4mt-specs dd { font-family: var(--t4-mono); font-size: 13px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.t4mt-parts { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.t4mt-part {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(14, 20, 48, .12);
  border-radius: 999px;
  color: var(--t4-navy);
  display: inline-flex;
  font-family: var(--t4-head);
  font-size: 13px;
  gap: 6px;
  line-height: 1.2;
  min-height: 40px;
  padding: 4px 14px;
  text-decoration: none;
  transition: background-color var(--t4-dur) var(--t4-ease), border-color var(--t4-dur) var(--t4-ease), color var(--t4-dur) var(--t4-ease);
}
.t4mt-part svg { height: 10px; opacity: .6; width: 10px; }
.t4mt-part:hover, .t4mt-part:focus { background: var(--t4-navy); border-color: var(--t4-navy); color: #fff; text-decoration: none; }
.t4mt-part:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }
.t4mt-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; }
.t4mt-link { align-items: center; color: var(--t4-blue); display: inline-flex; font-family: var(--t4-mono); font-size: 11px; gap: 6px; letter-spacing: .08em; min-height: 40px; text-decoration: none; text-transform: uppercase; }
.t4mt-link:hover { color: var(--t4-blue); text-decoration: underline; text-underline-offset: 3px; }
.t4mt-link svg { height: 12px; width: 12px; }
.t4mt-link:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 2px; }

/* controlli a ogni gara (testi già pubblicati sul sito) */
.t4mt-checks { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .t4mt-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t4mt-check { background: #fff; border: 1px solid rgba(14, 20, 48, .06); border-radius: 24px; padding: clamp(20px, 1.8vw, 28px); }
.t4sh .t4mt-check h3 { color: inherit; font-family: var(--t4-head); font-size: clamp(19px, 1.4vw, 24px); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; margin: 0 0 8px; text-transform: none; }
.t4sh .t4mt-check p { font-family: var(--t4-head); font-size: 15px; line-height: 1.5; margin: 0 0 10px; opacity: .75; }
.t4mt-check ul { list-style: none; margin: 0; padding: 0; }
.t4sh .t4mt-check li { border-top: 1px solid var(--t4sh-line); font-family: var(--t4-head); font-size: 15px; line-height: 1.45; padding: 10px 0 10px 18px; position: relative; }
.t4mt-check li::before { background: var(--t4-blue); border-radius: 50%; content: ""; height: 6px; left: 2px; position: absolute; top: calc(10px + .72em - 3px); width: 6px; }

/* modulo "Serve una revisione?" (fascia blu, card bianca; invio con t4-forms.js) */
.t4mt-form { background: var(--t4-grad); color: #fff; padding: clamp(56px, 6vw, 112px) 0; scroll-margin-top: 40px; }
.t4mt-form .t4sh__k { opacity: .8; }
.t4sh .t4mt-form__lead { font-family: var(--t4-head); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.45; margin: 16px 0 0; max-width: 34ch; opacity: .9; }
.t4mt-card { background: #fff; border-radius: 24px; color: var(--t4-navy); padding: clamp(20px, 2.2vw, 40px); }
.t4mt-card form { display: grid; gap: 16px 18px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 768px) { .t4mt-card form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.t4mt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t4mt-field--full { grid-column: 1 / -1; }
/* campi, etichette e casella del consenso: lo stile dei moduli del sito (form[data-static-form] in t4-sections.css) */
.t4mt-consent { border: 0; grid-column: 1 / -1; margin: 0; min-width: 0; padding: 0; }
/* la legend "Consenso" come le etichette dei campi (form[data-static-form] label), non a 18-24px */
.t4mt-consent legend { display: block; font-family: var(--font-family-body), monospace; font-size: max(.875rem, 11px); letter-spacing: .06em; line-height: 1.45; margin-bottom: .5rem; opacity: .8; padding: 0; text-transform: uppercase; }
.t4mt-consent legend span { margin-left: .3em; }
/* la label ha già opacity .8 (t4-sections.css): .85 × .8 fa circa 6,3:1 sul bianco (con .72 era 4,4:1) */
.t4mt-req { color: rgba(14, 20, 48, .85); }
.t4mt-consent a { color: var(--t4-blue); }
.t4mt-send { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; grid-column: 1 / -1; }
.t4sh .t4mt-send input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  background: var(--t4-grad);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: var(--t4-head);
  font-size: clamp(13px, 12px + .1vw, 15px);
  height: 52px;
  letter-spacing: .06em;
  padding: 0 28px;
  text-transform: uppercase;
  transition: box-shadow var(--t4-dur) var(--t4-ease), opacity var(--t4-dur) var(--t4-ease);
}
.t4mt-send input[type="submit"]:hover { box-shadow: 0 12px 30px rgba(36, 72, 216, .35); }
.t4mt-send input[type="submit"]:focus-visible { outline: 2px solid var(--t4-blue); outline-offset: 3px; }
.t4mt-send input[type="submit"]:disabled { cursor: wait; opacity: .6; }
.t4mt-card form[data-static-form] .t4-fmsg { flex-basis: 100%; margin: 4px 0 0 !important; }

/* --------------------------------------------------------------------------
   Listino: righe con prezzo a destra in Space Mono
   -------------------------------------------------------------------------- */
.t4ls-row { align-items: start; border-bottom: 1px solid var(--t4sh-line); display: grid; gap: 6px 20px; grid-template-columns: minmax(0, 1fr) auto; padding: 18px 0; }
.t4ls-row:last-child { border-bottom: 0; }
.t4ls-row[hidden] { display: none; }
.t4sh .t4ls-row__t { color: inherit; font-family: var(--t4-head); font-size: clamp(17px, 1.3vw, 22px); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; margin: 0; text-transform: none; }
.t4sh .t4ls-row__s { font-family: var(--t4-mono); font-size: 11px; letter-spacing: .06em; line-height: 1.5; margin: 6px 0 0; opacity: .6; text-transform: uppercase; }
.t4sh .t4ls-row__p { font-family: var(--t4-mono); font-size: clamp(15px, 1.15vw, 19px); font-variant-numeric: tabular-nums; margin: 0; text-align: right; white-space: nowrap; }
.t4ls-row__go { display: flex; flex-wrap: wrap; gap: 4px 18px; grid-column: 1 / -1; }
.t4ls-foot { border-top: 1px solid var(--t4sh-line); display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 2.4vw, 40px); padding-top: clamp(20px, 2vw, 32px); }
@media print {
  .t4ls-row { break-inside: avoid; }
  .t4mt-link, .t4ls-foot, .t4sh-search, .t4sh-tree { display: none !important; }
}

/* riduci movimento: tutto subito */
@media (prefers-reduced-motion: reduce) {
  .t4sh *, .t4sh *::before, .t4sh *::after, .t4shp *, .t4shp *::before, .t4shp *::after { animation: none !important; transition: none !important; }
}
