/* =============================================
   SYNTAR DIGITAL — Design System
   ============================================= */


/* =============================================
   1. TEMI — CSS Custom Properties
   ============================================= */

:root,
[data-theme="dark"] {
  --bg:            #050b16;
  --bg-2:          #080f1c;
  --surface:       rgba(255, 255, 255, 0.05);
  --surface-2:     rgba(255, 255, 255, 0.08);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text:          #eef1f8;
  --text-muted:    #8a9bba;
  --text-subtle:   rgba(255, 255, 255, 0.46);
  --accent:        #1e88e5;
  --accent-2:      #00bcd4;
  --accent-soft:   rgba(30, 136, 229, 0.10);
  --accent-border: rgba(30, 136, 229, 0.24);
  --accent-glow:   0 4px 20px rgba(30, 136, 229, 0.24);
  --grad-btn:      linear-gradient(135deg, #1e88e5 0%, #00aeef 60%, #00bcd4 100%);
  --bg-ambience:
    radial-gradient(ellipse 60% 50% at -6% -10%, rgba(30, 136, 229, 0.38) 0%, transparent 52%),
    radial-gradient(ellipse 45% 38% at 108% 110%, rgba(0, 188, 212, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 28% 22% at 92% 4%,  rgba(0, 188, 212, 0.14) 0%, transparent 44%);
  --grid-line:     rgba(255, 255, 255, 0.05);
  --header-bg:     rgba(5, 11, 22, 0.88);
  --header-border: rgba(255, 255, 255, 0.08);
  --menu-bg:       rgba(5, 12, 24, 0.97);
  --card-bg:       rgba(255, 255, 255, 0.045);
  --card-border:   rgba(255, 255, 255, 0.09);
  --input-bg:      rgba(255, 255, 255, 0.04);
  --input-border:  rgba(255, 255, 255, 0.13);
  --shadow:        0 2px 16px rgba(0, 0, 0, 0.30);
  --shadow-lg:     0 6px 36px rgba(0, 0, 0, 0.42);
  --grad-text:     linear-gradient(135deg, #ffffff 0%, #00bcd4 55%, #1e88e5 100%);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg:            #f2f5fb;
  --bg-2:          #ffffff;
  --surface:       rgba(0, 0, 0, 0.04);
  --surface-2:     rgba(0, 0, 0, 0.07);
  --border:        rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text:          #0d1829;
  --text-muted:    #4e607a;
  --text-subtle:   rgba(0, 0, 0, 0.48);
  --accent:        #1252b3;
  --accent-2:      #0097a7;
  --accent-soft:   rgba(18, 82, 179, 0.09);
  --accent-border: rgba(18, 82, 179, 0.22);
  --accent-glow:   0 4px 20px rgba(18, 82, 179, 0.18);
  --grad-btn:      linear-gradient(135deg, #1252b3 0%, #0277bd 60%, #0097a7 100%);
  --bg-ambience:
    radial-gradient(ellipse 60% 50% at -6% -10%, rgba(18, 82, 179, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 45% 38% at 108% 110%, rgba(0, 151, 167, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse 28% 22% at 92% 4%,  rgba(0, 151, 167, 0.06) 0%, transparent 44%);
  --grid-line:     rgba(0, 0, 0, 0.055);
  --header-bg:     rgba(242, 245, 251, 0.92);
  --header-border: rgba(0, 0, 0, 0.09);
  --menu-bg:       rgba(248, 250, 255, 0.98);
  --card-bg:       rgba(255, 255, 255, 0.88);
  --card-border:   rgba(0, 0, 0, 0.08);
  --input-bg:      rgba(255, 255, 255, 0.80);
  --input-border:  rgba(0, 0, 0, 0.14);
  --shadow:        0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg:     0 5px 28px rgba(0, 0, 0, 0.11);
  --grad-text:     linear-gradient(135deg, #0d1829 0%, #1252b3 55%, #0097a7 100%);
  color-scheme: light;
}

[data-theme="midnight"] {
  --bg:            #07070e;
  --bg-2:          #0c0c18;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-2:     rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text:          #d8dcea;
  --text-muted:    #7e8eac;
  --text-subtle:   rgba(255, 255, 255, 0.44);
  --accent:        #6366f1;
  --accent-2:      #a78bfa;
  --accent-soft:   rgba(99, 102, 241, 0.10);
  --accent-border: rgba(99, 102, 241, 0.24);
  --accent-glow:   0 4px 20px rgba(99, 102, 241, 0.24);
  --grad-btn:      linear-gradient(135deg, #6366f1 0%, #7c3aed 55%, #a78bfa 100%);
  --bg-ambience:
    radial-gradient(ellipse 60% 50% at -6% -10%, rgba(99, 102, 241, 0.32) 0%, transparent 52%),
    radial-gradient(ellipse 45% 38% at 108% 110%, rgba(167, 139, 250, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 28% 22% at 92% 4%,  rgba(167, 139, 250, 0.12) 0%, transparent 44%);
  --grid-line:     rgba(255, 255, 255, 0.04);
  --header-bg:     rgba(7, 7, 14, 0.92);
  --header-border: rgba(255, 255, 255, 0.07);
  --menu-bg:       rgba(7, 7, 16, 0.98);
  --card-bg:       rgba(255, 255, 255, 0.04);
  --card-border:   rgba(255, 255, 255, 0.07);
  --input-bg:      rgba(255, 255, 255, 0.04);
  --input-border:  rgba(255, 255, 255, 0.11);
  --shadow:        0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg:     0 8px 44px rgba(0, 0, 0, 0.65);
  --grad-text:     linear-gradient(135deg, #e8eaf6 0%, #a78bfa 55%, #6366f1 100%);
  color-scheme: dark;
}

[data-theme="storm"] {
  --bg:            #0c1826;
  --bg-2:          #101f30;
  --surface:       rgba(255, 255, 255, 0.055);
  --surface-2:     rgba(255, 255, 255, 0.09);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:          #dae4f0;
  --text-muted:    #7e99bd;
  --text-subtle:   rgba(255, 255, 255, 0.44);
  --accent:        #38bdf8;
  --accent-2:      #0ea5e9;
  --accent-soft:   rgba(56, 189, 248, 0.10);
  --accent-border: rgba(56, 189, 248, 0.24);
  --accent-glow:   0 4px 20px rgba(56, 189, 248, 0.22);
  --grad-btn:      linear-gradient(135deg, #0ea5e9 0%, #38bdf8 60%, #67e8f9 100%);
  --bg-ambience:
    radial-gradient(ellipse 60% 50% at -6% -10%, rgba(56, 189, 248, 0.28) 0%, transparent 52%),
    radial-gradient(ellipse 45% 38% at 108% 110%, rgba(14, 165, 233, 0.20) 0%, transparent 50%),
    radial-gradient(ellipse 28% 22% at 92% 4%,  rgba(56, 189, 248, 0.12) 0%, transparent 44%);
  --grid-line:     rgba(255, 255, 255, 0.045);
  --header-bg:     rgba(12, 24, 38, 0.90);
  --header-border: rgba(255, 255, 255, 0.09);
  --menu-bg:       rgba(10, 20, 32, 0.98);
  --card-bg:       rgba(255, 255, 255, 0.05);
  --card-border:   rgba(255, 255, 255, 0.09);
  --input-bg:      rgba(255, 255, 255, 0.04);
  --input-border:  rgba(255, 255, 255, 0.13);
  --shadow:        0 2px 18px rgba(0, 0, 0, 0.34);
  --shadow-lg:     0 6px 38px rgba(0, 0, 0, 0.44);
  --grad-text:     linear-gradient(135deg, #f0f8ff 0%, #67e8f9 55%, #0ea5e9 100%);
  color-scheme: dark;
}

/* Token condivisi */
:root {
  --font:         'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --lh: 1.65;
  --fs-body: clamp(0.9375rem, 0.9rem + 0.18vw, 1rem);
  --fs-h1:   clamp(2.4rem, 1.4rem + 3.0vw, 4.4rem);
  --fs-h2:   clamp(1.5rem, 1.1rem + 1.5vw, 2.6rem);
  --fs-h3:   clamp(1.05rem, 0.98rem + 0.24vw, 1.2rem);
  --max:     1300px;
  --pad-mob: 20px;
  --pad-dsk: 36px;
  --sec-mob: 60px;
  --sec-dsk: 88px;
  --r:  10px;
  --r2: 12px;
  --t:  160ms ease;
  --t2: 260ms ease;
}


/* =============================================
   2. TRANSIZIONE TEMA
   ============================================= */

html.theme-changing *,
html.theme-changing *::before,
html.theme-changing *::after {
  transition:
    background-color 260ms ease,
    border-color 200ms ease,
    color 140ms ease,
    box-shadow 260ms ease !important;
}


/* =============================================
   3. RESET + BASE
   ============================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  --anchor-mob: 80px;
  --anchor-dsk: 88px;
  scroll-padding-top: var(--anchor-mob);
}

section[id] { scroll-margin-top: var(--anchor-mob); }

@media (min-width: 900px) {
  html { scroll-padding-top: var(--anchor-dsk); }
  section[id] { scroll-margin-top: var(--anchor-dsk); }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.2px; font-family: var(--font-display); font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: 1.16; letter-spacing: -0.1px; font-family: var(--font-display); font-weight: 700; }
h3 { font-size: var(--fs-h3); line-height: 1.24; letter-spacing:  0px;   font-family: var(--font-display); font-weight: 600; }
h1, h2, h3 { margin: 0; }

a  { color: inherit; text-decoration: none; }
p  { margin: 0; }
img, svg { display: block; }
ul, ol { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}


/* =============================================
   4. LAYOUT — Container + Grid
   ============================================= */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-mob);
  padding-right: var(--pad-mob);
}

@media (min-width: 900px) {
  .container {
    padding-left: var(--pad-dsk);
    padding-right: var(--pad-dsk);
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.col { grid-column: span 12; }

@media (min-width: 900px) {
  .col-7 { grid-column: span 7; }
  .col-6 { grid-column: span 6; }
  .col-5 { grid-column: span 5; }
  .col-4 { grid-column: span 4; }
}


/* =============================================
   5. BACKGROUND
   ============================================= */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
  min-height: 100vh;
  min-height: 100lvh;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#particle-canvas,
#bg {
  contain: layout style;
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.bg-fallback {
  position: absolute;
  inset: 0;
  background: var(--bg-ambience);
  opacity: 1;
}

.bg-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

@supports (height: 100lvh) {
  .bg { min-height: 100lvh; height: auto; }
  #bg { min-height: 100lvh; }
}


/* =============================================
   6. SKIP LINK
   ============================================= */

.skip-link {
  position: absolute;
  left: 12px; top: 12px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  transform: translateY(-140%);
  transition: transform var(--t);
  z-index: 9999;
  font-size: 14px;
}
.skip-link:focus { transform: translateY(0); outline: none; }


/* =============================================
   7. HEADER + NAV
   ============================================= */

.site-header {
  position: fixed;
  top: 12px;
  left: 0; right: 0;
  z-index: 9000;
  padding: 0 var(--pad-mob);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: var(--r);
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--header-border);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 32px; height: 32px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color var(--t), background var(--t), color var(--t);
}
.nav-toggle:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.nav-toggle:focus-visible { outline: none; border-color: var(--accent); }

.nav-toggle-icon {
  width: 16px; height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 99px;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute; left: 0;
  width: 16px; height: 2px;
  background: currentColor;
  border-radius: 99px;
}
.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after  { top: 5px; }

.nav-menu {
  position: absolute;
  right: var(--pad-mob);
  top: 70px;
  width: min(400px, calc(100vw - (var(--pad-mob) * 2)));
  padding: 8px;
  border-radius: var(--r2);
  border: 1px solid var(--border-strong);
  background: var(--menu-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav-menu.is-open { display: flex; }

.nav-link {
  padding: 9px 12px;
  border-radius: var(--r);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--t), color var(--t);
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link:focus-visible { outline: none; background: var(--surface); color: var(--text); }

@media (min-width: 900px) {
  .site-header { padding: 0 var(--pad-dsk); }
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    width: auto;
    padding: 0;
    border: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .nav-link { padding: 7px 10px; }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    line-height: 1;
    border-radius: 999px;
    font-size: 13.5px;
  }
}


/* =============================================
   8. SEZIONI
   ============================================= */

.section {
  padding-top:    calc(var(--sec-mob) / 2.6);
  padding-bottom: calc(var(--sec-mob) / 2.6);
}

#chi-siamo { padding-top: calc(var(--sec-mob) - 78px); }

@media (min-width: 768px) {
  #chi-siamo { padding-top: calc(var(--sec-dsk) - 88px); }
}

@media (min-width: 900px) {
  .section {
    padding-top:    calc(var(--sec-dsk) / 2.6);
    padding-bottom: calc(var(--sec-dsk) / 2.6);
  }
}

.section:not(.hero) { contain: layout style; }

.section-head {
  margin-bottom: 28px;
  max-width: 780px;
}

.section-head h2::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 14px;
  border-radius: 2px;
  opacity: 0.85;
}

.section-sub {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.72;
}

.section-title { font-size: var(--fs-h2); }


/* =============================================
   9. HERO
   ============================================= */

.hero { padding-top: calc(var(--sec-mob) + 22px); }

@media (min-width: 800px) {
  .hero { padding-top: calc(var(--sec-dsk) + 6px); }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.eyebrow {
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
  width: fit-content;
}

.lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .lead { font-size: 17px; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.microcopy {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-subtle);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-card {
  padding: 0;
  overflow: hidden;
  border-color: var(--border-strong);
}

.panel-body { padding: 24px 26px; }

.panel-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.panel-text {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.72;
}

.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.meta-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.checklist {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.checklist li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.badges { display: none; }


/* =============================================
   10. CARD
   ============================================= */

.card {
  border-radius: var(--r2);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  contain: paint;
  transform: translateZ(0);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
}

.card.subtle {
  background: var(--surface);
  border-color: var(--border);
}

.cards-3,
.cards-5,
.pricing { gap: 14px; }


/* =============================================
   11. LISTE + UTILITY TESTO
   ============================================= */

.muted { color: var(--text-muted); }
.center { text-align: center; }

.bullets {
  margin: 10px 0 0;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 14px;
  display: grid;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.bullets li {
  position: relative;
  padding-left: 16px;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

.feature-list {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  color: var(--text-muted);
  font-size: 14px;
}

.feature-list li {
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.feature-list.compact { gap: 7px; }


/* =============================================
   12. SERVIZI
   ============================================= */

.service-card .icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  margin-bottom: 16px;
  transition: background var(--t), border-color var(--t);
}

.service-card:hover .icon {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.service-card svg { width: 20px; height: 20px; }


/* =============================================
   13. PRICING
   ============================================= */

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.pricing-card .btn,
.pricing-card .btn-full { margin-top: auto; }

.pricing-head { display: grid; gap: 5px; }

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pricing-card.featured {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}


/* =============================================
   14. TIMELINE / PROCESSO
   ============================================= */

.timeline {
  margin: 0; padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.timeline-item { position: relative; }

.timeline-step {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}


/* =============================================
   15. SICUREZZA — SPLIT
   ============================================= */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 22px;
  }
}

.split-left,
.split-right { display: flex; flex-direction: column; }

#sicurezza .btn { margin-top: 22px; align-self: flex-start; }

.security-card .security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

@media (min-width: 900px) {
  .security-card .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.security-pill {
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
}

.pill-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.pill-desc {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.fineprint {
  margin-top: 12px;
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.6;
}


/* =============================================
   16. FAQ
   ============================================= */

.faq { display: grid; gap: 8px; }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 700;
  font-size: 15px;
  outline: none;
  padding: 2px 0;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item .chev {
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--t2), border-color var(--t);
  flex-shrink: 0;
}

.faq-item[open] .chev {
  transform: rotate(225deg);
  border-color: var(--accent);
}

.faq-content {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}


/* =============================================
   17. CONTATTI + FORM
   ============================================= */

.contact-grid { align-items: stretch; }
.contact-card { height: 100%; }

.card-form {
  display: grid;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r2);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
  position: relative;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--t), box-shadow var(--t);
}

input::placeholder,
textarea::placeholder { color: var(--text-subtle); }

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea { resize: vertical; min-height: 110px; }

.honeypot {
  position: absolute; left: -9999px;
  opacity: 0; height: 0; width: 0; overflow: hidden;
}

.form-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 4px;
}

.form-consent input[type="checkbox"] {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 17px; height: 17px; min-width: 17px;
  border: 2px solid var(--input-border);
  border-radius: 4px;
  background: var(--input-bg);
  cursor: pointer;
  position: relative;
  margin: 0; padding: 0;
  vertical-align: middle;
  transition: border-color 0.18s, background 0.18s;
}

.form-consent input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.form-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-actions { margin-top: 6px; display: grid; gap: 8px; }

.form-status { min-height: 20px; font-size: 13px; }
.form-status.error { color: var(--text-muted); }
.form-status.ok    { color: var(--text-muted); }

.contact-card .contact-links {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--t), border-color var(--t), background var(--t);
}

.contact-link:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.contact-label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.contact-value { font-weight: 500; font-size: 13.5px; }


/* =============================================
   18. FOOTER
   ============================================= */

.site-footer {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-premium { align-items: center; gap: 16px; }

.footer-left { display: grid; gap: 4px; }

.footer-brand { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.2px; }

.footer-legal { margin: 0; font-size: 12.5px; color: var(--text-muted); }

.footer-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-mail {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: var(--r);
  transition: background var(--t), color var(--t);
}
.footer-mail:hover { background: var(--surface); color: var(--text); }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  width: 34px; height: 34px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform var(--t), border-color var(--t), color var(--t), background var(--t);
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}
.social-icon:focus-visible { outline: none; border-color: var(--accent); }

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 6px;
  transition: color var(--t);
}
.footer-links a:hover { color: var(--text); }
.footer-links a:focus-visible { outline: none; color: var(--text); }

@media (max-width: 900px) {
  .footer-inner.footer-premium { flex-direction: column; align-items: flex-start; }
  .footer-right { justify-content: flex-start; }
}


/* =============================================
   19. BOTTONI
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t), opacity var(--t);
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-primary {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  box-shadow: var(--accent-glow), 0 2px 8px rgba(0,0,0,0.15);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-outline:hover {
  transform: translateY(-1px);
  background: var(--surface-2);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.btn-full { width: 100%; }

.btn-small {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
}


/* =============================================
   20. THEME SWITCHER
   ============================================= */

.theme-sw {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.theme-sw-btn {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t), border-color var(--t), transform var(--t);
  box-shadow: var(--shadow-lg);
  font-family: inherit;
}
.theme-sw-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: scale(1.06);
}
.theme-sw-btn svg { width: 16px; height: 16px; }
.theme-sw-btn:focus-visible { outline: none; border-color: var(--accent); }

.theme-sw-panel {
  background: var(--menu-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r2);
  padding: 10px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 3px;
  min-width: 148px;
}

.theme-sw-panel.is-open { display: flex; }

.theme-sw-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 2px 8px;
  margin-bottom: 4px;
}

.theme-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--r);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.theme-opt:hover { background: var(--surface); color: var(--text); }

.theme-opt.is-active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.theme-swatch {
  width: 15px; height: 15px;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.theme-swatch-dark     { background: linear-gradient(135deg, #050b16 50%, #1e88e5); }
.theme-swatch-light    { background: linear-gradient(135deg, #f2f5fb 50%, #1252b3); border-color: rgba(0,0,0,0.14); }
.theme-swatch-midnight { background: linear-gradient(135deg, #07070e 50%, #6366f1); }
.theme-swatch-storm    { background: linear-gradient(135deg, #0c1826 50%, #38bdf8); }


/* =============================================
   21. VALIDAZIONE FORM
   ============================================= */

.field-tooltip {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--menu-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r2);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  max-width: 280px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.field-tooltip::before {
  content: "";
  position: absolute;
  top: -6px; left: 20px;
  width: 10px; height: 10px;
  background: var(--menu-bg);
  border-left: 1px solid var(--border-strong);
  border-top: 1px solid var(--border-strong);
  transform: rotate(45deg);
}

.field-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.field-tooltip-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field-tooltip-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-btn);
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-tooltip-icon svg { width: 12px; height: 12px; color: #fff; }

.field-tooltip-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 500;
}

.field-error {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.form-row.is-invalid .field-error,
.form-consent.is-invalid .field-error {
  opacity: 1;
  transform: translateY(0);
}

.form-row.is-invalid input,
.form-row.is-invalid textarea {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-consent.is-invalid label { color: var(--text); }


/* =============================================
   22. ACCESSIBILITÀ
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  html, body, .bg-fallback { transition: none !important; }
  .btn, .card, .nav-link, .contact-link, .social-icon,
  .theme-sw-btn, .theme-opt, .service-card .icon { transition: none !important; }
  .preloader-spinner { animation: none !important; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* =============================================
   23. FALLBACK NO-BLUR
   ============================================= */

body.no-blur .card,
body.no-blur .site-header,
body.no-blur .theme-sw-panel,
body.no-blur .theme-sw-btn,
body.no-blur .site-footer {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* =============================================
   24. FIX iOS / SAFARI
   ============================================= */

@supports (-webkit-touch-callout: none) {
  #bg, #particle-canvas {
    contain: none !important;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .header-inner,
  .nav-menu,
  .theme-sw-panel,
  .theme-sw-btn,
  .site-footer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}


/* =============================================
   25. GRADIENT TEXT UTILITY
   ============================================= */

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* =============================================
   26. HERO — FULL VIEWPORT
   ============================================= */

.hero {
  min-height: 100vh;
  display: flex !important;
  align-items: center;
  padding-top: 100px !important;
  padding-bottom: 64px !important;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  opacity: 0.9;
}

.hero-inner h1 {
  margin-top: 0;
  letter-spacing: -0.3px;
}

.hero-inner .lead {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 18px;
}

.hero-inner .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.hero-inner .microcopy { margin-top: 10px; }


/* =============================================
   27. MESH BLOBS
   ============================================= */

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.mesh-blob-1 {
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  top: -220px;
  left: -160px;
  background: radial-gradient(circle at 40% 40%, var(--accent) 0%, transparent 70%);
  filter: blur(90px);
  opacity: 0.14;
  animation: meshFloat1 18s ease-in-out infinite;
}

.mesh-blob-2 {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  bottom: -140px;
  right: -100px;
  background: radial-gradient(circle at 60% 60%, var(--accent-2) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.11;
  animation: meshFloat2 22s ease-in-out infinite;
}

@keyframes meshFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35%       { transform: translate(28px, -38px) scale(1.04); }
  68%       { transform: translate(-18px, 26px) scale(0.97); }
}

@keyframes meshFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  42%       { transform: translate(-28px, 36px) scale(1.03); }
  74%       { transform: translate(20px, -16px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blob { animation: none !important; }
}


/* =============================================
   28. SECTION BADGE
   ============================================= */

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15px;
  width: fit-content;
  transition: border-color var(--t), background var(--t);
}

.hero-inner .section-badge { margin-bottom: 18px; }
.section-head .section-badge { margin-bottom: 8px; }


/* =============================================
   29. STATS ROW
   ============================================= */

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin-top: 44px;
  padding: 22px 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  max-width: 700px;
  box-shadow: var(--shadow);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 1;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.stat-divider {
  width: 1px;
  height: 38px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .stats-row { padding: 18px 14px; gap: 0; }
  .stat-label { font-size: 10px; }
  .stat-num { font-size: 1.5rem; }
}


/* =============================================
   HERO TRUST STRIP
   ============================================= */

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 36px;
}

.trust-item {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  padding: 4px 16px;
  white-space: nowrap;
}

.trust-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-trust { gap: 2px; }
  .trust-dot  { display: none; }
  .trust-item { padding: 3px 8px; font-size: 12px; }
}


/* =============================================
   30. SEPARATORI SEZIONE
   ============================================= */

.section:not(.hero) {
  border-top: 1px solid var(--border);
}


/* =============================================
   31. RESPONSIVE — FULL HD / 2K
   ============================================= */

@media (min-width: 1440px) {
  :root {
    --max:     1380px;
    --pad-dsk: 44px;
    --sec-dsk: 96px;
  }

  .hero-inner   { max-width: 920px; }
  .stats-row    { max-width: 760px; }
}

@media (min-width: 1920px) {
  :root {
    --max:     1640px;
    --pad-dsk: 52px;
    --sec-dsk: 112px;
  }

  .hero-inner   { max-width: 1080px; }
  .stats-row    { max-width: 900px; }

  h1 { font-size: clamp(4rem, 3rem + 1.8vw, 5.2rem); }
  h2 { font-size: clamp(2.4rem, 1.8rem + 1.2vw, 3.2rem); }

  .mesh-blob-1 {
    width: 900px; height: 900px;
    top: -280px; left: -200px;
    opacity: 0.16;
  }
  .mesh-blob-2 {
    width: 680px; height: 680px;
    bottom: -180px; right: -140px;
    opacity: 0.13;
  }
}

@media (min-width: 2560px) {
  :root {
    --max:     1920px;
    --pad-dsk: 64px;
  }

  .hero-inner   { max-width: 1280px; }
  .stats-row    { max-width: 1060px; }

  h1 { font-size: 5.4rem; }
  h2 { font-size: 3.4rem; }
}


/* =============================================
   32. SCROLLBAR CUSTOM
   ============================================= */

/* Webkit — Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(30, 136, 229, 0.30);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00bcd4;
}

::-webkit-scrollbar-thumb:active {
  background: #1e88e5;
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 136, 229, 0.35) transparent;
}

/* Temi alternativi */
[data-theme="midnight"] { scrollbar-color: rgba(99, 102, 241, 0.35) transparent; }
[data-theme="storm"]    { scrollbar-color: rgba(56, 189, 248, 0.35) transparent; }
[data-theme="light"]    { scrollbar-color: rgba(18, 82, 179, 0.25) transparent; }

[data-theme="midnight"] ::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.30); }
[data-theme="midnight"] ::-webkit-scrollbar-thumb:hover { background: #a78bfa; }
[data-theme="storm"]    ::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.30); }
[data-theme="storm"]    ::-webkit-scrollbar-thumb:hover { background: #38bdf8; }
[data-theme="light"]    ::-webkit-scrollbar-thumb { background: rgba(18, 82, 179, 0.22); }
[data-theme="light"]    ::-webkit-scrollbar-thumb:hover { background: #1252b3; }

/* Larghezza adattiva per risoluzione */
@media (min-width: 1440px) {
  ::-webkit-scrollbar { width: 5px; }
}

@media (min-width: 1920px) {
  ::-webkit-scrollbar { width: 6px; }
}

@media (max-width: 768px) {
  ::-webkit-scrollbar { width: 3px; }
}
