/* Final responsive rules shared by home, vehicle results, product details and customer pages. */
html{scroll-padding-bottom:90px}body[data-project="ar360-ufficiale"]{min-width:0}
.ar-product-card,.ar-product-content,.ar-product-purchase,.ar-product-specifications{min-width:0}.ar-products-list .ar-product-content{display:block}
.ar-vehicle-summary+.ar-garage-controls{margin-bottom:18px}.ar360-native-shell>.ar-garage-controls,#ar360-native-shell>.ar-garage-controls{max-width:1312px;width:calc(100% - 24px);margin:12px auto}
html.ar360-pages-ready body#contact #main[data-ar360-customer-page="contact"]{grid-template-columns:minmax(0,1fr)}html.ar360-pages-ready #main .ar360-contact-note{font-size:14px;color:#596777;margin:0 0 18px;line-height:1.7}
#ar360-native-shell>.ar-garage-controls{box-sizing:border-box;max-width:none;width:100%;margin:0;padding:12px max(12px,calc((100vw - 1312px)/2));background:#f3f5f7;border-bottom:1px solid #dce1e7}.ar-garage-context{flex-basis:100%;grid-column:1/-1;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
body[data-general-search="true"] #ar-maintenance-fluids,body[data-general-search="true"] #ar-vehicle-quick-data,body[data-general-search="true"] .ar-vehicle-tabs,body[data-general-search="true"] .ar-quick-versions,body[data-general-search="true"] .ar-vehicle-search{display:none!important}
body[data-general-search="true"] .ar-vehicle-summary{margin-bottom:4px}
html:is(.ar360-pages-ready,.ar360-cart-ready) #leo-paneltool{display:none!important}
html:is(.ar360-pages-ready,.ar360-cart-ready) body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
html:is(.ar360-pages-ready,.ar360-cart-ready) #footer .footer-center[hidden],html:is(.ar360-pages-ready,.ar360-cart-ready) #footer .footer-bottom[hidden]{display:none!important}
html:is(.ar360-pages-ready,.ar360-cart-ready) body .breadcrumb ol{display:flex;flex-wrap:wrap;gap:6px 10px;list-style:none}html:is(.ar360-pages-ready,.ar360-cart-ready) body .breadcrumb li{margin:0;min-width:0;overflow-wrap:anywhere}html:is(.ar360-pages-ready,.ar360-cart-ready) body .breadcrumb li+li::before{content:"›";margin-right:10px;color:#7b8794}
@media(max-width:1023px){html.ar360-cart-ready body#cart #wrapper .remove-from-cart{width:44px;min-height:44px}html.ar360-cart-ready body#cart #wrapper .product-line-grid-right>.row{grid-template-columns:minmax(0,1fr) 44px}}
@media(max-width:1023px){.ar-garage-controls button,.ar-result-order select,.ar-vehicle-search input,.ar-finder-row input,.ar-finder-row select,.ar-directory-search input{font-size:16px}.ar-product-heart{width:44px;height:44px}.ar-product-extra-specifications summary,.ar-page-link,.ar-catalog-jump,.ar-engine-select{min-height:44px}.ar-my-car-inner{flex-wrap:wrap}.ar-my-car-label{min-width:0;max-width:100%;overflow-wrap:anywhere}.ar-product-detail-card .ar-product-stock{overflow-wrap:anywhere}.ar-table-scroll{max-width:100%;overflow-x:auto}}
@media(max-width:600px){
  body[data-catalog-layout="results"] .ar-vehicle-summary{grid-template-columns:minmax(0,1fr);gap:8px 12px}
  body[data-catalog-layout="results"] .ar-vehicle-photo{grid-column:1/-1;grid-row:auto;flex-direction:row;justify-content:flex-end;gap:12px;height:auto;margin:8px 0 0;min-width:0}
  body[data-catalog-layout="results"] .ar-vehicle-tabs{max-width:100%;width:100%;min-width:0;overflow-x:auto}
  .ar-vehicle-products.ar-products-list .ar-product-card,.ar-vehicle-products.ar-products-list .ar-product-carousel[data-visible-products="1"] .ar-product-card{grid-template-columns:64px minmax(0,1fr);gap:8px 12px;padding:14px 12px;min-height:0;align-items:start}
  .ar-vehicle-products.ar-products-list .ar-product-visual{grid-column:1;grid-row:1/3;min-width:0;align-self:start}.ar-vehicle-products.ar-products-list .ar-product-image{height:70px;margin:0;width:100%}.ar-vehicle-products.ar-products-list .ar-product-brand-logo{max-width:60px;max-height:20px}
  .ar-vehicle-products.ar-products-list .ar-product-content,.ar-vehicle-products.ar-products-list .ar-product-carousel[data-visible-products="1"] .ar-product-content{display:contents}
  .ar-vehicle-products.ar-products-list .ar-product-content>*{grid-column:1/-1}.ar-vehicle-products.ar-products-list .ar-product-content>h3{grid-column:2;grid-row:1;margin:0;font-size:16px;padding-right:32px}.ar-vehicle-products.ar-products-list .ar-product-content>.ar-product-name{grid-column:2;grid-row:2;font-size:14px;margin:0}
  .ar-vehicle-products.ar-products-list .ar-product-content>.ar-product-specifications{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;font-size:14px;line-height:1.5;width:100%}.ar-vehicle-products.ar-products-list .ar-product-content>.ar-product-specifications>div{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px;padding:5px 0;border-bottom:1px solid #eef0f3;align-items:start}.ar-product-specifications dt,.ar-product-specifications dd{word-break:normal;overflow-wrap:break-word;line-height:1.5}
  .ar-product-detail-card .ar-product-purchase,.ar-products-list .ar-product-purchase{grid-template-columns:minmax(0,1fr) minmax(100px,1fr)}.ar-product-price{min-width:0}.ar-product-price strong{font-size:23px}.ar-product-price small{overflow-wrap:anywhere}.ar-product-quantity{min-width:0}.ar-product-quantity input{max-width:64px;min-height:44px}
  .ar-vehicle-products.ar-products-list .ar-product-purchase{grid-row:3}.ar-vehicle-products.ar-products-list .ar-product-content>h3{padding-right:44px}
  .ar-products-grid-view .ar-product-grid{grid-template-columns:minmax(0,1fr)}.ar-products-grid-view .ar-product-specifications>div{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8px;font-size:14px}
  .ar-result-toolbar{gap:10px;padding:12px}.ar-result-count{flex-basis:100%}.ar-result-order{flex:1 1 100%;width:100%}.ar-result-order select{max-width:100%;font-size:16px}.ar-result-view{flex:1}.ar-result-view button{flex:1}.ar-newsletter-form{min-width:0;width:100%;max-width:100%}.ar-newsletter-form input{min-width:0;width:100%}
  .ar-product-detail-card .ar-product-add{font-size:14px;white-space:normal;height:auto;min-height:48px}.ar-detail-product-name{overflow-wrap:break-word}.ar-detail-tabs [role="tab"]{min-height:44px;white-space:normal}.ar-dialog{width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto}.ar-toast{max-width:calc(100% - 24px);bottom:calc(82px + env(safe-area-inset-bottom,0px))}
  html.ar360-pages-ready #main input:not([type="checkbox"]):not([type="radio"]),html.ar360-pages-ready #main select,html.ar360-pages-ready #main textarea{font-size:16px;max-width:100%;min-width:0}.ar-unified-footer{padding-bottom:0}
  html.ar360-pages-ready body#contact #main .form-control{box-sizing:border-box;display:block;width:100%}html.ar360-pages-ready body#contact #main input[type="file"]{display:block;width:100%;min-height:44px}html.ar360-pages-ready body#contact #main .contact-form label{display:block}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* R33: technical data belongs to its tab; the mobile catalog begins with products. */
#ar-vehicle-workspace>.ar-vehicle-panel[hidden]{display:none!important}
@media(max-width:1023px){
  body.ar-vehicle-page[data-catalog-layout="results"] .ar-vehicle-catalog{display:flex;flex-direction:column;min-width:0}
  body.ar-vehicle-page[data-catalog-layout="results"] #prodotti{order:0}
  body.ar-vehicle-page[data-catalog-layout="results"] #ar-native-advice{order:1;margin-top:16px}
  body.ar-vehicle-page[data-catalog-layout="results"] #ar-categories-stage{order:2;margin-top:16px}
  body.ar-vehicle-page[data-catalog-layout="results"] #ar-categories-loading{order:-1}
  body.ar-vehicle-page .ar-vehicle-panel{padding-top:12px}
}
@media(max-width:767px){
  body.ar-vehicle-page .ar-vehicle-summary,
  body.ar-vehicle-page[data-catalog-layout] .ar-vehicle-summary,
  .ar-directory .ar-vehicle-summary{
    grid-template-columns:minmax(0,1fr);grid-template-areas:"identity" "version" "photo";
    gap:8px;min-height:0;padding:12px 14px;margin-bottom:10px;align-items:start;
  }
  .ar-vehicle-summary>.ar-vehicle-identity{grid-area:identity;grid-column:1;grid-row:1;min-width:0;padding:0!important;display:grid;grid-template-columns:36px minmax(0,1fr);gap:0 10px;align-self:start}
  .ar-vehicle-summary .ar-vehicle-identity .ar-vehicle-brand{grid-column:1;grid-row:1/5;position:static;width:36px;height:36px;max-width:36px;align-self:center}
  .ar-vehicle-summary .ar-vehicle-identity .ar-vehicle-brand img{width:36px;height:36px;max-width:36px;max-height:36px}
  .ar-vehicle-summary .ar-summary-caption,.ar-vehicle-summary .ar-vehicle-description,.ar-vehicle-summary .ar-vehicle-specs,
  body.ar-vehicle-page .ar-vehicle-summary h1,.ar-vehicle-summary .ar-vehicle-identity-title{grid-column:2;grid-row:auto;min-width:0;width:auto;max-width:100%;overflow-wrap:break-word}
  body.ar-vehicle-page .ar-vehicle-summary h1,.ar-vehicle-summary .ar-vehicle-identity-title{font-size:17px;line-height:1.3;margin:3px 0}
  .ar-vehicle-summary .ar-vehicle-description,.ar-vehicle-summary .ar-vehicle-specs,.ar-vehicle-summary .ar-vehicle-specs span{font-size:11px;line-height:1.4}
  body.ar-vehicle-page .ar-vehicle-summary .ar-quick-versions,.ar-directory .ar-vehicle-summary .ar-quick-versions{grid-area:version;grid-column:1;grid-row:2;min-width:0;padding:8px 0 0;border:0;border-top:1px solid #e6e9ee;align-self:start}
  .ar-vehicle-summary .ar-quick-versions select{font-size:16px;min-height:44px;box-sizing:border-box;max-width:100%;width:100%}
  .ar-vehicle-summary .ar-quick-label{margin:0 0 5px;line-height:1.4}
  body.ar-vehicle-page .ar-vehicle-summary .ar-vehicle-photo,.ar-directory .ar-vehicle-summary .ar-vehicle-photo{grid-area:photo;grid-column:1;grid-row:3;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:12px;padding:0;margin:0;height:auto;min-height:0}
  .ar-vehicle-summary .ar-vehicle-photo img{width:84px;height:44px;max-width:84px;max-height:44px;object-fit:contain}
  body.ar-vehicle-page .ar-vehicle-summary .ar-summary-change,.ar-directory .ar-vehicle-summary .ar-summary-change{width:auto;min-height:44px;font-size:12px;white-space:normal;line-height:1.35;padding:7px 12px}
  .ar-vehicle-summary+.ar-garage-controls{margin-bottom:12px}
}

/* R36: consistent monetary figures; no changes to price calculation. */
.ar-product-price .ar-price-value{display:inline-flex;align-items:baseline;gap:.18em;white-space:nowrap;font-size:25px;font-weight:700;line-height:1.2;letter-spacing:-.02em;font-variant-numeric:lining-nums tabular-nums}
.ar-product-price .ar-price-amount{font-size:inherit}.ar-product-price .ar-price-currency{font-size:.7em;font-weight:600;letter-spacing:0}
@media(max-width:600px){.ar-product-purchase .ar-product-price{align-self:start}.ar-product-purchase .ar-product-quantity{align-self:center}.ar-product-price .ar-price-value{font-size:25px}.ar-product-quantity input{font-variant-numeric:tabular-nums}}

/* R37: preserve price/quantity pairing with the short delivery note underneath. */
@media(max-width:1023px){.ar-product-detail-card .ar-product-price{grid-column:1;grid-row:1}.ar-product-detail-card .ar-product-stock{grid-column:1;grid-row:2}.ar-product-detail-card .ar-product-quantity{grid-column:2;grid-row:1/span 2;align-self:center}.ar-product-detail-card .ar-product-shipping{grid-column:1/-1;grid-row:3}.ar-product-detail-card .ar-product-add{grid-column:1/-1;grid-row:4}.ar-product-detail-card .ar-whatsapp{grid-column:1/-1;grid-row:5}}
