/* =============================================================================
   Vektra RE — Sito istituzionale
   Design system allineato alla piattaforma Vektra RE (dark premium, accent indigo)
   ============================================================================= */

:root {
  --bg:            #020617;
  --bg-2:          #0a0e21;
  --surface:       #0f172a;
  --surface-2:     #111a33;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text:          #f1f5f9;
  --text-soft:     #cbd5e1;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;

  --accent:        #6366f1;
  --accent-strong: #4f46e5;
  --accent-soft:   #818cf8;
  --violet:        #4D07F1;
  --violet-deep:   #2D048B;
  --glow:          rgba(99, 102, 241, 0.35);

  --amber:         #f59e0b;
  --rose:          #f43f5e;
  --emerald:       #10b981;

  --maxw:          1280px;
  --radius:        16px;
  --radius-sm:     12px;
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ── Accent bar animata in cima ──────────────────────────────────────────── */
.accent-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  background: linear-gradient(90deg,
    transparent 0%, rgba(79,70,229,.2) 10%, #4f46e5 24%, #818cf8 36%,
    #6366f1 48%, rgba(79,70,229,.15) 62%, transparent 80%);
  background-size: 250% 100%;
  animation: bar-snake 14s linear infinite;
}
@keyframes bar-snake { 0% { background-position: 200% 0; } 100% { background-position: -50% 0; } }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
  font-family: inherit;
}
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  box-shadow: 0 2px 20px rgba(99,102,241,.30);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(99,102,241,.45); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--text-soft);
  background: rgba(255,255,255,.04);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(2, 6, 23, 0.86);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand-logo { height: 30px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-soft); border-radius: 2px; transition: all .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 4px; padding: 12px 24px 24px;
  background: rgba(2,6,23,.96); border-bottom: 1px solid var(--border);
}
.mobile-menu a { padding: 12px 4px; color: var(--text-soft); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border: 0; margin-top: 10px; justify-content: center; }
.mobile-menu.open { display: flex; }

/* ── Eyebrow / headings ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 18px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(99,102,241,.10); border: 1px solid rgba(99,102,241,.22);
}
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: #fff; }
.grad {
  background: linear-gradient(120deg, #818cf8 0%, #a5b4fc 40%, #6366f1 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 18%, rgba(79,70,229,.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 85% 30%, rgba(99,102,241,.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 70% 90%, rgba(77,7,241,.10) 0%, transparent 55%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-copy h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 22px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-muted); max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; flex-direction: column; gap: 10px; }
.hero-trust li, .trust-list li, .demo-points li {
  display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-muted);
}
.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Hero visual / orbit ─────────────────────────────────────────────────── */
.hero-visual { display: flex; justify-content: center; }
.orbit-card {
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, rgba(15,23,42,.7) 0%, rgba(10,14,33,.8) 100%);
  border: 1px solid var(--border); border-radius: 24px;
  padding: 18px 18px 22px; backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.orbit { width: 100%; height: auto; }
.orbit-lines path { stroke-dasharray: 6 8; animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.orbit-core rect { filter: drop-shadow(0 8px 24px rgba(99,102,241,.35)); }
.orbit-core-label { fill: var(--text-soft); font-size: 15px; font-weight: 600; font-family: var(--font); }
.orbit-node rect {
  fill: rgba(15,23,42,.85); stroke: var(--border-strong); stroke-width: 1;
}
.orbit-node { animation: floaty 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.orbit-node[data-i="1"] { animation-delay: -1.5s; }
.orbit-node[data-i="2"] { animation-delay: -3s; }
.orbit-node[data-i="3"] { animation-delay: -4.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.orbit-node-title { fill: #fff; font-size: 15px; font-weight: 600; font-family: var(--font); }
.orbit-node-sub { fill: var(--text-dim); font-size: 11px; font-family: var(--font); }
.orbit-caption { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 6px; }

/* ── Stat bar ────────────────────────────────────────────────────────────── */
.statbar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(10,14,33,.4); }
.statbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 22px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-num {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: #fff; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 10px;
  background: linear-gradient(120deg, #fff, #c7d2fe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13.5px; color: var(--text-muted); max-width: 220px; margin: 0 auto; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(10,14,33,.5), rgba(2,6,23,0)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.section-sub { color: var(--text-muted); font-size: 16.5px; }

/* ── Grids ───────────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover { border-color: rgba(99,102,241,.35); transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(99,102,241,.4); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card-ic {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-ic svg { width: 24px; height: 24px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-amber { background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.25); }
.ic-amber svg { stroke: var(--amber); }
.ic-rose { background: rgba(244,63,94,.12); border: 1px solid rgba(244,63,94,.25); }
.ic-rose svg { stroke: var(--rose); }
.ic-indigo { background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.25); }
.ic-indigo svg { stroke: var(--accent-soft); }

/* ── Feature grid ────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.feature:hover { border-color: rgba(99,102,241,.35); transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(99,102,241,.4); }
.feature-ic {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,70,229,.2), rgba(99,102,241,.08));
  border: 1px solid rgba(99,102,241,.25);
}
.feature-ic svg { width: 23px; height: 23px; fill: none; stroke: var(--accent-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
}
.step-n {
  display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent-soft);
  letter-spacing: .1em; margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }
.step::after {
  content: ""; position: absolute; top: 38px; right: -13px; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--accent-soft), transparent);
}
.step:last-child::after { display: none; }

/* ── Actors ──────────────────────────────────────────────────────────────── */
.actor {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .3s, transform .3s;
}
.actor:hover { border-color: rgba(99,102,241,.35); transform: translateY(-3px); }
.actor-ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,.10); border: 1px solid rgba(99,102,241,.25);
}
.actor-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.actor h3 { font-size: 17px; margin-bottom: 8px; }
.actor p { color: var(--text-muted); font-size: 14.5px; }
.actors-note {
  margin-top: 32px; text-align: center; color: var(--text-dim); font-size: 14.5px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}

/* ── Analisi / panels ────────────────────────────────────────────────────── */
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.panel-head h3 { font-size: 17px; }
.panel-tag { font-size: 11.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; }
.panel-foot { margin-top: 22px; font-size: 13.5px; color: var(--text-dim); }

/* barchart */
.barchart { display: flex; align-items: flex-end; gap: 26px; height: 200px; padding: 0 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; max-width: 70px; height: 0; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, rgba(129,140,248,.5), rgba(79,70,229,.2));
  border: 1px solid rgba(129,140,248,.3); position: relative;
  transition: height 1.1s var(--ease);
}
.in-view .bar { height: var(--h); }
.bar-accent { background: linear-gradient(180deg, #818cf8, #4f46e5); border-color: rgba(129,140,248,.6); box-shadow: 0 0 24px rgba(99,102,241,.4); }
.bar-val { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 14px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.bar-x { font-size: 13px; color: var(--text-muted); }

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 18px; }
.tl-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.tl-label { font-size: 13.5px; color: var(--text-soft); }
.tl-track { height: 12px; background: rgba(255,255,255,.05); border-radius: 999px; overflow: hidden; }
.tl-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #818cf8);
  transition: width 1.1s var(--ease);
}
.in-view .tl-fill { width: var(--w); }

/* mini stats */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 28px; }
.mini { text-align: center; padding: 26px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(10,14,33,.4); }
.mini strong { display: block; font-size: 30px; font-weight: 700; color: var(--accent-soft); letter-spacing: -.02em; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.mini span { font-size: 13.5px; color: var(--text-muted); }
.sources { margin-top: 30px; font-size: 12.5px; color: var(--text-dim); text-align: center; max-width: 860px; margin-left: auto; margin-right: auto; line-height: 1.7; }

/* ── Trust section ───────────────────────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.trust-copy h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 16px; }
.trust-list { display: grid; gap: 14px; }
.trust-list li { font-size: 15.5px; color: var(--text-soft); padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }
.trust-list .ic { width: 20px; height: 20px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px 22px;
  transition: border-color .3s;
}
.faq details[open] { border-color: rgba(99,102,241,.3); }
.faq summary {
  cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; font-size: 16px; color: #fff;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--accent-soft); font-weight: 400; transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--text-muted); font-size: 15px; padding: 0 0 20px; }

/* ── Demo / form ─────────────────────────────────────────────────────────── */
.demo-section { background: radial-gradient(ellipse 70% 80% at 30% 40%, rgba(79,70,229,.14), transparent 60%); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.demo-copy h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 16px; }
.demo-points { display: grid; gap: 12px; margin: 26px 0; }
.demo-direct { color: var(--text-muted); font-size: 15px; margin-top: 18px; }
.demo-direct a { color: var(--accent-soft); font-weight: 600; }
.demo-direct a:hover { text-decoration: underline; }

.demo-form-wrap {
  background: rgba(10,14,33,.92); border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 34px; backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.demo-form h3 { font-size: 21px; margin-bottom: 22px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  background: rgba(15,23,42,.7); border: 1px solid var(--border-strong); border-radius: 10px;
  color: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(99,102,241,.6); box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23818cf8'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 80px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-muted); margin: 4px 0 20px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent-strong); flex-shrink: 0; }
.btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: none; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-form.loading .btn-label { opacity: .7; }
.demo-form.loading .btn-spinner { display: inline-block; }
.demo-form.loading button { pointer-events: none; }
.form-msg { margin-top: 16px; font-size: 14px; text-align: center; display: none; padding: 12px; border-radius: 10px; }
.form-msg.show { display: block; }
.form-msg.ok { display: block; color: #6ee7b7; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); }
.form-msg.err { display: block; color: #fca5a5; background: rgba(244,63,94,.1); border: 1px solid rgba(244,63,94,.3); }
.form-legal { margin-top: 14px; font-size: 12px; color: var(--text-dim); text-align: center; line-height: 1.6; }
.form-legal a { color: var(--text-muted); text-decoration: underline; }
.form-legal a:hover { color: var(--text-soft); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-logo { height: 26px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 14.5px; max-width: 320px; }
.footer-nav h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-nav a { display: block; color: var(--text-muted); font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; color: var(--text-dim); font-size: 13.5px; flex-wrap: wrap; gap: 8px; }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
/* Tablet e sotto: nav compatta, hero in colonna (headline prima del visual) */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }
  .hero { padding: 120px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: 2; }
  .orbit-card { max-width: 440px; margin: 0 auto; }
  .lead { max-width: none; }
  .grid-3, .feature-grid, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .statbar-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .analysis-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile: tutto a colonna singola, spaziature e tipografia compatte */
@media (max-width: 680px) {
  html { scroll-padding-top: 74px; }
  .container { padding: 0 20px; }
  .nav { height: 62px; }
  .brand-logo { height: 26px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 102px 0 58px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .grid-3, .feature-grid, .grid-4, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .demo-form-wrap { padding: 22px; }
  .panel { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Smartphone stretti */
@media (max-width: 430px) {
  .container { padding: 0 16px; }
  .statbar-grid, .mini-stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(odd) { border-right: 0; }
  .barchart { gap: 16px; height: 168px; }
  .demo-form-wrap { padding: 18px; }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
