/* Comparagomme - stile del sito pubblico.
   Per cambiare i colori o il carattere basta modificare le variabili qui sotto. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
    /* palette ufficiale Comparagomme */
    --charcoal: #1f2933;
    --petrol: #0f7c8b;
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --gray: #e5e7eb;
    --white: #ffffff;
    --soft: #f8fafc;

    --ink: var(--charcoal);
    --ink-soft: #52606d;
    --line: var(--gray);
    --paper: var(--white);
    --link: var(--petrol);
    --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
    --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--soft); color: var(--ink); font: 400 1rem/1.55 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--ink-soft); font-size: .9rem; }

h1, h2 { font-family: var(--font-cond); font-weight: 700; line-height: 1.1; margin: 0 0 .75rem; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: 1.65rem; margin-top: 2rem; }
.sec > .wrap > h2:first-child { margin-top: 0; }

/* ---------- intestazione ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--gray); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-top: .6rem; padding-bottom: .6rem; }
.logo { display: inline-block; line-height: 0; }
.logo img { height: 3.3rem; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--cyan); }
.nav .nav-decl { background: var(--amber); padding: .3rem .8rem; border-radius: 999px; border-bottom: 0; font-weight: 600; }
.nav .nav-decl:hover { background: #d98a06; }

/* ---------- ricerca (la misura come sul fianco del pneumatico) ---------- */
.hero { background: var(--gray); color: var(--ink); padding: 2rem 0 2.75rem; }
.hero h1 { margin-bottom: .25rem; }
.hero-sub { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 1.1rem; }

.finder { max-width: 52rem; }
.chips { border: 0; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: .45rem 1rem; border: 2px solid #c3cad2; background: var(--white); border-radius: 999px; font-weight: 500; color: var(--ink); }
.chip input:checked + span { background: var(--petrol); border-color: var(--petrol); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.marking { display: flex; align-items: flex-end; gap: clamp(.35rem, 2vw, 1rem); font-family: var(--font-cond); font-weight: 700; }
.mk { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.mk select { appearance: none; -webkit-appearance: none; width: 100%; background: transparent; color: var(--ink); border: 0; border-bottom: 4px solid var(--petrol); border-radius: 0; padding: 0 0 .1em; font: 700 clamp(2.6rem, 11vw, 5.5rem)/1.05 var(--font-cond); text-align: center; text-align-last: center; cursor: pointer; }
.mk select:disabled { color: #9aa5b1; border-bottom-color: #c3cad2; cursor: default; }
.mk select option { color: var(--ink); background: #fff; font: 500 1rem var(--font); }
.mk select:focus-visible { outline: none; border-bottom-color: var(--cyan); }
.mk-cap { margin-top: .4rem; font: 500 .85rem var(--font); color: var(--ink-soft); text-align: center; }
.mk-sep { font-size: clamp(2.6rem, 11vw, 5.5rem); line-height: 1.05; color: var(--petrol); padding-bottom: 1.6rem; }

.finder-act { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.season { display: flex; flex-direction: column; gap: .3rem; }
.season-cap { font-size: .85rem; color: var(--ink-soft); }
.season select { background: var(--white); color: var(--ink); border: 2px solid #c3cad2; border-radius: 4px; padding: .6rem 2rem .6rem .8rem; font: 500 1rem var(--font); min-width: 11rem; }
.finder-err { margin: 1rem 0 0; color: #b42318; font-weight: 600; }

.btn { display: inline-block; background: var(--petrol); color: var(--white); border: 0; border-radius: 4px; padding: .7rem 1.6rem; font: 700 1.35rem/1.2 var(--font-cond); letter-spacing: .01em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cyan); color: var(--ink); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--cyan); color: var(--ink); }

/* ---------- sezioni ---------- */
.sec { padding: 2.5rem 0; }
.sec-white { background: var(--paper); }
.page-head { background: var(--paper); border-bottom: 1px solid var(--gray); padding: 1.25rem 0 1.5rem; }
.head-flex { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.head-img { flex: none; border-radius: 4px; background: #fff; }
/* riquadro quadrato: tutte le immagini hanno lo stesso ingombro, qualunque sia la risoluzione */
.thumb { display: flex; align-items: center; justify-content: center; flex: none; max-width: 100%; aspect-ratio: 1; background: #fff; border-radius: 4px; overflow: hidden; }
.thumb-120 { width: 120px; }
.thumb-160 { width: 160px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb-empty { background: var(--soft); color: #c3ccd5; }
.thumb-empty img.thumb-logo { width: 62%; height: 62%; opacity: .8; }
.thumb-empty svg { width: 45%; height: 45%; }
.head-logo { flex: none; display: block; }
.head-logo img { display: block; height: 64px; width: auto; max-width: 180px; object-fit: contain; }
.brand-head { display: flex; align-items: center; gap: 1.25rem; }
.brand-logo { height: 56px; width: auto; max-width: 160px; object-fit: contain; background: #fff; padding: .35rem .6rem; border-radius: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .9rem; color: var(--ink-soft); margin-bottom: .75rem; }
.crumbs > * + *::before { content: "/"; margin-right: .5rem; color: #9aa5b1; }
h1 .size-hero { display: block; margin: .3rem 0 0; }
.size-hero { font: 700 clamp(2rem, 6vw, 3.6rem)/1 var(--font-cond); margin: 0 0 .75rem; }
h1 .size-hero { margin: 0; }
.h1-rest { font-weight: 600; color: var(--ink-soft); }

.sizes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sizes li { background: var(--paper); }
.sizes a { display: block; padding: .9rem 1rem; text-decoration: none; color: inherit; }
.sizes a:hover { background: var(--soft); }
.size-big { display: block; font: 700 1.9rem/1.1 var(--font-cond); color: var(--ink); }
.sizes a:hover .size-big { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }

.brand-list { list-style: none; margin: 0; padding: 0; columns: 12rem; column-gap: 1.5rem; }
.brand-list li { break-inside: avoid; padding: .2rem 0; }
.brand-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.brand-list a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }

.decl-band { background: var(--amber); color: var(--ink); }
.decl-grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; align-items: center; }
.decl-band p { max-width: 38rem; }
.numbers { display: flex; gap: 2rem; margin: 0; }
.numbers dt { font-size: .95rem; font-weight: 600; }
.numbers dd { margin: 0; font: 700 2.4rem/1 var(--font-cond); }
.decl-help { display: grid; gap: 1.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0; }
.decl-help dt { font: 700 1.6rem/1.1 var(--font-cond); }
.decl-help dd { margin: .25rem 0 0; color: var(--ink-soft); }

/* ---------- elenchi ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.filters label { display: flex; flex-direction: column; font-size: .85rem; color: var(--ink-soft); gap: .25rem; }
.filters select { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: .5rem .7rem; font: 500 1rem var(--font); color: var(--ink); min-width: 10rem; }
.btn-sm { display: inline-block; border: 1px solid var(--petrol); color: var(--petrol); border-radius: 4px; padding: .4rem .9rem; text-decoration: none; font-weight: 500; background: transparent; cursor: pointer; font-family: var(--font); font-size: .95rem; }
.btn-sm:hover { background: var(--petrol); color: #fff; }
.btn-sm-solid { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.btn-sm-solid:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.count { margin: 0 0 .5rem; }
.empty { color: var(--ink-soft); }
.other { margin-top: 1.5rem; font-weight: 500; }

.tbl { width: 100%; border-collapse: collapse; background: var(--paper); }
.tbl th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--ink-soft); padding: .6rem .75rem; border-bottom: 3px solid var(--petrol); }
.tbl td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: var(--soft); }
.prod { color: var(--ink); text-decoration: none; display: block; }
.prod:hover strong { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 3px; }
.size { font: 600 1.15rem/1.2 var(--font-cond); display: block; white-space: nowrap; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; border: 1px solid #c3cad2; border-radius: 3px; padding: 0 .4rem; margin: 0 .25rem .25rem 0; background: var(--soft); }
.tag-dot { font-size: .95rem; font-weight: 800; padding: .05rem .5rem; }
.dot-badge { display: inline-flex; align-items: baseline; gap: .35rem; margin: 0 .5rem .25rem 0; padding: .1rem .8rem; border-radius: 4px; background: var(--amber); color: var(--ink); font: 700 1.5rem/1.3 var(--font-cond); }
.dot-badge span { font-size: 1rem; letter-spacing: .04em; }
.tag-decl { background: var(--amber); border-color: #d98a06; color: var(--ink); }
.tags { margin: 0; }

.eu-line { display: inline-flex; align-items: center; gap: .3rem; }
.eu { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .3rem; border-radius: 3px; font: 700 1.05rem/1 var(--font-cond); color: #fff; background: #8a949d; }
.eu-a { background: #1a9850; }
.eu-b { background: #66bd63; color: var(--ink); }
.eu-c { background: #cfdc3a; color: var(--ink); }
.eu-d { background: #ffd92f; color: var(--ink); }
.eu-e { background: #fdae32; color: var(--ink); }
.eu-f { background: #f26b2a; }
.eu-g { background: #d7301f; }
.eu-noise, .eu.eu-noise { background: var(--charcoal); color: #fff; }
.eu-line .eu-noise { font-size: .9rem; color: var(--ink-soft); font-family: var(--font); background: none; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.pager a { font-weight: 600; }
.pager-off { color: #9aa3ab; }

.tread-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tread-grid li { background: var(--paper); }
.tread-grid a { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; text-decoration: none; color: inherit; height: 100%; }
.tread-grid a:hover { background: var(--soft); }
.tread-grid .thumb { align-self: center; margin-bottom: .5rem; }
.tread-name { font: 700 1.25rem/1.15 var(--font-cond); color: var(--ink); }

/* ---------- scheda prodotto ---------- */
.prod-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.prod-side > div { background: var(--paper); border: 1px solid var(--line); padding: 1.25rem; margin-bottom: 1.25rem; }
.prod-side h2 { margin-top: 0; font-size: 1.4rem; }
.notice { background: #fef3c7; border-left: 5px solid var(--amber); padding: .75rem 1rem; margin-bottom: 1.5rem; }
.notice p { margin: .25rem 0; }
.prose { background: var(--paper); padding: 1.25rem; margin-bottom: 1.5rem; max-width: 46rem; line-height: 1.65; }
.specs { margin: 0; background: var(--paper); border-top: 3px solid var(--petrol); }
.specs > div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1rem; padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.chip-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-links a { display: inline-block; padding: .3rem .8rem; border: 1px solid #c3cad2; background: var(--paper); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.chip-links a:hover { border-color: var(--petrol); color: var(--petrol); }
.chip-links .more { border-color: var(--petrol); color: var(--petrol); }
.thumb-240 { width: 240px; }
.photo-box { text-align: center; }
.photo-box .thumb { margin: 0 auto; }
.photo-box img { display: block; width: 240px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.label-img img { width: 240px; max-width: 100%; height: auto; }
/* immagini che si ingrandiscono al clic */
.zoom { position: relative; display: block; max-width: 100%; margin: 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.zoom::after { content: "Ingrandisci"; position: absolute; right: .5rem; bottom: .5rem; padding: .2rem .55rem; border-radius: 3px; background: rgba(26, 35, 42, .82); color: #fff; font-size: .8rem; line-height: 1.3; }
.zoom:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
dialog.lightbox { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(20, 27, 33, .88); }
dialog.lightbox img { display: block; max-width: 96vw; max-height: 90vh; background: #fff; border-radius: 4px; cursor: zoom-out; }
.lightbox-close { position: absolute; top: -2.6rem; right: 0; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.label-img { margin: 0 0 1rem; text-align: center; }
.label-img img { max-width: 100%; height: auto; background: #fff; }
.label-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .5rem; }
.label-list li { display: flex; align-items: center; gap: .75rem; }
.label-links { display: flex; flex-direction: column; gap: .25rem; margin: 0; }

/* ---------- piè di pagina ---------- */
.foot { background: var(--gray); color: var(--ink-soft); padding: 1.5rem 0; font-size: .9rem; }
.foot p { margin: 0; }

/* ---------- schermi stretti ---------- */
@media (max-width: 47.99rem) {
    .tbl.rows thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .tbl.rows, .tbl.rows tbody, .tbl.rows tr, .tbl.rows td { display: block; width: 100%; }
    .tbl.rows tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
    .tbl.rows td { border: 0; padding: .2rem .75rem; }
    .tbl.rows td[data-l]::before { content: attr(data-l); display: block; font-size: .75rem; color: var(--ink-soft); }
    .tbl.rows td[data-l=""]::before { display: none; }
    .thumb-160 { width: 84px; }
    .head-logo img { height: 44px; max-width: 120px; }
    .prod-side { display: contents; }
    .photo-box { order: -1; }
    .specs > div { grid-template-columns: 1fr; gap: 0; }
}
@media (min-width: 48rem) {
    .decl-grid { grid-template-columns: 1fr auto; }
    .prod-grid { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.photo-box .label-img { margin: 0; }

/* ---------- footer: collegamenti ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .6rem !important; }
.foot-links a { color: var(--ink-soft); }

/* ---------- area inserzionisti ---------- */
.adv-narrow { max-width: 46rem; }
.adv-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; margin: 0 0 1.25rem; }
.adv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.25rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid #c3cad2; }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--petrol); }
.btn-small { font-size: 1.1rem; padding: .5rem 1.1rem; }
.adv-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 1rem; }
.adv-steps li { counter-increment: s; padding-left: 3rem; position: relative; }
.adv-steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--petrol); color: var(--white); font: 700 1.25rem/2.1rem var(--font-cond); text-align: center; }
.adv-steps strong { display: block; }

.adv-card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem 1.25rem 1.4rem; margin-bottom: 1.5rem; }
.adv-card > h2 { margin-top: 0; font-size: 1.45rem; }
.adv-card h3 { font: 600 1.15rem var(--font-cond); margin: 1.25rem 0 .5rem; }
.form-grid { display: grid; gap: 1rem 1.25rem; grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label { font-weight: 600; }
.field input, .field select { width: 100%; background: var(--white); color: var(--ink); border: 2px solid #c3cad2; border-radius: 4px; padding: .6rem .75rem; font: 400 1rem var(--font); }
.field input:focus, .field select:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(34, 211, 238, .35); }
.field.has-err input, .field.has-err select { border-color: #b42318; }
.hint { color: var(--ink-soft); font-size: .85rem; margin: 0; }
.err { color: #b42318; font-size: .9rem; font-weight: 600; margin: 0; }
.field-wide { grid-column: 1 / -1; }
.fieldset-t { grid-column: 1 / -1; font: 700 1.25rem var(--font-cond); margin: .75rem 0 -.25rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.fieldset-t:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.checks { display: grid; gap: .6rem; margin-top: 1.25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--petrol); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: .75rem 1rem; border-radius: 4px; margin: 0 0 1.25rem; border-left: 5px solid var(--petrol); background: #e8f5f6; }
.flash-warn { border-left-color: var(--amber); background: #fff6e0; }
.flash-err { border-left-color: #b42318; background: #fdecea; }
.flash p { margin: 0; }
.flash p + p { margin-top: .4rem; }

.adv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem 2rem; }
.adv-head h1 { margin-bottom: .25rem; }
.badge { display: inline-block; padding: .15rem .7rem; border-radius: 999px; font-weight: 600; font-size: .85rem; background: var(--gray); color: var(--ink); vertical-align: middle; }
.badge-active { background: #d6f1e1; color: #14532d; }
.badge-pending { background: #fde8b4; color: #7a4a00; }
.badge-suspended { background: #fbd5d1; color: #8a1c12; }
.badge-ok { background: #d6f1e1; color: #14532d; }
.badge-error { background: #fbd5d1; color: #8a1c12; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem 1.5rem; margin: 0 0 1.5rem; }
.stats > div { border-top: 4px solid var(--petrol); padding-top: .5rem; }
.stats dt { color: var(--ink-soft); font-size: .9rem; }
.stats dd { margin: 0; font: 700 2.1rem/1.1 var(--font-cond); }
.stats dd small { display: block; font: 400 .8rem var(--font); color: var(--ink-soft); }
.progress { height: .7rem; background: var(--gray); border-radius: 999px; overflow: hidden; margin: .5rem 0 .25rem; }
.progress > span { display: block; height: 100%; background: var(--petrol); }
.progress.full > span { background: #b42318; }
.adv-tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.adv-tbl th, .adv-tbl td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.adv-tbl th { font-weight: 600; color: var(--ink-soft); }
.adv-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.adv-two { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.probe { margin-top: 1rem; }
.probe ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.kv { display: grid; grid-template-columns: 1fr; gap: .15rem 1.5rem; margin: 0; }
.kv dt { color: var(--ink-soft); font-size: .85rem; margin-top: .6rem; }
.kv dd { margin: 0; }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }
@media (min-width: 40rem) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .kv { grid-template-columns: 13rem 1fr; gap: .7rem 1.5rem; }
    .kv dt { margin-top: 0; padding-top: .15rem; }
}
@media (min-width: 56rem) {
    .adv-two { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* guida al feed e logo con sconto */
.adv-fields td, .adv-fields th { vertical-align: top; }
.adv-fields td:first-child { white-space: nowrap; }
.adv-card code { background: var(--gray); padding: .05rem .35rem; border-radius: 3px; font-size: .9em; }
.badge-state { border-left: 4px solid var(--gray); background: var(--paper); padding: .6rem 1rem; margin: 1rem 0; }
.badge-state p { margin: .25rem 0; }
.badge-state-ok { border-color: #2e9e5b; }
.badge-state-warning { border-color: #d98e04; }
.badge-state-revoked { border-color: #b42318; }
.logo-prev { max-width: 100%; height: auto; background: var(--white); border: 1px solid var(--line); padding: .5rem 1rem; border-radius: 4px; }
.code-box { width: 100%; font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .75rem; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); resize: vertical; }

/* offerte nella scheda prodotto */
.offers-list { list-style: none; margin: .75rem 0; padding: 0; }
.offers-list li { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; padding: .7rem .75rem; border: 1px solid var(--line); border-radius: 6px; margin-bottom: .6rem; background: var(--white); }
.offers-list li.best { border-color: var(--petrol); box-shadow: 0 0 0 1px var(--petrol); }
.offers-list .shop { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.offers-list .shop img { max-height: 34px; max-width: 120px; width: auto; height: auto; }
.offers-list .shop-name { font-weight: 600; overflow-wrap: anywhere; }
.offers-list .price { font: 700 1.6rem/1 var(--font-cond); text-align: right; white-space: nowrap; }
.offers-list .tag-best { font-size: .75rem; font-weight: 600; color: var(--petrol); display: block; }
.offers-list .go { grid-column: 1 / -1; text-align: center; }
.offers .hint { margin-top: .5rem; }

/* pagine legali e piè di pagina */
.legal h2 { margin-top: 2.5rem; }
.legal h3 { font: 600 1.2rem var(--font-cond); margin: 1.6rem 0 .4rem; }
.legal p, .legal li { line-height: 1.65; max-width: 46rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; }
.legal .table-wrap { overflow-x: auto; margin: .75rem 0; }
.legal .adv-tbl td, .legal .adv-tbl th { vertical-align: top; }
.foot-co { font-size: .85rem; color: var(--ink-soft); margin: .25rem 0; }

/* vetrina negozi */
.wrench { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #e6f4f6; color: var(--petrol); flex: none; cursor: help; }
.offers-list .shop .wrench { margin-left: .15rem; }
.fit-legend { display: flex; gap: .5rem; align-items: flex-start; }
.fit-legend .wrench { width: 22px; height: 22px; }
.shops-intro { max-width: 46rem; }
.shops-grid { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.shop-card { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); }
.shop-card:hover, .shop-card:focus-visible { border-color: var(--petrol); box-shadow: 0 0 0 1px var(--petrol); }
.shop-card-logo { display: flex; align-items: center; min-height: 48px; }
.shop-card-logo img { max-height: 44px; max-width: 160px; width: auto; height: auto; }
.shop-card-name { font: 700 1.25rem/1.2 var(--font-cond); overflow-wrap: anywhere; }
.shop-card-fit { display: flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--petrol); }
.shops-cta { margin-top: 2rem; }
.shop-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin: .5rem 0; }
.shop-head-logo { max-height: 64px; max-width: 220px; width: auto; height: auto; }
.shop-fit { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem 1rem; background: #e6f4f6; border-radius: 6px; max-width: 46rem; }
.prof-box { font-family: inherit; font-size: 1rem; }

/* prezzo nei disegni del marchio */
.tread-grid .from-price { color: var(--petrol); font-weight: 700; margin-top: .15rem; }
.tread-grid .from-price small { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }

/* banner consenso cookie */
.cg-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #fff; border-top: 3px solid var(--petrol); box-shadow: 0 -6px 24px rgba(31,41,51,.18); }
.cg-consent[hidden] { display: none; }
.cg-consent-in { max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cg-consent-txt { flex: 1 1 28rem; font-size: .95rem; color: var(--ink); }
.cg-consent-txt p { margin: .25rem 0 0; color: var(--ink-soft); }
.cg-consent-btn { display: flex; gap: .75rem; flex: 0 0 auto; }
.cg-consent-btn .btn { min-width: 7.5rem; font-size: 1.05rem; padding: .55rem 1.2rem; cursor: pointer; }
@media (max-width: 600px) { .cg-consent-btn { width: 100%; } .cg-consent-btn .btn { flex: 1; } }
.foot-links a[data-cookie-prefs] { cursor: pointer; }


/* colonna immagine */
.thumb-56 { width: 56px; border: 1px solid var(--line); }
.tbl.rows th.c-img, .tbl.rows td.c-img { width: 4.5rem; padding-right: 0; }
.tbl.rows td.c-img a { display: block; line-height: 0; }
@media (max-width: 47.99rem) {
    .tbl.rows tr:has(> td.c-img) { position: relative; }
    .tbl.rows tr:has(> td.c-img) td:not(.c-img) { padding-right: 5.25rem; }
    .tbl.rows td.c-img { position: absolute; top: .6rem; right: .75rem; width: auto; padding: 0; z-index: 1; }
    .tbl.rows td.c-img .thumb-56 { width: 64px; }
}


/* sezione DOT DEMO BLEM */
.is-decl .top { background: var(--charcoal); border-bottom: 5px solid var(--amber); }
.is-decl .logo { background: var(--white); padding: .3rem .7rem; border-radius: 6px; }
.is-decl .logo img { height: 2.7rem; }
.is-decl .nav a { color: #e5e7eb; }
.is-decl .nav a:hover { color: var(--white); border-bottom-color: var(--amber); }
.is-decl .nav .nav-decl { background: var(--amber); color: var(--charcoal); }
.is-decl .nav .nav-decl:hover { background: #fbbf24; color: var(--charcoal); }
.decl-strip { background: #fef3c7; border-bottom: 1px solid #f3d27a; color: var(--ink); font-size: .95rem; }
.decl-strip-in { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; align-items: center; justify-content: space-between; padding-top: .55rem; padding-bottom: .55rem; }
.decl-strip p { margin: 0; }
.decl-strip a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 3px; white-space: nowrap; }
.is-decl .skip { background: var(--amber); }

/* contratto */
.contract-text { max-height: 34rem; overflow: auto; padding: .25rem 1rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; line-height: 1.55; }
.contract-text h1.ct-title { font-size: 1.5rem; margin: .8rem 0 0; }
.contract-text .ct-meta { color: #52606d; margin: 0 0 1rem; }
.contract-text h2 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.contract-text p { margin: 0 0 .6rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: .3rem; flex: none; }
.adv-card h2 small { font-weight: 400; font-size: .85rem; color: #52606d; }
