/* =============================================
   NEXUS ECBL — Marketing Site
   Palette: Nexus blu/viola, fondo medio (un filo meno scuro)
   ============================================= */

:root {
  --bg-page: #1a1f30;
  --bg-section: #1e2438;
  --bg-section-alt: #232a40;
  --bg-card: #2a3149;
  --bg-card-hover: #313a56;
  --bg-elevated: #353d5d;
  --border: #3a4262;
  --border-soft: #2f3656;

  --text-primary: #f5f6f8;
  --text-secondary: #b8bdd0;
  --text-muted: #8d93a6;

  --primary: #6366f1;
  --primary-hover: #5558e0;
  --accent: #8b5cf6;
  --accent-light: #a5a8ff;
  --accent-soft: #c4b5fd;

  --success: #10b981;

  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-soft: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.12));

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --max-w: 1180px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.15);
  --shadow: 0 8px 24px rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 60px rgba(99,102,241,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

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

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* =============================================
   NAVBAR
   ============================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 31, 48, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 16px;
  letter-spacing: -0.01em;
}
.logo-bolt {
  width: 36px; height: 36px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(99,102,241,0.4);
  flex-shrink: 0;
}
.logo-text {
  display: flex; flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.logo-tag {
  font-size: 11px;
  color: var(--accent-light);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 1px;
}
.menu {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px;
}
.menu a {
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 500;
}
.menu a:hover { color: var(--text-primary); }
.menu-secondary {
  color: var(--accent-light) !important;
  border-left: 1px solid var(--border);
  padding-left: 28px;
  margin-left: 4px;
}
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--text-primary); border-radius: 2px;
  transition: transform 0.25s;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
  cursor: pointer; border: none;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid rgba(165,168,255,0.4);
}
.btn-ghost:hover {
  border-color: var(--accent-light);
  background: rgba(165,168,255,0.08);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
}
.hero-glow {
  position: absolute; top: -120px; left: 30%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.tag {
  display: inline-block;
  background: rgba(99,102,241,0.14);
  color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(99,102,241,0.3);
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 540px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.hero-meta .dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.05); }
}
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.network-svg {
  width: 100%; max-width: 420px;
  filter: drop-shadow(0 0 40px rgba(139,92,246,0.18));
}
.network-svg .pulse {
  animation: nodePulse 3s ease-in-out infinite;
  transform-origin: 55px 55px;
}
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

/* =============================================
   SAVINGS STRIP — riepilogo numeri d'urto in home
   ============================================= */
.savings-strip {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 40px 0;
}
.savings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.saving-card {
  padding: 8px 28px;
  border-right: 1px solid var(--border-soft);
  text-align: left;
}
.saving-card:last-child { border-right: none; }
.saving-num {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 8px;
}
.saving-lbl {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}
.saving-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =============================================
   SECTION PREVENTIVO — form audit gratuito in home
   ============================================= */
.section-preventivo {
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-section-alt) 100%);
}
.preventivo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: flex-start;
}
.preventivo-text h2 { margin-bottom: 16px; }
.preventivo-text > p { margin-bottom: 36px; }

.prev-steps {
  display: flex; flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.prev-step {
  display: flex; gap: 16px;
  align-items: flex-start;
}
.prev-step-num {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.prev-step h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.prev-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.prev-guarantee {
  display: flex; gap: 12px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  align-items: center;
}
.prev-guarantee svg {
  width: 20px; height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

.preventivo-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.preventivo-form::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 60%);
  pointer-events: none;
}
.preventivo-form > * { position: relative; z-index: 1; }
.form-title-big {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* =============================================
   COMPARE TABLE — vs Agenzie interinali
   ============================================= */
.compare-table {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  align-items: center;
}
.compare-row:last-child { border-bottom: none; }
.compare-row > div:first-child {
  color: var(--text-muted);
  font-weight: 500;
}
.compare-row > div:nth-child(3) {
  color: var(--text-muted);
}
.compare-col-ecbl {
  color: var(--accent-light) !important;
  font-weight: 600;
}
.compare-head {
  background: var(--bg-section);
  font-size: 13px;
}
.compare-head > div:first-child { color: transparent; }
.compare-head .compare-col-ecbl strong { color: #fff; }
.compare-head > div:nth-child(3) {
  color: var(--text-muted);
  font-weight: 500;
}

/* =============================================
   CTA FINAL — banner finale "richiedi audit"
   ============================================= */
.section-cta {
  background: var(--gradient-soft);
  border-top: 1px solid rgba(139,92,246,0.3);
  border-bottom: 1px solid rgba(139,92,246,0.3);
}
.cta-final {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.cta-final h2 { font-size: 34px; margin-bottom: 14px; }
.cta-final p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

@media (max-width: 980px) {
  .savings-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .saving-card { border-right: none; padding: 8px 16px; }
  .preventivo-grid { grid-template-columns: 1fr; gap: 32px; }
  .preventivo-form { padding: 24px; }
  .saving-num { font-size: 32px; }
  .compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 18px;
  }
  .compare-row > div:first-child {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .compare-row > div:nth-child(2),
  .compare-row > div:nth-child(3) {
    font-size: 14px;
    padding: 4px 0;
  }
  .compare-head > div:first-child { display: none; }
  .cta-final h2 { font-size: 24px; }
}

/* =============================================
   KPIS STRIP
   ============================================= */
.kpis {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 36px 0;
}
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.kpi {
  padding: 12px 28px;
  border-right: 1px solid var(--border-soft);
}
.kpi:last-child { border-right: none; }
.kpi-num {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 6px;
}
.kpi-suffix {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0;
}
.kpi-lbl {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-section); }
.eyebrow {
  font-size: 12px;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow.light { color: var(--accent-soft); }
h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 16px;
}
h2.white { color: #fff; }
.section-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* =============================================
   GRIDS
   ============================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.grid-vantaggi {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* =============================================
   CARDS — SERVIZI
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s;
}
.card-hover:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(99,102,241,0.18);
}
.card-ic {
  width: 48px; height: 48px;
  background: var(--gradient-soft);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-light);
}
.card-ic svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 10px;
}
.card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 14px;
}
.bullet {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
}
.bullet li {
  padding: 4px 0 4px 18px;
  position: relative;
}
.bullet li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* =============================================
   SETTORI
   ============================================= */
.settore {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.25s;
  cursor: default;
}
.settore:hover {
  background: var(--bg-card-hover);
  border-color: rgba(139,92,246,0.4);
  transform: translateY(-2px);
}
.settore svg {
  width: 36px; height: 36px;
  margin: 0 auto 14px;
  color: var(--accent-light);
}
.settore h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 600;
}
.settore span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  line-height: 1.4;
}

/* =============================================
   VANTAGGI
   ============================================= */
.vantaggio {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 18px;
  position: relative;
  transition: all 0.25s;
}
.vantaggio:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.vantaggio-num {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.vantaggio h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.vantaggio p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =============================================
   MANIFESTO
   ============================================= */
.manifesto {
  background: var(--gradient-soft);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-xl);
  padding: 60px 56px;
  text-align: center;
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.manifesto-quote {
  position: absolute;
  top: -10px; left: 40px;
  font-size: 120px;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}
.manifesto p {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 24px;
  font-weight: 400;
}
.valori {
  display: flex; justify-content: center; gap: 16px;
  font-size: 13px;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}
.valori .sep { color: var(--accent); opacity: 0.5; }

/* =============================================
   TEAM
   ============================================= */
.team .member {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.25s;
}
.team .member:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.avatar {
  width: 72px; height: 72px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 auto 18px;
  box-shadow: 0 6px 18px rgba(99,102,241,0.4);
}
.member h4 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 600;
}
.member p {
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 500;
}

/* =============================================
   CONTACT HEADER
   ============================================= */
.contact-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.contact-header h2 { margin-bottom: 16px; }
.contact-header .section-lead { margin: 0 auto; }

/* =============================================
   PROCESS — Come funziona
   ============================================= */
.process {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 56px;
}
.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.process-num {
  width: 36px; height: 36px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.process-step h4 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}
.process-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.process-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  opacity: 0.5;
}
.process-arrow svg { width: 24px; height: 24px; }

/* =============================================
   FORM CONTATTI
   ============================================= */
.form-block {
  background: linear-gradient(135deg, var(--bg-section-alt), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  position: relative;
  overflow: hidden;
}
.form-block::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 60%);
  pointer-events: none;
}
.form-left, .form-right { position: relative; z-index: 1; }
.form-title {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 14px;
}
.segs {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px;
}
.seg {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 14px 18px;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex; flex-direction: column; gap: 3px;
}
.seg:hover {
  border-color: var(--accent-light);
  background: rgba(165,168,255,0.05);
}
.seg-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.seg-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.seg.on {
  background: var(--gradient-soft);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
}
.seg.on .seg-title { color: #fff; }
.seg.on .seg-sub { color: var(--accent-soft); }
.contacts {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  margin-top: 8px;
}
.contact-row {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
}
.contact-row:last-child { border-bottom: none; }
.contact-row svg {
  width: 18px; height: 18px;
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-row strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}
.contact-row span {
  color: var(--text-muted);
  font-size: 12px;
}
.form-section-title {
  display: flex;
  flex-direction: column;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.form-section-title[hidden] { display: none; }
.form-section-title span {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.form-section-title small {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid-2 .form-row[hidden] { display: none; }
.form-row {
  margin-bottom: 16px;
}
.form-row[hidden] { display: none; }
.form-row label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-row label[data-label-for][hidden] { display: none; }
.form-row .req {
  color: var(--accent-light);
  font-weight: 700;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}
.form-row input::placeholder, .form-row textarea::placeholder {
  color: var(--text-muted);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
}
.privacy {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0 20px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.privacy input { margin-top: 3px; accent-color: var(--accent); }
.privacy a { color: var(--accent-light); text-decoration: underline; }
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: rgba(16,185,129,0.12);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.3);
}
.form-status.err {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border-color: rgba(239,68,68,0.3);
}

/* =============================================
   AREA RISERVATA PARTNER
   ============================================= */
.reserved {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.reserved-text h2 { margin-bottom: 18px; }
.reserved-text > p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.reserved-list {
  list-style: none;
  margin-bottom: 28px;
}
.reserved-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}
.reserved-list li svg {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  background: rgba(139,92,246,0.15);
  border-radius: 50%;
  padding: 3px;
}
.reserved-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.dashboard-mock {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(99,102,241,0.18);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-soft);
}
.mock-bar i {
  width: 10px; height: 10px;
  background: var(--border);
  border-radius: 50%;
}
.mock-url {
  flex: 1;
  margin-left: 8px;
  background: var(--bg-page);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  color: var(--text-muted);
}
.mock-body { padding: 24px; }
.mock-greet {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.mock-greet strong { color: var(--text-primary); font-weight: 600; }
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.mock-stat {
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.mock-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-light);
}
.mock-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
}
.mock-list-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}
.mock-list {
  background: var(--bg-page);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}
.mock-item {
  display: flex; justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
}
.mock-item:last-child { border-bottom: none; }
.mock-ok { color: var(--success); font-weight: 500; font-size: 12px; }

@media (max-width: 980px) {
  .reserved { grid-template-columns: 1fr; gap: 32px; }
}

/* =============================================
   FAQ — Domande frequenti committenti
   ============================================= */
.faq {
  margin-top: 64px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.faq h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: center;
  margin-bottom: 28px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 0;
  transition: all 0.25s;
}
.faq-item[open] {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  position: relative;
  padding-right: 40px;
  line-height: 1.4;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-light);
  transition: transform 0.25s;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--accent);
}
.faq-item p {
  padding: 0 18px 18px;
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-logo { margin-bottom: 16px; }
.footer h5 {
  font-size: 12px;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer p a { color: var(--text-secondary); transition: color 0.2s; }
.footer p a:hover { color: var(--accent-light); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 32px 0;
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-light); }

/* =============================================
   PAGE HERO (per pagine secondarie)
   ============================================= */
.page-hero {
  padding: 80px 0 60px;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: 10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.12), transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-top: 18px;
  margin-bottom: 18px;
  max-width: 820px;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 740px;
  line-height: 1.6;
}

/* =============================================
   MVV CARDS — Mission Vision Valori
   ============================================= */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mvv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s;
}
.mvv-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.mvv-ic {
  width: 56px; height: 56px;
  background: var(--gradient-soft);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--accent-light);
}
.mvv-ic svg { width: 28px; height: 28px; }
.mvv-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.mvv-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 14px;
}

/* =============================================
   STORY STAT — riepilogo numeri in chi-siamo
   ============================================= */
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.story-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.story-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}
.story-lbl {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.story-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =============================================
   PHASES (modello)
   ============================================= */
.phases {
  display: flex; flex-direction: column;
  gap: 24px;
}
.phase {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  position: relative;
}
.phase-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  display: inline-block;
  line-height: 1;
}
.phase h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.phase p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 15px;
}

/* =============================================
   BULLET GRID — lista vantaggi a colonne
   ============================================= */
.bullet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.bullet-item {
  display: flex; gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.bullet-item svg {
  width: 22px; height: 22px;
  color: var(--success);
  flex-shrink: 0;
  background: rgba(16,185,129,0.15);
  padding: 4px;
  border-radius: 50%;
  margin-top: 2px;
}
.bullet-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.bullet-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =============================================
   SERVICES GRID (servizi.html)
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: all 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.service-ic {
  width: 44px; height: 44px;
  background: var(--gradient-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.service-ic svg { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =============================================
   COST TABLE (vantaggi.html)
   ============================================= */
.cost-table {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
.cost-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
.cost-table th {
  background: var(--bg-section);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-soft);
}
.cost-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-secondary);
}
.cost-table tr:last-child td { border-bottom: none; }
.cost-table tr.total td {
  background: var(--bg-section);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 18px;
  border-top: 2px solid var(--accent);
}
.cost-table .ok { color: var(--success); font-weight: 600; }

/* =============================================
   CALLOUT BOX (vantaggi.html)
   ============================================= */
.callout-box {
  margin-top: 36px;
  background: var(--gradient-soft);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
}
.callout-box h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.callout-box.big {
  padding: 36px;
}
.callout-box.big h3 {
  font-size: 24px;
}
.callout-box p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.big-pct {
  font-size: 1.3em;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* =============================================
   ACCESSORY CARDS (vantaggi.html)
   ============================================= */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.acc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.acc-ic {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  background: var(--gradient-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
}
.acc-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.acc-card h3 small {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}
.acc-card p:nth-of-type(1) {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}
.acc-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* =============================================
   PORTAL — area-riservata.html
   ============================================= */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: flex-start;
}
.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.portal-card h2 { color: #fff; }
.portal-card .form-row { margin-bottom: 16px; }
.portal-notice {
  display: flex; gap: 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.3);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 22px;
  align-items: flex-start;
  line-height: 1.5;
}
.portal-notice svg {
  width: 20px; height: 20px;
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 1px;
}
.portal-info h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
}
.portal-flow {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.portal-flow h4 {
  color: var(--accent-light);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* =============================================
   BOOKING — pagina prenota.html
   ============================================= */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: flex-start;
}
.booking-info h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 18px;
}
.booking-promise {
  display: flex; gap: 14px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin: 28px 0;
  align-items: flex-start;
}
.booking-promise svg {
  width: 24px; height: 24px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}
.booking-promise h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 600;
}
.booking-promise p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.booking-alt {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.booking-alt h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
  font-weight: 600;
}
.booking-alt p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.booking-alt a {
  color: var(--accent-light);
}

.booking-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 32px;
  min-height: 480px;
}
.cal-placeholder {
  text-align: center;
  padding: 40px 20px;
}
.cal-placeholder-ic {
  width: 80px; height: 80px;
  background: var(--gradient-soft);
  border-radius: 20px;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-light);
}
.cal-placeholder-ic svg { width: 40px; height: 40px; }
.cal-placeholder h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
}
.cal-placeholder p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 24px;
}
.cal-fallback-cta {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 980px) {
  .hero { padding: 56px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .page-hero h1 { font-size: 32px; }
  .mvv-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .bullet-grid { grid-template-columns: 1fr; }
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-grid { grid-template-columns: 1fr; gap: 40px; }
  .portal-card { padding: 28px 24px; }
  .booking-grid { grid-template-columns: 1fr; gap: 32px; }
  .booking-calendar { padding: 24px; min-height: auto; }
  .kpis-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .kpi { padding: 12px 20px; border-right: none; }
  .kpi:nth-child(2n) { border-right: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-vantaggi { grid-template-columns: repeat(2, 1fr); }
  .form-block { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .process { grid-template-columns: 1fr; gap: 12px; }
  .process-arrow { transform: rotate(90deg); padding: 4px 0; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .menu { display: none; }
  .menu-toggle { display: flex; }
  h2 { font-size: 28px; }
  .section { padding: 60px 0; }
  .manifesto { padding: 40px 28px; }
  .manifesto p { font-size: 17px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
}

@media (max-width: 540px) {
  .grid-5 { grid-template-columns: 1fr; }
  .grid-vantaggi { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; padding: 20px 20px 0; }
  .hero h1 { font-size: 30px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }
}
