/* ============================================================
  DEM. AUTO Srl - Stile automotive premium
  Restyling completo: palette racing, tipografia Google Fonts,
  mobile-first responsive 320-1440px+, hamburger, scroll reveal.
  ============================================================ */

:root {
  /* PALETTE */
  --color-bg:    #ffffff;
  --color-bg-dark:  #0a0a0a;
  --color-bg-darker: #050505;
  --color-red:    #d62828;
  --color-red-dark: #a51d1d;
  --color-orange:  #f77f00;
  --color-text:   #1d1d1d;
  --color-text-muted:#6c757d;
  --color-border:  #e5e5e5;
  --color-success:  #06a77d;
  --color-warning:  #fcbf49;

  /* TIPOGRAFIA */
  --font-display: 'Bebas Neue', 'Anton', Impact, sans-serif;
  --font-heading: 'Oswald', 'Archivo Black', sans-serif;
  --font-body:  'Inter', 'DM Sans', -apple-system, "Segoe UI", sans-serif;
  --font-num:   'Archivo Black', 'Oswald', sans-serif;

  /* RADIUS */
  --radius:  12px;
  --radius-sm: 8px;
  --radius-lg: 18px;

  /* OMBRE */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
  --shadow-red: 0 12px 32px rgba(214,40,40,0.25);

  /* MOTION */
  --duration: 0.3s;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* CONTAINER */
  --container: 1240px;
  --container-narrow: 900px;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--color-red); }

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: 0.01ms!important;
    scroll-behavior: auto!important;
  }
}

/* ===== TOP BANNER (urgency) ===== */
.top-banner {
  background: var(--color-red);
  color: white;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.top-banner span { margin: 0 0.4rem; display: inline-block; }
.top-banner strong { font-weight: 800; letter-spacing: 0.6px; }
@media (max-width: 600px) {.top-banner { font-size: 0.78rem; padding: 0.55rem 0.6rem; } }

/* ===== INFO BAR (orari + tel + mail) ===== */
.info-bar {
  background: #f5f5f5;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
.info-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.info-bar a { color: var(--color-text); text-decoration: none; font-weight: 600; }
.info-bar a:hover { color: var(--color-red); }
.info-bar svg {
  width: 14px; height: 14px;
  stroke: var(--color-red); fill: none; stroke-width: 2.2;
  vertical-align: -2px; margin-right: 0.25rem;
}
@media (max-width: 600px) {
  .info-bar-inner { justify-content: center; font-size: 0.74rem; gap: 0.4rem; }
}

/* ===== HEADER + NAV ===== */
.site-header {
  background: white;
  border-bottom: 4px solid var(--color-red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 56px; display: block; }
@media (max-width: 768px) {
  .logo img { height: 42px; }
  .header-inner { padding: 0.6rem 1rem; }
}

nav { display: flex; }
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
}
nav a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
nav a:hover, nav a.active { color: var(--color-red); border-bottom-color: var(--color-red); }

.header-cta {
  background: var(--color-red);
  color: white!important;
  padding: 0.6rem 1.2rem!important;
  border-radius: var(--radius-sm);
  border-bottom: none!important;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.header-cta:hover { background: var(--color-red-dark); transform: translateY(-2px); border-bottom-color: transparent!important; }

/* HAMBURGER (mobile) */
.hamburger-btn {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 0;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  z-index: 110;
}
.hamburger-btn span {
  width: 26px; height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease), background var(--duration) var(--ease);
}
body.menu-open { overflow: hidden; }
body.menu-open.hamburger-btn span { background: white; }
body.menu-open.hamburger-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open.hamburger-btn span:nth-child(2) { opacity: 0; }
body.menu-open.hamburger-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 98;
}
body.menu-open.menu-overlay { display: block; }

@media (max-width: 900px) {
  .hamburger-btn { display: flex; }
  nav {
    position: fixed;
    top: 0; right: -100%;
    width: 85%; max-width: 360px;
    height: 100vh;
    background: var(--color-bg-dark);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right var(--duration) var(--ease);
    z-index: 99;
    overflow-y: auto;
  }
  body.menu-open nav { right: 0; box-shadow: -10px 0 40px rgba(0,0,0,0.4); }
  nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  nav a {
    color: white;
    font-size: 1.08rem;
    padding: 1rem 0;
    border-bottom: 1px solid #222;
    display: block;
    min-height: 44px;
  }
  nav a:hover, nav a.active { color: var(--color-orange); border-bottom-color: #222; }
  .header-cta {
    margin-top: 1.2rem;
    text-align: center;
    background: var(--color-red);
    border-radius: var(--radius-sm);
  }
  .header-cta:hover { background: var(--color-red-dark); }
}

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(214,40,40,0.20), transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(247,127,0,0.12), transparent 55%),
    linear-gradient(135deg, #0a0a0a 0%, #1d1d1d 50%, #0a0a0a 100%);
  color: white;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: var(--container-narrow); margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  background: rgba(214,40,40,0.18);
  border: 2px solid var(--color-red);
  color: white;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 6.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero h1.accent { color: var(--color-red); }
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: #d8d8d8;
  margin: 0 auto 2.5rem;
  max-width: 700px;
}
.hero-buttons {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
@media (max-width: 600px) {
  .hero { padding: 4rem 1rem 3.5rem; }
  .hero h1 { letter-spacing: 0.5px; }
  .hero-buttons.btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ===== PAGE HEADER (interne) ===== */
.page-header {
  background:
    radial-gradient(circle at 80% 50%, rgba(214,40,40,0.18), transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #1d1d1d 100%);
  color: white;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-header p { color: #ccc; max-width: 700px; margin: 0 auto; font-size: 1rem; }
@media (max-width: 600px) {.page-header { padding: 3rem 1rem 2.5rem; } }

/* ===== SECTIONS ===== */
section { padding: 5rem 1rem; }
@media (max-width: 768px) { section { padding: 3rem 1rem; } }
section.alt { background: #f8f8f8; }
.container { max-width: var(--container); margin: 0 auto; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--color-text);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
  display: inline-block;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 60px; height: 4px;
  background: var(--color-red);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
.section-title p { color: var(--color-text-muted); max-width: 700px; margin: 1rem auto 0; font-size: 1.05rem; }

/* ===== TRUST BAR ===== */
.trust-bar { background: white; padding: 2.4rem 1rem; border-bottom: 1px solid var(--color-border); }
.trust-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 600px) {.trust-bar-inner { grid-template-columns: repeat(4, 1fr); } }
.trust-item { text-align: center; }
.trust-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.7rem;
  transition: transform var(--duration) var(--ease);
}
.trust-icon svg { width: 28px; height: 28px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-item:hover.trust-icon { transform: scale(1.08) rotate(-5deg); }
.trust-item strong {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-size: 1rem; display: block;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.trust-item span { color: var(--color-text-muted); font-size: 0.85rem; }

/* ===== BAR ===== */
.warranty-bar {
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: white;
  padding: 1.5rem 1rem;
  border-bottom: 4px solid var(--color-bg-dark);
}
.warranty-bar-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem; flex-wrap: wrap; text-align: center;
}
.warranty-bar svg { width: 38px; height: 38px; stroke: white; fill: none; stroke-width: 2; flex-shrink: 0; }
.warranty-bar h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 0; letter-spacing: 1.5px;
  text-transform: uppercase; line-height: 1;
}
.warranty-bar p { margin: 0; opacity: 0.95; font-size: 0.95rem; }
.warranty-text { text-align: left; }
@media (max-width: 600px) {.warranty-text { text-align: center; } }

/* ===== STATS ===== */
.stats {
  background:
    radial-gradient(circle at 50% 50%, rgba(247,127,0,0.08), transparent 60%),
    var(--color-bg-dark);
  color: white;
  padding: 5rem 1rem;
}
.stats.section-title h2 { color: white; }
.stats.section-title h2::after { background: var(--color-orange); }
.stats.section-title p { color: #aaa; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 768px) {.stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--font-num);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}
.stat-label { font-size: 0.88rem; color: #ccc; }

.stats-grid-8 { /* override per espandere a 8 stat */
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {.stats-grid-8 { grid-template-columns: repeat(4, 1fr); } }

.stat-item { text-align: center; padding: 0.5rem 0.3rem; }
.stat-icon {
  width: 56px; height: 56px;
  margin: 0 auto 0.8rem;
  background: rgba(247,127,0,0.15);
  border: 2px solid rgba(247,127,0,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--duration) var(--ease);
}
.stat-icon svg { width: 26px; height: 26px; stroke: var(--color-orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-item:hover.stat-icon { transform: scale(1.08) rotate(-5deg); }

.stat-item.stat-num.pulse { animation: statPulse 0.5s var(--ease); }
@keyframes statPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ===== HERO CON IMMAGINE DI SFONDO ===== */
.hero[style*="--hero-bg"] {
  background:
    radial-gradient(circle at 80% 20%, rgba(214,40,40,0.32), transparent 60%),
    linear-gradient(135deg, rgba(10,10,10,0.85), rgba(29,29,29,0.7) 50%, rgba(10,10,10,0.92)),
    var(--hero-bg) center/cover no-repeat;
}

/* ===== CARD CON IMMAGINE (replace icon) ===== */
.card.card-with-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card.card-with-image.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}
.card.card-with-image.card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card.card-with-image.card-body h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: 0.7rem;
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card.card-with-image.card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== BLOG COVER IMAGE (sopra H1 articolo) ===== */
.blog-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 0 1.5rem;
  box-shadow: var(--shadow-md);
  display: block;
}

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) {.cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

.card {
  background: white;
  border-radius: var(--radius);
  padding: 2.4rem 1.8rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-red);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-red); }
.card-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  transition: transform var(--duration) var(--ease);
}
.card-icon svg { width: 30px; height: 30px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover.card-icon { transform: scale(1.08) rotate(-3deg); }
.card h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin-bottom: 0.7rem;
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease), color var(--duration) var(--ease);
  line-height: 1;
  min-height: 44px;
  text-align: center;
}
.btn::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 1.2rem;
  transition: transform var(--duration) var(--ease);
  line-height: 1;
}
.btn:hover::after { transform: translateX(4px); }
.btn-primary {
  background: var(--color-red);
  color: white;
  box-shadow: 0 6px 18px rgba(214,40,40,0.3);
}
.btn-primary:hover {
  background: var(--color-red-dark);
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(214,40,40,0.5);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-outline:hover { background: white; color: var(--color-text); transform: scale(1.02); }
.btn-whatsapp {
  background: #25d366;
  color: white;
  box-shadow: 0 6px 18px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: #1ea854; transform: scale(1.02); box-shadow: 0 10px 28px rgba(37,211,102,0.5); }

/* ===== SHIPPING MEGA ===== */
.shipping-mega {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  padding: 2.5rem 1rem;
  text-align: center;
}
.shipping-mega-inner { max-width: var(--container-narrow); margin: 0 auto; }
.shipping-mega h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
}
.shipping-mega p { margin: 0; opacity: 0.95; font-size: 1rem; }

/* ===== COURIERS ===== */
.couriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.courier-badge {
  background: white;
  padding: 1.5rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  text-align: center;
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.courier-badge:hover { border-color: var(--color-red); transform: translateY(-3px); }
.courier-badge svg { width: 100%; max-width: 120px; height: 50px; margin-bottom: 0.5rem; display: block; margin-left: auto; margin-right: auto; }
.courier-badge p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 1.5rem;
  counter-reset: pstep;
  padding-top: 1.4rem;
}
@media (min-width: 600px) {.process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {.process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  background: white;
  padding: 2.5rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  counter-increment: pstep;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.process-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.process-step::before {
  content: counter(pstep);
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num);
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(214,40,40,0.4);
}
.process-step svg { width: 44px; height: 44px; margin: 0.6rem 0; stroke: var(--color-red); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; }
.process-step h3 {
  font-family: var(--font-heading);
  margin: 0.3rem 0;
  color: var(--color-text);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.process-step p { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; }

/* ===== REVIEWS ===== */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) {.reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {.reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: white;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-orange);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-stars { color: var(--color-warning); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 0.6rem; }
.review-text { color: var(--color-text); font-style: italic; margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.55; }
.review-author { display: flex; align-items: center; gap: 0.7rem; }
.review-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; color: var(--color-text); font-size: 0.95rem; line-height: 1.2; }
.review-role { color: var(--color-text-muted); font-size: 0.82rem; }

/* ===== LOGO BOX + RESO + CONSULENZA ===== */
.warranty-box {
  background: white;
  border: 3px solid var(--color-red);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: center;
}
.warranty-box.placeholder-mark {
  background: var(--color-red);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-num);
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.warranty-box.placeholder-text strong { display: block; font-family: var(--font-heading); font-size: 1rem; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.4px; }
.warranty-box.placeholder-text span { color: var(--color-text-muted); font-size: 0.85rem; }

.reso-box {
  background: linear-gradient(135deg, var(--color-bg-dark), #1d1d1d);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 1.2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.reso-box svg { width: 48px; height: 48px; flex-shrink: 0; stroke: var(--color-success); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reso-box h3 { font-family: var(--font-heading); margin: 0 0 0.3rem; font-size: 1.1rem; color: white; text-transform: uppercase; letter-spacing: 0.4px; }
.reso-box p { margin: 0; color: #ccc; font-size: 0.92rem; }

.consulenza-box {
  background: #fff5f5;
  border: 2px dashed var(--color-red);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex; align-items: center; gap: 1.2rem;
  flex-wrap: wrap;
}
.consulenza-box svg { width: 48px; height: 48px; flex-shrink: 0; stroke: var(--color-red); fill: none; stroke-width: 2; }
.consulenza-box strong { font-family: var(--font-heading); color: var(--color-red); font-size: 1.05rem; display: block; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.4px; }

/* ===== VIDEO SECTION (in fondo alle pagine, sobrio) ===== */
.video-section { background: #f8f8f8; padding: 3rem 1rem; }
.video-section.dark { background: var(--color-bg-dark); color: white; }
.video-section.dark .section-title h2 { color: white; }
.video-section.dark .section-title h2::after { background: var(--color-orange); }
.video-section.dark .section-title p,
.video-section.dark .video-caption { color: #bbb; }
.video-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 1.5rem auto 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    background: #000;
    aspect-ratio: 16 / 9;
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}
.video-caption {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0.7rem auto 0;
    max-width: 600px;
    font-style: italic;
}

/* ===== CATALOGO MOTORI (motori-usati.html) ===== */
.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}
@media (min-width: 600px) { .catalog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }

.catalog-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--color-red);
}
.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(214,40,40,0.18);
}
.catalog-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}
.catalog-card:hover .catalog-card-img img { transform: scale(1.05); }
.catalog-card-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.catalog-card-brand {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.catalog-card-code {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--color-text);
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}
.catalog-card-displacement {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-red);
    font-weight: 700;
    text-transform: uppercase;
}
.catalog-card-desc {
    color: var(--color-text);
    font-size: 0.92rem;
    margin: 0.3rem 0 0;
}
.catalog-card-vehicles {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    flex: 1;
    margin: 0;
}
.catalog-card-btn {
    margin-top: 1rem;
    background: #25d366;
    color: white;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
    min-height: 44px;
}
.catalog-card-btn:hover { background: #1ea854; transform: scale(1.02); }

.catalog-cta {
    margin-top: 2.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-orange);
}
.catalog-cta p {
    color: var(--color-text);
    margin: 0 0 1rem;
    font-size: 1rem;
}
.catalog-cta strong { color: var(--color-red); }

/* ===== HERO TRUST BADGES ===== */
.hero-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin: 1.5rem auto 2rem;
    max-width: 580px;
}
@media (min-width: 768px) {
    .hero-trust-badges {
        grid-template-columns: repeat(4, 1fr);
        max-width: 820px;
        gap: 0.7rem;
    }
}
.hero-badge-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.55rem 0.7rem;
    border-radius: 30px;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    line-height: 1.2;
    backdrop-filter: blur(2px);
}
.hero-badge-item .emoji { font-size: 1.05rem; }
@media (max-width: 480px) {
    .hero-badge-item { font-size: 0.72rem; padding: 0.5rem 0.5rem; }
}

/* ===== BRANDS — vecchi chip (compatibilita') ===== */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1rem 0; }
.brand-chip {
  background: white;
  border: 2px solid var(--color-border);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.brand-chip:hover { background: var(--color-red); color: white; border-color: var(--color-red); transform: translateY(-2px); }

/* ===== BRANDS — griglia loghi nuova (home) ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 600px) {.brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) {.brands-grid { grid-template-columns: repeat(6, 1fr); } }

.brand-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 0.4rem 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  font-family: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-height: 110px;
  justify-content: center;
}
.brand-card:hover.brand-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--color-red);
  box-shadow: 0 10px 24px rgba(214,40,40,0.18);
  outline: none;
}
.brand-logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}
.brand-logo svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--color-text);
  line-height: 1.2;
}

.brands-disclaimer {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  margin: 1.6rem auto 0;
  max-width: 700px;
  font-style: italic;
  opacity: 0.75;
}

/* ===== CONTENT (pagine interne testuali) ===== */
.content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {.content { padding: 2rem 1.2rem; } }
.content h2 {
  font-family: var(--font-heading);
  color: var(--color-text);
  margin: 2rem 0 1rem;
  border-left: 4px solid var(--color-red);
  padding-left: 1rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-family: var(--font-heading); color: var(--color-text); margin: 1.5rem 0 0.6rem; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.4px; }
.content p { margin-bottom: 1rem; color: #333; }
.content ul.content ol { margin: 1rem 0 1.5rem 1.5rem; }
.content li { margin-bottom: 0.5rem; color: #333; }
.content strong { color: var(--color-text); }
.content a { color: var(--color-red); }
.content table { width: 100%; }

.highlight-box {
  background: linear-gradient(135deg, #fff5f5, #ffeaea);
  border-left: 4px solid var(--color-red);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.highlight-box h4 { font-family: var(--font-heading); color: var(--color-red); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.4px; }

/* steps numbered list */
.steps {
  counter-reset: step;
  list-style: none;
  margin-left: 0!important;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.2rem 1rem 1.2rem 4.5rem;
  margin-bottom: 1rem!important;
  background: #f8f8f8;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-red);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-red);
  color: white;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num);
  font-size: 1.1rem;
}
.steps strong { display: block; color: var(--color-text); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.3px; }

/* ===== FAQ ===== */
.faq-item {
  background: white;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-red);
  font-weight: bold;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1.5rem 1.2rem; color: var(--color-text-muted); }
.faq-answer p { margin-bottom: 0.7rem; }
.faq-answer a { color: var(--color-red); }

/* ===== CONTATTI ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1rem; }
@media (min-width: 768px) {.contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info {
  background: var(--color-bg-dark);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
}
.contact-info h3 { font-family: var(--font-heading); color: white; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.4px; }
.contact-info p { margin-bottom: 0.8rem; color: #ddd; }
.contact-info a { color: white; text-decoration: none; font-weight: 700; }
.contact-info a:hover { color: var(--color-red); }

.contact-form { background: white; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-form label { display: block; font-weight: 600; margin: 0.8rem 0 0.3rem; color: var(--color-text); font-size: 0.92rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--duration) var(--ease);
  min-height: 44px;
}
.contact-form input:focus.contact-form textarea:focus.contact-form select:focus { outline: none; border-color: var(--color-red); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { margin-top: 1rem; width: 100%; }

.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
@media (max-width: 600px) {.map-wrap iframe { height: 300px; } }

/* ===== FOOTER ===== */
.site-footer { background: var(--color-bg-dark); color: #ccc; padding: 3.5rem 1rem 1.5rem; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 600px) {.footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {.footer-inner { grid-template-columns: repeat(4, 1fr); } }

.footer-col h4 {
  font-family: var(--font-heading);
  color: white;
  margin-bottom: 1rem;
  font-size: 1rem;
  border-bottom: 2px solid var(--color-red);
  padding-bottom: 0.4rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col p.footer-col li { color: #aaa; font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-col ul { list-style: none; }
.footer-col a { color: #ccc; text-decoration: none; }
.footer-col a:hover { color: var(--color-red); }

.footer-bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #222;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}
.footer-bottom a { color: #aaa; text-decoration: none; margin: 0 0.3rem; }
.footer-bottom a:hover { color: var(--color-red); }

.footer-condensed {
  background: var(--color-bg-darker);
  color: #999;
  text-align: center;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  border-top: 1px solid #1a1a1a;
  letter-spacing: 0.3px;
}
.footer-condensed strong { color: white; }
.footer-condensed span { margin: 0 0.3rem; color: var(--color-red); font-weight: 700; }

/* ===== WHATSAPP FLOAT (riscritto) ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-decoration: none;
  cursor: pointer;
  animation: waPulse 2.5s ease-in-out infinite, waGlow 2.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.15);
  animation-play-state: paused;
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
@keyframes waGlow {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 22px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0); }
}
/* Reduced motion: niente animazione */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; box-shadow: 0 6px 22px rgba(37,211,102,0.45); }
}

/* ===== MOBILE STICKY BAR ===== */
.mobile-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 95;
  display: none;
  background: white;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 16px rgba(0,0,0,0.18);
}
.mobile-bar a {
  flex: 1;
  padding: 0.85rem;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  letter-spacing: 0.5px;
}
.mobile-bar a svg { width: 22px; height: 22px; }
.mobile-bar.mobile-call { background: var(--color-bg-dark); color: white; }
.mobile-bar.mobile-wa { background: #25d366; color: white; }

@media (max-width: 768px) {
  .mobile-bar { display: flex; }
  .whatsapp-float { display: none; }
  body { padding-bottom: 60px; }
  .cookie-banner { bottom: 56px; }
}

/* ===== COOKIE BANNER (Consent Mode v2) ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  background: var(--color-bg-dark);
  color: white;
  border-radius: 12px;
  padding: 1.4rem;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: cookieBannerIn 0.4s var(--ease);
}
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: white;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.cookie-banner-text p { font-size: 0.88rem; color: #ccc; margin: 0; line-height: 1.55; }
.cookie-banner-text a { color: var(--color-orange); text-decoration: underline; }
.cookie-banner-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}
@media (min-width: 480px) { .cookie-banner-buttons { grid-template-columns: 1fr 1fr 1.2fr; } }
.cookie-btn {
  min-height: 44px;
  border: none;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.cookie-btn-reject { background: transparent; color: white; border: 1.5px solid #555; }
.cookie-btn-reject:hover { background: rgba(255,255,255,0.05); border-color: #888; }
.cookie-btn-customize { background: rgba(255,255,255,0.08); color: white; border: 1.5px solid transparent; }
.cookie-btn-customize:hover { background: rgba(255,255,255,0.15); }
.cookie-btn-accept { background: var(--color-red); color: white; grid-column: 1 / -1; }
@media (min-width: 480px) { .cookie-btn-accept { grid-column: auto; } }
.cookie-btn-accept:hover { background: var(--color-red-dark); transform: scale(1.02); }
.cookie-customize-panel {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #333;
  animation: cookieBannerIn 0.3s var(--ease);
}
.cookie-customize-panel[hidden] { display: none; }
.cookie-option {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}
.cookie-option label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.4;
}
.cookie-option input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--color-red);
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-option input[disabled] { accent-color: #666; cursor: not-allowed; }
.cookie-option strong { color: white; font-size: 0.9rem; display: block; margin-bottom: 0.15rem; }
.cookie-option .cookie-option-desc { color: #aaa; font-size: 0.8rem; font-weight: normal; }
.cookie-customize-panel .cookie-btn-accept { width: 100%; margin-top: 0.5rem; }
@media (max-width: 600px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 1.1rem; }
  .cookie-banner-text h3 { font-size: 1rem; }
  .cookie-banner-text p { font-size: 0.82rem; }
}

/* ===== MODAL 4-STEP: progress dots ===== */
.wa-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0 1rem;
}
.wa-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: 0.95rem;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
  flex-shrink: 0;
}
.wa-step-dot.active {
  background: var(--color-red);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(214,40,40,0.4);
}
.wa-step-dot.done {
  background: var(--color-success);
  color: white;
}
.wa-step-dot.done::before {
  content: "✓";
  font-size: 1.1rem;
}
.wa-step-line {
  flex: 1;
  height: 3px;
  background: #e8e8e8;
  border-radius: 2px;
  max-width: 50px;
  transition: background var(--duration) var(--ease);
}
.wa-step-line.done { background: var(--color-success); }
@media (max-width: 480px) {
  .wa-step-line { max-width: 30px; }
  .wa-step-dot { width: 28px; height: 28px; font-size: 0.85rem; }
}

/* ===== MODAL 4-STEP: layout step ===== */
.wa-step {
  display: none;
  animation: waStepFade 0.3s var(--ease);
}
.wa-step.active { display: block; }
@keyframes waStepFade {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.wa-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.4rem;
  line-height: 1.1;
}
.wa-step-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.4rem;
}

/* ===== STEP 1: 4 cards selezionabili ===== */
.wa-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 0 0 1rem;
}
@media (min-width: 480px) {.wa-cards { grid-template-columns: 1fr 1fr; } }

.wa-card {
  background: white;
  border: 3px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  color: inherit;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.wa-card:hover {
  border-color: var(--color-red);
  transform: translateY(-2px);
}
.wa-card.selected {
  border-color: var(--color-red);
  background: #fff0f0;
  box-shadow: 0 8px 24px rgba(214,40,40,0.28);
  transform: scale(1.03);
}
.wa-card-icon {
  font-size: 2rem;
  line-height: 1;
}
.wa-card-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-text);
  line-height: 1.2;
}
.wa-card-desc-area {
  background: #f8f8f8;
  border-left: 4px solid var(--color-orange);
  padding: 0.7rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text);
  font-size: 0.88rem;
  margin: 1rem 0 1.2rem;
  min-height: 2rem;
  transition: opacity var(--duration) var(--ease);
}
.wa-card-desc-area.empty { opacity: 0.4; font-style: italic; }

/* ===== STEP 4: riepilogo ===== */
.wa-summary {
  background: linear-gradient(135deg, #fff5f5, #ffeaea);
  border-left: 4px solid var(--color-red);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1rem;
}
.wa-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(214,40,40,0.15);
  font-size: 0.95rem;
}
.wa-summary-row:last-child { border-bottom: none; }
.wa-summary-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  min-width: 110px;
  flex-shrink: 0;
}
.wa-summary-value { color: var(--color-text); flex: 1; }
.wa-help {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  text-align: center;
  margin: 0.5rem 0 1rem;
  font-style: italic;
}

/* ===== Buttons back/next ===== */
.wa-step-buttons {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.wa-step-buttons > * { flex: 1; min-height: 48px; }
.wa-btn-back.wa-btn-next {
  border: none;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.wa-btn-back {
  background: #f0f0f0;
  color: var(--color-text);
}
.wa-btn-back:hover { background: #e0e0e0; }
.wa-btn-next {
  background: var(--color-red);
  color: white;
}
.wa-btn-next:hover:not(:disabled) {
  background: var(--color-red-dark);
  transform: scale(1.02);
}
.wa-btn-next:disabled {
  background: #cfcfcf;
  color: #888;
  cursor: not-allowed;
}

/* ===== MOBILE STICKY BAR: pulse delicato sul pulsante WA ===== */
@keyframes waMobilePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
@media (max-width: 768px) {
  .mobile-wa { animation: waMobilePulse 3s ease-in-out infinite; }
}

/* ===== TOOLTIP WHATSAPP (rotante) ===== */
.wa-tooltip {
  position: fixed;
  z-index: 9998;
  background: white;
  color: #1d1d1d;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  /* Desktop default: a sinistra del pulsante (60+20+15) */
  bottom: 35px;
  right: 95px;
}
.wa-tooltip.visible { opacity: 1; }
.wa-tooltip::after {
  /* Freccia che punta a destra (verso il pulsante) */
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: white;
}

/* Mobile: tooltip sopra il pulsante della sticky bar */
@media (max-width: 768px) {
  .wa-tooltip {
    bottom: 70px;
    right: 12px;
    left: auto;
    font-size: 0.82rem;
    padding: 10px 14px;
  }
  .wa-tooltip::after {
    /* Freccia verso il basso */
    right: 30px;
    top: auto;
    bottom: -8px;
    transform: none;
    border: 8px solid transparent;
    border-top-color: white;
    border-left-color: transparent;
  }
}

/* Reduced motion: tooltip nascosto, animazioni off */
@media (prefers-reduced-motion: reduce) {
  .mobile-wa { animation: none; }
  .wa-tooltip { display: none !important; }
}

/* ===== MODAL WHATSAPP ===== */
.wa-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  backdrop-filter: blur(6px);
}
.wa-modal-overlay[hidden] { display: none; }
body.wa-modal-open { overflow: hidden; }
.wa-modal {
  background: white;
  border-radius: var(--radius);
  max-width: 560px; width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-lg);
  animation: waModalIn var(--duration) var(--ease);
}
@keyframes waModalIn {
  from { opacity: 0; transform: scale(0.95); }
  to  { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
  .wa-modal-overlay { padding: 0; align-items: stretch; }
  .wa-modal { max-height: 100vh; max-width: 100%; border-radius: 0; padding: 1.5rem 1.2rem; }
}
.wa-modal-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 40px; height: 40px;
  border: none;
  background: #f0f0f0;
  color: var(--color-text);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.wa-modal-close:hover { background: var(--color-red); color: white; }
.wa-modal-header h2 { font-family: var(--font-heading); color: var(--color-text); font-size: 1.3rem; margin: 0 0 0.5rem; padding-right: 2rem; text-transform: uppercase; letter-spacing: 0.5px; }
.wa-modal-header p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0 0 1.2rem; }
.wa-form.wa-row { margin-bottom: 0.9rem; }
.wa-form.wa-row-2col { display: grid; grid-template-columns: 1fr; gap: 0.7rem; margin-bottom: 0; }
@media (min-width: 480px) {.wa-form.wa-row-2col { grid-template-columns: 1fr 1fr; } }
.wa-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--color-text); font-size: 0.88rem; }
.wa-form input.wa-form select.wa-form textarea {
  width: 100%;
  padding: 0.78rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: border-color var(--duration) var(--ease);
  min-height: 44px;
}
.wa-form input:focus.wa-form select:focus.wa-form textarea:focus { outline: none; border-color: var(--color-red); }
.wa-form textarea { resize: vertical; min-height: 80px; }
.wa-hint { display: block; color: var(--color-text-muted); font-size: 0.78rem; margin-top: 0.25rem; }
.wa-submit {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  padding: 1.05rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
  min-height: 48px;
}
.wa-submit:hover { background: #1ea854; transform: scale(1.02); }
.wa-submit svg { width: 22px; height: 22px; }
.wa-privacy { font-size: 0.75rem; color: var(--color-text-muted); margin: 0.7rem 0 0; text-align: center; }
.wa-privacy a { color: var(--color-red); }

/* ===== PRONTA CONSEGNA BADGE ===== */
.pronta-consegna {
  display: inline-block;
  background: var(--color-success);
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* ===== TIMELINE ===== */
.timeline {
  list-style: none;
  margin: 2rem 0!important;
  padding-left: 1.5rem!important;
  border-left: 3px solid var(--color-red);
}
.timeline li { position: relative; padding-bottom: 1.5rem; margin-bottom: 0!important; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 14px; height: 14px;
  background: var(--color-red);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--color-red);
}
.timeline strong { font-family: var(--font-heading); display: block; color: var(--color-red); font-size: 1.05rem; margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.4px; }

/* ===== BLOG ===== */
.blog-post {
  max-width: 760px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {.blog-post { padding: 1.8rem 1.2rem; } }
.blog-meta {
  display: flex; gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.blog-meta strong { color: var(--color-text); }
.blog-post h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-post h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text);
  margin: 2.2rem 0 0.8rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-red);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-post h3 { font-family: var(--font-heading); font-size: 1.12rem; margin: 1.5rem 0 0.6rem; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.4px; }
.blog-post p { margin-bottom: 1rem; color: #333; }
.blog-post ul.blog-post ol { margin: 0 0 1.5rem 1.5rem; }
.blog-post li { margin-bottom: 0.5rem; color: #333; }
.blog-post strong { color: var(--color-text); }
.blog-post a { color: var(--color-red); }
.blog-post table { width: 100%; }

.toc {
  background: #f8f8f8;
  border-left: 4px solid var(--color-red);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.toc h3 { font-family: var(--font-heading); margin: 0 0 0.7rem; font-size: 1rem; color: var(--color-text); text-transform: uppercase; letter-spacing: 0.4px; }
.toc ol { margin: 0; padding-left: 1.5rem; list-style: decimal; }
.toc li { margin-bottom: 0.3rem; }
.toc a { color: var(--color-red); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.inline-cta {
  background: linear-gradient(135deg, var(--color-bg-dark), #1d1d1d);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  text-align: center;
}
.inline-cta h3 { font-family: var(--font-heading); color: white; margin: 0 0 0.5rem; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.5px; }
.inline-cta p { color: #ccc; margin-bottom: 1rem; }

.share-buttons { display: flex; gap: 0.5rem; margin: 2rem 0 1rem; flex-wrap: wrap; align-items: center; }
.share-btn {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  color: white!important;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform var(--duration) var(--ease);
  min-height: 36px;
}
.share-btn:hover { transform: scale(1.05); }
.share-btn svg { width: 16px; height: 16px; fill: white; }
.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }
.share-em { background: #555; }

.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.related-posts h3 { font-family: var(--font-heading); color: var(--color-text); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.4px; }
.related-posts ul { list-style: none; margin: 0; padding: 0; }
.related-posts li { margin-bottom: 0.6rem; }
.related-posts a { color: var(--color-red); text-decoration: none; font-weight: 600; }
.related-posts a:hover { text-decoration: underline; }

/* BLOG GRID (indice blog) */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}
@media (min-width: 600px) {.blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {.blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--color-red);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { color: var(--color-text-muted); font-size: 0.82rem; margin-bottom: 0.5rem; }
.blog-card h3 { font-family: var(--font-heading); color: var(--color-text); font-size: 1.1rem; margin: 0 0 0.6rem; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.3px; }
.blog-card p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0 0 1rem; flex: 1; }
.blog-card.read-more { color: var(--color-red); font-family: var(--font-heading); font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Photo placeholder image (in articoli/pagine) */
.photo-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}
.photo-caption { text-align: center; color: var(--color-text-muted); font-size: 0.9rem; margin-top: -1rem; margin-bottom: 1.5rem; font-style: italic; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== UTILS ===== */
.show-mobile { display: none; }
@media (max-width: 768px) {
  .show-mobile { display: initial; }
  .hide-mobile { display: none!important; }
}

/* Responsive table → card on mobile */
@media (max-width: 600px) {
  .blog-post table thead { display: none; }
  .blog-post table.blog-post table tbody.blog-post table tr.blog-post table td {
    display: block;
    width: 100%;
  }
  .blog-post table tr { margin-bottom: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
  .blog-post table td { padding: 0.5rem 0.8rem; border-bottom: 1px solid #eee; text-align: left!important; }
  .blog-post table td:last-child { border-bottom: none; }
}

/* ============================================================
   MODAL 4-STEP — RESTYLE COMPLETO (override)
   Coerente con palette racing del sito, responsive 320 → 1440+
   ============================================================ */

/* OVERLAY backdrop */
.wa-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  animation: waOverlayIn 0.25s ease-out;
}
.wa-modal-overlay[hidden] { display: none; }
@keyframes waOverlayIn { from { opacity: 0; } to { opacity: 1; } }
body.wa-modal-open { overflow: hidden; }

/* MODAL container */
.wa-modal {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem 1.8rem 1.5rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  animation: waModalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-top: 4px solid #d62828;
}
@keyframes waModalPop {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@media (min-width: 1024px) { .wa-modal { max-width: 720px; padding: 2.4rem 2.2rem 1.8rem; } }
@media (max-width: 600px) {
  .wa-modal-overlay { padding: 0; align-items: stretch; }
  .wa-modal {
    max-width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    border-top-width: 5px;
    padding: 1.5rem 1.1rem 1.2rem;
  }
}

/* HEADER titolo + bottone X */
.wa-modal-h2 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.5rem;
  color: #d62828;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin: 0 0 1.2rem;
  padding-right: 2.5rem;
  line-height: 1;
}
@media (min-width: 600px) { .wa-modal-h2 { font-size: 1.8rem; } }

.wa-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 2px solid #e5e5e5;
  background: white;
  color: #1d1d1d;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.wa-modal-close:hover {
  background: #d62828;
  color: white;
  border-color: #d62828;
  transform: rotate(90deg);
}

/* PROGRESS DOTS — barra step */
.wa-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0 0.5rem;
}
.wa-step-dot {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo Black', Impact, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.wa-step-dot.active {
  background: #d62828;
  color: white;
  transform: scale(1.18);
  box-shadow: 0 6px 18px rgba(214, 40, 40, 0.5);
}
.wa-step-dot.done {
  background: #06a77d;
  color: white;
  font-size: 1.1rem;
}
.wa-step-dot.done::before { content: none; }
.wa-step-line {
  flex: 1;
  height: 3px;
  background: #e8e8e8;
  border-radius: 2px;
  max-width: 60px;
  transition: background 0.3s ease;
}
.wa-step-line.done { background: #06a77d; }
@media (max-width: 400px) {
  .wa-step-dot { width: 30px; height: 30px; min-width: 30px; font-size: 0.85rem; }
  .wa-step-line { max-width: 28px; }
}

/* STEP TITLES */
.wa-step-title {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 1.6rem;
  color: #0a0a0a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 0.3rem;
  line-height: 1.1;
  text-align: center;
}
@media (min-width: 600px) { .wa-step-title { font-size: 1.9rem; } }
.wa-step-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0 0 1.4rem;
  text-align: center;
}

/* STEP show/hide + animazione slide */
.wa-step { display: none; }
.wa-step.active {
  display: block;
  animation: waStepSlide 0.35s ease-out;
}
@keyframes waStepSlide {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* STEP 1 — 4 CARD selezione tipo motore */
.wa-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0 0 1rem;
}
@media (min-width: 600px) { .wa-cards { grid-template-columns: 1fr 1fr; gap: 1rem; } }

.wa-card {
  position: relative;
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  color: inherit;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-card:hover {
  border-color: #d62828;
  background: #fff5f5;
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(214, 40, 40, 0.15);
}
.wa-card.selected {
  border-color: #d62828;
  border-width: 3px;
  background: linear-gradient(135deg, #fff0f0 0%, #ffe5e5 100%);
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(214, 40, 40, 0.32);
}
.wa-card.selected::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  background: #d62828;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(214, 40, 40, 0.5);
}
.wa-card-icon {
  font-size: 2.4rem;
  line-height: 1;
}
@media (min-width: 600px) { .wa-card-icon { font-size: 2.8rem; } }
.wa-card-title {
  font-family: 'Oswald', 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #0a0a0a;
  line-height: 1.2;
}

/* Box descrizione tipo selezionato */
.wa-card-desc-area {
  background: #fff8f8;
  border-left: 4px solid #f77f00;
  padding: 0.9rem 1.2rem;
  border-radius: 0 10px 10px 0;
  color: #0a0a0a;
  font-size: 0.92rem;
  margin: 1rem 0 1.2rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  transition: opacity 0.25s ease, background 0.25s ease;
  line-height: 1.4;
}
.wa-card-desc-area.empty {
  opacity: 0.6;
  font-style: italic;
  color: #6c757d;
  background: #f5f5f5;
  border-left-color: #cccccc;
}

/* STEP 2 + 3 — label + campi */
.wa-row { margin-bottom: 1rem; }
.wa-row label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0a0a0a;
  margin-bottom: 0.4rem;
}

/* DROPDOWN + INPUT comuni */
.wa-row select,
.wa-row input[type="text"],
.wa-row input[type="number"],
.wa-row input[type="tel"],
.wa-row input[type="email"],
.wa-row textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Inter', -apple-system, sans-serif;
  background: white;
  color: #0a0a0a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.wa-row textarea {
  resize: vertical;
  min-height: 100px;
  padding-top: 12px;
}
.wa-row select:focus,
.wa-row input:focus,
.wa-row textarea:focus {
  outline: none;
  border-color: #d62828;
  box-shadow: 0 0 0 4px rgba(214, 40, 40, 0.12);
  background: #fffafa;
}
.wa-row select:disabled {
  background: #f5f5f5;
  color: #9ca3af;
  cursor: not-allowed;
}
/* Freccia custom per dropdown */
.wa-row select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d62828' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.wa-hint {
  display: block;
  margin-top: 0.35rem;
  color: #6c757d;
  font-size: 0.82rem;
  line-height: 1.4;
}
.wa-hint strong { color: #d62828; }

/* STEP 2 layout: 3 colonne desktop */
.wa-step[data-step="2"] {
  display: none;
}
.wa-step[data-step="2"].active {
  display: block;
}
@media (min-width: 768px) {
  .wa-step[data-step="2"].active .wa-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.9rem;
  }
}

/* STEP 4 — RIEPILOGO */
.wa-summary {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  border: 2px solid #e5e5e5;
  border-left: 4px solid #d62828;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 0 0 1rem;
}
.wa-summary-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(214, 40, 40, 0.1);
  font-size: 0.95rem;
}
.wa-summary-row:last-child { border-bottom: none; }
@media (max-width: 480px) {
  .wa-summary-row { grid-template-columns: 1fr; gap: 0.1rem; padding: 0.6rem 0; }
}
.wa-summary-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #d62828;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.wa-summary-value {
  color: #0a0a0a;
  font-family: 'Inter', sans-serif;
}
.wa-help {
  color: #6c757d;
  font-size: 0.9rem;
  text-align: center;
  margin: 0.5rem 0 1.2rem;
  font-style: italic;
}

/* PULSANTI NAVIGAZIONE STEP */
.wa-step-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
@media (min-width: 600px) {
  .wa-step-buttons {
    flex-direction: row;
    justify-content: flex-end;
  }
  .wa-step-buttons > * {
    flex: 0 0 auto;
    min-width: 200px;
  }
  .wa-step-buttons .wa-btn-back { margin-right: auto; }
}

.wa-btn-back,
.wa-btn-next,
.wa-submit {
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 10px;
  font-family: 'Oswald', 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}
@media (min-width: 600px) {
  .wa-btn-back, .wa-btn-next, .wa-submit { width: auto; }
}

.wa-btn-back {
  background: transparent;
  color: #6c757d;
  border: 2px solid #d1d5db;
}
.wa-btn-back:hover {
  background: #f3f4f6;
  color: #0a0a0a;
  border-color: #6c757d;
}

.wa-btn-next {
  background: #d62828;
  color: white;
  box-shadow: 0 6px 16px rgba(214, 40, 40, 0.3);
}
.wa-btn-next:hover:not(:disabled) {
  background: #a51d1d;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(214, 40, 40, 0.45);
}
.wa-btn-next:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.wa-submit {
  background: #25d366;
  color: white;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}
@media (min-width: 600px) { .wa-submit { min-width: 240px; } }
.wa-submit:hover {
  background: #1ea854;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

/* PRIVACY FOOTER */
.wa-privacy {
  margin: 1.2rem 0 0;
  text-align: center;
  color: #6c757d;
  font-size: 0.78rem;
  line-height: 1.5;
}
.wa-privacy a { color: #d62828; text-decoration: underline; }

/* SCROLL INTERNO MODAL — scrollbar custom */
.wa-modal::-webkit-scrollbar { width: 8px; }
.wa-modal::-webkit-scrollbar-track { background: transparent; }
.wa-modal::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.wa-modal::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* PREFERS-REDUCED-MOTION: niente animazioni */
@media (prefers-reduced-motion: reduce) {
  .wa-modal-overlay, .wa-modal, .wa-step.active { animation: none; }
  .wa-card, .wa-btn-next, .wa-btn-back, .wa-submit, .wa-modal-close, .wa-step-dot { transition: none; }
  .wa-card:hover, .wa-card.selected { transform: none; }
}
