/* Home divisa tra noleggio e vendita, elenchi e ritocchi di leggibilità. */

/* ---- testi troppo piccoli: minimo 12px ---- */
.eyebrow{font-size:12px;letter-spacing:.14em}
.hero-tag{font-size:12px}
.hero-tag strong{font-size:20px}
.badge{font-size:11px}
.car-category{font-size:12px}
.photo-empty{font-size:13px}
.car .price small{font-size:12px}
.specs{font-size:14px}
.footer p,.footer a{font-size:13px}
.footer strong{font-size:24px}
.contact-section .btn{font-size:14px}
.contact-card a{font-size:14px}
.filters input,.filters select,.filters button{font-size:14px}
.journey-search label{font-size:12px}
.muted{font-size:14px}

/* ---- intestazione ---- */
.top nav a[aria-current="page"]{color:var(--red)}
.top-call{display:none;align-items:center;gap:8px;margin-left:auto;padding:9px 14px;border:1px solid var(--line);border-radius:999px;font-size:14px;font-weight:650}
.top-call:hover{border-color:var(--red);color:var(--red)}
.dgc-ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.top-call .dgc-ic{width:18px;height:18px}

/* ---- hero ---- */
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.hero-actions .btn{min-height:50px;font-size:15px}
.hero-actions .btn.secondary{background:#fff;color:var(--ink);border:1px solid #d4d7d9}
.hero-actions .btn.secondary:hover{border-color:var(--red);color:var(--red);background:#fff}

/* ---- pannello di ricerca con due schede ---- */
.finder{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 16px 40px #14201c0c;padding:22px 30px 20px}
.finder-tabs{display:inline-flex;gap:4px;padding:5px;background:var(--bg);border-radius:12px}
.finder .finder-tabs button{min-height:0;padding:10px 20px;border-radius:9px;background:transparent;color:var(--ink);font-size:14px;font-weight:650}
.finder .finder-tabs button:hover{background:#fff;color:var(--red);transform:none}
.finder .finder-tabs button[aria-selected="true"]{background:#fff;color:var(--red);box-shadow:0 1px 6px #0000001f}
.finder .journey-search{border:0;box-shadow:none;border-radius:0;padding:20px 0 0}
.finder .sale-search{grid-template-columns:1.4fr 2fr auto}
.finder-note{margin:14px 0 0;font-size:13px;color:var(--muted)}
.finder-note a{color:var(--red);font-weight:600;text-decoration:underline}
.finder [hidden]{display:none}

/* ---- sezioni della home ---- */
.home-section{padding-top:70px;padding-bottom:20px}
.home-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:26px}
.home-head h2{font-size:34px;letter-spacing:-.035em;margin:10px 0 6px}
.home-head .muted{margin:0;max-width:56ch}
.head-link{flex:none;color:var(--red);font-weight:650;font-size:15px}
.head-link:hover{text-decoration:underline}
.pill{display:inline-block;padding:6px 12px;border-radius:999px;background:#fff0f2;color:var(--red);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.pill-sale{background:#eceeea;color:var(--ink)}
.home-more{text-align:center;margin:28px 0 0}
.home-band{background:#fff;border-block:1px solid var(--line);margin-top:64px;padding-bottom:56px}
.home-band .home-section{padding-top:64px;padding-bottom:0}
.home-band .car{border-color:#e9ebe9}
.home-section .empty .actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:20px}
.empty .actions .btn{font-size:14px}

/* ---- categorie ---- */
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:34px}
.category-tile{min-height:132px;gap:4px}
.category-tile:last-child{grid-column:auto}
.category-icon{color:var(--red);margin-bottom:10px}
.category-icon .dgc-ic{width:30px;height:30px}
.category-tile strong{font-size:15px}
.category-meta{font-size:13px;color:var(--muted)}
.category-arrow{font-size:18px}

/* ---- come funziona ---- */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:48px 0 0;padding:0;list-style:none}
.steps li{display:flex;gap:16px;align-items:flex-start;padding:22px;background:#fff;border:1px solid var(--line);border-radius:14px}
.step-n{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--red);color:#fff;font-weight:700;flex:none}
.steps strong{font-size:16px}
.steps p{margin:4px 0 0;font-size:14px;color:var(--muted);line-height:1.5}

/* ---- pagine elenco ---- */
.page-head{padding-top:30px}
.crumbs{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--muted);margin-bottom:16px}
.crumbs a:hover{color:var(--red)}
.crumbs [aria-current]{color:var(--ink);font-weight:600}
.page-head-row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.page-head h1{font-size:clamp(34px,4vw,48px);letter-spacing:-.04em;line-height:1.1;margin:0 0 8px}
.page-head p{margin:0;color:var(--muted);max-width:60ch}
.mode-switch{display:inline-flex;gap:4px;padding:5px;background:#fff;border:1px solid var(--line);border-radius:12px}
.mode-switch a{padding:10px 18px;border-radius:9px;font-size:14px;font-weight:650}
.mode-switch a:hover{color:var(--red)}
.mode-switch a[aria-current="page"]{background:var(--red);color:#fff}
.page-head+.category-section{padding-top:34px}
.page-head+.category-section:empty{display:none}
#catalogo.section{padding-top:28px}
.section-head .muted{display:inline}
.filters .btn.secondary{min-height:48px;font-size:13px}
.more{display:block;margin:30px auto 0;background:#fff;color:var(--ink);border:1px solid #c9ccd2}
.more:hover{background:#fff;border-color:var(--red);color:var(--red);transform:none}
.badge-ok{top:auto;bottom:16px;background:#e8f6ed;color:#0f6b36}

/* ---- WhatsApp sempre a portata di mano ---- */
.wa-float{position:fixed;right:18px;bottom:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:30;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#1fa855;color:#fff;box-shadow:0 8px 22px #0000003a}
.wa-float:hover{background:#178a45}
.wa-float .dgc-ic{width:28px;height:28px}

@media(max-width:1100px){
  .finder .sale-search{grid-template-columns:1fr 1fr}
  .finder .sale-search .search-heading,.finder .sale-search button{grid-column:1/-1}
  .steps{grid-template-columns:1fr}
}
@media(max-width:900px){
  .top-call{display:inline-flex}
  .top nav{margin-left:0}
}
@media(max-width:700px){
  .finder{padding:16px 16px 18px}
  .finder-tabs{display:flex}
  .finder .finder-tabs button{flex:1;padding:10px 8px}
  .finder .journey-search{padding-top:16px}
  .top nav a{font-size:13px}
  .home-section{padding-top:44px}
  .home-head{flex-direction:column;align-items:flex-start;gap:12px}
  .home-head h2{font-size:27px}
  .home-band{margin-top:44px;padding-bottom:36px}
  .home-band .home-section{padding-top:40px}
  .category-tile{min-height:112px;padding:14px}
  .hero-actions .btn{flex:1 1 100%}
  .page-head{padding-top:20px}
  .page-head-row{align-items:flex-start}
  .mode-switch{width:100%}
  .mode-switch a{flex:1;text-align:center}
  .footer{padding-bottom:92px}
}

/* ---- card: la foto si vede sempre intera, senza tagli ---- */
.car-photo.has-photo{isolation:isolate;background:#eef0ee}
.car-photo.has-photo::before{content:"";position:absolute;inset:-24px;z-index:-1;background:var(--dgc-bg) center/cover no-repeat;filter:blur(22px) saturate(1.15);opacity:.6}
.car-photo.has-photo img{position:relative;width:100%;height:100%;object-fit:contain;padding:6px 0}
.car:hover .car-photo.has-photo img{transform:none}
.car-photo .badge{z-index:2}
