/* ============================================================
   VARIABILI
   ============================================================ */
:root {
  --primary:       #1F4E79;
  --primary-dark:  #163A59;
  --primary-mid:   #255D8A;
  --primary-light: #D6E4F5;
  --accent:        #2563EB;
  --accent-light:  #EFF6FF;
  --text:          #0F172A;
  --text-muted:    #64748B;
  --text-light:    #94A3B8;
  --bg:            #F8FAFC;
  --card:          #FFFFFF;
  --border:        #E2E8F0;
  --border-light:  #F1F5F9;
  --green:         #16A34A;
  --green-bg:      #DCFCE7;
  --radius:        12px;
  --radius-lg:     18px;
  --shadow-sm:     0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:        0 4px 16px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
  --shadow-lg:     0 12px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
  --shadow-xl:     0 24px 64px rgba(15,23,42,.16);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }

/* ============================================================
   UTILITY
   ============================================================ */
.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-alt { background: var(--card); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  margin-bottom: 14px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31,78,121,.35);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(31,78,121,.45); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 14px; }
.btn-ghost-white {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.6); color: #fff; }
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover { background: #F0F7FF; color: var(--primary-dark); box-shadow: 0 6px 28px rgba(0,0,0,.2); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.navbar-logo-dot { color: var(--accent); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.navbar-links a {
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all .15s;
}
.navbar-links a:hover { color: var(--primary); background: var(--primary-light); }
.navbar-links .nav-cta { margin-left: 10px; }

.navbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.navbar-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .25s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0D2340 0%, #1A3C6B 40%, #1F4E79 70%, #1a4070 100%);
  padding: 100px 0 90px;
  color: #fff;
}

/* Mesh gradient sfondo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 80% 20%, rgba(37,99,235,.25) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 10% 80%, rgba(14,116,144,.2) 0%, transparent 55%),
    radial-gradient(ellipse 400px 300px at 50% 110%, rgba(124,58,237,.15) 0%, transparent 50%);
  pointer-events: none;
}
/* Pattern puntini sottili */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 18px;
}
.hero-eyebrow-line {
  width: 24px; height: 2px;
  background: #93C5FD;
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin-bottom: 22px;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #60A5FA, #93C5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.78);
  max-width: 500px;
  margin-bottom: 38px;
}

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

.hero-trust {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-trust-norme {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ht-norm {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
}
.hero-trust-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ht-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 6px 14px;
}
.ht-pill-icon { font-size: .95rem; }

/* ── App Mockup ── */
.hero-mockup {
  position: relative;
  z-index: 1;
}
.mockup-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.3) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(20px);
}

.app-window {
  background: #1E293B;
  border-radius: 16px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,.07);
  overflow: hidden;
}
.app-titlebar {
  background: #0F172A;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-dots { display: flex; gap: 6px; }
.app-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.app-dot.red    { background: #FF5F57; }
.app-dot.yellow { background: #FFBD2E; }
.app-dot.green  { background: #28CA41; }
.app-titlebar-name {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  flex: 1;
  text-align: center;
  letter-spacing: .04em;
}

.app-body { display: flex; min-height: 310px; }

.app-sidebar {
  width: 140px;
  background: #0F172A;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 14px 0;
  flex-shrink: 0;
}
.app-sidebar-section {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  padding: 10px 14px 4px;
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  cursor: default;
  transition: all .15s;
  border-radius: 6px;
  margin: 1px 6px;
}
.app-nav-item.active {
  background: rgba(37,99,235,.25);
  color: #93C5FD;
}
.app-nav-item:not(.active):hover {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.75);
}
.app-nav-icon { font-size: .9rem; flex-shrink: 0; }

.app-content { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.app-content-title {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}

.app-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.app-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 10px 10px 8px;
}
.app-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}
.app-stat-num.red    { color: #F87171; }
.app-stat-num.yellow { color: #FBBF24; }
.app-stat-num.green  { color: #4ADE80; }
.app-stat-label { font-size: .62rem; color: rgba(255,255,255,.4); }

.app-table-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 0 8px 6px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.app-th {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.app-rows { display: flex; flex-direction: column; gap: 4px; }
.app-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
  padding: 7px 8px;
}
.app-row-name { font-size: .72rem; color: rgba(255,255,255,.7); font-weight: 500; }
.app-row-sub  { font-size: .62rem; color: rgba(255,255,255,.35); margin-top: 1px; }
.app-row-date { font-size: .68rem; color: rgba(255,255,255,.4); white-space: nowrap; }
.app-chip {
  font-size: .6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.chip-r { background: rgba(248,113,113,.18); color: #FCA5A5; border: 1px solid rgba(248,113,113,.25); }
.chip-y { background: rgba(251,191,36,.15);  color: #FCD34D; border: 1px solid rgba(251,191,36,.22); }
.chip-g { background: rgba(74,222,128,.13);  color: #86EFAC; border: 1px solid rgba(74,222,128,.2);  }

/* ============================================================
   NORME STRIP
   ============================================================ */
.norme-strip {
  background: linear-gradient(90deg, #0D1F33 0%, var(--primary) 50%, #0D1F33 100%);
  padding: 22px 0;
}
.norme-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.norme-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}
.norme-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.norma-badge {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  letter-spacing: .03em;
  transition: all .2s;
}
.norma-badge:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }

/* ============================================================
   PERCHÉ (WHY)
   ============================================================ */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.why-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 28px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .96rem;
  color: var(--text);
}
.check-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Highlights verticali */
.why-highlights {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}
.why-hl-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.why-hl-card:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
  border-color: var(--primary-light);
}
.why-hl-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.why-hl-title {
  font-size: .96rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.why-hl-sub {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   CLIENTI / SETTORI
   ============================================================ */
.clients-section {
  background: var(--card);
  padding: 52px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-inner { text-align: center; }
.clients-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 28px;
}
.clients-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.client-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 9px 18px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all .2s;
}
.client-pill:hover { border-color: var(--primary-light); color: var(--primary); background: var(--primary-light); }
.client-pill-icon { font-size: 1rem; }

/* ============================================================
   MODULI
   ============================================================ */
.modules-header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.modules-header .section-sub { margin: 0 auto; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.module-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  opacity: 0;
  transition: opacity .25s;
}
.module-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.module-card:hover::before { opacity: 1; }

/* Colori per categoria */
.mod-blue   ::before { background: linear-gradient(90deg,#1F4E79,#2563EB); }
.mod-purple .module-icon-wrap { background: linear-gradient(135deg,#7C3AED,#A78BFA); }
.mod-teal   .module-icon-wrap { background: linear-gradient(135deg,#0891B2,#22D3EE); }
.mod-orange .module-icon-wrap { background: linear-gradient(135deg,#EA580C,#FB923C); }
.mod-green  .module-icon-wrap { background: linear-gradient(135deg,#16A34A,#4ADE80); }
.mod-indigo .module-icon-wrap { background: linear-gradient(135deg,#4338CA,#818CF8); }
.mod-red    .module-icon-wrap { background: linear-gradient(135deg,#DC2626,#F87171); }
.mod-amber  .module-icon-wrap { background: linear-gradient(135deg,#D97706,#FCD34D); }
.mod-rose   .module-icon-wrap { background: linear-gradient(135deg,#E11D48,#FDA4AF); }
.mod-cyan   .module-icon-wrap { background: linear-gradient(135deg,#0E7490,#22D3EE); }
.mod-emerald .module-icon-wrap { background: linear-gradient(135deg,#059669,#6EE7B7); }
.mod-pink   .module-icon-wrap { background: linear-gradient(135deg,#DB2777,#F9A8D4); }
.mod-blue   .module-icon-wrap { background: linear-gradient(135deg,#1F4E79,#60A5FA); }

.module-card::before { background: inherit; }
.mod-blue::before    { background: linear-gradient(90deg,#1F4E79,#60A5FA); }
.mod-purple::before  { background: linear-gradient(90deg,#7C3AED,#A78BFA); }
.mod-teal::before    { background: linear-gradient(90deg,#0891B2,#22D3EE); }
.mod-orange::before  { background: linear-gradient(90deg,#EA580C,#FB923C); }
.mod-green::before   { background: linear-gradient(90deg,#16A34A,#4ADE80); }
.mod-indigo::before  { background: linear-gradient(90deg,#4338CA,#818CF8); }
.mod-red::before     { background: linear-gradient(90deg,#DC2626,#F87171); }
.mod-amber::before   { background: linear-gradient(90deg,#D97706,#FCD34D); }
.mod-rose::before    { background: linear-gradient(90deg,#E11D48,#FDA4AF); }
.mod-cyan::before    { background: linear-gradient(90deg,#0E7490,#22D3EE); }
.mod-emerald::before { background: linear-gradient(90deg,#059669,#6EE7B7); }
.mod-pink::before    { background: linear-gradient(90deg,#DB2777,#F9A8D4); }

.module-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.module-card h3 {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.module-card p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Modulo avanzato */
.modules-advanced {
  margin-top: 44px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 60%, #EDE9FE 100%);
  border: 1.5px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.modules-advanced::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), #7C3AED);
}
.adv-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: linear-gradient(90deg,var(--accent),#7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.modules-advanced h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.modules-advanced > p { color: var(--text-muted); margin-bottom: 22px; }
.advanced-modules-row { display: flex; gap: 14px; flex-wrap: wrap; }
.adv-module {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.adv-module:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.adv-module-icon { font-size: 1.15rem; }

/* ============================================================
   CRUSCOTTO SCADENZE
   ============================================================ */
.scad-section {
  background: linear-gradient(135deg, #0D2340 0%, #1A3C6B 50%, #1F4E79 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.scad-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.scad-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.scad-text .badge { background: rgba(255,255,255,.1); color: #93C5FD; }
.scad-text h2 {
  font-size: clamp(1.6rem,3vw,2.15rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
  line-height: 1.25;
}
.scad-text p { color: rgba(255,255,255,.75); line-height: 1.75; margin-bottom: 14px; }
.scad-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 24px; }
.scad-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: rgba(255,255,255,.82);
}
.scad-feat-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(147,197,253,.2);
  color: #93C5FD;
  font-size: .7rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px; font-weight: 800;
}

.scad-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(12px);
}
.scad-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.scad-panel-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.scad-panel-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(248,113,113,.2);
  color: #FCA5A5;
  border: 1px solid rgba(248,113,113,.3);
  letter-spacing: .04em;
}

.scad-rows { display: flex; flex-direction: column; gap: 6px; }
.scad-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 10px 14px;
}
.scad-row-icon { font-size: 1rem; flex-shrink: 0; }
.scad-row-info { flex: 1; min-width: 0; }
.scad-row-name { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scad-row-sub  { font-size: .7rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.scad-chip {
  font-size: .62rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .04em; flex-shrink: 0;
  white-space: nowrap;
}
.chip-r { background: rgba(248,113,113,.2); color: #FCA5A5; border: 1px solid rgba(248,113,113,.3); }
.chip-y { background: rgba(251,191,36,.15);  color: #FCD34D; border: 1px solid rgba(251,191,36,.22); }
.chip-g { background: rgba(74,222,128,.13);  color: #86EFAC; border: 1px solid rgba(74,222,128,.2);  }

/* ============================================================
   COME FUNZIONA
   ============================================================ */
.steps-header { text-align: center; margin-bottom: 64px; }
.steps-header .section-sub { margin: 8px auto 0; }

.steps-timeline { position: relative; max-width: 720px; margin: 0 auto; }
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--border));
}
.step-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}
.step-item:last-child { margin-bottom: 0; }
.step-num-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg), 0 4px 16px rgba(31,78,121,.3);
}
.step-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  flex: 1;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.step-content:hover { box-shadow: var(--shadow); transform: translateX(4px); }
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step-content p  { font-size: .87rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testi-section { background: var(--bg); }
.testi-header { text-align: center; margin-bottom: 52px; }
.testi-header .section-sub { margin: 8px auto 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all .25s;
  position: relative;
}
.testi-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.testi-quote {
  font-size: 2rem;
  color: var(--primary-light);
  line-height: 1;
  font-family: Georgia, serif;
}
.testi-text {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testi-name { font-size: .87rem; font-weight: 700; color: var(--text); }
.testi-role { font-size: .77rem; color: var(--text-muted); }
.testi-stars { display: flex; gap: 2px; margin-bottom: 4px; }
.star { color: #F59E0B; font-size: .85rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #255D8A 100%);
  padding: 72px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 400px at center, rgba(37,99,235,.3), transparent 65%);
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.6rem,3.5vw,2.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.cta-banner p {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-banner-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}
.contact-left h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; line-height: 1.25; }
.contact-left p  { color: var(--text-muted); line-height: 1.75; margin-bottom: 30px; }

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: all .2s;
}
.contact-info-item:hover { border-color: var(--primary-light); background: var(--primary-light); }
.ci-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.ci-text { font-size: .92rem; font-weight: 500; color: var(--text); }
.ci-label { font-size: .75rem; color: var(--text-muted); }

/* Form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text); letter-spacing: .01em; }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: var(--card);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit { width: 100%; padding: 14px; font-size: 1rem; border-radius: 10px; margin-top: 4px; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 24px;
}
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.form-success h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.form-success p  { color: var(--text-muted); font-size: .92rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060F1C;
  color: rgba(255,255,255,.5);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand {}
.footer-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.footer-logo span { color: #60A5FA; }
.footer-tagline { font-size: .87rem; line-height: 1.65; max-width: 220px; }
.footer-norme { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.f-norma-tag {
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.08);
}

.footer-col-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a {
  color: rgba(255,255,255,.45);
  font-size: .87rem;
  transition: color .15s;
}
.footer-col-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: .82rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  transition: color .15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ============================================================
   ANIMAZIONI
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-inner    { grid-template-columns: 1fr; }
  .hero-mockup   { display: none; }
  .why-layout    { grid-template-columns: 1fr; }
  .modules-grid  { grid-template-columns: 1fr 1fr; }
  .scad-inner    { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 60px 0 50px; }
  .scad-section { padding: 56px 0; }
  .cta-banner { padding: 52px 0; }
  .clients-section { padding: 36px 0; }
  .modules-grid { grid-template-columns: 1fr; }
  .testi-grid   { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .norme-inner  { justify-content: center; text-align: center; }
  .norme-label  { border-right: none; padding-right: 0; }
  .section-sub { margin-bottom: 36px; }
  .steps-header { margin-bottom: 44px; }
  .testi-header { margin-bottom: 36px; }
  .modules-header { margin-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-lg { justify-content: center; }
  .contact-form { padding: 24px 20px; }
  .modules-advanced { padding: 24px 20px; }
  .step-item { margin-bottom: 28px; }

  .navbar-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 28px 24px;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  .navbar-links.open { display: flex; }
  .navbar-links .nav-cta { margin-left: 0; margin-top: 8px; display: block; text-align: center; }
  .navbar-burger { display: flex; }
  .navbar { position: relative; }
}


/* ============================================================
   REVIEW FINALE — raffinamenti UI
   ============================================================ */

/* Scrollbar sottile */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* Selezione testo brandizzata */
::selection { background: var(--primary-light); color: var(--primary-dark); }

/* Focus accessibile */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Bordo hover sottile sulle card moduli */
.module-card:hover { border-color: rgba(31,78,121,.12); }

/* Step timeline — line più visibile */
.steps-timeline::before {
  background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-light) 60%, transparent 100%);
}

/* Testimonials — quota più grande e colorata */
.testi-quote {
  font-size: 2.8rem;
  line-height: .8;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Clients pill hover */
.client-pill { cursor: default; }

/* Norme strip — badge hover più fluido */
.norma-badge { cursor: default; }

/* Hero — eyebrow line animata */
.hero-eyebrow-line {
  transition: width .4s ease;
}
.hero-text:hover .hero-eyebrow-line { width: 36px; }

/* Moduli advanced — box shadow coerente */
.adv-module:hover { color: var(--accent); }

/* Padding responsive for why-layout */
@media (max-width: 860px) {
  .why-highlights { padding-top: 0; }
  .hero-trust-pills { flex-direction: column; gap: 8px; }
}

/* Steps responsive */
@media (max-width: 640px) {
  .steps-timeline::before { left: 23px; }
  .step-num-wrap { width: 46px; height: 46px; font-size: 1rem; }
  .step-content { padding: 18px; }
}

/* Contact form smooth */
.contact-form-wrap { position: relative; }

/* CTA banner h2 gradient */
.cta-banner h2 {
  background: linear-gradient(90deg, #fff 0%, #BFDBFE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Norme strip — separatore */
.norme-inner {
  gap: 24px;
}

/* Footer brand tagline */
.footer-tagline {
  margin-bottom: 14px;
}

/* Form success icon ring */
.form-success-icon {
  box-shadow: 0 0 0 8px var(--green-bg);
}

/* Sezione testi alt background leggermente differenziata */
.testi-section { background: var(--bg); }

/* Module card — migliore contrasto testo su hover */
.module-card:hover h3 { color: var(--primary); }

/* Scad panel — scrollabile su mobile */
@media (max-width: 500px) {
  .scad-panel { padding: 18px; }
  .scad-row-name { font-size: .78rem; }
}

/* Extra small screens */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 1.75rem; }
  .scad-section { padding: 44px 0; }
  .cta-banner { padding: 40px 0; }
  .clients-section { padding: 28px 0; }
  .contact-form { padding: 20px 16px; }
  .modules-advanced { padding: 20px 16px; }
  .scad-panel { padding: 18px 14px; }
  .why-hl-card { padding: 14px 14px; }
  .footer { padding: 40px 0 24px; }
}

/* Navbar links gap più stretto su tablet */
@media (max-width: 1024px) and (min-width: 641px) {
  .navbar-links { gap: 2px; }
  .navbar-links a { padding: 7px 10px; }
}
