:root {
  --blue-dark: #0B1F3A;
  --blue: #1FA9E5;
  --green: #22C55E;
  --orange: #F97316;
  --light: #F5F7FA;
  --text: #1E293B;
  --muted: #64748B;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --shadow: 0 20px 55px rgba(11, 31, 58, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  padding-bottom: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 22px;
}

.logo img { max-height: 58px; }

.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a,
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  color: var(--blue-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-drop-toggle::after {
  content: "▾";
  font-size: 12px;
  margin-left: 7px;
  color: var(--blue);
}

.main-nav > ul > li > a:hover,
.nav-has-dropdown:hover .nav-drop-toggle,
.nav-drop-toggle:hover {
  background: #EEF8FF;
  color: var(--blue);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 290px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.16);
  display: none !important;
  z-index: 2000;
  list-style: none;
  margin: 0;
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.is-open .nav-dropdown {
  display: grid !important;
  gap: 4px;
}

.nav-dropdown a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--blue-dark);
  font-weight: 750;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: #EEF8FF;
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.2s ease;
  border: 0;
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-whatsapp { background: var(--green); color: var(--white); }
.btn-outline { color: var(--blue-dark); background: var(--white); border: 2px solid var(--blue); }
.btn-outline:hover { color: var(--white); background: var(--blue); }
.btn-white { background: var(--white); color: var(--orange); }
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
a.btn-primary,
a.btn-whatsapp,
.fc-content a.btn-primary,
.fc-content a.btn-whatsapp,
.hero-actions a.btn-primary,
.final-cta a.btn-primary { color: #fff !important; }
.fc-content a.btn-outline { color: var(--blue-dark); }

.hero {
  background: linear-gradient(135deg, #eef8ff, #ffffff);
  padding: 86px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow, .section-label {
  display: inline-block;
  color: var(--blue);
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  color: var(--blue-dark);
  margin: 0 0 20px;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-points {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: var(--blue-dark);
  font-weight: 800;
}

.hero-points span {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 13px;
  box-shadow: 0 10px 30px rgba(11,31,58,.06);
}

.hero-image img, .split-image img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.quick-request { margin-top: -38px; position: relative; z-index: 2; }

.quick-box {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 26px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.quick-box h2 { margin: 0 0 8px; color: var(--blue-dark); font-size: 28px; }
.quick-box p { margin: 0; color: var(--muted); }

.section { padding: 82px 0; }
.section-light { background: var(--light); }

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2, .split-content h2, .operator-box h2, .final-cta h2 {
  color: var(--blue-dark);
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p, .split-content p, .operator-box p, .final-cta p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.steps-grid, .services-grid, .benefits-grid { display: grid; gap: 22px; }
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.benefits-grid { grid-template-columns: repeat(4, 1fr); }

.step-card, .service-card, .benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 12px 35px rgba(11,31,58,.06);
}

.service-card { overflow: hidden; padding: 0 0 24px; }
.service-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card h3, .service-card p, .service-card a { margin-left: 24px; margin-right: 24px; }

.step-card h3, .service-card h3, .benefit-card h3 {
  color: var(--blue-dark);
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

.step-card p, .service-card p, .benefit-card p { color: var(--muted); margin-bottom: 0; }
.service-card a { display: inline-block; margin-top: 16px; color: var(--blue); font-weight: 900; }

.step-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  margin-bottom: 16px;
}

.centered-action { text-align: center; margin-top: 36px; }

.split-section {
  padding: 84px 0;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.check-list {
  padding: 0;
  margin: 24px 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  font-weight: 800;
  color: var(--blue-dark);
}

.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
}

.section-orange { background: var(--orange); color: var(--white); }

.operator-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.operator-box h2, .operator-box p { color: var(--white); }
.light-label { color: var(--white); opacity: .9; }

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.city-grid a {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  font-weight: 900;
  color: var(--blue-dark);
  box-shadow: 0 10px 28px rgba(11,31,58,.06);
}

.city-grid a:hover { background: var(--blue); color: var(--white); }

.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
details { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 900; color: var(--blue-dark); }
details p { color: var(--muted); margin-bottom: 0; }

.final-cta {
  padding: 78px 0;
  background: linear-gradient(135deg, var(--blue-dark), #123965);
}

.final-cta-box { color: var(--white); text-align: center; max-width: 860px; }
.final-cta h2, .final-cta p { color: var(--white); }
.final-cta .hero-actions { justify-content: center; margin-top: 26px; }

.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.82);
  padding: 64px 0 95px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  max-height: 64px;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
}

.footer-col h3 { color: var(--white); margin: 0 0 16px; }
.footer-col ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.footer-col a:hover { color: var(--green); }

.footer-bottom {
  width: min(1180px, 92%);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.mobile-bottom-bar { display: none; }

.version-badge {
  position: fixed;
  right: 12px;
  bottom: 72px;
  background: var(--blue-dark);
  color: white;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  z-index: 3000;
  opacity: .75;
}

@media (max-width: 1120px) {
  .main-nav > ul > li > a, .nav-drop-toggle { font-size: 14px; padding: 10px 10px; }
  .header-actions .btn { padding: 11px 13px; font-size: 14px; }
}

@media (max-width: 980px) {
  body { padding-bottom: 64px; }
  .header-inner { min-height: 76px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(11,31,58,.12);
    padding: 8px 0 18px;
    max-height: calc(100dvh - 76px - 70px);
    max-height: calc(100vh - 76px - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1500;
  }

  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; padding: 22px; gap: 6px; padding-bottom: 28px; }
  .main-nav > ul > li { width: 100%; }

  .main-nav > ul > li > a, .nav-drop-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 14px;
    padding: 14px 16px;
    background: #F8FAFC;
  }

  .nav-dropdown {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border-radius: 16px;
    margin-top: 8px;
    background: #FFFFFF;
    padding: 8px;
    max-height: none;
    overflow: visible;
  }

  .nav-has-dropdown .nav-dropdown { display: none !important; }
  .nav-has-dropdown.is-open .nav-dropdown { display: grid !important; gap: 4px; }
  .nav-dropdown a { white-space: normal; }

  /* Selettori lingua / bandierine: stesse regole di scroll e visibilità */
  .language-switcher .language-dropdown,
  .language-switcher .lang-dropdown,
  .lang-switcher .lang-dropdown,
  .lang-selector .lang-dropdown,
  .flag-switcher .flag-dropdown,
  .flags-switcher .flag-dropdown,
  .language-menu ul,
  .lang-menu ul,
  .flag-menu ul {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    display: none;
  }
  .language-switcher.is-open .language-dropdown,
  .language-switcher.is-open .lang-dropdown,
  .lang-switcher.is-open .lang-dropdown,
  .lang-selector.is-open .lang-dropdown,
  .flag-switcher.is-open .flag-dropdown,
  .flags-switcher.is-open .flag-dropdown,
  .language-menu.is-open ul,
  .lang-menu.is-open ul,
  .flag-menu.is-open ul {
    display: grid !important;
    gap: 4px;
    width: 100%;
  }

  .header-actions { display: none; }
  .mobile-toggle { display: flex; }

  .hero { padding: 54px 0; }
  .hero-grid, .split-grid { grid-template-columns: 1fr; }
  .hero p { font-size: 18px; }
  .quick-box, .operator-box { flex-direction: column; align-items: flex-start; }
  .steps-grid, .services-grid, .benefits-grid, .city-grid, .footer-grid { grid-template-columns: 1fr 1fr; }

  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--blue-dark);
    z-index: 2000;
    border-top: 1px solid rgba(255,255,255,.18);
  }

  .mobile-bottom-bar a {
    color: var(--white);
    text-align: center;
    padding: 15px 8px;
    font-weight: 900;
    font-size: 14px;
  }

  .mobile-bottom-bar a:nth-child(2) { background: var(--green); }
  .mobile-bottom-bar a:nth-child(3) { background: var(--blue); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .logo img { max-height: 50px; }
  .steps-grid, .services-grid, .benefits-grid, .city-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .quick-request { margin-top: 0; padding-top: 20px; }
  .quick-box { padding: 22px; }
  .hero h1 { font-size: 38px; }
  .footer-bottom { display: block; }
}


/* ===== FIX DESKTOP MENU COMPATTO 2026-06-30 ===== */

.site-header {
  min-height: 72px;
}

.header-inner {
  min-height: 72px;
  gap: 14px;
}

.logo img {
  max-height: 46px;
  width: auto;
}

.main-nav > ul {
  gap: 4px;
}

.main-nav > ul > li > a,
.nav-drop-toggle {
  white-space: nowrap;
  min-height: 38px;
  padding: 8px 9px;
  font-size: 14px;
  line-height: 1;
}

.header-actions {
  gap: 8px;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 1;
}

.btn {
  white-space: nowrap;
}

.nav-dropdown {
  top: calc(100% + 8px);
}

@media (max-width: 1180px) {
  .main-nav > ul > li > a,
  .nav-drop-toggle {
    font-size: 13px;
    padding: 8px 7px;
  }

  .header-actions .btn {
    font-size: 13px;
    padding: 10px 12px;
  }

  .logo img {
    max-height: 42px;
  }
}

@media (max-width: 1040px) {
  .header-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 76px;
  }

  .logo img {
    max-height: 50px;
  }

  .main-nav {
    top: 76px;
  }

  .main-nav > ul > li > a,
  .nav-drop-toggle {
    white-space: normal;
    line-height: 1.3;
    font-size: 15px;
  }
}

/* Nasconde il badge MENU OK dopo il controllo */
.version-badge {
  display: none !important;
}


/* ===== FIX HERO HOME COMPATTA 2026-06-30 ===== */

.hero {
  padding: 54px 0 48px;
  background: linear-gradient(135deg, #EEF8FF 0%, #FFFFFF 72%);
}

.hero-grid {
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

.hero p {
  font-size: 19px;
  line-height: 1.65;
  max-width: 650px;
  margin-bottom: 24px;
}

.hero-image img {
  max-height: 520px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-actions .btn {
  min-height: 50px;
}

.hero-points {
  margin-top: 20px;
}

.hero-points span {
  padding: 8px 12px;
  font-size: 14px;
}

.quick-request {
  margin-top: -26px;
}

@media (min-width: 1400px) {
  .hero h1 {
    font-size: 58px;
  }

  .hero {
    padding-top: 58px;
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 42px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(34px, 8vw, 46px);
  }

  .hero p {
    font-size: 18px;
  }

  .hero-image img {
    max-height: none;
  }

  .quick-request {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 34px 0 34px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .hero p {
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* ===== FIX MENU DROPDOWN E BANDIERINE - V9 2026-07-01 =====
   Mantiene aperte le voci a tendina mentre l'utente si sposta dal pulsante
   alla voce del menu. Valido per desktop, mobile e selettori lingua/flag. */
.nav-has-dropdown {
  position: relative;
}

@media (min-width: 981px) {
  .nav-has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    display: block;
    z-index: 1999;
  }

  .nav-has-dropdown:hover .nav-dropdown,
  .nav-has-dropdown:focus-within .nav-dropdown,
  .nav-has-dropdown.is-open .nav-dropdown {
    display: grid !important;
    gap: 4px;
  }

  .nav-dropdown {
    top: calc(100% + 6px) !important;
    pointer-events: auto;
  }
}

/* Supporto anche per eventuale menu lingue con bandierine */
.language-switcher,
.lang-switcher,
.lang-selector,
.flag-switcher,
.flags-switcher,
.language-menu,
.lang-menu,
.flag-menu {
  position: relative;
}

@media (min-width: 981px) {
  .language-switcher::after,
  .lang-switcher::after,
  .lang-selector::after,
  .flag-switcher::after,
  .flags-switcher::after,
  .language-menu::after,
  .lang-menu::after,
  .flag-menu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
    display: block;
    z-index: 1999;
  }

  .language-switcher:hover .language-dropdown,
  .language-switcher:focus-within .language-dropdown,
  .language-switcher.is-open .language-dropdown,
  .lang-switcher:hover .lang-dropdown,
  .lang-switcher:focus-within .lang-dropdown,
  .lang-switcher.is-open .lang-dropdown,
  .lang-selector:hover .lang-dropdown,
  .lang-selector:focus-within .lang-dropdown,
  .lang-selector.is-open .lang-dropdown,
  .flag-switcher:hover .flag-dropdown,
  .flag-switcher:focus-within .flag-dropdown,
  .flag-switcher.is-open .flag-dropdown,
  .flags-switcher:hover .flag-dropdown,
  .flags-switcher:focus-within .flag-dropdown,
  .flags-switcher.is-open .flag-dropdown,
  .language-menu:hover ul,
  .language-menu:focus-within ul,
  .language-menu.is-open ul,
  .lang-menu:hover ul,
  .lang-menu:focus-within ul,
  .lang-menu.is-open ul,
  .flag-menu:hover ul,
  .flag-menu:focus-within ul,
  .flag-menu.is-open ul {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* menu mobile scroll fix 2026-08-11 */

