:root {
  --blue: #1373b1;
  --blue-dark: #0d5580;
  --red: #e30613;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --text: #16202a;
  --text-muted: #5b6672;
  --line: #e7ebef;
  --radius: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 88px 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(227, 6, 19, 0.36); }
.btn-outline {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 350;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  z-index: 201;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.25s ease;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- MENU MOBILE A SCHERMO INTERO ----------
   Elemento fuori dall'<header>: l'header ha backdrop-filter, e un
   antenato con filter/backdrop-filter diventa il "containing block"
   per i suoi discendenti position:fixed, rompendo l'overlay a schermo
   intero. Tenendolo fuori dall'header, il fixed si ancora sempre
   al viewport. */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mobile-menu__nav a {
  display: block;
  padding: 12px 0;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.mobile-menu.open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu.open .mobile-menu__nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu__cta {
  margin-top: 20px;
  padding: 15px 36px;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.mobile-menu.open .mobile-menu__cta { opacity: 1; transform: none; transition-delay: 0.32s; }
@media (max-width: 768px) {
  .mobile-menu { display: flex; }
}

/* ---------- PAGE HERO (sottopagine) ---------- */
.page-hero {
  position: relative;
  padding: 72px 0 64px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 60%, var(--red) 140%);
}
.page-hero .container { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.88); }
.page-hero .eyebrow { color: #fff; opacity: 0.85; }

/* ---------- HOME HERO ---------- */
.hero {
  position: relative;
  min-height: calc(var(--vh100, 100vh) - 81px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/copertina-homepage-YKb6v54ea1cyJ1JK.jpg') center/cover no-repeat;
  transform: scale(1.15);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero-content { will-change: transform; }
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content .eyebrow { color: #fff; opacity: 0.85; }
.hero-content h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  margin-bottom: 18px;
}
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-actions .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--blue); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- SECTION HEADS ---------- */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.02rem; }

/* ---------- FEATURE CARDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(19, 115, 177, 0.14);
  border-color: transparent;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon.blue { background: rgba(19, 115, 177, 0.1); }
.card-icon.red { background: rgba(227, 6, 19, 0.1); }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- SPLIT SECTIONS ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: 0 24px 48px rgba(16, 24, 32, 0.14); }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.split p { color: var(--text-muted); margin-bottom: 16px; }
.split p strong { color: var(--text); font-weight: 600; }
.bg-soft { background: var(--bg-soft); }

/* ---------- STATS con count-up ---------- */
.stats-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.stats-band .stat-num { font-size: 3rem; font-weight: 800; }
.stats-band .stat-label { font-size: 0.95rem; opacity: 0.85; }
.stats-row { display: flex; gap: 48px; }
.stat-num[data-count] { display: inline-block; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); max-width: 480px; }
.cta-band .btn-outline { background: #fff; color: var(--red); border-color: #fff; }
.cta-band .btn-outline:hover { background: transparent; color: #fff; }

/* ---------- RECENSIONI ---------- */
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  height: 100%;
}
.review-stars { color: #f5b400; font-size: 0.95rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.review-author span { font-weight: 600; font-size: 0.9rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- LISTE SERVIZI ---------- */
.service-group { margin-bottom: 40px; }
.service-group h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}
.service-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.service-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}
.service-list li:hover { background: rgba(19,115,177,0.08); transform: translateX(4px); }
.service-list li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue); }

/* ---------- PATENTI CARDS ---------- */
.patente-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.patente-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(19, 115, 177, 0.14); }
.patente-card-head {
  padding: 28px 28px 0;
}
.patente-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
}
.patente-card-body { padding: 20px 28px 28px; }
.patente-card-body p { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- CONTATTI ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(19, 115, 177, 0.12); }
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-badge.phone { background: var(--blue); }
.icon-badge.whatsapp { background: #25D366; }
.icon-badge.pin { background: var(--red); }
.icon-badge.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.icon-badge svg { width: 20px; height: 20px; }
.contact-card .label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.contact-card .value { font-weight: 600; color: var(--text); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 14px 4px; font-size: 0.94rem; }
.hours-table td:first-child { font-weight: 600; color: var(--text); }
.hours-table td:last-child { text-align: right; color: var(--text-muted); }
.hours-table tr.closed td:last-child { color: var(--red); font-weight: 600; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ---------- BANNER RICHIAMO AIRBAG (home) ---------- */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff5f5;
  border: 1.5px solid rgba(227, 6, 19, 0.25);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.alert-banner-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(227, 6, 19, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert-banner-icon svg { width: 28px; height: 28px; }
.alert-banner-body { flex: 1; }
.alert-banner-body .eyebrow { color: var(--red); }
.alert-banner-body h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); margin-bottom: 8px; }
.alert-banner-body p { color: var(--text-muted); font-size: 0.96rem; }
.alert-banner-actions { flex-shrink: 0; }
@media (max-width: 768px) {
  .alert-banner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .alert-banner-actions { width: 100%; }
  .alert-banner-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- ARTICOLO RICHIAMO AIRBAG ---------- */
.article-lead { font-size: 1.08rem; color: var(--text-muted); margin-bottom: 0; }
.article-block { margin-top: 64px; }
.article-block h2 { margin-bottom: 20px; }
.article-block h3 { margin-bottom: 8px; }
.article-block > p { color: var(--text-muted); margin-bottom: 16px; }
.article-block > *:last-child { margin-bottom: 0 !important; }
.info-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 16px 0;
}
.info-box.red { border-left-color: var(--red); background: #fff5f5; }
.info-box p { color: var(--text); font-size: 0.95rem; margin: 0; }
.info-box p + p { margin-top: 10px; }
.step-list { list-style: none; counter-reset: step; margin: 24px 0; }
.step-list li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list strong { display: block; margin-bottom: 4px; }
.step-list span { color: var(--text-muted); font-size: 0.92rem; }
.recall-table-wrap { overflow-x: auto; margin: 28px 0; }
.recall-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.recall-table th, .recall-table td { padding: 12px 16px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.recall-table th { color: var(--text-muted); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.recall-table a { color: var(--blue); font-weight: 600; text-decoration: none; }
.recall-table a:hover { text-decoration: underline; }

/* ---------- SEZIONI DISATTIVATE TEMPORANEAMENTE ---------- */
/* rimuovere questa classe (o impostare display:block) per riattivare una sezione nascosta */
.section-disabled { display: none; }

/* ---------- FOOTER ---------- */
footer {
  background: #10202f;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-logo { display: flex; align-items: center; }
.footer-logo img { width: 48px; height: 48px; border-radius: 10px; }
.footer-nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
footer .foot-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
footer .foot-links a { text-decoration: none; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
footer .foot-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-icon:hover { background: var(--blue); transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; }
.footer-bottom { font-size: 0.8rem; opacity: 0.6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-legal { display: flex; gap: 6px; }
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { opacity: 0.8; }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.2s ease;
  animation: waPulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.7); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}
@media (max-width: 768px) {
  .whatsapp-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse { direction: ltr; }
  .split .split-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; text-align: center; }
  .stats-row { justify-content: center; }
  .service-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-cta > .btn-primary { display: none; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  section { padding: 64px 0; }
  .cta-band { flex-direction: column; text-align: center; justify-content: center; }
  .hero { height: calc(var(--vh100, 100dvh) - 81px); min-height: calc(var(--vh100, 100dvh) - 81px); }
  .hero-content { padding: 0 24px; }
  .hero-content h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); margin-bottom: 12px; }
  .hero-content p { font-size: 0.95rem; margin-bottom: 22px; }
  .hero-actions { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
