/**
 * filtri-vivi.css — la barra dei filtri «viva», come sul negozio Shopify.
 *
 * ⭐ È il TRAPIANTO di `ntc-filtri.css` del negozio: stesse misure, stessi colori, stesse
 * animazioni. Cambia solo il bersaglio: là il modulo dei filtri di Shopify
 * (`#FacetFiltersForm …`), qui il markup nostro (`.ntcl-fv…`) scritto da `filtri-vivi.php`.
 * ⚠️ Il rosso è quello del sito (NTC → Aspetto → Colori), non uno scritto qui.
 * ⚠️ Il carattere è quello del tema (`--ntc-font`): Shopify usava Barlow e Archivo, che qui
 *    non si caricano — un secondo carattere per una colonna sola non vale il peso.
 */

.ntcl-fv {
	--fv-rosso: var(--ntc-rosso, #b3373a);
	--fv-ink: #12161c;
	--fv-muto: #6b7280;
	--fv-linea: #e8eaef;
	--fv-verde: #1f9d55;
	margin: 0 0 24px;
	background: #fff;
	border: 1px solid var(--fv-linea);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 34px 60px -48px rgba(18, 22, 28, .5);
	font-family: var(--ntc-font, inherit);
	color: var(--fv-ink);
}
.ntcl-fv *, .ntcl-fv *::before, .ntcl-fv *::after { box-sizing: border-box; }
.ntcl-fv a { text-decoration: none; color: inherit; }
.ntcl-fv ul { list-style: none; margin: 0; padding: 0; }

/* ── la testata rossa ─────────────────────────────────────────────────────────────────────── */
.ntcl-fv-testa {
	position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 12px;
	padding: 18px 20px 16px; color: #fff; background: linear-gradient(120deg, #d4474a 0%, var(--fv-rosso) 48%, #7c2326 100%);
}
.ntcl-fv-testa::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(-62deg, rgba(255, 255, 255, .07) 0 9px, rgba(255, 255, 255, 0) 9px 22px); }
.ntcl-fv-testa__righe { position: relative; grid-column: 1 / -1; display: inline-flex; gap: 4px; margin-bottom: 4px; }
.ntcl-fv-testa__righe i { display: block; width: 4px; height: 13px; border-radius: 1px; background: #fff; transform: skewX(-20deg); }
.ntcl-fv-testa__righe i:nth-child(2) { opacity: .7; }
.ntcl-fv-testa__righe i:nth-child(3) { opacity: .45; }
.ntcl-fv-testa__righe i:nth-child(4) { opacity: .22; }
.ntcl-fv-testa__eti { position: relative; font-weight: 800; font-size: 12.5px; line-height: 1.15; letter-spacing: .16em; text-transform: uppercase; }
.ntcl-fv-testa__conto {
	position: relative; display: flex; flex-direction: column; align-items: flex-end;
	font-style: italic; font-weight: 800; font-size: 34px; line-height: .9; letter-spacing: -.03em;
	font-variant-numeric: tabular-nums; text-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.ntcl-fv-testa__conto small { margin-top: 5px; font-style: normal; font-weight: 700; font-size: 10.5px; line-height: 1; letter-spacing: .16em; text-transform: uppercase; opacity: .88; text-shadow: none; }
.ntcl-fv-testa__conto.is-cambiato { animation: ntcl-fv-conto .6s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes ntcl-fv-conto { 0% { transform: translateY(-8px) scale(1.12); } 100% { transform: none; } }
.ntcl-fv-testa__scie { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ntcl-fv-testa__scie i { position: absolute; left: -55%; width: 48%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); animation: ntcl-fv-scia 3.6s linear infinite; }
.ntcl-fv-testa__scie i:nth-child(1) { top: 28%; }
.ntcl-fv-testa__scie i:nth-child(2) { top: 56%; width: 34%; animation-delay: 1.2s; animation-duration: 4.4s; }
.ntcl-fv-testa__scie i:nth-child(3) { top: 82%; width: 26%; animation-delay: 2.3s; animation-duration: 3.1s; }
@keyframes ntcl-fv-scia { from { transform: translateX(0); } to { transform: translateX(360%); } }

/* ── l'auto scelta (solo sulle pagine veicolo) ───────────────────────────────────────────────── */
.ntcl-fv-auto {
	position: relative; display: flex; align-items: center; gap: 11px; padding: 12px 14px 12px 16px;
	background: linear-gradient(120deg, #12161c 0%, #2c333d 100%); color: #fff;
}
.ntcl-fv-auto::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(-62deg, rgba(255, 255, 255, .05) 0 8px, rgba(255, 255, 255, 0) 8px 20px); }
.ntcl-fv-auto::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fv-rosso); }
.ntcl-fv-auto__icona { position: relative; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; }
.ntcl-fv-auto__icona svg { width: 19px; height: 19px; }
.ntcl-fv-auto__testi { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ntcl-fv-auto__testi small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.ntcl-fv-auto__testi strong { font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.ntcl-fv-auto__cambia {
	align-self: flex-start; margin-top: 4px; font-size: 12px; font-weight: 700; color: #ff9b95 !important;
	border-bottom: 1px solid rgba(255, 155, 149, .45); transition: color .2s ease, border-color .2s ease;
}
.ntcl-fv-auto__cambia:hover { color: #fff !important; border-color: #fff; }
.ntcl-fv-auto { align-items: flex-start; }

/* Il pulsante «Filtri» del tema serve solo sul telefono, dove la colonna è chiusa: da computer
   la colonna c'è sempre, e il pulsante accanto al conteggio era un doppione. */
@media screen and (min-width: 901px) {
	.ntct-negozio-corpo .ntct-apri-filtri { display: none !important; }
}

/* ── i gruppi ────────────────────────────────────────────────────────────────────────────── */
.ntcl-fv-gruppo + .ntcl-fv-gruppo { border-top: 1px dashed #e3e6ec; }
.ntcl-fv-gruppo__testa {
	-webkit-appearance: none; appearance: none; border: 0; box-shadow: none; border-radius: 0;
	display: flex; align-items: center; gap: 11px; width: 100%; min-height: 58px; margin: 0; padding: 12px 16px 12px 14px;
	background: transparent; color: var(--fv-ink); cursor: pointer; text-align: left;
	font-family: inherit; font-weight: 800; font-size: 12.5px; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase;
	transition: background .2s ease;
}
.ntcl-fv-gruppo__testa:hover { background: #fafbfc; }
.ntcl-fv-icona { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #fff1f1; color: var(--fv-rosso); transition: transform .35s cubic-bezier(.2, .9, .3, 1.4), background .2s ease, color .2s ease; }
.ntcl-fv-icona svg { width: 18px; height: 18px; }
.ntcl-fv-gruppo__testa:hover .ntcl-fv-icona { background: var(--fv-rosso); color: #fff; transform: rotate(-10deg) scale(1.08); }
.ntcl-fv-gruppo__nome { flex: 1; min-width: 0; }
.ntcl-fv-accesi { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: #12161c; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0; animation: ntcl-fv-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ntcl-fv-pop { from { transform: scale(0); } to { transform: scale(1); } }
/* il segno − / + a destra: un tondino grigio come sul negozio */
.ntcl-fv-gruppo__segno { position: relative; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f2f3f6; transition: background .2s ease; }
.ntcl-fv-gruppo__segno::before, .ntcl-fv-gruppo__segno::after { content: ""; position: absolute; width: 11px; height: 2px; border-radius: 2px; background: var(--fv-ink); transition: transform .25s ease; }
.ntcl-fv-gruppo__segno::after { transform: rotate(90deg); }
.ntcl-fv-gruppo__testa[aria-expanded="true"] .ntcl-fv-gruppo__segno::after { transform: rotate(0deg); }
.ntcl-fv-gruppo__testa:hover .ntcl-fv-gruppo__segno { background: #e7e9ee; }
.ntcl-fv-gruppo__corpo { padding: 0 12px 16px; }
.ntcl-fv-gruppo__testa[aria-expanded="false"] + .ntcl-fv-gruppo__corpo { display: none; }

/* ── le voci: casella, barra della fetta, numero a pillola ───────────────────────────────── */
.ntcl-fv-lista { display: grid; gap: 2px; }
.ntcl-fv-voce[hidden], .ntcl-fv-lista li[hidden] { display: none !important; }
.ntcl-fv-voce > a {
	position: relative; isolation: isolate; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px;
	padding: 7px 8px 7px 10px; border-radius: 11px; cursor: pointer;
	transition: transform .22s cubic-bezier(.2, .8, .2, 1), background .2s ease;
}
/* la fetta di prodotti: una riga sottile sotto al nome, lunga quanto pesa la voce */
.ntcl-fv-voce > a::before {
	content: ""; position: absolute; z-index: -1; left: 41px; bottom: 4px; height: 3px; min-width: 6px; border-radius: 3px;
	width: calc((100% - 94px) * var(--ntcl-quota, 0));
	background: linear-gradient(90deg, var(--fv-rosso), rgba(226, 85, 79, .3)); opacity: .45; transform-origin: left center; transition: opacity .2s ease;
	animation: ntcl-fv-quota .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--ntcl-i, 0) * 40ms);
}
@keyframes ntcl-fv-quota { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (hover: hover) {
	.ntcl-fv-voce > a:hover { background: #f8f9fb; transform: translateX(3px); }
	.ntcl-fv-voce > a:hover::before { opacity: 1; }
}
.ntcl-fv-voce.is-attiva > a::before { opacity: 1; }
.ntcl-fv-nome { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.25; color: #2a313b; transition: color .2s ease; }
.ntcl-fv-conto {
	flex: none; min-width: 32px; margin-left: auto; padding: 4px 8px; border-radius: 999px;
	background: #f1f2f5; color: #5d6572; font-size: 11.5px; font-weight: 700; line-height: 1; text-align: center; font-variant-numeric: tabular-nums;
	transition: background .2s ease, color .2s ease;
}
.ntcl-fv-casella {
	position: relative; flex: none; width: 20px; height: 20px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.6px #c9ced6;
	transition: background .2s ease, box-shadow .2s ease, transform .3s cubic-bezier(.2, 1.6, .4, 1);
}
.ntcl-fv-casella::after {
	content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.3px 2.3px 0;
	transform: rotate(45deg) scale(0); transition: transform .28s cubic-bezier(.2, 1.6, .4, 1);
}
.ntcl-fv-voce > a:hover .ntcl-fv-casella { box-shadow: inset 0 0 0 1.6px var(--fv-rosso); }
.ntcl-fv-voce.is-attiva .ntcl-fv-casella { background: var(--fv-rosso); box-shadow: 0 6px 14px -6px rgba(179, 55, 58, .95); transform: scale(1.08); }
.ntcl-fv-voce.is-attiva .ntcl-fv-casella::after { transform: rotate(45deg) scale(1); }
.ntcl-fv-voce.is-attiva .ntcl-fv-nome { color: var(--fv-ink); font-weight: 800; }
.ntcl-fv-voce.is-attiva .ntcl-fv-conto { background: var(--fv-rosso); color: #fff; }

/* «Solo disponibili» e «Solo in offerta»: interruttori verdi, come «Disponibile» sul negozio */
.ntcl-fv-interruttore > a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 7px 8px 7px 10px; border-radius: 11px; transition: background .2s ease; }
.ntcl-fv-interruttore > a:hover { background: #f8f9fb; }
.ntcl-fv-leva { position: relative; flex: none; width: 40px; height: 23px; border-radius: 999px; background: #e3e6eb; transition: background .25s ease, box-shadow .25s ease; }
.ntcl-fv-leva::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(18, 22, 28, .28); transition: transform .32s cubic-bezier(.2, .9, .3, 1.2); }
.ntcl-fv-interruttore.is-attiva .ntcl-fv-leva { background: var(--fv-verde); box-shadow: 0 0 0 4px rgba(31, 157, 85, .16); }
.ntcl-fv-interruttore.is-attiva .ntcl-fv-leva::after { transform: translateX(17px); }
.ntcl-fv-interruttore.is-attiva .ntcl-fv-nome { font-weight: 800; color: var(--fv-ink); }

/* cerca dentro alle liste lunghe */
.ntcl-fv-cerca { display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 2px 10px; padding: 0 12px; border-radius: 11px; background: #f4f5f8; border: 1px solid transparent; cursor: text; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ntcl-fv-cerca:focus-within { background: #fff; border-color: rgba(179, 55, 58, .45); box-shadow: 0 0 0 4px rgba(179, 55, 58, .1); }
.ntcl-fv-cerca svg { flex: none; width: 16px; height: 16px; color: #9aa1ab; }
.ntcl-fv-cerca input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--fv-ink); }

/* ══ «Tipo di prodotto» diviso: carrozzeria ed estetica sopra, il resto sotto e chiuso ══════ */
.ntcl-fv-sottotesta--tuning {
	position: relative; overflow: hidden; display: flex; align-items: center; gap: 9px; margin: 0 0 4px; padding: 10px 12px;
	border-radius: 12px; background: linear-gradient(115deg, var(--fv-rosso) 0%, #d4474a 55%, #e2554f 100%); color: #fff;
	font-size: 11.5px; font-weight: 800; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase;
	box-shadow: 0 10px 22px -16px rgba(179, 55, 58, .9);
}
.ntcl-fv-sottotesta--tuning::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(-62deg, rgba(255, 255, 255, .09) 0 8px, rgba(255, 255, 255, 0) 8px 18px); }
.ntcl-fv-sottotesta__righe { position: relative; flex: none; display: inline-flex; gap: 3px; }
.ntcl-fv-sottotesta__righe i { display: block; width: 3px; height: 11px; border-radius: 1px; background: #fff; transform: skewX(-20deg); }
.ntcl-fv-sottotesta__righe i:nth-child(2) { opacity: .65; }
.ntcl-fv-sottotesta__righe i:nth-child(3) { opacity: .35; }
.ntcl-fv-sottotesta__nome { position: relative; flex: 1; min-width: 0; }
.ntcl-fv-sottotesta small { position: relative; flex: none; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ntcl-fv-sottotesta--altri { margin-top: 10px; }
.ntcl-fv-sottotesta--altri button {
	-webkit-appearance: none; appearance: none; box-shadow: none;
	display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; margin: 0; padding: 9px 12px; cursor: pointer;
	border: 1px dashed #cfd4dc; border-radius: 12px; background: #fafbfc; color: var(--fv-ink);
	font-family: inherit; font-size: 11.5px; font-weight: 800; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; text-align: left;
	transition: background .2s ease, border-color .2s ease;
}
.ntcl-fv-sottotesta--altri button:hover { background: #fff; border-color: var(--fv-rosso); }
.ntcl-fv-sottotesta--altri small { background: #eceef2; color: #5d6572; }
.ntcl-fv-sottotesta--altri i { flex: none; width: 8px; height: 8px; margin: 0 4px 3px 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s ease; }
.ntcl-fv-sottotesta--altri button[aria-expanded="true"] i { margin: 3px 4px 0 2px; transform: rotate(-135deg); }
.ntcl-fv-divisa.ntcl-fv-altri-chiusi:not(.ntcl-fv-in-cerca) .ntcl-fv-altro { display: none !important; }

/* ── prezzo: cursore doppio e fasce ───────────────────────────────────────────────────────── */
.ntcl-fv-nota { margin: 0 4px 10px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--fv-muto); }
.ntcl-fv-prezzo { --ntcl-da: 0%; --ntcl-a: 100%; margin: 4px 4px 4px; }
.ntcl-fv-prezzo__valori { display: flex; justify-content: space-between; margin-bottom: 12px; }
.ntcl-fv-prezzo__valori span { display: inline-block; padding: 6px 11px; border-radius: 7px; background: #12161c; color: #fff; font-style: italic; font-weight: 800; font-size: 13.5px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transform: skewX(-8deg); }
.ntcl-fv-prezzo__valori span:last-child { background: var(--fv-rosso); }
.ntcl-fv-prezzo__pista { position: relative; height: 26px; }
.ntcl-fv-prezzo__pista::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: #eceef2; }
.ntcl-fv-prezzo__tratto { position: absolute; top: 50%; left: var(--ntcl-da); right: calc(100% - var(--ntcl-a)); height: 6px; margin-top: -3px; border-radius: 6px; background: linear-gradient(90deg, #e2554f, var(--fv-rosso)); box-shadow: 0 4px 10px -4px rgba(179, 55, 58, .85); }
.ntcl-fv-prezzo__pista input[type="range"] { position: absolute; left: 0; top: 0; width: 100%; height: 26px; margin: 0; padding: 0; border: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; box-shadow: none; }
.ntcl-fv-prezzo__pista input[type="range"]:focus { outline: none; }
.ntcl-fv-prezzo__pista input[type="range"]::-webkit-slider-runnable-track { height: 26px; background: none; border: 0; }
.ntcl-fv-prezzo__pista input[type="range"]::-moz-range-track { height: 26px; background: none; border: 0; }
.ntcl-fv-prezzo__pista input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #fff; border: 3px solid var(--fv-rosso); box-shadow: 0 4px 12px rgba(18, 22, 28, .28); cursor: grab; transition: transform .15s ease; }
.ntcl-fv-prezzo__pista input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--fv-rosso); box-shadow: 0 4px 12px rgba(18, 22, 28, .28); cursor: grab; }
.ntcl-fv-prezzo__pista input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); cursor: grabbing; }
.ntcl-fv-prezzo__pista input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(179, 55, 58, .25); }
.ntcl-fv-prezzo__fasce { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ntcl-fv-prezzo__fascia { -webkit-appearance: none; appearance: none; box-shadow: none; padding: 7px 11px; border-radius: 999px; border: 1px solid #e8eaef; background: #fff; color: #2a313b; font: inherit; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease; }
.ntcl-fv-prezzo__fascia:hover { border-color: var(--fv-rosso); color: var(--fv-rosso); transform: translateY(-1px); }
.ntcl-fv-prezzo__fascia.is-attiva { background: var(--fv-rosso); border-color: var(--fv-rosso); color: #fff; }

.ntcl-fv-azzera { display: block; margin: 0 16px 16px; padding: 10px; border-radius: 999px; background: #f2f3f6; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fv-rosso) !important; transition: background .2s ease, color .2s ease; }
.ntcl-fv-azzera:hover { background: var(--fv-rosso); color: #fff !important; }

/* ── la colonna resta sullo schermo mentre si scorre (computer) ──────────────────────────────
   ⚠️ Il tema la incolla già (`.ntct-colonna { position: sticky; top: 18px }`), ma sotto alla
   testata incollata finiva nascosta: la distanza giusta la misura filtri-vivi.js. */
@media screen and (min-width: 901px) {
	.ntct-colonna:has(.ntcl-fv) {
		top: var(--ntcl-fv-sopra, 18px);
		max-height: calc(100vh - var(--ntcl-fv-sopra, 18px) - 16px);
		overflow-y: auto; overscroll-behavior: contain;
		scrollbar-width: thin; scrollbar-color: #d6d9df transparent;
		transition: top .25s ease;
	}
}

/* ── telefono: nel cassetto dei filtri la testata diventa una scheda ───────────────────────── */
@media screen and (max-width: 900px) {
	.ntcl-fv { border-radius: 16px; }
	.ntcl-fv-gruppo__testa { padding-left: 10px; padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.ntcl-fv-testa__scie, .ntcl-fv-testa::before { display: none; }
	.ntcl-fv-voce > a::before, .ntcl-fv-accesi, .ntcl-fv-testa__conto.is-cambiato { animation: none !important; }
}
