.va {
  --va-deep: #162d43;
  --va-ink: #22374a;
  --va-accent: #c65433;
  --va-soft: #586b7a;
  --va-wash: #f3f7fa;
  --va-border: #dce5e9;
  --va-hero-start: #e5eef5;
  --va-hero-end: #fff4eb;
  background: #fff;
  color: var(--va-ink);
  line-height: 1.55;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.va--moto {
  --va-deep: #173b38;
  --va-ink: #244541;
  --va-accent: #087865;
  --va-soft: #54706c;
  --va-wash: #edf7f2;
  --va-border: #cfe3dc;
  --va-hero-start: #e2f4ed;
  --va-hero-end: #f3faf3;
}
.va *, .va *::before, .va *::after { box-sizing: border-box; }
.va a { color: #155f77; }
.va--moto a { color: #076d5f; }
.va a:hover { color: var(--va-accent); }
.va h1, .va h2, .va h3 { color: var(--va-deep); line-height: 1.18; font-weight: 760; }
.va h1 { font-size: clamp(2rem, 3.7vw, 3.35rem); }
.va h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.va h3 { font-size: 1.05rem; }
.va-shell { width: min(100% - 40px, 1240px); margin-inline: auto; }
.va-space { padding-block: 38px; }
.va-muted { color: var(--va-soft); }
.va-overline { margin: 0 0 9px; color: var(--va-accent); font-size: .8rem; letter-spacing: .08em; font-weight: 800; text-transform: uppercase; }
.va-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 17px; border: 1px solid var(--va-accent); border-radius: 9px; background: var(--va-accent); color: white !important; font: inherit; font-weight: 720; text-align: center; text-decoration: none !important; cursor: pointer; }
.va-button:hover { filter: brightness(.89); }
.va-button:disabled { opacity: .6; cursor: wait; }
.va-button--light { border-color: var(--va-border); background: #fff; color: var(--va-deep) !important; }
.va-button--light:hover { background: var(--va-wash); }
.va input, .va select, .va textarea { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #bfcfd5; border-radius: 8px; background: #fff; color: var(--va-deep); font: inherit; font-size: .95rem; }
.va label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 700; }
.va input:focus, .va select:focus, .va textarea:focus { outline: 2px solid var(--va-accent); outline-offset: 1px; }
.va-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; font-size: .9rem; color: var(--va-soft); }
.va-breadcrumb li + li::before { content: '›'; padding-right: 7px; color: #9bb1b6; }
.va-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.va-section-head h1, .va-section-head h2 { margin: 0 0 6px; }
.va-section-head > a { font-weight: 750; white-space: nowrap; }
.va-panel { padding: 24px; border: 1px solid var(--va-border); border-radius: 15px; background: #fff; }
.va-panel h2 { margin-top: 0; }
.va-ad { margin: 10px 0 25px; padding: 10px; border-radius: 12px; background: var(--va-wash); text-align: center; }
.va-ad small { display: block; color: var(--va-soft); margin-bottom: 7px; }

.va-hero { overflow: hidden; border-bottom: 1px solid var(--va-border); background: linear-gradient(120deg,var(--va-hero-start),#fff 66%,var(--va-hero-end)); }
.va-hero__inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(240px,.7fr); column-gap: 48px; align-items: center; padding-block: 54px 46px; }
.va-hero__copy { max-width: 720px; }
.va-emblem { display: block; width: 208px; height: 60px; object-fit: contain; object-position: left center; margin-bottom: 25px; }
.va-hero__copy h1 { margin: 0 0 15px; }
.va-hero__copy > p:not(.va-overline) { font-size: 1.08rem; max-width: 650px; color: var(--va-soft); }
.va-hero__visual { position: relative; align-self: stretch; min-height: 290px; overflow: hidden; border-radius: 18px; box-shadow: 0 20px 42px #163c4023; background: var(--va-wash); }
.va-hero__visual img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.va-hero__visual span { position: absolute; bottom: 12px; left: 12px; right: 12px; padding: 9px 12px; border-radius: 7px; color: white; background: #163138ce; font-size: .88rem; font-weight: 750; }
.va-quick { z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; gap: 13px; align-items: end; margin-top: 33px; padding: 18px; border: 1px solid var(--va-border); border-radius: 14px; background: white; box-shadow: 0 14px 35px #163a4917; }
.va-hero__advanced { grid-column: 1 / -1; padding: 12px 2px 0; font-size: .94rem; font-weight: 750; }

.va-shortcuts, .va-brands { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 12px; }
.va-shortcuts a { position: relative; display: flex; min-height: 101px; flex-direction: column; justify-content: center; gap: 4px; padding: 17px 38px 17px 17px; border: 1px solid var(--va-border); border-radius: 13px; color: var(--va-deep); background: white; text-decoration: none; font-weight: 750; }
.va-shortcuts a:hover, .va-brands a:hover { border-color: var(--va-accent); box-shadow: 0 7px 22px #1c514012; }
.va-shortcuts small { font-size: .8rem; font-weight: 500; color: var(--va-soft); }
.va-shortcuts span { position: absolute; top: 17px; right: 16px; color: var(--va-accent); }
.va-brands { grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); }
.va-brands a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 15px 14px; border: 1px solid var(--va-border); border-radius: 10px; background: var(--va-wash); color: var(--va-deep); text-decoration: none; font-weight: 700; }
.va-brands span { color: inherit; font: inherit; }
.va-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.va-card { min-width: 0; overflow: hidden; border: 1px solid var(--va-border); border-radius: 13px; background: #fff; box-shadow: 0 3px 14px #183c4510; }
.va-card__photo { display: block; aspect-ratio: 4 / 3; background: var(--va-wash); }
.va-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.va-card__body { padding: 14px; }
.va-card__category { margin: 0 0 7px; font-size: .75rem; letter-spacing: .04em; color: var(--va-accent); font-weight: 800; text-transform: uppercase; }
.va-card__title { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 9px; align-items: baseline; }
.va-card__title h3 { margin: 0; }
.va-card__title a { color: var(--va-deep); text-decoration: none; }
.va-card__title strong { white-space: nowrap; color: var(--va-accent); }
.va-card__body > p:not(.va-card__category) { margin: 8px 0; font-size: .88rem; }
.va-card__facts { color: var(--va-soft); }
.va-card__bottom { display: flex; flex-wrap: wrap; gap: 5px 10px; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--va-border); }
.va-card__bottom a { margin-left: auto; font-weight: 750; }
.va-information { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-block: 25px; padding: 25px; border-radius: 13px; background: var(--va-wash); }
.va-information > div { max-width: 840px; }
.va-information h2 { margin-top: 0; }
.va-information p:last-child { margin-bottom: 0; }

.va-listing__layout { display: grid; grid-template-columns: 242px minmax(0,1fr) 232px; gap: 20px; align-items: start; }
.va-filter-box { padding: 17px; border: 1px solid var(--va-border); border-radius: 12px; background: var(--va-wash); }
.va-filters { display: grid; gap: 13px; }
.va-filters h2 { margin: 0; font-size: 1.22rem; }
.va-inline { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.va-reset { text-align: center; font-size: .9rem; }
.va-listing__results { min-width: 0; }
.va-sort { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.va-sort span { font-weight: 750; }
.va-sort form { display: flex; align-items: center; gap: 9px; }
.va-sort form label { white-space: nowrap; }
.va-sort select { width: auto; }
.va-results { display: grid; gap: 14px; }
.va-results .va-card { display: grid; grid-template-columns: 35% minmax(0,1fr); }
.va-results .va-card__photo { height: 100%; min-height: 190px; aspect-ratio: auto; }
.va-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-block: 24px; }
.va-pages a { min-width: 40px; padding: 8px 11px; border: 1px solid var(--va-border); border-radius: 8px; text-align: center; text-decoration: none; }
.va-pages [aria-current="page"] { color: #fff; background: var(--va-deep); }

.va-detail__heading { display: flex; justify-content: space-between; align-items: end; gap: 17px; margin-bottom: 24px; }
.va-detail__heading h1 { margin: 0 0 8px; }
.va-detail__heading strong { color: var(--va-accent); font-size: 2rem; white-space: nowrap; }
.va-detail__layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 23px; align-items: start; }
.va-detail__content { display: grid; gap: 17px; min-width: 0; }
.va-gallery { overflow: hidden; border: 1px solid var(--va-border); border-radius: 14px; background: var(--va-wash); }
.va-gallery > img { display: block; width: 100%; height: 440px; object-fit: contain; }
.va-gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px; background: white; }
.va-gallery__thumb { flex: 0 0 92px; padding: 0; border: 2px solid transparent; border-radius: 7px; background: none; cursor: pointer; }
.va-gallery__thumb.is-active { border-color: var(--va-accent); }
.va-gallery__thumb img { width: 100%; height: 65px; object-fit: cover; }
.va-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 22px; margin: 0; }
.va-facts div { display: flex; justify-content: space-between; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--va-border); }
.va-facts dt { color: var(--va-soft); }
.va-facts dd { margin: 0; text-align: right; font-weight: 720; }
.va-description { white-space: normal; overflow-wrap: anywhere; }
.va-equipment { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 0; padding-left: 19px; }
.va-seller-box { display: grid; gap: 10px; }
.va-seller-box h2, .va-seller-box p { margin: 0; }
.va-contact-line { font-size: .86rem; overflow-wrap: anywhere; }
.va-contact { margin-top: 29px; }
.va-contact-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; max-width: 850px; }
.va-contact-form .va-wide { grid-column: 1 / -1; }
.va-contact-form .va-button { justify-self: start; }
.va-form-status { align-self: center; margin: 0; color: #a52626; }
.va-form-status.is-success { color: #08704c; }
.va-mobile-action { display: none; }

.va-dealer__profile { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; background: var(--va-wash); }
.va-dealer__profile > img { max-width: 160px; object-fit: contain; }
.va-dealer__profile > div:first-of-type { flex: 1; min-width: 230px; }
.va-dealer__profile h2 { margin: 0 0 6px; }
.va-dealer__actions { display: grid; gap: 10px; min-width: 215px; }
.va-dealer__filters { display: flex; gap: 13px; align-items: end; margin-bottom: 22px; }
.va-dealer__filters label { flex: 0 1 270px; }
.va-dealer__listing { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 20px; }

@media (max-width: 1100px) {
  .va-listing__layout { grid-template-columns: 228px minmax(0,1fr); }
  .va-listing__layout > .va-ad-column { grid-column: 2; }
  .va-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .va-hero__inner { grid-template-columns: 1fr; padding-top: 35px; }
  .va-hero__visual { display: none; }
  .va-quick { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 23px; }
  .va-quick .va-button { grid-column: 1 / -1; }
  .va-listing__layout, .va-detail__layout, .va-dealer__listing { grid-template-columns: minmax(0,1fr); }
  .va-listing__layout > .va-ad-column { grid-column: 1; }
  .va-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .va-detail__aside { order: -1; }
  .va-gallery > img { height: 350px; }
}
@media (max-width: 560px) {
  .va-shell { width: min(100% - 28px, 1240px); }
  .va-space { padding-block: 25px; }
  .va-quick { grid-template-columns: 1fr; padding: 14px; }
  .va-section-head { align-items: start; flex-direction: column; }
  .va-grid { grid-template-columns: 1fr; }
  .va-results .va-card { display: block; }
  .va-results .va-card__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .va-sort form { width: 100%; }
  .va-sort form select { flex: 1; }
  .va-detail__heading { display: block; }
  .va-detail__heading strong { display: block; padding-top: 7px; }
  .va-gallery > img { height: 260px; }
  .va-facts, .va-equipment, .va-contact-form { grid-template-columns: 1fr; }
  .va-contact-form .va-wide { grid-column: 1; }
  .va-dealer__filters { flex-direction: column; align-items: stretch; }
  .va-dealer__filters label { flex-basis: auto; }
  .va-mobile-action { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--va-border, #dce5e9); background: #fff; }
  .va-mobile-action .va-button { flex: 1; }
}

.va-switch { border-bottom: 1px solid var(--va-border); background: #fff; }
.va-switch .va-shell { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.va-switch a { display: inline-flex; padding: 12px 1px; border-bottom: 3px solid transparent; color: var(--va-soft); text-decoration: none; font-weight: 750; font-size: .91rem; }
.va-switch a[aria-current="page"] { border-color: var(--va-accent); color: var(--va-deep); }
.va-related__links { display: flex; flex-wrap: wrap; gap: 9px; }
.va-related__links a { padding: 8px 12px; border: 1px solid var(--va-border); border-radius: 30px; background: var(--va-wash); text-decoration: none; font-size: .88rem; }

.va-stage-banner { padding: 8px 16px; background: #263646; color: #fff; text-align: center; font-size: .91rem; }
.va-stage-banner a { color: #fff; font-weight: 700; text-decoration: underline; }
.va-ad--test { border: 1px dashed #9aafb0; min-height: 220px; display: flex; flex-direction: column; justify-content: center; gap: 12px; color: #526d73; }

/* Componenti aggiunti nella v3: stessa tavolozza e stessa tipografia della versione precedente. */
.va [hidden] { display: none !important; }
.va a:focus-visible, .va button:focus-visible, .va summary:focus-visible, .va [tabindex]:focus-visible { outline: 2px solid var(--va-accent); outline-offset: 2px; }
.va img { max-width: 100%; }
.va-brand-heading { display: block; margin: 0 0 13px; object-fit: contain; }
.va-brands img { flex: 0 0 44px; object-fit: contain; }
.va-brands a { justify-content: flex-start; gap: 10px; }
.va-gallery__stage { position: relative; overflow: hidden; }
.va-gallery__stage > img { display: block; width: 100%; height: 440px; object-fit: contain; }
.va-gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 50px; padding: 0; border: 1px solid #ffffffc4; border-radius: 7px; color: #fff; background: var(--va-deep); font: inherit; font-size: 2.375rem; line-height: 1; cursor: pointer; }
.va-gallery__arrow:hover { filter: brightness(.89); }
.va-gallery__arrow--prev { left: 12px; }
.va-gallery__arrow--next { right: 12px; }
.va-gallery__count { position: absolute; right: 14px; bottom: 14px; padding: 5px 11px; border-radius: 7px; color: #fff; background: var(--va-deep); font-size: .88rem; }
.va-gallery__thumbs { position: relative; }
.va-reference { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--va-border); color: var(--va-soft); font-size: .86rem; }
.va-icon { flex: 0 0 20px; vertical-align: middle; }
.va-contact-line { display: flex; align-items: flex-start; gap: 10px; }
.va-contact-line .va-icon { margin-top: 1px; }
.va-contact-line span { min-width: 0; overflow-wrap: anywhere; user-select: text; }
.va-report summary { display: flex; align-items: center; gap: 9px; list-style: none; color: var(--va-accent); font-weight: 750; cursor: pointer; }
.va-report summary::-webkit-details-marker { display: none; }
.va-report[open] summary { margin-bottom: 15px; }
.va-report-form { display: grid; gap: 15px; }
.va-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.va-dealer__profile { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: start; }
.va-dealer__profile > .va-dealer__identity { min-width: 0; }
.va-dealer__identity, .va-dealer__location { min-width: 0; }
.va-dealer__logo { display: block; margin: 0 0 20px; object-fit: contain; object-position: left center; }
.va-dealer__location h3 { margin-top: 0; }
.va-dealer__intro { margin: 13px 0 0; }
.va-map { position: relative; min-height: 360px; overflow: hidden; border: 1px solid var(--va-border); border-radius: 12px; background: var(--va-wash); }
.va-map__canvas { width: 100%; height: 360px; isolation: isolate; z-index: 0; font-family: inherit; }
.va-map__status { margin: 0; padding: 12px 15px; color: var(--va-soft); font-size: .86rem; }
.va-map.has-error { min-height: 110px; }
.va-map .leaflet-popup-content p { margin: 9px 0 0; }
.va-map .leaflet-control-attribution { font-size: 11px; }
@media (max-width: 780px) {
  .va-hero__visual { display: block; margin-top: 20px; }
  .va-gallery__stage > img { height: 350px; }
  .va-dealer__profile { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  .va-gallery__stage > img { height: 260px; }
  .va-gallery__arrow { width: 36px; height: 44px; }
  .va-gallery__arrow--prev { left: 8px; }
  .va-gallery__arrow--next { right: 8px; }
  .va-map { min-height: 300px; }
  .va-map__canvas { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .va * { scroll-behavior: auto !important; transition: none !important; }
}
