/* SAMBO SRLS, foglio di stile principale */

@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("../fonts/archivo-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --navy: #13233B;
    --navy-2: #1C3252;
    --steel: #3D5A80;
    --steel-soft: #AFC0D6;
    --asphalt: #2E3238;
    --ice: #F2F4F7;
    --ocra: #D9A521;
    --ocra-dark: #B5881A;
    --line: #D6DCE4;
    --muted: #5A6472;
    --white: #FFFFFF;
    --paper: #E4EBF3;
    --ok: #2F6B45;
    --err: #A3262C;

    --fs-sm: 0.85rem;
    --fs-base: 1.0625rem;
    --fs-md: 1.33rem;
    --fs-lg: 1.66rem;
    --fs-xl: 2.07rem;
    --fs-2xl: clamp(2.07rem, 3.6vw, 2.6rem);
    --fs-3xl: clamp(2.5rem, 5.6vw, 4.6rem);

    --wide: 118%;
    --container: 1240px;
    --gutter: clamp(1rem, 3vw, 2rem);
    --radius-s: 3px;
    --radius-m: 6px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
    font-size: var(--fs-base);
    line-height: 1.55;
    color: var(--asphalt);
    background: var(--paper);
    font-variant-numeric: tabular-nums;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: var(--navy);
    line-height: 1.12;
    font-weight: 750;
    font-stretch: var(--wide);
    letter-spacing: -0.01em;
    text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }

a { color: var(--steel); text-underline-offset: .18em; }
a:hover { color: var(--navy); }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ocra); color: var(--navy); padding: .6rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pulsanti */

.btn {
    --btn-bg: var(--navy);
    --btn-fg: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 2.9rem;
    padding: .7rem 1.35rem;
    border: 2px solid var(--btn-bg);
    border-radius: var(--radius-s);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn:hover { --btn-bg: var(--navy-2); color: var(--btn-fg); }
.btn-accent { --btn-bg: var(--ocra); --btn-fg: var(--navy); }
.btn-accent:hover { --btn-bg: #E6B533; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(242, 244, 247, .55); }
.btn-light:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-block { width: 100%; }
.btn-small { min-height: 2.3rem; padding: .45rem .9rem; font-size: .92rem; }

/* Barra di gestione, visibile solo con l'accesso admin aperto */

.front-adminbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: 2.25rem;
    background: #09121F;
    color: var(--white);
    font-size: .84rem;
    border-bottom: 2px solid var(--ocra);
}
.front-adminbar-group { display: flex; align-items: stretch; min-width: 0; overflow-x: auto; }
.front-adminbar a,
.front-adminbar button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    height: 100%;
    padding-inline: .85rem;
    color: var(--white);
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    background: none;
    border: 0;
    white-space: nowrap;
    cursor: pointer;
}
.front-adminbar a:hover,
.front-adminbar button:hover { background: var(--navy); color: var(--ocra); }
.front-adminbar form { margin: 0; display: flex; flex: none; }
.front-adminbar-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding-inline: .3rem;
    border-radius: 999px;
    background: var(--ocra);
    color: var(--navy);
    font-size: .72rem;
    font-weight: 800;
}
body.has-adminbar { padding-top: 2.25rem; }
body.has-adminbar .site-header { top: 2.25rem; }
body.has-adminbar .vd-aside { top: calc(6rem + 2.25rem); }
body.has-adminbar .skip-link:focus { top: 2.7rem; }
@media (min-width: 961px) {
    body.has-adminbar .filters { top: calc(6rem + 2.25rem); max-height: calc(100dvh - 9.25rem); }
}

/* Barra superiore e intestazione */

.topbar { background: #09121F; color: var(--steel-soft); font-size: var(--fs-sm); border-bottom: 1px solid rgba(175, 192, 214, .12); }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar a { color: var(--steel-soft); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar-address { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-address svg { width: 1rem; height: 1rem; fill: none; stroke: var(--ocra); stroke-width: 2; }
.topbar-phones { display: flex; gap: 1.4rem; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: #0E1A2C; border-bottom: 1px solid rgba(175, 192, 214, .18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.4rem; padding-block: .45rem; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: auto; height: clamp(3.6rem, 6vw, 4.5rem); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
    position: relative;
    display: block;
    padding-block: .5rem;
    color: var(--steel-soft);
    font-weight: 600;
    text-decoration: none;
}
.site-nav ul a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--ocra);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s var(--ease);
}
.site-nav ul a:hover { color: var(--white); }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="page"] { color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 920px) {
    .topbar-address { display: none; }
    .topbar-inner { justify-content: center; }
    .nav-toggle {
        display: inline-flex; align-items: center; gap: .55rem;
        background: none; border: 0; padding: .5rem; font: inherit; font-weight: 700; color: var(--white); cursor: pointer;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
        display: block; width: 1.3rem; height: 2px; background: currentColor; position: relative; transition: transform .2s;
    }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 1rem;
        padding: 1rem var(--gutter) 1.5rem;
        background: #0E1A2C;
        border-bottom: 1px solid rgba(175, 192, 214, .2);
        display: none;
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .site-nav.is-open { display: flex; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a { padding-block: .85rem; border-bottom: 1px solid rgba(175, 192, 214, .15); font-size: 1.1rem; }
    .site-nav ul a::after { display: none; }
    .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ocra); padding-left: .8rem; }
}

/* Intestazioni delle pagine interne */

.page-head { background: var(--ice); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.4rem); }
.page-head h1 { margin-bottom: .35em; }
.page-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 .9rem; padding: 0; font-size: var(--fs-sm); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--muted); }
.section-ice { background: var(--ice); }

/* Sagome dei veicoli */

.vicon { width: 100%; height: auto; overflow: visible; }
.vicon-body { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.vicon-window { fill: currentColor; opacity: .14; }
.vicon-wheel { fill: var(--vicon-wheel-fill, var(--white)); stroke: currentColor; stroke-width: 1.6; }

/* Schede veicolo nelle liste */

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.4rem; }

.vcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
    transition: border-color .15s;
}
.vcard:hover { border-color: var(--steel); }
.vcard-media { position: relative; z-index: 1; aspect-ratio: 4 / 3; background: var(--ice); overflow: hidden; }
.vcard-track {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    cursor: pointer;
}
.vcard-track::-webkit-scrollbar { display: none; }
.vcard-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.vcard-slide::before,
.vcard-media::before,
.gallery-main::before,
.gallery-thumbs button::before,
.mini-media::before {
    content: "";
    position: absolute;
    inset: -16px;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(.92) saturate(1.1);
    transform: scale(1.08);
    z-index: 0;
    pointer-events: none;
}
.vcard-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.vcard-media:has(.vcard-track)::before { content: none; }
.vcard-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--navy);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 1px 4px rgba(19, 35, 59, .22);
}
.vcard-nav:disabled { opacity: 0; pointer-events: none; }
.vcard-nav-prev { left: .55rem; }
.vcard-nav-next { right: .55rem; }
.vcard-count {
    position: absolute;
    right: .65rem;
    bottom: .55rem;
    z-index: 3;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: rgba(19, 35, 59, .82);
    color: var(--white);
    font-size: .8rem;
    font-weight: 600;
    pointer-events: none;
}
.vcard-media .vicon { position: absolute; inset: 22% 14% auto; width: 72%; color: var(--steel-soft); }
.vcard-placeholder-note { position: absolute; left: 0; right: 0; bottom: .7rem; text-align: center; font-size: .8rem; color: var(--muted); }
.vcard-badge {
    position: absolute; left: 0; top: 0; z-index: 4;
    padding: .4rem .8rem;
    background: var(--ocra); color: var(--navy);
    font-size: .85rem; font-weight: 800;
    border-bottom-right-radius: var(--radius-m);
}
.vcard-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.15rem; }
.vcard-title { margin: 0; font-size: 1.28rem; }
.vcard-title a { color: inherit; text-decoration: none; }
.vcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.vcard-version { margin: .2rem 0 .8rem; color: var(--muted); font-size: .95rem; line-height: 1.35; min-height: 2.6em; }
.vcard-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.tag {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .18rem .55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8rem; font-weight: 600; color: var(--steel);
    background: var(--white);
}
.tag-strong { background: var(--navy); border-color: var(--navy); color: var(--white); }
.vcard-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-top: auto; }
.vcard-meta { font-size: .9rem; color: var(--muted); }
.vcard-price { font-size: 1.85rem; font-weight: 800; font-stretch: 112%; color: var(--navy); line-height: 1; white-space: nowrap; }
.vcard-old { display: block; text-align: right; font-size: .9rem; color: var(--muted); text-decoration: line-through; margin-top: .2rem; }
.vcard-rate {
    margin-top: .9rem;
    padding: .6rem .75rem;
    background: var(--ice);
    border-radius: var(--radius-s);
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.4;
}
.vcard-rate strong { color: var(--navy); font-size: 1rem; }
.vcard-rate:empty { display: none; }
.vcard-cta { margin-top: 1rem; }
@media (max-width: 760px) {
    .vgrid { gap: .7rem; }
    .vcard {
        display: grid;
        grid-template-columns: 7.6rem minmax(0, 1fr);
        min-height: 8.6rem;
    }
    .vcard-media { aspect-ratio: auto; height: auto; min-height: 100%; }
    .vcard-media > img,
    .vcard-track {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }
    .vcard-slide { height: 100%; }
    .vcard-media img { object-fit: cover; height: 100%; }
    .vcard-slide::before,
    .vcard-media::before { display: none; }
    .vcard-nav { display: none; }
    .vcard-count { right: .28rem; bottom: .28rem; padding: .1rem .38rem; font-size: .68rem; }
    .vcard-badge { padding: .22rem .45rem; font-size: .68rem; }
    .vcard-body { padding: .6rem .7rem .65rem; }
    .vcard-title { font-size: 1.02rem; }
    .vcard-version { margin: .05rem 0 .35rem; font-size: .8rem; line-height: 1.3; min-height: 0; }
    .vcard-tags { margin-bottom: .35rem; gap: .25rem; }
    .vcard .tag { font-size: .7rem; padding: .06rem .4rem; }
    .vcard-price-row { flex-direction: column; align-items: flex-start; gap: .12rem; }
    .vcard-price-row > span:last-child { order: -1; }
    .vcard-meta { font-size: .76rem; line-height: 1.35; }
    .catalog-toolbar { gap: .55rem .75rem; }
    .sort { flex: 1 1 100%; margin-left: 0; }
    .sort select { flex: 1; min-width: 0; }
    .vcard-price { font-size: 1.2rem; }
    .vcard-old { display: inline; margin: 0 0 0 .4rem; text-align: left; font-size: .78rem; }
    .vcard-rate { margin-top: .4rem; padding: .35rem .5rem; }
    .vcard-cta { display: none; }
}
.vcard:hover .vcard-cta { background: var(--navy); color: var(--white); }

/* Catalogo con filtri */

.catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 2rem; align-items: start; padding-block: 2rem 4rem; }

.filters { position: sticky; top: 6rem; background: var(--ice); border-radius: var(--radius-m); padding: 1.1rem 1.1rem 1.4rem; max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); overflow: auto; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.filters-head h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.25rem; }
.filters-head h2 svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.filters-reset { font-size: .9rem; font-weight: 600; }
.filters-close { display: none; }

.cat-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: .8rem 0 .4rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); overflow: hidden; }
.cat-switch label { position: relative; text-align: center; font-size: .88rem; font-weight: 600; padding: .55rem .3rem; cursor: pointer; }
.cat-switch label + label { border-left: 1px solid var(--line); }
.cat-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cat-switch label:has(input:checked) { background: var(--navy); color: var(--white); }
.cat-switch label:has(input:focus-visible) { outline: 3px solid var(--ocra); outline-offset: -3px; }

.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: .95rem .2rem;
    font-weight: 700; color: var(--navy);
    cursor: pointer;
    list-style: none;
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after {
    content: ""; width: .55rem; height: .55rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s var(--ease);
}
.fgroup[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.fgroup-count { margin-left: auto; margin-right: .8rem; min-width: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--ocra); color: var(--navy); font-size: .78rem; text-align: center; }
.fgroup-body { padding: .1rem .2rem 1.1rem; display: grid; gap: .7rem; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile span {
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    padding: .6rem .4rem .55rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    font-size: .84rem; font-weight: 600; text-align: center; line-height: 1.2;
    color: var(--asphalt);
    transition: border-color .15s, box-shadow .15s;
}
.tile .vicon { width: 3.4rem; color: var(--steel); }
.tile:hover span { border-color: var(--steel); }
.tile input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); }
.tile input:checked + span .vicon { color: var(--navy); --vicon-wheel-fill: var(--ocra); }
.tile input:focus-visible + span { outline: 3px solid var(--ocra); outline-offset: 2px; }

.swatches { display: flex; flex-wrap: wrap; gap: .55rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
    display: block; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(19, 35, 59, .2);
}
.swatch input:checked + span { box-shadow: inset 0 0 0 1px rgba(19, 35, 59, .2), 0 0 0 2px var(--white), 0 0 0 4px var(--navy); }
.swatch input:focus-visible + span { outline: 3px solid var(--ocra); outline-offset: 4px; }

.range-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .96rem; line-height: 1.35; }
.check input { width: 1.15rem; height: 1.15rem; margin: .1rem 0 0; accent-color: var(--navy); flex: none; }

.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.results-count { margin: 0; font-size: 1.05rem; color: var(--muted); }
.results-count strong { color: var(--navy); font-size: 1.4rem; font-stretch: var(--wide); }
.sort { display: flex; align-items: center; gap: .5rem; margin-left: auto; font-size: .95rem; font-weight: 600; color: var(--navy); }
.sort select { width: auto; }
.filters-open { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.chips:empty { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .3rem .4rem .3rem .75rem;
    border: 1px solid var(--navy); border-radius: 999px;
    background: var(--white); color: var(--navy);
    font: inherit; font-size: .88rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.chip::after { content: "×"; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--ice); font-size: 1rem; line-height: 1; }
.chip:hover { background: var(--navy); color: var(--white); }
.chip:hover::after { background: var(--navy-2); }

.results { transition: opacity .2s; }
.results.is-loading { opacity: .45; }

.empty-state { padding: 3rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius-m); text-align: center; }
.empty-state .vicon { width: 9rem; margin: 0 auto 1rem; color: var(--steel-soft); }
.empty-state p { margin-inline: auto; color: var(--muted); }

@media (max-width: 960px) {
    .catalog { grid-template-columns: 1fr; padding-top: 1.2rem; }
    .filters {
        position: fixed; inset: auto 0 0 0; z-index: 80;
        max-height: 88vh; max-height: 88dvh; border-radius: 14px 14px 0 0;
        padding: 1.1rem var(--gutter) 6rem;
        transform: translateY(105%);
        transition: transform .3s var(--ease);
        box-shadow: 0 -12px 40px rgba(19, 35, 59, .28);
    }
    .filters.is-open { transform: none; }
    .filters-close { display: inline-flex; background: none; border: 0; font: inherit; font-weight: 700; color: var(--navy); padding: .4rem; cursor: pointer; }
    .filters-apply { position: fixed; left: 0; right: 0; bottom: 0; padding: .9rem var(--gutter); background: var(--ice); border-top: 1px solid var(--line); }
    .filters-open { display: inline-flex; }
    .filters-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(19, 35, 59, .5); }
}
@media (min-width: 961px) {
    .filters-backdrop, .js .filters-apply { display: none; }
    .filters-apply { margin-top: 1rem; }
}
@media (max-width: 960px) {
    html:not(.js) .filters { position: static; transform: none; max-height: none; box-shadow: none; padding-bottom: 1.4rem; border-radius: var(--radius-m); }
    html:not(.js) .filters-apply { position: static; padding: 1rem 0 0; background: none; border: 0; }
    html:not(.js) .filters-open { display: none; }
}

/* Moduli */

label, .label { font-weight: 600; color: var(--navy); font-size: .95rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], select, textarea {
    width: 100%;
    min-height: 2.8rem;
    padding: .6rem .75rem;
    border: 1px solid #BCC5D1;
    border-radius: var(--radius-s);
    background: var(--white);
    color: var(--asphalt);
    font: inherit;
    font-size: 1rem;
}
select {
    appearance: none;
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2313233B' stroke-width='1.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: .75rem;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(217, 165, 33, .45); }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; }
.field-hint { font-size: .85rem; color: var(--muted); }
.photo-status { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ok); }
.photo-status.is-error { color: var(--err); }
.form-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.form-fieldset legend { font-size: var(--fs-md); font-weight: 750; font-stretch: var(--wide); color: var(--navy); margin-bottom: .6rem; padding: 0; }
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.alert { padding: .9rem 1.1rem; border-radius: var(--radius-s); border-left: 4px solid; font-weight: 600; margin-bottom: 1.2rem; }
.alert-ok { background: #E8F2EC; border-color: var(--ok); color: #1F4A2F; }
.alert-err { background: #F8E9EA; border-color: var(--err); color: #6E1A1E; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; font-weight: 500; }

/* Scheda veicolo */

.vd-head { padding-block: 1.6rem 1.2rem; }
.vd-head h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.vd-head .vd-version { margin: .35rem 0 0; font-size: 1.15rem; color: var(--muted); max-width: none; }
.vd-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }

.vd-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem 1.35rem;
    margin-top: 1.1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--line);
}
.vd-tool {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    padding: .2rem 0;
    background: none;
    border: 0;
    color: var(--steel);
    font: inherit;
    font-size: .98rem;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}
.vd-tool svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vd-tool:hover { color: var(--navy); }
.vd-tool.is-copied { color: var(--ok); }
.vd-print-dealer { display: none; }

.vd-toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.4rem + env(safe-area-inset-bottom));
    z-index: 80;
    transform: translateX(-50%) translateY(.4rem);
    padding: .7rem 1.1rem;
    border-radius: var(--radius-s);
    background: var(--navy);
    color: var(--white);
    font-weight: 650;
    font-size: .95rem;
    box-shadow: 0 10px 28px rgba(9, 18, 31, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.vd-toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 760px) {
    .vd-toast { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
}

.vd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2.4rem; align-items: start; padding-bottom: 4rem; }

.gallery-main {
    position: relative; display: block; width: 100%;
    aspect-ratio: 4 / 3; padding: 0; border: 0;
    background: var(--ice); border-radius: var(--radius-m); overflow: hidden; cursor: zoom-in;
}
.gallery-main img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.gallery-main .vicon { position: absolute; inset: 20% 16% auto; width: 68%; color: var(--steel-soft); }
.gallery-main:disabled { cursor: default; }
.gallery-main .vicon-body, .gallery-main .vicon-wheel { stroke-width: .8; }
.gallery-count { position: absolute; right: .8rem; bottom: .8rem; z-index: 2; padding: .3rem .65rem; border-radius: 999px; background: rgba(19, 35, 59, .82); color: var(--white); font-size: .85rem; font-weight: 600; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.8rem; height: 2.8rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.gallery-nav.prev { left: .8rem; }
.gallery-nav.next { right: .8rem; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.gallery-thumbs button { position: relative; flex: 0 0 6.5rem; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); overflow: hidden; background: var(--ice); cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--navy); }
.gallery-thumbs img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 18, 31, .96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; max-height: 84dvh; object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 1px solid rgba(255,255,255,.4); color: var(--white); border-radius: var(--radius-s); padding: .5rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.lightbox .gallery-nav { background: rgba(255,255,255,.14); color: var(--white); }
.lightbox-caption { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; color: var(--steel-soft); font-size: .9rem; }

.vd-aside { position: sticky; top: 6rem; display: grid; gap: 1rem; }
.price-box { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.4rem; }
.price-box-label { margin: 0; font-size: .95rem; color: var(--muted); }
.price-box-price { display: block; font-size: clamp(2.1rem, 9vw, 2.9rem); overflow-wrap: anywhere; font-weight: 850; font-stretch: 115%; color: var(--navy); line-height: 1.05; }
.price-box-old { margin: .25rem 0 0; color: var(--muted); }
.price-box-old s { color: var(--muted); }
.price-box-old strong { color: var(--ocra-dark); }
.price-box-actions { display: grid; gap: .55rem; margin-top: 1.2rem; }
.sold-banner { padding: .8rem 1rem; background: var(--asphalt); color: var(--white); border-radius: var(--radius-s); font-weight: 700; }

.calc { background: var(--navy); color: var(--white); border-radius: var(--radius-m); padding: 1.4rem; }
.calc h2 { color: var(--white); font-size: 1.25rem; margin-bottom: 1rem; }
.calc label, .calc .label { color: var(--steel-soft); font-weight: 600; font-size: .9rem; }
.calc-row { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.calc-row-head { display: flex; justify-content: space-between; align-items: baseline; }
.calc-row-head output { color: var(--white); font-weight: 700; }
.calc input[type="range"] { width: 100%; accent-color: var(--ocra); }
.calc-durations { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.calc-durations label { position: relative; cursor: pointer; }
.calc-durations input { position: absolute; opacity: 0; pointer-events: none; }
.calc-durations span { display: block; padding: .5rem .2rem; text-align: center; border: 1px solid rgba(175, 192, 214, .4); border-radius: var(--radius-s); color: var(--white); font-weight: 600; font-size: .92rem; }
.calc-durations input:checked + span { background: var(--ocra); border-color: var(--ocra); color: var(--navy); }
.calc-durations input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }
.calc-result { border-top: 1px solid rgba(175, 192, 214, .3); padding-top: 1rem; }
.calc-monthly { display: flex; align-items: baseline; gap: .4rem; margin: 0 0 .7rem; color: var(--steel-soft); }
.calc-monthly strong { font-size: 2.3rem; font-weight: 850; font-stretch: 115%; color: var(--ocra); line-height: 1; }
.calc-details { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; margin: 0; font-size: .9rem; }
.calc-details dt { color: var(--steel-soft); }
.calc-details dd { margin: 0; text-align: right; font-weight: 600; }
.calc-note { margin: 1rem 0 0; font-size: .76rem; line-height: 1.45; color: var(--steel-soft); }

.vd-section { margin-top: 2.4rem; }
.vd-section h2 { font-size: var(--fs-lg); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin: 0; border-top: 1px solid var(--line); }
.specs div { padding: .85rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .1rem; }
.specs div:nth-child(odd) { padding-right: 1rem; }
.specs dt { font-size: .85rem; color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.05rem; }

/* Equipaggiamento scheda veicolo */

.equip-section { padding-top: 2rem; border-top: 1px solid var(--line); }
.equip-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.equip-title-col { display: flex; align-items: center; gap: .85rem; }
.equip-title-col h2 { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--asphalt); }
.equip-badge-icon {
    display: grid; place-items: center; flex: none;
    width: 2.6rem; height: 2.6rem;
    border-radius: var(--radius-m);
    background: #EAF4F4;
    color: #1A8789;
}
.equip-badge-icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.equip-groups { display: grid; gap: 1.65rem; }
.equip-group { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.equip-cat {
    display: flex; align-items: center; gap: .7rem;
    margin: 0;
    font-size: 1rem; font-weight: 700; font-stretch: 100%;
    color: var(--asphalt); line-height: 1.4;
}
.equip-cat-icon { display: inline-grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem; color: var(--asphalt); }
.equip-cat-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.equip-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .38rem; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.equip-groups.is-collapsed [data-equip-extra] { display: none; }
.equip-toggle {
    display: inline-flex; align-items: center; gap: .45rem;
    margin-top: 1.35rem; padding: .25rem 0;
    background: none; border: 0;
    color: #1D63B8; font: inherit; font-size: 1rem; font-weight: 600;
    cursor: pointer;
}
.equip-toggle:hover { color: var(--navy); text-decoration: underline; }
.equip-toggle svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.equip-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 780px) {
    .equip-layout { grid-template-columns: 1fr; gap: 1.3rem; }
    .equip-group { grid-template-columns: 1fr; gap: .5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
    .equip-group:last-child { padding-bottom: 0; border-bottom: 0; }
}

.notice { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--white); }
.notice + .notice { margin-top: .8rem; }
.notice-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: var(--radius-s); background: var(--navy); color: var(--ocra); font-weight: 850; font-stretch: 125%; font-size: 1.3rem; }
.notice-icon.is-wide { font-size: .95rem; letter-spacing: -0.03em; }
.notice-icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.notice h2 { margin: 0 0 .2rem; font-size: 1.1rem; }
.notice p { margin: 0; color: var(--muted); font-size: .96rem; }

.vd-desc { white-space: pre-line; }

@media (max-width: 1000px) {
    .vd-layout { grid-template-columns: 1fr; }
    .vd-aside { position: static; }
}

/* Home: il piazzale */

.yard {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
    min-height: min(88vh, 860px);
    display: flex;
    flex-direction: column;
}
.yard-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0; transition: opacity .6s var(--ease); }
.yard-photo.is-active { opacity: 1; }
.yard-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(19, 35, 59, .94) 0%, rgba(19, 35, 59, .7) 45%, rgba(19, 35, 59, .25) 100%); }

.yard-ground {
    position: absolute; z-index: -1;
    left: -40%; right: -40%; bottom: 0;
    height: 70%;
    background:
        repeating-linear-gradient(90deg, transparent 0 calc(8% - 4px), rgba(242, 244, 247, .2) calc(8% - 4px) 8%),
        linear-gradient(180deg, rgba(28, 50, 82, 0) 0%, #1C3252 60%);
    transform: perspective(600px) rotateX(58deg);
    transform-origin: bottom center;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 40%);
}
.yard-ground::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 30%;
    height: 4px;
    background: rgba(242, 244, 247, .2);
}

.yard-inner { flex: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 7vw, 5rem) 2rem; }
.yard-tabs {
    position: relative; display: inline-flex; gap: .15rem;
    padding: .28rem; margin-bottom: 1.8rem;
    border: 1px solid rgba(175, 192, 214, .28);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(31, 52, 84, .62), rgba(19, 35, 59, .72));
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 30px -16px rgba(0, 0, 0, .55);
}
.yard-tabs-pill {
    position: absolute; z-index: 0; top: .28rem; left: 0;
    height: calc(100% - .56rem); width: 0;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(180deg, #E8B93A 0%, var(--ocra) 55%, #C4931A 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px -8px rgba(217, 165, 33, .75);
    opacity: 0; pointer-events: none;
    transition: transform .6s var(--ease), width .6s var(--ease), opacity .2s;
}
.yard-tabs-pill::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
    transform: skewX(-20deg);
    animation: yard-pill-sheen 5s var(--ease) 1.2s infinite;
}
@keyframes yard-pill-sheen {
    0%, 70% { left: -60%; }
    100% { left: 130%; }
}
.yard-tabs.has-pill .yard-tabs-pill { opacity: 1; }
.yard-tabs.has-pill .yard-tab[aria-selected="true"] { background: transparent; }
.yard-tab {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .62rem 1.05rem .62rem 1.25rem;
    border: 0; border-radius: 999px;
    background: transparent; color: var(--steel-soft);
    font: inherit; font-weight: 700; font-size: .96rem; letter-spacing: .005em;
    cursor: pointer;
    transition: background-color .25s, color .25s;
}
.yard-tab:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.yard-tab:focus-visible { outline: 2px solid var(--ocra); outline-offset: 2px; }
.yard-tab[aria-selected="true"] { background: var(--ocra); color: var(--navy); }
.yard-tab[aria-selected="true"]:hover { background: var(--ocra); }
.yard-tabs.has-pill .yard-tab[aria-selected="true"]:hover { background: transparent; }
.yard-tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.45rem; height: 1.45rem; padding: 0 .4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
    transition: background-color .25s, color .25s;
}
.yard-tab[aria-selected="true"] .yard-tab-count { background: rgba(19, 35, 59, .85); color: #F4D27A; }
@media (prefers-reduced-motion: reduce) {
    .yard-tabs-pill::after { animation: none; display: none; }
}

.yard-title {
    margin: 0 0 1.1rem;
    color: var(--white);
    font-size: var(--fs-3xl);
    font-weight: 820;
    font-stretch: 125%;
    line-height: .98;
    letter-spacing: -0.02em;
    max-width: 12ch;
}
.yard-text { font-size: 1.18rem; color: #D3DCE8; max-width: 38ch; margin-bottom: 1.8rem; }
.yard-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.yard-panels { display: grid; }
.yard-panel { grid-area: 1 / 1; }
.yard-panel[hidden] { display: block !important; visibility: hidden; }
.yard-panel.is-entering .yard-title,
.yard-panel.is-entering .yard-text { animation: yard-in .55s var(--ease) both; }
.yard-panel.is-entering .yard-text { animation-delay: .06s; }

/* Palco: auto, furgone e camion in fila sotto un arco, quello scelto si accende */
.yard-stage { position: relative; align-self: end; aspect-ratio: 600 / 300; width: 100%; margin-bottom: 4%; }

.yard-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.yard-arc-main { fill: url(#yard-arc-grad); filter: drop-shadow(0 0 10px rgba(217, 165, 33, .35)); }
.yard-arc-thin { fill: none; stroke: rgba(242, 244, 247, .35); stroke-width: 2; stroke-linecap: round; }
.yard-arc.is-sweeping { animation: yard-sweep 1s var(--ease) both; }

.yard-lineup { position: absolute; left: 0; right: 0; bottom: 7%; display: flex; align-items: flex-end; justify-content: space-between; }
.yard-vehicle {
    position: relative; flex: none;
    opacity: .45; cursor: pointer;
    transform-origin: 50% 100%;
    transform: translateY(0) scale(.97);
    filter: saturate(.6) brightness(.8);
    transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease);
}
/* Render 3D in fila, sovrapposti come nel logo: auto davanti, camion dietro */
.yard-vehicle-auto { width: 37%; z-index: 3; }
.yard-vehicle-furgoni { width: 33%; margin-left: -4%; z-index: 2; }
.yard-vehicle-camion { width: 39%; margin-left: -5%; z-index: 1; }
.yard-render { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.yard-vehicle:hover { opacity: .7; }
.yard-vehicle.is-active {
    opacity: 1;
    transform: translateY(-4%) scale(1.06);
    filter: drop-shadow(0 10px 22px rgba(217, 165, 33, .28));
    z-index: 4;
}
.yard-vehicle.is-drawing .yard-render { animation: yard-rise .9s var(--ease) both; }
.yard-vehicle::after {
    content: ""; position: absolute; left: -8%; right: -8%; top: 92%; height: 18%;
    background: radial-gradient(closest-side, rgba(217, 165, 33, .5), transparent);
    opacity: 0; transform: scaleX(.4);
    transition: opacity .6s var(--ease), transform .7s var(--ease);
    pointer-events: none;
}
.yard-vehicle.is-active::after { opacity: .75; transform: scaleX(1); }

.yard-plate {
    position: absolute; left: 50%; bottom: calc(100% + .5rem);
    padding: .35rem .7rem; border: 1px solid rgba(217, 165, 33, .7); border-radius: var(--radius-s);
    color: var(--ocra); font-weight: 700; font-size: .9rem; white-space: nowrap;
    background: rgba(19, 35, 59, .8);
    opacity: 0; transform: translate(-50%, 8px);
    transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.yard-vehicle.is-active .yard-plate { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; }

.yard-road {
    position: absolute; left: -4%; right: -4%; bottom: 5%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(242, 244, 247, .55) 20%, rgba(242, 244, 247, .55) 80%, transparent);
}

.yard-strip { border-top: 1px solid rgba(175, 192, 214, .22); background: rgba(13, 25, 43, .55); backdrop-filter: blur(6px); }
.yard-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.mini { display: grid; grid-template-columns: 6.5rem 1fr; gap: .9rem; align-items: center; padding: 1rem 1.2rem 1rem 0; color: var(--white); text-decoration: none; }
.mini + .mini { padding-left: 1.2rem; border-left: 1px solid rgba(175, 192, 214, .22); }
.mini-media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-s); background: var(--navy-2); overflow: hidden; display: grid; place-items: center; }
.mini-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.mini-media .vicon { width: 78%; color: var(--steel-soft); --vicon-wheel-fill: var(--navy-2); }
.mini-title { display: block; font-weight: 700; line-height: 1.2; }
.mini-meta { display: block; font-size: .85rem; color: var(--steel-soft); }
.mini-price { display: block; margin-top: .2rem; font-weight: 800; font-stretch: 112%; color: var(--ocra); }
.mini:hover .mini-title { text-decoration: underline; text-underline-offset: .2em; }
.mini-empty { padding: 1.2rem 0; color: var(--steel-soft); grid-column: 1 / -1; }

@keyframes yard-rise { from { opacity: 0; transform: translateX(-6%) scale(.96); filter: blur(6px); } }
@keyframes yard-fade { from { opacity: 0; } }
@keyframes yard-in { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
@keyframes yard-sweep { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(-20% -5% -20% -5%); opacity: 1; } }
@media (max-width: 900px) {
    .yard { min-height: 0; }
    .yard-inner { grid-template-columns: 1fr; }
    .yard-stage { max-width: 30rem; width: 100%; justify-self: center; }
    .yard-strip-inner { grid-template-columns: 1fr; }
    .mini, .mini + .mini { padding: .8rem 0; border-left: 0; }
    .mini + .mini { border-top: 1px solid rgba(175, 192, 214, .22); }
    .yard-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .yard-tab { white-space: nowrap; }
}
@media (max-width: 760px) {
    .yard-inner { padding-block: 1.25rem .35rem; gap: .5rem; }
    .yard-title { font-size: clamp(1.85rem, 8.4vw, 2.45rem); margin-bottom: .65rem; }
    .yard-text { font-size: 1rem; margin-bottom: 1rem; }
    .yard-stage { max-width: 19rem; margin-bottom: 0; }
    .section { padding-block: 2.1rem; }
    .section-head { margin-bottom: 1.1rem; align-items: flex-start; }
    .section-head .btn { min-height: 2.5rem; }
}

/* Home: passaggi della valutazione */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 2rem; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 1.6rem 1.5rem 0 0; counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem; margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--navy); color: var(--ocra);
    font-weight: 850; font-size: 1.15rem;
    position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: calc(1.6rem + 1.3rem); left: 2.6rem; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; }
    .steps li::after { display: none; }
}

/* Fascia contatti */

.contact-band { background: var(--navy); color: var(--steel-soft); padding-block: clamp(2.5rem, 6vw, 4rem); }
.contact-band-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; align-items: start; }
.contact-band h2 { color: var(--white); font-size: var(--fs-xl); margin-bottom: .4rem; }
.contact-band p { margin: 0; }
.contact-band-label { display: block; font-size: .9rem; margin-bottom: .3rem; }
.contact-band a.big { display: block; color: var(--white); font-size: 1.35rem; font-weight: 750; font-stretch: var(--wide); text-decoration: none; }
.contact-band a.big:hover { color: var(--ocra); }
.contact-band address { font-style: normal; color: var(--white); font-size: 1.1rem; }
.contact-band .small-link { color: var(--ocra); font-weight: 600; font-size: .95rem; }
@media (max-width: 860px) { .contact-band-inner { grid-template-columns: 1fr; } }

/* Pagine contatti e valutazione */

.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.info-card { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.5rem; }
.info-card + .info-card { margin-top: 1rem; }
.info-card h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.info-list li { display: grid; gap: .1rem; }
.info-list span { font-size: .85rem; color: var(--muted); }
.info-list a, .info-list strong { font-weight: 700; color: var(--navy); font-size: 1.1rem; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-card address { font-style: normal; }

.steps-compact { grid-template-columns: 1fr; margin: 0; }
.steps-compact li { padding: 0 0 1.2rem 3.3rem; }
.steps-compact li::before { position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; font-size: 1rem; }
.steps-compact li::after { display: block; top: 2.5rem; bottom: .2rem; left: 1.1rem; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px); }
.steps-compact li:last-child { padding-bottom: 0; }
.steps-compact h3 { font-size: 1.02rem; }

.map-section { padding-bottom: 4rem; }
.map-section .map { margin-top: 0; }
.map-placeholder .vicon { width: 8rem; color: var(--steel-soft); }
.map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--ice); border: 1px solid var(--line); margin-top: 2rem; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; padding: 1.5rem; text-align: center; color: var(--muted);
    background: repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px), var(--ice); }
.map-placeholder p { margin: 0; max-width: 40ch; font-size: .9rem; }

.vehicle-ref { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: center; padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--ice); }
.vehicle-ref .mini-media { background: var(--white); }
.vehicle-ref .vicon { color: var(--steel); }
.vehicle-ref strong { color: var(--navy); display: block; }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-lg); margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }

.about-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 22rem) minmax(0, .95fr); gap: clamp(1.25rem, 2.5vw, 2.25rem); align-items: start; }
.about-yard { margin: 0; }
.about-yard img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); border: 1px solid var(--line); }
.about-yard figcaption { margin-top: .55rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 980px) {
    .about-layout { grid-template-columns: 1fr 1fr; }
    .about-yard { grid-column: 1 / -1; order: -1; max-width: 22rem; justify-self: center; }
}
@media (max-width: 700px) { .about-layout { grid-template-columns: 1fr; } }

/* Piè di pagina */

.site-footer { background: #0E1A2C; color: var(--steel-soft); padding-top: 3.5rem; font-size: .96rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--ocra); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 220px; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; }
.footer-title { color: var(--white); font-size: 1rem; font-stretch: 100%; margin-bottom: .8rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer address { font-style: normal; margin-bottom: .5rem; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; border-top: 1px solid rgba(175, 192, 214, .18); font-size: .88rem; }
.footer-legal a { color: var(--steel-soft); }
.fortune-mark { display: inline-block; width: .85rem; height: .85rem; margin-left: .4rem; padding: .1rem; vertical-align: -.22em; background: #fff; border-radius: 50%; box-sizing: content-box; object-fit: contain; pointer-events: none; user-select: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Aree di tocco piu ampie su schermi touch */

.swatch::after { content: ""; position: absolute; inset: -.3rem; }
@media (pointer: coarse) {
    .topbar a { display: inline-block; padding-block: .45rem; }
    .topbar-inner { padding-block: .15rem; }
    .footer-list { gap: 0; }
    .footer-list a, .footer-legal a { display: inline-block; padding-block: .5rem; }
    .chip { min-height: 2.5rem; }
    .check { padding-block: .3rem; }
    .check input { width: 1.35rem; height: 1.35rem; }
}

/* Orari */

.topbar-hours { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-hours svg { width: 1rem; height: 1rem; fill: none; stroke: var(--ocra); stroke-width: 2; stroke-linecap: round; }
@media (max-width: 1100px) { .topbar-address { display: none; } .topbar-inner { justify-content: space-between; } }
@media (max-width: 920px) { .topbar-inner { justify-content: center; } }
@media (max-width: 760px) { .topbar-phones { display: none; } }

.footer-hours { margin: 0 0 .5rem; color: var(--white); }
.contact-band-hours { margin: .9rem 0 0; color: var(--steel-soft); }
.contact-band-hours strong { color: var(--white); font-weight: 750; }
.band-actions { margin-top: 1.1rem; }
.info-card-note { margin: 1rem 0 0; font-size: .96rem; }
.price-box-note { margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }

/* Garanzia */

.warranty-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.warranty-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
.warranty-card h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.warranty-card p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .warranty-cards { grid-template-columns: 1fr; } }

.warranty-block { margin-bottom: 2.5rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-m); }
.warranty-block-head { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin-bottom: 1.4rem; }
.warranty-block-head h2 { margin: 0 0 .3rem; font-size: var(--fs-lg); }
.warranty-block-head p { margin: 0; color: var(--muted); }
.warranty-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 2rem; margin: 0; }
.warranty-list dt { margin-bottom: .2rem; font-weight: 750; color: var(--navy); }
.warranty-list dd { margin: 0; color: var(--muted); }
.warranty-cta { padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius-m); background: var(--ice); }
.warranty-cta p { margin-bottom: 1.2rem; }
@media (max-width: 760px) { .warranty-list { grid-template-columns: 1fr; } }

/* Pulsanti Chiama e WhatsApp fissi su mobile */

.mobile-cta { display: none; }
@media (max-width: 760px) {
    body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
    .mobile-cta {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
        padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
        background: #0E1A2C;
        border-top: 1px solid rgba(175, 192, 214, .25);
        box-shadow: 0 -8px 24px rgba(9, 18, 31, .25);
    }
    .mobile-cta .btn { min-height: 3.1rem; }
    .mobile-cta .btn:not(.btn-accent) { --btn-bg: var(--white); --btn-fg: var(--navy); }
    .mobile-cta .btn:not(.btn-accent):hover { --btn-bg: var(--ice); }
}
@media print {
    .mobile-cta { display: none; }
    @page { margin: 12mm; }
    body, body.has-adminbar { background: var(--white); color: #111; font-size: 11pt; padding-top: 0; }
    .skip-link, .front-adminbar, .topbar, .site-header, .site-footer, .mobile-cta,
    .breadcrumb, .vd-tools, .price-box-actions, .price-box-note, .calc,
    .lightbox, .gallery-thumbs, .gallery-count, .gallery-nav, .vcard-nav, .vcard-count, .equip-toggle {
        display: none !important;
    }
    .vcard-slide:not(:first-child) { display: none; }
    .vcard-track { overflow: hidden; }
    .vd-print-dealer {
        display: block;
        margin: 0 0 1rem;
        padding-bottom: .7rem;
        border-bottom: 1px solid #bbb;
        color: #333;
        font-size: 10pt;
        max-width: none;
    }
    .vd-head { padding-block: 0 .8rem; }
    .vd-head h1 { font-size: 22pt; }
    .vd-layout { display: block; padding-bottom: 0; }
    .vd-aside { position: static; margin-top: 1rem; }
    .price-box { border: 0; padding: 0; }
    .price-box-price { font-size: 18pt; }
    .gallery-main, .gallery-main:disabled {
        aspect-ratio: auto;
        max-height: 95mm;
        border: 1px solid #ddd;
        border-radius: 0;
        cursor: default;
        break-inside: avoid;
    }
    .gallery-main::before { display: none; }
    .gallery-main img { object-fit: contain; max-height: 95mm; }
    .vd-section { margin-top: 1.2rem; break-inside: avoid; }
    .equip-groups.is-collapsed [data-equip-extra] { display: list-item; }
    .notice { break-inside: avoid; box-shadow: none; }
    a { color: inherit; text-decoration: none; }
}

/* Movimento ridotto */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
