/* Nuova grafica 0.24: caricato per ultimo. Un solo carattere, testata scura, ricerca su una riga,
   categorie a etichette, schede auto uniformi, due colonne su telefono. Vale per tema chiaro e scuro. */
@font-face{font-family:'Manrope';src:url('manrope.woff') format('woff');font-weight:200 800;font-style:normal;font-display:swap}
:root{
  --rd-font:'Manrope',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --rd-bg:#f5f6f8;--rd-surface:#ffffff;--rd-line:#e2e5ea;--rd-ink:#14171c;--rd-muted:#5c6470;
  --rd-red:#e60023;--rd-red-text:#c4001e;--rd-photo:#eceef1;--rd-field:#f5f6f8;--rd-chip-on:#14171c;--rd-chip-on-ink:#ffffff;
}
html[data-theme="dark"]{
  --rd-bg:#0f1114;--rd-surface:#181b20;--rd-line:#2a2e35;--rd-ink:#f3f4f6;--rd-muted:#a3a9b3;
  --rd-red-text:#ff4d5e;--rd-field:#0f1114;--rd-chip-on:#f3f4f6;--rd-chip-on-ink:#0f1114;
}

/* ---- un solo carattere ---- */
html body, html body :is(h1,h2,h3,h4,h5,h6,p,a,span,strong,b,small,li,dt,dd,label,button,input,select,textarea,summary,th,td,div){font-family:var(--rd-font)!important}
html body{background:var(--rd-bg);color:var(--rd-ink)}
html body :is(h1,h2){font-weight:800;letter-spacing:-.02em}
html body h3{font-weight:800;letter-spacing:-.01em}
html .story h2{font-weight:800}

/* ---- menu in alto: sta sempre nella pagina ---- */
html .top{background:var(--rd-surface);border-bottom:1px solid var(--rd-line)}
html .top .shell{gap:24px;min-height:76px;max-width:1280px;padding:0 24px}
html .top .logo img{width:auto;height:50px}
html .top nav{gap:22px;white-space:nowrap;min-width:0}
html .top nav a{font-size:14px;font-weight:600;color:var(--rd-ink)}
html .top nav a.btn{background:var(--rd-red);color:#fff;padding:12px 20px;border-radius:10px;font-weight:700}
html .top nav a.nav-register{display:none}
@media(min-width:1400px){html .top nav a.nav-register{display:inline-flex}}
@media(max-width:1180px) and (min-width:901px){html .top .shell{gap:16px}html .top nav{gap:14px}html .top nav a{font-size:13px}html .top .logo img{height:42px}}

/* ---- testata ---- */
html .hero.rd-hero{max-width:1232px;margin:24px auto 0;width:calc(100% - 48px);border-radius:20px;min-height:520px;align-items:flex-end;background:#181b20}
html .hero.rd-hero:before{background-position:center 62%}
html .hero.rd-hero:after{background:linear-gradient(90deg,rgba(10,11,14,.94) 0%,rgba(10,11,14,.78) 38%,rgba(10,11,14,.15) 72%)}
html .hero.rd-hero .shell{padding:48px 48px 96px;max-width:none}
html .hero.rd-hero h1{font-size:clamp(40px,4.6vw,58px);line-height:1.04;letter-spacing:-.02em;font-weight:800;color:#f3f4f6;margin:16px 0 16px;max-width:560px}
html .hero.rd-hero h1 span{color:#ff4d5e}
html .hero.rd-hero p{color:#d5d9df;font-size:18px;max-width:460px;margin:0}
html .hero.rd-hero .eyebrow{color:#c9ced6}
html .hero.rd-hero .rd-promo{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:13px;font-weight:600;color:#c9ced6;max-width:none}
html .hero.rd-hero .rd-promo b{background:var(--rd-red);color:#fff;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:800}
html .hero.rd-hero .rd-promo span{color:#c9ced6}
html .hero.rd-hero .hero-actions{margin-top:24px}
html .hero.rd-hero .hero-actions .btn{border-radius:10px;font-weight:700}
html .hero.rd-hero .hero-actions .btn.secondary{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.35)}
html .hero.rd-hero .hero-actions .btn.secondary:hover{background:rgba(255,255,255,.18);color:#fff;border-color:#fff}
.rd-trust{list-style:none;display:flex;flex-wrap:wrap;gap:8px 22px;margin:22px 0 0;padding:0;font-size:14px;font-weight:600;color:#f3f4f6}
.rd-trust li{display:flex;align-items:center;gap:7px}
.rd-trust svg{width:17px;height:17px;flex:none}
.rd-trust .rd-star{fill:#f5b400}
.rd-trust .rd-check{fill:none;stroke:#4ade80;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* ---- ricerca su una riga ---- */
html .search-wrap{max-width:1232px;width:calc(100% - 48px);margin:-46px auto 0;padding:0 32px}
html .finder{background:var(--rd-surface);border:1px solid var(--rd-line);border-radius:16px;padding:18px;box-shadow:0 18px 40px rgba(0,0,0,.18);display:grid;grid-template-columns:auto 1fr;gap:6px 18px;align-items:start}
html .finder .finder-tabs{background:var(--rd-field);border-radius:10px;padding:4px;margin-top:22px}
html .finder .finder-tabs button{padding:11px 16px;border-radius:8px;font-weight:700;color:var(--rd-muted);background:transparent;box-shadow:none}
html .finder .finder-tabs button:hover{background:transparent;color:var(--rd-ink)}
html .finder .finder-tabs button[aria-selected="true"],html[data-theme="dark"] .finder .finder-tabs button[aria-selected="true"]{background:var(--rd-red)!important;color:#fff!important;box-shadow:none}
html .finder [role="tabpanel"]{min-width:0}
html .finder .journey-search{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end;padding:0;background:transparent}
html .finder .sale-search{grid-template-columns:1fr auto}
html .finder .search-heading{display:none}
html .finder .journey-search label{font-size:12px;font-weight:700;color:var(--rd-muted);gap:6px}
html .finder .journey-search input{background:var(--rd-field);border:1px solid var(--rd-line);border-radius:10px;color:var(--rd-ink);font-size:15px;font-weight:600;min-height:48px;padding:10px 14px}
html .finder .journey-search button{grid-column:auto;min-height:48px;border-radius:10px;font-weight:800;padding:12px 24px;background:var(--rd-red)}
html .finder .finder-note{margin:8px 0 0;font-size:12px;color:var(--rd-muted)}
html .finder .finder-note a{color:var(--rd-red-text)}

/* ---- titoli di sezione ---- */
html .home-section .home-head h2{font-size:clamp(26px,3vw,34px);line-height:1.15}
html .home-section .pill{background:transparent;border:0;padding:0;color:var(--rd-red-text);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
html .home-section .head-link{color:var(--rd-red-text);font-weight:700}

/* ---- categorie: etichette ---- */
html .category-grid{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 26px}
html .category-tile{flex:none;flex-direction:row;align-items:baseline;gap:7px;min-height:44px;padding:10px 16px;border-radius:999px;background:var(--rd-surface);border:1px solid var(--rd-line);box-shadow:none;color:var(--rd-ink)}
html .category-tile:hover{transform:none;border-color:var(--rd-ink);box-shadow:none}
html .category-tile.active{background:var(--rd-chip-on);border-color:var(--rd-chip-on);color:var(--rd-chip-on-ink)}
html .category-tile.active .category-meta{color:var(--rd-chip-on-ink);opacity:.8}
html .category-tile .category-icon,html .category-tile .category-arrow{display:none}
html .category-tile strong{font-size:14px;font-weight:700}
html .category-tile .category-meta{font-size:13px;color:var(--rd-muted)}

/* ---- schede auto ---- */
html :is(#catalogo,.home-section) .cars.cars-compact{gap:20px}
html :is(#catalogo,.home-section) .cars-compact .car.car-compact{background:var(--rd-surface);border:1px solid var(--rd-line);border-radius:16px;overflow:hidden;box-shadow:none}
html :is(#catalogo,.home-section) .cars-compact .car-compact:hover{box-shadow:0 10px 26px rgba(0,0,0,.14)}
html :is(#catalogo,.home-section) .cars-compact .car-compact .car-photo{aspect-ratio:13/12!important;background:var(--rd-photo);border-bottom:0;position:relative}
html :is(#catalogo,.home-section) .cars-compact .car-compact .car-photo img{object-fit:cover;object-position:center 68%}
html :is(#catalogo,.home-section) .cars-compact .car-compact .badge{top:12px;left:12px;background:rgba(20,23,28,.82);color:#fff;border:0;border-radius:999px;padding:5px 10px;font-size:10px;font-weight:700;letter-spacing:.04em}
html :is(#catalogo,.home-section) .cars-compact .car-compact .badge.rd-badge-promo{background:var(--rd-red);font-size:12px;font-weight:800;letter-spacing:0}
html :is(#catalogo,.home-section) .cars-compact .car-compact .badge-ok{top:auto;bottom:12px;background:#e7f6ec;color:#17552e}
html :is(#catalogo,.home-section) .cars-compact .car-compact .car-body{padding:16px 18px 18px;display:flex;flex-direction:column;position:relative}
html :is(#catalogo,.home-section) .cars-compact .car-compact .car-category{color:var(--rd-muted);font-size:12px;letter-spacing:0;text-transform:none;font-weight:700;margin:0 0 2px}
html :is(#catalogo,.home-section) .cars-compact .car-compact h3{font-size:20px;font-weight:800;letter-spacing:-.01em;line-height:1.2;min-height:0;margin:0 0 4px;color:var(--rd-ink)}
html :is(#catalogo,.home-section) .cars-compact .car-compact h3 a{-webkit-line-clamp:1;color:inherit}
html .cars-compact .card-subtitle{color:var(--rd-muted);margin:0 0 6px}
html .cars-compact .card-specs{display:flex;flex-wrap:wrap;gap:0;min-height:0;margin:2px 0 0}
html .cars-compact .card-spec{gap:0}
html .cars-compact .card-spec:nth-child(even){border-left:0;padding-left:0}
html .cars-compact .card-spec dt svg{display:none}
html .cars-compact .card-spec dd{font-size:13px;color:var(--rd-muted)}
html .cars-compact .card-spec+.card-spec dd:before{content:'·';margin:0 6px}
html :is(#catalogo,.home-section) .cars-compact .car-compact .car-bottom{min-height:58px;margin:auto 0 0;padding:12px 104px 0 0;border-top:1px solid var(--rd-line);align-items:flex-end;margin-top:14px}
html :is(#catalogo,.home-section) .cars-compact .car.car-sale-refined .car-bottom{padding-right:120px;align-items:center}
html .cars-compact .card-specs{margin-bottom:auto}
html :is(#catalogo,.home-section) .cars-compact .car-compact .price,
html[data-theme="dark"] :is(#catalogo,.home-section) .cars-compact .car.car-compact .price{color:var(--rd-ink)!important;font-size:22px;font-weight:800;line-height:1.15;letter-spacing:-.02em;display:block}
html :is(#catalogo,.home-section) .cars-compact .car-compact .price small{display:block;font-size:12px;font-weight:600;color:var(--rd-muted);margin-top:2px}
html .cars-compact .card-price-note{display:none}
html :is(#catalogo,.home-section) .cars-compact .car-compact .card-cta,
html :is(#catalogo,.home-section) .cars-compact .car.car-sale-refined .card-cta{position:absolute;right:18px;bottom:18px;width:auto;min-height:44px;margin:0;padding:11px 18px;border-radius:10px;background:var(--rd-red);color:#fff;font-size:14px;font-weight:700;border:0}
html :is(#catalogo,.home-section) .cars-compact .car-compact .card-cta span{display:none}
html :is(#catalogo,.home-section) .cars-compact .car.car-sale-refined .card-cta{background:transparent;color:var(--rd-ink);border:1px solid var(--rd-muted)}
html .price-old{color:var(--rd-muted)}
html .price-was .promo-badge{display:none}

/* ---- telefono ---- */
@media(max-width:900px){
  html .hero.rd-hero{display:flex;isolation:isolate;width:calc(100% - 24px);margin:12px auto 0;border-radius:16px;min-height:340px;background:#181b20}
  html .hero.rd-hero:before{position:absolute;inset:0;height:auto;display:block;background:url('hero.webp') 62% center/cover no-repeat}
  html .hero.rd-hero:after{display:block;background:linear-gradient(180deg,rgba(10,11,14,.15) 0%,rgba(10,11,14,.6) 45%,rgba(10,11,14,.95) 100%)}
  html .hero.rd-hero .shell{padding:150px 18px 20px;width:100%}
  html .hero.rd-hero h1{font-size:34px;margin:10px 0}
  html .hero.rd-hero p{font-size:14px;color:#d5d9df}
  html .hero.rd-hero .hero-actions{display:none}
  .rd-trust{flex-direction:column;font-size:13px;margin-top:14px}
  html .search-wrap{width:100%;margin:12px auto 0;padding:0 12px}
  html .finder{grid-template-columns:1fr;padding:14px;gap:12px;box-shadow:none}
  html .finder .finder-tabs{display:grid;grid-template-columns:1fr 1fr;margin-top:0}
  html .finder .journey-search{grid-template-columns:1fr 1fr;gap:10px}
  html .finder .journey-search button{grid-column:1/-1}
  html .finder .sale-search{grid-template-columns:1fr}
  html .category-grid{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px 16px;padding:0 16px 4px;gap:8px}
  html .category-tile{flex:none;min-height:44px}
  html .category-tile .category-meta{display:none}
  html :is(#catalogo,.home-section) .cars.cars-compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow:visible;margin:0;padding:0}
  html :is(#catalogo,.home-section) .cars-compact .car.car-compact{border-radius:14px;min-width:0;max-width:none;width:auto;flex:none}
  html :is(#catalogo,.home-section) .cars-compact .car-compact .car-photo{aspect-ratio:4/3!important}
  html :is(#catalogo,.home-section) .cars-compact .car-compact .badge:not(.rd-badge-promo):not(.badge-ok){display:none}
  html :is(#catalogo,.home-section) .cars-compact .car-compact .badge{top:8px;left:8px}
  html .cars-compact .card-gallery{display:none}
  html :is(#catalogo,.home-section) .cars-compact .car-compact .car-body,
  html :is(#catalogo,.home-section) .cars-compact .car.car-sale-refined .car-body{padding:12px;display:flex;flex-direction:column;align-items:stretch}
  html :is(#catalogo,.home-section) .cars-compact .car-compact .car-body:after{display:none}
  html :is(#catalogo,.home-section) .cars-compact .car-compact .car-category{display:none}
  html :is(#catalogo,.home-section) .cars-compact .car-compact h3{font-size:15px}
  html .cars-compact .card-subtitle{display:none}
  html .cars-compact .card-spec:nth-child(n+3){display:none}
  html .cars-compact .card-spec dd{font-size:12px}
  html :is(#catalogo,.home-section) .cars-compact .car-compact .car-bottom,
  html :is(#catalogo,.home-section) .cars-compact .car.car-sale-refined .car-bottom{margin:8px 0 0;padding:0;border-top:0;min-height:0}
  html :is(#catalogo,.home-section) .cars-compact .car-compact .price,
  html[data-theme="dark"] :is(#catalogo,.home-section) .cars-compact .car.car-compact .price{font-size:18px}
  html :is(#catalogo,.home-section) .cars-compact .car-compact .card-cta,
  html :is(#catalogo,.home-section) .cars-compact .car.car-sale-refined .card-cta{display:none}
}
