/* Solo mobile: il desktop usa esclusivamente gli stili della home precedente. */
@media(max-width:767px){
/* Home Lambrocar: layout approvato, con adattamento a tutte le larghezze. */
html.mh-active{--mh-available:calc(100svh - 120px);--mh-header:82px;--mh-bar:0px;--mh-panel-height:min(660px,var(--mh-available))}
html.mh-active .mh-inventory.mh-ready{display:block}
html.mh-active.mh-stock-ready #vehicleGrid,html.mh-active.mh-stock-ready #parco .more-cars,html.mh-active.mh-offers-ready #homeOfferSlider{display:none}
html.mh-active #parco .category-jump{gap:8px}
html.mh-active .mh-section{margin:28px 0 40px}
html.mh-active .mh-panel{height:var(--mh-panel-height);min-height:0;display:flex;flex-direction:column;scroll-margin-top:calc(var(--mh-header) + 12px)}
html.mh-active .mh-section:last-child{margin-bottom:0}
html.mh-active .mh-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex:0 0 auto;margin:0 0 10px}
html.mh-active .mh-heading h3{font-size:28px;line-height:1.15;letter-spacing:-.04em;margin:0;font-weight:800}
html.mh-active .mh-heading small{font-size:13px;color:#626973;white-space:nowrap}
html.mh-active .mh-shell{display:flex;flex-direction:column;flex:1;min-height:0;max-width:100%;gap:10px;position:relative}
html.mh-active .mh-track,html.mh-active #marchi .brands.mh-track,html.mh-active #servizi .service-grid.mh-track{display:flex;flex:1;min-height:0;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:0;overscroll-behavior-x:contain;scrollbar-width:none;margin:0;padding:0;max-width:100%;width:100%;grid-template-columns:none;align-items:stretch;-webkit-overflow-scrolling:touch;scroll-behavior:auto}
html.mh-active .mh-track::-webkit-scrollbar{display:none}
html.mh-active .mh-track>.mh-slide{flex:0 0 100%;min-width:0;min-height:0;max-width:100%;width:100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always;box-sizing:border-box;margin:0;overflow:hidden}
html.mh-active .mh-track>.vehicle{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);border:1px solid #e3e4e5;border-radius:10px;background:#fff;box-shadow:none}
html.mh-active .mh-track .vehicle-photo{height:100%;min-height:0;position:relative;background:#f6f6f6;overflow:hidden;aspect-ratio:auto}
html.mh-active .mh-track .vehicle-photo img{width:100%;height:100%;object-fit:contain;display:block}
html.mh-active .mh-track .vehicle-info{padding:clamp(16px,2vw,28px);display:flex;min-height:0;min-width:0;flex-direction:column;justify-content:center}
html.mh-active .mh-track .vehicle-brand{font-size:12px;letter-spacing:.1em;font-weight:700;color:#6b717a}
html.mh-active .mh-track .vehicle-info h3{font-size:clamp(21px,2vw,30px);line-height:1.2;margin:8px 0 10px;letter-spacing:-.035em;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
html.mh-active .mh-track .vehicle-variant{font-size:15px;line-height:1.4;color:#626973;margin:0 0 16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html.mh-active .mh-track .vehicle-bottom{display:flex;gap:12px;justify-content:space-between;align-items:center;flex:0 0 auto;margin-top:12px;padding-top:14px;border-top:1px solid #eceef0}
html.mh-active .mh-track .price{font-size:clamp(23px,2.4vw,32px);line-height:1.15;font-weight:800;color:#191b20;white-space:nowrap}
html.mh-active .mh-track .discount{font-size:11px;letter-spacing:.06em;line-height:1.3;color:#626973;margin-bottom:4px}
html.mh-active .mh-detail{display:block;background:#ffc800;color:#191b20;font-size:14px;font-weight:800;line-height:1.2;padding:12px 14px;border-radius:5px;white-space:normal;text-align:center;text-decoration:none}
html.mh-active .mh-stage{position:relative;display:flex;flex:1;min-height:0;min-width:0}
html.mh-active .mh-stage>.mh-track{height:100%}
html.mh-active .mh-controls{position:absolute;inset:0;pointer-events:none;z-index:3}
html.mh-active .mh-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:54px;display:grid;place-items:center;border:1px solid #ffffff60;background:rgba(25,27,32,.28);color:#fff;border-radius:50%;padding:0;font:400 34px/1 Arial,sans-serif;cursor:pointer;pointer-events:auto;box-shadow:0 2px 8px #0001;backdrop-filter:blur(2px);transition:background-color .15s}
html.mh-active .mh-arrow:first-child{left:-10px}
html.mh-active .mh-arrow:last-child{right:-10px}
html.mh-active .mh-arrow:hover{background:rgba(25,27,32,.52)}
html.mh-active .mh-arrow:disabled{display:none}
html.mh-active .mh-arrow:focus-visible,html.mh-active .mh-all:focus-visible,html.mh-active .mh-detail:focus-visible{outline:3px solid #a67d00;outline-offset:2px}
html.mh-active .mh-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html.mh-active .mh-all{display:flex;justify-content:center;align-items:center;flex:0 0 auto;min-height:42px;margin:0;border:0;border-radius:5px;background:#ffc800;color:#191b20;padding:10px 14px;font-size:14px;font-weight:800;text-decoration:none;text-align:center;line-height:1.3;cursor:pointer;list-style:none}
html.mh-active .mh-all::-webkit-details-marker{display:none}
html.mh-active #marchi,html.mh-active #servizi,html.mh-active #offerte{padding:32px 0}
html.mh-active #offerte>.wrap>.section-heading{display:none}
html.mh-active #offerte .mh-section{margin:0}
html.mh-active #marchi .section-heading,html.mh-active #servizi .section-heading{flex:0 0 auto;margin:0 0 10px;display:block}
html.mh-active #marchi .kicker,html.mh-active #servizi .kicker{font-size:18px;line-height:1.2;letter-spacing:.03em;margin-bottom:6px}
html.mh-active #marchi .section-heading h2,html.mh-active #servizi .section-heading h2{font-size:24px;line-height:1.15;margin:0 0 6px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html.mh-active #marchi .section-heading p,html.mh-active #servizi .section-heading p{font-size:14px;line-height:1.3;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
html.mh-active #marchi .mh-slide.brand-card{min-height:0;padding:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#fff}
html.mh-active #marchi .mh-slide.brand-card small{font-size:12px}
html.mh-active #marchi .mh-slide.brand-card h3{font-size:26px;margin:0 0 6px}
html.mh-active #marchi .mh-slide.brand-card p{font-size:16px;margin:0}
html.mh-active #marchi .mh-slide .brand-logo-center{position:static;transform:none;max-height:35%;height:100px;width:180px;max-width:65%;object-fit:contain;margin:0}
html.mh-active #marchi .mh-slide.brand-card>span{position:static;margin:0;font-size:14px}
html.mh-active #servizi .mh-slide.service{min-height:0;padding:22px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;border:1px solid #e3e4e5;border-radius:10px;background:#fff}
html.mh-active #servizi .mh-slide.service h3{font-size:24px;line-height:1.2;margin:10px 0}
html.mh-active #servizi .mh-slide.service p{font-size:16px;line-height:1.4;margin:0}
html.mh-active .mh-services-details{flex:0 0 auto;position:relative}
html.mh-active .mh-services-list{position:absolute;z-index:10;bottom:100%;left:0;right:0;max-height:240px;overflow:auto;margin:0 0 6px;padding:12px 20px 12px 38px;border:1px solid #ddd;border-radius:8px;background:#fff;box-shadow:0 -8px 25px #0002;font-size:16px;line-height:1.4}
html.mh-active .mh-services-list a{display:block;padding:7px 0;text-decoration:underline;text-underline-offset:3px}
html.mh-active .mh-unavailable{font-size:15px;line-height:1.5;border:1px solid #ddd;padding:18px;border-radius:8px}
@media(max-width:767px){
 html.mh-active{--mh-panel-height:min(640px,var(--mh-available))}
 html.mh-active #parco .category-jump{grid-template-columns:1fr 1fr}
 html.mh-active .mh-section{margin:24px 0 32px}
 html.mh-active .mh-heading{gap:8px;margin-bottom:8px}
 html.mh-active .mh-heading h3{font-size:23px}
 html.mh-active .mh-heading small{font-size:12px}
 html.mh-active .mh-shell{gap:8px}
 html.mh-active .mh-track>.vehicle{grid-template-columns:1fr;grid-template-rows:minmax(40px,1fr) auto}
 html.mh-active .mh-track .vehicle-info{padding:10px 14px 12px;justify-content:flex-start}
 html.mh-active .mh-track .vehicle-brand{font-size:11px;line-height:1.2}
 html.mh-active .mh-track .vehicle-info h3{font-size:19px;line-height:1.2;margin:5px 0 7px;-webkit-line-clamp:2}
 html.mh-active .mh-track .vehicle-variant{font-size:13px;line-height:1.3;margin:0;-webkit-line-clamp:1}
 html.mh-active .mh-track .vehicle-bottom{margin-top:9px;padding-top:9px;gap:10px}
 html.mh-active .mh-track .price{font-size:25px}
 html.mh-active .mh-track .discount{font-size:10px}
 html.mh-active .mh-detail{font-size:13px;padding:11px 12px}
 html.mh-active .mh-arrow{height:50px}
 html.mh-active #marchi .kicker,html.mh-active #servizi .kicker{font-size:17px}
 html.mh-active #marchi .section-heading h2,html.mh-active #servizi .section-heading h2{font-size:19px}
 html.mh-active #marchi .section-heading p,html.mh-active #servizi .section-heading p{font-size:13px;-webkit-line-clamp:1}
 html.mh-active #marchi .mh-slide.brand-card{padding:14px;gap:8px}
 html.mh-active #marchi .mh-slide.brand-card h3{font-size:22px}
 html.mh-active #marchi .mh-slide.brand-card p{font-size:14px}
 html.mh-active #servizi .mh-slide.service{padding:16px}
 html.mh-active #servizi .mh-slide.service .symbol{font-size:26px;margin:0}
 html.mh-active #servizi .mh-slide.service h3{font-size:21px;margin:8px 0}
 html.mh-active #servizi .mh-slide.service p{font-size:15px;line-height:1.35}
 html.mh-active .mobile-bar{padding:4px 6px calc(4px + env(safe-area-inset-bottom,0px));gap:5px;box-shadow:0 -2px 12px #0001}
 html.mh-active .mobile-bar a{min-height:38px;height:38px;padding:4px 3px;font-size:10px;line-height:1.1;gap:2px;border-radius:4px}
 html.mh-active .mobile-bar .mobile-whatsapp::after,html.mh-active .mobile-bar .mobile-whatsapp span{font-size:10px}
}
@media(max-height:500px) and (min-width:500px){
 html.mh-active .mh-track>.vehicle{grid-template-columns:1fr 1fr;grid-template-rows:1fr}
 html.mh-active .mh-track .vehicle-info{padding:8px 12px}
 html.mh-active .mh-track .vehicle-info h3{font-size:17px;margin:4px 0;-webkit-line-clamp:2}
 html.mh-active .mh-track .vehicle-variant{font-size:12px;margin:0;-webkit-line-clamp:1}
 html.mh-active .mh-track .vehicle-bottom{margin-top:5px;padding-top:5px}
 html.mh-active .mh-track .price{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.mh-track{scroll-behavior:auto!important}}

/* Mantiene nella prova anche la spaziatura dei loghi già concordata. */
/* Smartphone: loghi distinti, con spazio tra i marchi e dal menu. */
@media (max-width:740px){
  .header .header-inner{display:flex;align-items:center;gap:8px}
  .header .header-inner > a:first-child{flex:0 1 auto;min-width:0}
  .header .header-inner > a:first-child .logo{max-width:100%;height:auto}
  .header .header-brand-logos{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto;margin-left:auto}
  .header .header-brand-mark{display:flex;align-items:center;justify-content:center;width:36px;height:44px;min-width:0;flex:0 0 auto}
  .header .header-brand-mark img{display:block;width:30px;height:36px;max-width:100%;object-fit:contain}
  .header .header-contact{display:none}
  .header .menu-toggle{flex:0 0 auto;margin-left:4px;padding:4px}
}
@media (max-width:390px){
  .header .header-inner{gap:6px}
  .header .header-brand-logos{gap:8px}
  .header .header-brand-mark{width:32px}
  .header .header-brand-mark img{width:26px;height:34px}
  .header .header-inner > a:first-child .logo{max-width:148px}
  .header .menu-toggle{margin-left:2px}
}
@media (max-width:360px){
  .header .header-inner{gap:5px}
  .header .header-brand-logos{gap:7px}
  .header .header-brand-mark{width:30px}
  .header .header-brand-mark img{width:24px;height:32px}
  .header .header-inner > a:first-child .logo{max-width:120px}
  .header .menu-toggle{padding:3px}
}

/* Marchi mobile: tutti e tre visibili, soltanto logo e collegamento dedicato. */
@media(max-width:767px){
 html.mh-active #marchi .mh-controls{display:none}
 html.mh-active #marchi .brands.mh-track{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:10px;overflow:visible;scroll-snap-type:none;overscroll-behavior:auto}
 html.mh-active #marchi .brands.mh-track>[data-mh-clone]{display:none}
 html.mh-active #marchi .brands.mh-track>.brand-card:not([data-mh-clone]){display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,1.1fr);align-items:center;justify-items:center;gap:12px;padding:10px 14px;width:100%;height:100%;min-height:0;border-radius:8px}
 html.mh-active #marchi .brand-card>small,html.mh-active #marchi .brand-card>div{display:none}
 html.mh-active #marchi .mh-slide .brand-logo-center{display:block;width:100%;max-width:110px;height:66px;max-height:100%;object-fit:contain;position:static;transform:none;margin:0}
 html.mh-active #marchi .brand-card>span{position:static;display:flex;align-items:center;justify-content:center;width:100%;min-height:38px;margin:0;padding:9px 10px;border:1px solid #ccd0d6;border-radius:5px;background:#fff;color:#191b20;font-size:12px;font-weight:800;line-height:1.2;text-align:center}
 html.mh-active #servizi .mh-slide.service{padding-left:40px;padding-right:40px}
}

/* Apertura mobile come nel riferimento: header, hero e quattro collegamenti. */
@media(max-width:767px){
 html.mh-active #marchi .brand-card>span{display:none}
 html.mh-active #marchi .brands.mh-track>.brand-card:not([data-mh-clone]){grid-template-columns:1fr;gap:0;justify-items:center}
 html.mh-active #marchi .mh-slide .brand-logo-center{max-width:150px;width:65%;height:76px;max-height:100%}
 html.mh-active #marchi .section-heading p{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:14px;line-height:1.4}
 html.mh-active #marchi .section-heading p a{display:block;margin-top:5px;font-size:15px;line-height:1.4;font-weight:800}
 html.mh-active .header .nav.open{font-size:18px;line-height:1.3;gap:0;padding:10px 18px;max-height:calc(100dvh - var(--mh-header) - var(--mh-bar));overflow-y:auto;overscroll-behavior-y:contain}
 html.mh-active .header .nav.open a{display:block;padding:11px 6px;min-height:46px;font-size:18px;line-height:1.3}
 html.mh-active .hero,html.mh-active .hero-inner{height:var(--mh-hero-height,470px);min-height:0}
 html.mh-active .hero-inner{align-items:flex-start}
 html.mh-active .hero-copy{padding:clamp(20px,4svh,32px) 0 38px;width:100%;max-width:none}
 html.mh-active .hero-copy>.eyebrow{font-size:12px;line-height:1.4;letter-spacing:.13em;max-width:320px}
 html.mh-active .hero h1{font-size:clamp(29px,10.2vw,44px);line-height:1.06;letter-spacing:-.06em;margin:24px 0}
 html.mh-active .hero h1 em{white-space:nowrap}
 html.mh-active .hero-copy>p{font-size:15px;line-height:1.65;margin:0;max-width:none}
 html.mh-active .search-panel{margin-top:-24px;padding:18px;border-radius:14px}
 html.mh-active .search-top{display:block;margin-bottom:14px}
 html.mh-active .search-top strong{display:block;font-size:22px;line-height:1.25}
 html.mh-active .search-panel .quicklinks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
 html.mh-active .search-panel .search-actions .chip{min-height:52px;padding:12px 6px;font-size:13px;line-height:1.25;border-radius:7px}
}
@media(max-width:767px) and (max-height:680px){
 html.mh-active .hero-copy{padding:14px 0 30px}
 html.mh-active .hero-copy>.eyebrow{font-size:10px;line-height:1.35}
 html.mh-active .hero h1{font-size:clamp(27px,10vw,35px);margin:14px 0 12px}
 html.mh-active .hero-copy>p{font-size:13px;line-height:1.4}
 html.mh-active .search-panel{padding:14px}
 html.mh-active .search-top{margin-bottom:12px}
 html.mh-active .search-top strong{font-size:20px}
 html.mh-active .search-panel .quicklinks{gap:8px}
 html.mh-active .search-panel .search-actions .chip{min-height:46px;padding:10px 5px;font-size:12px}
}


}
