/* ============================================================
   JonioHUB — Sito di presentazione pubblica
   Stile coerente con il design system dell'app JonioHUB
   Mobile-first · Responsive · Accessibile
   ============================================================ */

/* --- Token di design (tema chiaro fisso — brand JonioHUB) ----- */
:root {
  color-scheme: light; /* forza tema chiaro: ignora dark mode dell'OS */
  --primary:        #1E5FA8;
  --primary-strong: #0E4A9B;
  --primary-soft:   #2A82D8;
  --primary-light:  #DBEAFE;
  --accent:         #FE8513;
  --accent-soft:    #FFA356;
  --accent-dark:    #D96E0A;
  --accent-light:   #FFF4E8;
  --accent-warm:    #FFC857;
  --accent-rgb:     254, 133, 19;
  --green:          #047857;
  --green-light:    #D1FAE5;
  --bg:             #F3F4F6;
  --surface:        #FFFFFF;
  --surface-2:      #F9FAFB;
  /* Contrasti testo migliorati per accessibilità su sfondo chiaro */
  --text:           #0F172A;   /* quasi-nero, leggibilissimo */
  --text2:          #374151;   /* grigio scuro — contrasto 10:1 su bianco */
  --text3:          #6B7280;   /* grigio medio — contrasto 5.5:1 su bianco */
  --border:         rgba(0,0,0,.10);
  --font:           'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:   'Oswald', var(--font);
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-pill:    999px;
  --shadow-sm:      0 2px 8px rgba(14,74,155,.08);
  --shadow-md:      0 8px 24px rgba(14,74,155,.12);
  --shadow-lg:      0 18px 48px rgba(14,74,155,.18);
  --shadow-xl:      0 28px 64px rgba(14,74,155,.22);
  --transition:     .32s cubic-bezier(.22,.61,.36,1);
  --nav-h:          64px;
  --header-chrome-bg: linear-gradient(180deg, var(--primary) 0%, var(--primary-strong) 100%);
}

/* --- Reset minimale ---------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* fallback browser più datati */
  touch-action: pan-y pinch-zoom; /* blocca pan orizzontale sulla pagina (Safari / touch) */
  overscroll-behavior-x: none;
}
@supports (overflow: clip) {
  html { overflow-x: clip; } /* taglia overflow senza barra orizzontale */
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-x: hidden;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

/* --- Sfondo decorativo blob -------------------------------- */
.bg-blobs {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
}
.bg-blobs::before,
.bg-blobs::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .45;
}
.bg-blobs::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-soft), var(--primary) 70%);
  top: -200px; left: -180px;
  animation: blob-drift 18s ease-in-out infinite;
}
.bg-blobs::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-soft), var(--accent) 70%);
  bottom: -160px; right: -140px;
  animation: blob-drift 18s ease-in-out infinite reverse;
  animation-delay: -9s;
}
@keyframes blob-drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50%       { transform: translate3d(24px,-24px,0) scale(1.06); }
}

/* ============================================================
   NAVIGAZIONE
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h);
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) clamp(16px, 4vw, 48px) 0;
  background: var(--header-chrome-bg);
  border-bottom: none;
  box-shadow: 0 4px 22px rgba(14, 74, 155, .16);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo {
  width: 36px; height: 36px; border-radius: 10px;
  box-shadow: var(--shadow-sm);
  background: #fff;
  padding: 3px;
}
/* Wordmark JonioHUB: Jonio bianco + HUB arancio testo (come logo). */
.brand-wordmark {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
  text-rendering: geometricPrecision;
}
.brand-wordmark__jonio {
  margin-right: 1px;
  line-height: 1;
  font-weight: 800;
}
.brand-wordmark__hub {
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
}
.nav-wordmark.brand-wordmark { color: #fff; }
.nav-wordmark .brand-wordmark__jonio {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.16);
}
.nav-wordmark .brand-wordmark__hub {
  color: var(--accent);
  text-shadow: 0 1px 10px rgba(var(--accent-rgb), .45);
}
.nav-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, .88);
  font-weight: 700;
  display: none;
}
@media (min-width: 480px) { .nav-tagline { display: block; } }

.nav-right { display: flex; align-items: center; gap: 8px; }

/* Switcher lingua */
.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .14);
}
.nav .lang-btn.active {
  background: var(--accent);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), .5);
}
.nav .lang-btn:hover:not(.active) {
  background: rgba(var(--accent-rgb), .28);
}
.lang-btn {
  width: 36px;
  height: 30px;
  border-radius: var(--radius-pill);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.lang-btn.active {
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary);
  transform: scale(1.12);
}
.lang-btn:hover:not(.active) {
  background: var(--bg);
  transform: scale(1.08);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center; justify-content: center;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 48px);
  text-align: center;
  position: relative;
}

/* Contenitore interno: mobile = colonna centrata, desktop = due colonne */
.hero-inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Colonna testuale */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Colonna visuale (mockup) */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- Layout desktop: due colonne affiancate ---- */
@media (min-width: 960px) {
  .hero {
    text-align: left;
  }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
  }
  .hero-content {
    flex: 1 1 0;
    align-items: flex-start; /* allinea a sinistra su desktop */
    min-width: 0;
  }
  .hero-sub {
    margin-left: 0;
  }
  .store-badges {
    justify-content: flex-start;
  }
  .hero-cta-group {
    justify-content: flex-start;
  }
  .hero-visual {
    flex: 0 0 auto;
  }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(30,95,168,.15);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 20px;
}
.hero-title .hl-blue  { color: var(--primary); }
.hero-title .hl-orange { color: var(--accent); }

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text2);
  max-width: 540px;
  margin: 0 auto 36px;
  font-weight: 600;
}

.hero-cta-group {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 0;
  margin-top: 8px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 6px 20px rgba(30,95,168,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(30,95,168,.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700;
  transition: transform var(--transition), border-color var(--transition);
}
.btn-secondary:hover { transform: translateY(-2px); border-color: var(--primary); }

/* Wrapper visuale hero: solo il PNG (cornice già inclusa nell'asset) */
.hero-visual {
  position: relative;
  padding: 8px 12px;
}

/* Alone leggero dietro l'immagine — senza inset negativo (causa overflow Safari) */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 48px;
  background: radial-gradient(ellipse at center, var(--primary-light) 30%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

/* Immagine dispositivo: proporzioni native del file, senza ritaglio né cornice CSS */
.hero-device-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(14, 74, 155, .20));
}
@media (min-width: 960px) {
  .hero-device-img {
    max-width: 340px;
  }
}

/* Screenshot placeholder generico */
.screenshot-slot {
  width: 100%;
  background: var(--surface);
  border: 2px dashed rgba(30,95,168,.35);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  padding: 32px 16px;
  color: var(--text3);
  font-size: 13px; font-weight: 700;
  text-align: center;
  transition: border-color .2s;
  min-height: 200px;
}
.screenshot-slot:hover { border-color: var(--primary); }
.screenshot-slot svg {
  width: 36px; height: 36px;
  color: var(--text3);
  opacity: .5;
}
.screenshot-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
}

/* ============================================================
   SEZIONI GENERALI
   ============================================================ */
.section {
  padding: clamp(60px, 10vw, 110px) clamp(16px, 4vw, 48px);
  overflow-x: clip; /* isola overflow laterale senza influire su position:fixed */
}
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text2);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 500;
}
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* Sfondo alternativo per sezioni */
.section--alt { background: var(--surface); }
.section--dark {
  background: var(--primary-strong);
  color: #fff;
}
.section--dark .section-label { color: var(--accent-warm); }
.section--dark .section-title { color: #fff; }
.section--dark .section-sub { color: rgba(255,255,255,.7); }

/* ============================================================
   INTRO / ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.about-stat-n {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.about-stat-l {
  font-size: 12px; font-weight: 700;
  color: var(--text2);
  text-transform: uppercase; letter-spacing: .05em;
}
.about-stat:nth-child(1) .about-stat-n { color: var(--primary); }
.about-stat:nth-child(2) .about-stat-n { color: var(--accent); }
.about-stat:nth-child(3) .about-stat-n { color: var(--green); }
.about-stat:nth-child(4) .about-stat-n { color: #7C3AED; }

/* ============================================================
   FEATURE GRID (SERVIZI)
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 540px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--primary));
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--icon-bg, var(--primary-light));
  color: var(--icon-color, var(--primary));
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.feature-name {
  font-weight: 800; font-size: 15px;
  color: var(--text); margin-bottom: 6px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 500;
}

/* Varianti colore carte */
.feature-card--blue   { --card-accent: var(--primary);   --icon-bg: var(--primary-light); --icon-color: var(--primary); }
.feature-card--orange { --card-accent: var(--accent);    --icon-bg: rgba(var(--accent-rgb), .12);   --icon-color: var(--accent); }
.feature-card--warm   { --card-accent: var(--accent-warm); --icon-bg: rgba(245,199,86,.2); --icon-color: #92620A; }
.feature-card--green  { --card-accent: var(--green);     --icon-bg: var(--green-light);   --icon-color: var(--green); }
.feature-card--purple { --card-accent: #7C3AED;          --icon-bg: rgba(124,58,237,.1);  --icon-color: #7C3AED; }
.feature-card--teal   { --card-accent: #0D9488;          --icon-bg: rgba(13,148,136,.1);  --icon-color: #0D9488; }

/* ============================================================
   BADGE STORE (App Store + Google Play)
   ============================================================ */
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  border-radius: 14px;
  min-width: 162px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}
.store-badge:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-badge:active { transform: translateY(0); }

.store-badge__icon {
  width: 30px; height: 30px; flex: 0 0 30px;
  object-fit: contain;
  display: block;
}

/* Rende bianco il logo Apple su sfondo scuro */
.store-badge--apple .store-badge__icon,
.store-badge--apple-light .store-badge__icon {
  filter: brightness(0) invert(1);
}
.store-badge__text {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.store-badge__sub {
  font-size: 10px; font-weight: 600;
  opacity: .75; letter-spacing: .03em;
  text-transform: uppercase;
}
.store-badge__name {
  font-size: 17px; font-weight: 800;
  letter-spacing: -.01em;
}

/* Versione scura (su sfondo bianco — Hero) */
.store-badge--apple {
  background: #1A1A1A;
  color: #ffffff;
}
.store-badge--google {
  background: #1A1A2E;
  color: #ffffff;
}

/* Versione chiara con bordo (su sfondo blu scuro — CTA) */
.store-badges--light .store-badge {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.35);
  box-shadow: none;
}
.store-badges--light .store-badge:hover {
  background: rgba(255,255,255,.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.store-badge--apple-light,
.store-badge--google-light {
  color: #ffffff;
}

/* ============================================================
   GALLERIA SCREENSHOT
   Tutti i PNG contengono già il mockup telefono.
   Struttura piatta: .phones-gallery > .phones-gallery__item > img + span
   ============================================================ */
.phones-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 12px;
  /* contiene i drop-shadow senza sfondare il viewport */
  padding: 0 4px;
}
@media (min-width: 540px) {
  .phones-gallery { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
}
@media (min-width: 900px) {
  .phones-gallery { grid-template-columns: repeat(6, 1fr); gap: 24px 16px; }
}

.phones-gallery__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* impedisce che drop-shadow sfori il contenitore grid */
  overflow: visible;
  cursor: pointer;
}

.phones-gallery__device-img {
  width: 100%;
  height: auto;
  display: block;
  /* drop-shadow leggero: Safari gestisce meglio senza blur enorme */
  filter: drop-shadow(0 8px 20px rgba(14, 74, 155, .18));
  transition: transform var(--transition), filter var(--transition);
}
.phones-gallery__item:hover .phones-gallery__device-img {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 16px 32px rgba(14, 74, 155, .28));
}

.phones-gallery__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-align: center;
  letter-spacing: .01em;
}

/* ============================================================
   SEZIONE COME FUNZIONA (STEPS)
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.step-card {
  text-align: center; padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(30,95,168,.3);
}
.step-title {
  font-weight: 800; font-size: 16px;
  color: var(--text); margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 500;
}
/* Connettore tra step (solo desktop) */
@media (min-width: 640px) {
  .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(26px + 32px);
    right: -16px;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, var(--primary-soft), var(--border));
  }
}

/* ============================================================
   SEZIONE DOPPIA (CITTADINI / ATTIVITÀ)
   ============================================================ */
.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .split-grid { grid-template-columns: 1fr 1fr; }
}
.split-card {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.split-card--citizens {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
}
.split-card--business {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #fff;
}
.split-card-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  opacity: .75; margin-bottom: 10px;
}
.split-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700; margin-bottom: 16px;
}
.split-card-list {
  display: flex; flex-direction: column; gap: 12px;
}
.split-card-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 600;
  opacity: .92;
}
.split-card-item svg {
  width: 18px; height: 18px; flex: 0 0 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  margin-top: 2px; opacity: .85;
}

/* Decorazione blob interna card */
.split-card::before {
  content: "";
  position: absolute; bottom: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}

/* ============================================================
   SEZIONE TERRITORIO (solo testo, senza screenshot)
   ============================================================ */
.territory-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Striscia brand in cima alla card */
.territory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--primary-soft), var(--accent-warm));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.territory-body {
  padding: clamp(36px, 5vw, 56px) clamp(22px, 4vw, 40px);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.territory-body__label {
  margin-bottom: 12px;
}

.territory-body__title {
  margin-bottom: 20px;
  max-width: 28ch;
}

.territory-body__text {
  max-width: 52ch;
  margin-left: 0;
  margin-right: 0;
}

.territory-body__text:not(:last-child) {
  margin-bottom: 18px;
}

/* ============================================================
   SEZIONE B2B — PER LE AZIENDE
   ============================================================ */
.b2b-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
}
@media (min-width: 480px) {
  .b2b-cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 760px) {
  .b2b-cards { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

.b2b-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.b2b-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.b2b-card__icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.b2b-card__icon svg {
  width: 26px; height: 26px;
  /* stroke e fill già come attributi HTML per compatibilità Safari */
  color: var(--primary);
}

.b2b-card__title {
  font-size: 15px; font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.b2b-card__desc {
  font-size: 14px; color: var(--text2);
  line-height: 1.65; font-weight: 500;
}

/* CTA WhatsApp */
.b2b-cta {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.b2b-cta__text {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text);
  font-weight: 700;
  text-align: center;
  max-width: 48ch;
}
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,.5);
}
.btn-whatsapp:active { transform: translateY(0); }

/* ============================================================
   CTA SEZIONE FINALE
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary) 50%, var(--primary-soft) 100%);
  padding: clamp(60px, 10vw, 100px) clamp(16px, 4vw, 48px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 700;
  color: #fff; margin-bottom: 16px;
}
.cta-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-buttons {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  transition: transform var(--transition);
}
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700;
  transition: border-color var(--transition), transform var(--transition);
}
.btn-outline-white:hover { border-color: #fff; transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 40px);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-logo {
  width: 40px; height: 40px; border-radius: 12px;
  box-shadow: var(--shadow-sm); background: #fff;
  padding: 4px;
}
.footer-wordmark.brand-wordmark {
  font-size: 20px;
  color: var(--primary-strong);
}
.footer-wordmark .brand-wordmark__jonio {
  color: var(--primary-strong);
}
.footer-tagline {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 500;
  max-width: 300px;
}
.footer-copy {
  margin-top: 8px;
  font-size: 13px; color: var(--text3); font-weight: 600;
}
.footer-section-title {
  font-size: 12px; font-weight: 800;
  color: var(--text); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 16px;
}
.footer-links {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  font-size: 14px; color: var(--text2);
  transition: color .15s;
  font-weight: 600;
}
.footer-links a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: transform .15s, box-shadow .15s;
}
.footer-social a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.footer-social svg { width: 20px; height: 20px; display: block; }

.footer-bottom {
  max-width: 1120px; margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--text3); font-weight: 600;
}
.footer-bottom a { color: var(--text3); font-weight: 700; }
.footer-bottom a:hover { color: var(--primary); }

/* ============================================================
   ANIMAZIONI SCROLL (Intersection Observer)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal].revealed {
  opacity: 1;
  transform: translate3d(0,0,0);
}
/* Delay per griglia */
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .18s; }
[data-reveal-delay="3"] { transition-delay: .26s; }
[data-reveal-delay="4"] { transition-delay: .34s; }
[data-reveal-delay="5"] { transition-delay: .42s; }
[data-reveal-delay="6"] { transition-delay: .50s; }
[data-reveal-delay="7"] { transition-delay: .58s; }
[data-reveal-delay="8"] { transition-delay: .66s; }

/* Riduzione animazioni per accessibilità */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   LIGHTBOX GALLERIA SCREENSHOT
   ============================================================ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lb[hidden] { display: none; }

/* Sfondo scuro con blur */
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 32, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

/* Contenuto centrale animato */
.lb-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: lb-in .32s cubic-bezier(.22,.61,.36,1) both;
}
.lb-content.lb-fading .lb-img { opacity: 0; }

@keyframes lb-in {
  from { opacity: 0; transform: scale(.9) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* Immagine zoomata */
.lb-img {
  max-height: calc(82vh - 56px);
  max-width: min(340px, 78vw);
  width: auto;
  height: auto;
  border-radius: 32px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 28px 56px rgba(0,0,0,.55));
  transition: opacity .18s ease;
}

/* Titolo sotto l'immagine */
.lb-caption {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
}

/* Pulsante chiudi — in alto a destra */
.lb-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9010;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb-close:hover  { background: rgba(255,255,255,.26); transform: scale(1.1) rotate(90deg); }
.lb-close:active { transform: scale(.95) rotate(90deg); }
.lb-close svg { width: 20px; height: 20px; }

/* Frecce navigazione — sempre visibili su mobile, trasparenti su desktop */
.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9010;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s, opacity .2s, transform .2s;
}
.lb-arrow--prev { left: 12px; }
.lb-arrow--next { right: 12px; }
.lb-arrow:active { transform: translateY(-50%) scale(.93); }
.lb-arrow svg    { width: 22px; height: 22px; }

@media (min-width: 768px) {
  .lb-arrow {
    opacity: .55;
    width: 52px;
    height: 52px;
  }
  .lb-arrow--prev { left: 24px; }
  .lb-arrow--next { right: 24px; }
  .lb:hover .lb-arrow     { opacity: 1; }
  .lb-arrow:hover { background: rgba(255,255,255,.26); }
}

/* Dot indicatori (posizione fissa in basso) */
.lb-dots {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9010;
  display: flex;
  gap: 7px;
  align-items: center;
}
.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.lb-dot.active {
  background: #fff;
  transform: scale(1.5);
}
.lb-dot:hover:not(.active) { background: rgba(255,255,255,.6); }

/* ============================================================
   MODAL — store in uscita (App Store / Google Play)
   ============================================================ */
.store-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.store-modal[hidden] {
  display: none;
}
.store-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 32, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.store-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: #fff;
  color: #1a2a3e;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: store-modal-in 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes store-modal-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.store-modal__title {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #0f172a;
}
.store-modal__text {
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 22px;
  color: #334155;
}
.store-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #1e5fa8 0%, #2563b8 100%);
  box-shadow: 0 4px 14px rgba(30, 95, 168, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-modal__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 95, 168, 0.4);
}
.store-modal__btn:active {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .store-modal__panel {
    animation: none;
  }
  .store-modal__btn {
    transition: none;
  }
}

/* ============================================================
   FIX SAFARI — elemento <picture> e layout flex
   ============================================================ */

/* Safari tratta <picture> come inline per default: lo forziamo a block */
picture {
  display: block;
  line-height: 0; /* elimina spazio vuoto sotto l'immagine (inline gap) */
}

/* Fix hero desktop Safari: <picture> ereditasse max-width da .hero-device-img */
.hero-visual picture {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}
@media (min-width: 960px) {
  .hero-visual picture {
    max-width: 340px;
  }
  /* min-width: 0 previene overflow dei flex children su Safari */
  .hero-content,
  .hero-visual {
    min-width: 0;
  }
}

/* Fix galleria Safari: width esplicito sul <picture> garantisce che l'img si ridimensioni */
.phones-gallery__item picture {
  width: 100%;
}

/* Fix stretching Safari: aspect-ratio esplicito + object-fit previene deformazioni */
.phones-gallery__device-img {
  aspect-ratio: 390 / 844;
  object-fit: contain;
}
.hero-device-img {
  aspect-ratio: 390 / 844;
  object-fit: contain;
}

/* ============================================================
   CLASSI DI UTILITÀ (nessuno stile inline nell'HTML)
   ============================================================ */

/* Paragrafo about con margine inferiore aggiuntivo */
.section-sub--mb {
  margin-bottom: 20px;
}

/* Wrapper griglia screenshot galleria */
.screenshots-gallery-wrap {
  margin-top: 40px;
}

/* Titolo galleria screenshot */
.gallery-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 20px;
  text-align: center;
}

/* ============================================================
   DIVISORE DECORATIVO
   ============================================================ */
.divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--accent-soft), transparent);
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-pill);
}

/* ============================================================
   BADGE "DISPONIBILE"
   ============================================================ */
.avail-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--green-light);
  color: var(--green);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 28px;
  border: 1px solid rgba(5,150,105,.2);
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* ============================================================
   STRIP GRADIENT
   ============================================================ */
.gradient-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-soft), var(--accent-warm), var(--accent));
  border-radius: 0;
}
