@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg-0: #f7f9fc;
  --bg-1: #eef3f8;
  --bg-2: #e2e9f1;
  --bg-3: #d2dce8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(31, 115, 199, 0.05);
  --text-1: #17324d;
  --text-2: #5f7387;
  --text-3: #8f9fb0;
  --white: #ffffff;
  --accent: #1f73c7;
  --accent-h: #3386d8;
  --accent-light: #7caedd;
  --accent-dim: rgba(31, 115, 199, 0.1);
  --accent-glow: rgba(31, 115, 199, 0.18);
  --accent-deep: rgba(31, 115, 199, 0.06);
  --border-a: rgba(31, 115, 199, 0.22);
  --border: rgba(23, 50, 77, 0.1);
  --shadow-lg: 0 26px 70px rgba(81, 110, 141, 0.18);
  --shadow-md: 0 18px 42px rgba(81, 110, 141, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --f-display: 'Lora', Georgia, serif;
  --f-ui: 'Manrope', 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(31, 115, 199, 0.14), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(182, 191, 201, 0.2), transparent 24%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 34%, #f9fbfd);
  color: var(--text-1);
  font-family: var(--f-ui);
  overflow-x: hidden;
}

body.mw-page {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.mw-container {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
}

.mw-section {
  position: relative;
  padding: 110px 0;
}

.mw-section--tight {
  padding: 84px 0;
}

.mw-eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.mw-section-title,
.mw-hero__title,
.mw-page-hero__title,
.mw-detail-hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.mw-section-title em,
.mw-hero__title em,
.mw-page-hero__title em,
.mw-detail-hero__title em {
  font-style: normal;
  color: var(--accent);
}

.mw-section-title {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.mw-section-sub,
.mw-hero__lead,
.mw-page-hero__lead {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 700;
  line-height: 1.8;
  color: var(--text-2);
}

.mw-hero__lead--strong {
  font-weight: 700;
  color: var(--text-1);
}

.mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.mw-btn svg {
  width: 14px;
  height: 14px;
}

.mw-btn:hover {
  transform: translateY(-2px);
}

.mw-btn-blue {
  background: linear-gradient(135deg, var(--accent), var(--accent-h));
  color: var(--white);
  box-shadow: 0 16px 30px var(--accent-glow);
}

.mw-btn-blue:hover {
  box-shadow: 0 22px 40px var(--accent-glow);
}

.mw-btn-ghost {
  border-color: var(--border-a);
  background: var(--accent-dim);
  color: var(--accent);
}

.mw-btn-ghost:hover {
  color: var(--accent);
  background: rgba(31, 115, 199, 0.16);
}

.mw-btn-dark {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-1);
}

.mw-btn-dark:hover {
  border-color: var(--border-a);
  background: rgba(31, 115, 199, 0.08);
}

.mw-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, backdrop-filter 0.25s ease;
}

.mw-nav.is-scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(80, 106, 134, 0.16);
}

.mw-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mw-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.mw-nav__brand img {
  width: 180px;
  height: auto;
}

.mw-nav__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mw-nav__title {
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.mw-nav__subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
}

.mw-nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-1);
}

.mw-nav__toggle span,
.mw-nav__toggle span::before,
.mw-nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  position: relative;
  background: currentColor;
  border-radius: 999px;
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mw-nav__toggle span::before,
.mw-nav__toggle span::after {
  content: '';
  position: relative;
}

.mw-nav__toggle span::before {
  top: -6px;
}

.mw-nav__toggle span::after {
  top: 4px;
}

.mw-nav__menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mw-nav__menu a {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: calc(0.92rem + 2px);
  font-weight: 700;
}

.mw-nav__menu a:hover,
.mw-nav__menu a.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.mw-hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 84px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(110deg, rgba(247, 249, 252, 0.72), rgba(247, 249, 252, 0.54)),
    linear-gradient(180deg, rgba(31, 115, 199, 0.105), transparent 42%),
    linear-gradient(
      to right,
      rgba(247, 249, 252, 0.9),
      transparent 75px,
      transparent calc(100% - 75px),
      rgba(247, 249, 252, 0.9)
    ) center/66.667% 100% no-repeat,
    linear-gradient(
      to bottom,
      rgba(247, 249, 252, 0.9),
      transparent 75px,
      transparent calc(100% - 75px),
      rgba(247, 249, 252, 0.9)
    ) center/66.667% 100% no-repeat,
    url('../images/hero/hero.webp') center/66.667% auto no-repeat;
}

.mw-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg-1));
}

.mw-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.mw-hero__content {
  max-width: 860px;
}

.mw-hero__eyebrow {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  letter-spacing: 0.16em;
  line-height: 1.15;
}

.mw-hero__title {
  font-size: clamp(3.07rem, 6.67vw, 5.73rem);
}

.mw-hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: mw-rise 0.85s ease forwards;
}

.mw-hero__title-line:nth-child(2) {
  animation-delay: 0.12s;
}

.mw-hero__title-line:nth-child(3) {
  animation-delay: 0.24s;
}

.mw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.mw-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-self: stretch;
  width: 100%;
}

.mw-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.mw-stat__value {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.92;
  white-space: nowrap;
}

.mw-stat__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1.6;
}

.mw-surface {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.mw-azienda__grid,
.mw-contatti__grid,
.mw-detail__layout {
  display: grid;
  gap: 28px;
}

.mw-azienda__grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
}

.mw-azienda__highlight {
  padding: 36px;
}

.mw-azienda__highlight-num {
  font-family: var(--f-display);
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.85;
  color: var(--accent);
}

.mw-azienda__highlight-copy {
  margin: 16px 0 0;
  max-width: 360px;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1.8;
}

.mw-azienda__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.mw-azienda__stat {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.mw-azienda__stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.4rem;
  color: var(--text-1);
}

.mw-azienda__content {
  padding: 36px;
}

.mw-brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mw-brand-list span {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-1);
}

.mw-cars-header,
.mw-page-hero__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 38px;
}

.mw-cars-grid,
.mw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.mw-car-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 245, 250, 0.98));
  box-shadow: var(--shadow-md);
  min-height: 100%;
}

.mw-car-card--hidden {
  display: none !important;
}

.mw-car-card__carousel {
  position: relative;
  aspect-ratio: 1.18 / 1;
  background: rgba(31, 115, 199, 0.04);
  overflow: hidden;
}

.mw-car-card__carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.mw-car-card__carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

.mw-car-card__carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mw-car-card__carousel-slide--empty {
  display: grid;
  place-items: center;
  color: var(--text-2);
}

.mw-car-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-a);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mw-car-card__arrow {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-1);
  transform: translateY(-50%);
  z-index: 2;
}

.mw-car-card__arrow svg {
  width: 16px;
  height: 16px;
}

.mw-car-card__arrow--prev {
  left: 16px;
}

.mw-car-card__arrow--next {
  right: 16px;
}

.mw-car-card__dots {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.mw-car-card__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.mw-car-card__dot--active {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(70, 138, 206, 0.14);
}

.mw-car-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.mw-car-card__brand {
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mw-car-card__name {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 0.94;
}

.mw-car-card__version {
  min-height: 2.9em;
  color: var(--text-2);
  line-height: 1.6;
}

.mw-car-card__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mw-car-card__spec {
  padding: 16px 14px;
  border-radius: var(--radius-sm);
  background: rgba(31, 115, 199, 0.04);
  border: 1px solid rgba(23, 50, 77, 0.06);
}

.mw-car-card__spec-val {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-1);
}

.mw-car-card__spec-lbl {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mw-car-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.mw-car-card__price-lbl {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mw-car-card__price {
  margin-top: 6px;
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 0.94;
}

.mw-car-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--border-a);
  color: var(--accent);
  white-space: nowrap;
}

.mw-car-card__cta svg {
  width: 13px;
  height: 13px;
}

.mw-video {
  overflow: hidden;
}

.mw-video__head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.mw-video__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.mw-video__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mw-video__pills span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-2);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mw-video-outer {
  position: relative;
  padding: 28px 0;
  overflow: hidden;
}

.mw-video-outer::before,
.mw-video-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
}

.mw-video-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-1), transparent);
}

.mw-video-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-1), transparent);
}

.mw-video-outer .swiper {
  overflow: hidden;
}

.mw-video-outer .swiper-slide {
  width: auto;
}

.mw-video-card {
  position: relative;
  width: clamp(300px, calc(33.33vw - 20px), 396px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 18%, rgba(31, 115, 199, 0.16), transparent 30%),
    rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-md);
}

.mw-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.mw-video-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(180deg, transparent, rgba(15, 38, 61, 0.72));
  pointer-events: none;
}

.mw-video-card__overlay {
  position: absolute;
  inset: auto 20px 18px 20px;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.mw-video-card__eyebrow,
.mw-video-card__hint {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mw-video-card__hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent);
}

.mw-contatti__grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.mw-contact-panel,
.mw-contact-form-wrap {
  padding: 34px;
}

.mw-contact-panel {
  position: sticky;
  top: 98px;
}

.mw-contact-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.mw-contact-socials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mw-contact-social {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.mw-contact-social__icon {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(31, 115, 199, 0.08);
  color: var(--accent);
}

.mw-contact-social__icon--image {
  padding: 6px;
  background: rgba(255, 255, 255, 0.96);
}

.mw-contact-social__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.mw-contact-social:hover {
  transform: translateY(-2px);
  border-color: var(--border-a);
  background: rgba(31, 115, 199, 0.1);
}

.mw-contact-social--accent {
  background: linear-gradient(135deg, rgba(31, 115, 199, 0.14), rgba(255, 255, 255, 0.76));
}

.mw-contact-socials .mw-contact-social:last-child {
  grid-column: 1 / -1;
}

.mw-contact-social__name {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  align-self: end;
}

.mw-contact-social strong {
  color: var(--text-1);
  align-self: start;
}

.mw-contact-item {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.mw-contact-item span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mw-contact-item strong {
  font-size: 1rem;
  color: var(--text-1);
}

.mw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mw-form-field {
  display: grid;
  gap: 10px;
}

.mw-form-field--full {
  grid-column: 1 / -1;
}

.mw-form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.mw-input,
.mw-select,
.mw-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-1);
  padding: 16px 18px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mw-input:focus,
.mw-select:focus,
.mw-textarea:focus {
  border-color: var(--border-a);
  box-shadow: 0 0 0 4px rgba(31, 115, 199, 0.14);
  background: rgba(255, 255, 255, 0.94);
}

.mw-select option {
  color: #111;
}

.mw-textarea {
  min-height: 160px;
  resize: vertical;
}

.mw-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.mw-form-status {
  min-height: 24px;
  color: var(--text-2);
}

.mw-form-status.is-error {
  color: #ff8d8d;
}

.mw-form-status.is-success {
  color: #9de3b2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mw-footer {
  padding: 40px 0 50px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.mw-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.mw-footer__col h3 {
  margin: 0 0 14px;
  font-size: 0.84rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mw-footer__brand img {
  width: 144px;
  margin-bottom: 16px;
}

.mw-footer__brand p,
.mw-footer__col a,
.mw-footer__col p {
  color: var(--text-2);
  line-height: 1.8;
}

.mw-footer__links {
  display: grid;
  gap: 10px;
}

.mw-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.92rem;
}

.mw-footer__socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mw-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(70, 138, 206, 0.1);
  color: var(--accent-light);
  transition: all 0.25s ease;
}

.mw-footer__socials a:hover {
  background: rgba(70, 138, 206, 0.25);
  transform: translateY(-2px);
}

.mw-footer__socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}

.mw-page-shell {
  padding-top: 110px;
}

.mw-page-hero,
.mw-detail-hero {
  padding: 0 0 48px;
}

.mw-page-hero__panel,
.mw-detail-hero__panel {
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(31, 115, 199, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
}

.mw-page-hero__title,
.mw-detail-hero__title {
  font-size: clamp(3.5rem, 7vw, 6rem);
}

.mw-filter-wrap {
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
}

.mw-filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(210px, 0.55fr) auto;
  gap: 16px;
  align-items: center;
}

.mw-filter-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--text-2);
}

.mw-filter-groups {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.mw-filter-group-label {
  margin-bottom: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mw-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mw-filter-pill {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-2);
}

.mw-filter-pill.active,
.mw-filter-pill:hover {
  border-color: var(--border-a);
  background: var(--accent-dim);
  color: var(--accent);
}

.mw-gallery-empty {
  display: none;
  margin-top: 24px;
  padding: 34px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-a);
  color: var(--text-2);
}

.mw-gallery-empty.is-visible {
  display: block;
}

.mw-detail__layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: start;
}

.mw-detail-gallery,
.mw-detail-summary,
.mw-detail-block {
  padding: 30px;
}

.mw-detail-gallery__main {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 1.18 / 1;
  background: rgba(31, 115, 199, 0.04);
}

.mw-detail-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mw-detail-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mw-detail-thumb {
  padding: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}

.mw-detail-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.mw-detail-thumb.is-active {
  border-color: var(--border-a);
  box-shadow: 0 0 0 4px rgba(70, 138, 206, 0.14);
}

.mw-detail-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-1);
}

.mw-detail-gallery__nav--prev {
  left: 18px;
}

.mw-detail-gallery__nav--next {
  right: 18px;
}

.mw-detail-summary {
  position: sticky;
  top: 96px;
}

.mw-detail-summary__price {
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.92;
}

.mw-detail-summary__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.mw-detail-summary__meta > div {
  padding: 16px;
  border-radius: 16px;
  background: rgba(31, 115, 199, 0.04);
  border: 1px solid var(--border);
}

.mw-detail-summary__meta span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.mw-detail-summary__actions {
  display: grid;
  gap: 12px;
}

.mw-detail-blocks {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.mw-detail-block h2 {
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-size: 2.3rem;
}

.mw-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mw-spec-item {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
}

.mw-spec-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-3);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mw-spec-item strong {
  color: var(--text-1);
  line-height: 1.6;
}

.mw-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mw-feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  line-height: 1.7;
}

.mw-feature-list li::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.mw-optionals {
  display: grid;
  gap: 24px;
}

.mw-optionals__group-title {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.mw-optionals__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mw-optionals__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px 4px 10px;
  border: 1px solid var(--border-a);
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

.mw-optionals__tag::before {
  content: '✓';
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}

.mw-modal {
  position: fixed;
  inset: 0;
  display: none;
  padding: 24px;
  background: rgba(17, 40, 63, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 80;
}

.mw-modal.is-open {
  display: grid;
  place-items: center;
}

.mw-modal__dialog {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
}

.mw-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.mw-modal__close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-1);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--mw-reveal-delay, 0) * 120ms);
}

[data-reveal][data-reveal-d="1"] { --mw-reveal-delay: 1; }
[data-reveal][data-reveal-d="2"] { --mw-reveal-delay: 2; }
[data-reveal][data-reveal-d="3"] { --mw-reveal-delay: 3; }

.mw-revealed {
  opacity: 1 !important;
  transform: none !important;
}

@keyframes mw-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .mw-hero__layout,
  .mw-azienda__grid,
  .mw-contatti__grid,
  .mw-detail__layout,
  .mw-footer__grid {
    grid-template-columns: 1fr;
  }

  .mw-contact-panel,
  .mw-detail-summary {
    position: static;
  }

  .mw-filter-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .mw-nav__toggle {
    display: inline-grid;
    place-items: center;
  }

  .mw-nav__menu {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .mw-nav__menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mw-nav__menu a {
    width: 100%;
  }

  .mw-hero {
    min-height: 100vh;
  }

  .mw-cars-header,
  .mw-video__head,
  .mw-page-hero__head,
  .mw-form-actions,
  .mw-footer__bottom,
  .mw-filter-meta {
    align-items: start;
    flex-direction: column;
  }

  .mw-video__cta-group {
    justify-content: flex-start;
  }

  .mw-form-grid,
  .mw-car-card__specs,
  .mw-detail-summary__meta,
  .mw-spec-grid,
  .mw-feature-list,
  .mw-contact-socials {
    grid-template-columns: 1fr;
  }

  .mw-hero__stats {
    grid-template-columns: 1fr;
  }

  .mw-stat {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .mw-section {
    padding: 84px 0;
  }

  .mw-hero {
    padding-top: 128px;
  }

  .mw-container {
    width: min(1240px, calc(100vw - 20px));
  }

  .mw-hero__title,
  .mw-page-hero__title,
  .mw-detail-hero__title {
    font-size: clamp(2.13rem, 8.67vw, 3.2rem);
  }

  .mw-contact-panel,
  .mw-contact-form-wrap,
  .mw-detail-gallery,
  .mw-detail-summary,
  .mw-detail-block,
  .mw-page-hero__panel,
  .mw-detail-hero__panel,
  .mw-filter-wrap,
  .mw-azienda__highlight,
  .mw-azienda__content {
    padding: 22px;
  }

  .mw-video-card {
    width: min(84vw, 340px);
  }
}
