/* =====================================================================
   Jadis Consulting — Design System & Styles
   Tema: Tech scuro moderno · One-page
   Autore: redesign 2026
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colore — base scura */
  --bg:          #0a0d12;
  --bg-soft:     #0e131b;
  --surface:     #131a24;
  --surface-2:   #18212e;
  --border:      #233042;
  --border-soft: #1b2531;

  /* UI dipendenti dal tema (override in chiaro) */
  --header-bg:   rgba(10,13,18,.72);
  --menu-bg:     rgba(10,13,18,.96);
  --hover-bg:    rgba(255,255,255,.05);

  /* Testo */
  --text:        #e8eef7;
  --text-muted:  #9fb0c3;
  --text-dim:    #6b7c91;

  /* Accenti / brand */
  --accent-1:    #22d3ee;   /* cyan  */
  --accent-2:    #4f7cff;   /* blue  */
  --accent-3:    #7c5cff;   /* violet (prodotto NotaSubito) */
  --accent-ink:  #0a0d12;   /* testo su accento pieno */
  --grad:        linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --grad-soft:   linear-gradient(135deg, rgba(34,211,238,.14), rgba(79,124,255,.14));
  --grad-violet: linear-gradient(135deg, var(--accent-3), var(--accent-1));

  /* Tipografia */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  /* Raggi, ombre, spazi */
  --radius:    14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow:    0 18px 50px -20px rgba(0,0,0,.65);
  --shadow-glow: 0 0 0 1px rgba(79,124,255,.25), 0 24px 60px -24px rgba(79,124,255,.45);
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 48px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }

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

::selection { background: rgba(79,124,255,.35); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-1);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--grad-soft);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-1); box-shadow: 0 0 10px var(--accent-1); }

h2.title { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 18px 0 0; }
.section-head p.lead { color: var(--text-muted); font-size: 1.08rem; margin-top: 16px; }

.text-grad {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: var(--accent-ink); box-shadow: var(--shadow-glow); font-weight: 600; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(79,124,255,.45), 0 30px 70px -22px rgba(79,124,255,.65); }
.btn--ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--accent-1); color: #fff; transform: translateY(-2px); background: rgba(34,211,238,.06); }
.btn--violet { background: var(--grad-violet); color: var(--accent-ink); font-weight: 600; }
.btn--violet:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -22px rgba(124,92,255,.6); }
.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo .mark { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: .02em; }
.logo-sub { font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: .96rem; color: var(--text-muted);
  transition: color .2s, background .2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--hover-bg); }
/* La CTA dentro al menu serve solo nel menu mobile; su desktop c'è quella in .nav-actions */
.nav-links > .btn { display: none; }

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

/* Pulsanti header lingua/tema — stile uniforme (cfr. jeegantt.com) */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); cursor: pointer; font-family: var(--font-display);
  font-weight: 600; font-size: .85rem; line-height: 1;
  transition: color .2s, border-color .2s, background .2s, transform .15s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--accent-1); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1.5px) translateX(1.5px); }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent-2); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Background fx ---------- */
.bg-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(79,124,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79,124,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: -1; pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 150px; padding-bottom: clamp(60px, 9vw, 110px); overflow: hidden; }
.hero .glow-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(34,211,238,.5), transparent 60%); top: -160px; right: -120px; }
.hero .glow-2 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(124,92,255,.45), transparent 60%); top: 120px; left: -160px; }

.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin: 22px 0 0; }
.hero p.sub { color: var(--text-muted); font-size: 1.18rem; margin-top: 22px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-muted);
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.chip svg { width: 15px; height: 15px; color: var(--accent-1); }

/* Hero visual — codice/console astratta */
.hero-visual { position: relative; }
.code-card {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.code-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); }
.code-top i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: #2b3647; }
.code-top i:nth-child(1){ background:#ff5f57; } .code-top i:nth-child(2){ background:#febc2e; } .code-top i:nth-child(3){ background:#28c840; }
.code-top span { margin-left: 8px; font-size: .8rem; color: var(--text-dim); font-family: var(--font-display); }
.code-body { padding: 20px 22px; font-family: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: .9rem; line-height: 1.9; }
.code-body .ln { color: var(--text-dim); }
.code-body .k { color: var(--accent-3); } .code-body .s { color: var(--accent-1); }
.code-body .f { color: var(--accent-2); } .code-body .c { color: var(--text-dim); font-style: italic; }
.hero-visual .pulse {
  position: absolute; right: -14px; bottom: -14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.pulse .ring { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: var(--accent-ink); }
.pulse .ring svg { width: 20px; height: 20px; }
.pulse b { font-family: var(--font-display); font-size: .95rem; } .pulse small { display: block; color: var(--text-dim); font-size: .78rem; }

/* ---------- Marquee / trust strip ---------- */
.strip { border-block: 1px solid var(--border-soft); background: var(--bg-soft); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 60px); padding: 26px 0; }
.strip-inner span { font-family: var(--font-display); color: var(--text-dim); font-size: .98rem; letter-spacing: .04em; }
.strip-inner b { color: var(--text); }

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

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::after { opacity: 1; }

.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent-1); margin-bottom: 20px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.32rem; }
.card p { color: var(--text-muted); margin-top: 12px; font-size: .98rem; }
.card .feat { margin-top: 18px; display: grid; gap: 10px; }
.card .feat li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--text-muted); }
.card .feat li svg { width: 18px; height: 18px; color: var(--accent-1); flex: none; margin-top: 2px; }
.card .more { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-1); font-family: var(--font-display); font-size: .95rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .more svg { transform: translateX(4px); }
.card .tag-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-size: .85rem; color: var(--text-dim); }

/* ---------- NotaSubito product ---------- */
.product {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(124,92,255,.16), transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(34,211,238,.12), transparent 55%),
    var(--bg-soft);
  border-block: 1px solid var(--border-soft);
}
.product-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.product .badge-prod {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  padding: 6px 14px; border-radius: 999px; color: var(--accent-3);
  border: 1px solid rgba(124,92,255,.35); background: rgba(124,92,255,.1);
}
.product h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-top: 20px; }
.product h2 small { display: block; font-size: .42em; color: var(--text-dim); font-weight: 500; letter-spacing: .04em; margin-top: 8px; font-family: var(--font-sans); }
.product .desc { color: var(--text-muted); font-size: 1.1rem; margin-top: 18px; max-width: 520px; }
.prod-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 28px; }
.prod-feats li { display: flex; gap: 12px; align-items: flex-start; }
.prod-feats .pf-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.28); color: var(--accent-3); }
.prod-feats .pf-ico svg { width: 18px; height: 18px; }
.prod-feats b { font-family: var(--font-display); font-weight: 500; font-size: .98rem; }
.prod-feats small { display: block; color: var(--text-dim); font-size: .84rem; }
.prod-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; }

/* Phone mockup */
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone-wrap .glow { width: 360px; height: 360px; background: radial-gradient(circle, rgba(124,92,255,.4), transparent 60%); }
.phone {
  width: 270px; aspect-ratio: 9/19; background: linear-gradient(170deg, var(--surface-2), var(--bg));
  border: 1px solid var(--border); border-radius: 38px; padding: 12px; box-shadow: var(--shadow); position: relative;
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: var(--bg); border-radius: 999px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 28px; background: linear-gradient(180deg, #0c1320, #0a0f17); overflow: hidden; display: flex; flex-direction: column; padding: 38px 16px 16px; }
.ps-head { display: flex; align-items: center; justify-content: space-between; }
.ps-head b { font-family: var(--font-display); font-size: .9rem; }
.ps-head .av { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-violet); }
.ps-scan { margin-top: 14px; border-radius: 14px; border: 1px dashed rgba(124,92,255,.5); background: rgba(124,92,255,.06); padding: 14px; position: relative; overflow: hidden; }
.ps-scan .line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); margin: 7px 0; }
.ps-scan .line.w1 { width: 70%; } .ps-scan .line.w2 { width: 45%; } .ps-scan .line.w3 { width: 85%; }
.ps-scan .beam { position: absolute; left: 0; right: 0; height: 26px; background: linear-gradient(transparent, rgba(34,211,238,.35), transparent); animation: scan 2.6s var(--ease) infinite; }
@keyframes scan { 0%,100% { top: -10%; } 50% { top: 90%; } }
.ps-amount { margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.ps-amount small { color: var(--text-dim); font-size: .72rem; }
.ps-amount b { font-family: var(--font-display); font-size: 1.5rem; background: var(--grad-violet); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.ps-row { display: flex; justify-content: space-between; font-size: .74rem; color: var(--text-dim); margin-top: 8px; }
.ps-btn { margin-top: auto; background: var(--grad-violet); color: var(--accent-ink); text-align: center; font-family: var(--font-display); font-weight: 600; font-size: .85rem; padding: 11px; border-radius: 12px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.step .n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.step h3 { font-size: 1.18rem; margin-top: 14px; }
.step p { color: var(--text-muted); margin-top: 10px; font-size: .94rem; }

/* ---------- Why / valori ---------- */
.value { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.value .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent-1); }
.value .ico svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.12rem; margin-top: 16px; }
.value p { color: var(--text-muted); margin-top: 8px; font-size: .94rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-info .lead { color: var(--text-muted); font-size: 1.08rem; margin-top: 16px; max-width: 440px; }
.info-list { margin-top: 30px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface); border: 1px solid var(--border); color: var(--accent-1); }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list small { color: var(--text-dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.info-list b, .info-list a { font-family: var(--font-display); font-weight: 500; display: block; margin-top: 2px; }
.info-list a:hover { color: var(--accent-1); }

.form { background: linear-gradient(180deg, var(--surface), var(--bg-soft)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .88rem; color: var(--text-muted); margin-bottom: 8px; font-family: var(--font-display); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font: inherit; font-size: .96rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(79,124,255,.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--text-dim); margin-bottom: 20px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent-2); }
.form-note { margin-top: 14px; font-size: .86rem; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #34d399; } .form-note.err { color: #f87171; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-soft); padding-top: clamp(48px, 7vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--text-muted); margin-top: 18px; max-width: 320px; font-size: .96rem; }
.footer-col h4 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-muted); padding: 6px 0; font-size: .96rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent-1); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 26px 0; border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: .88rem; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ps-scan .beam { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .product-grid { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--menu-bg); backdrop-filter: blur(14px); padding: 18px var(--gutter) 28px;
    border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .35s var(--ease);
  }
  .site-header.nav-open .nav-links { display: flex; transform: none; }
  .site-header.nav-open .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .site-header.nav-open .nav-links .btn { display: inline-flex; margin-top: 8px; }
  .grid-3 { grid-template-columns: 1fr; }
  .prod-feats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  /* Header compatto: lascia spazio ai controlli lingua/tema su schermi stretti */
  .nav { gap: 12px; }
  .nav-actions { gap: 6px; }
}

/* =====================================================================
   Estensioni: Moodle, cloud, prodotti, sottopagine
   ===================================================================== */

/* Link di nav della pagina corrente (sottopagine) */
.nav-links a[aria-current="page"] { color: var(--text); background: var(--hover-bg); }

/* Grid a 2 colonne */
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Split copy + contenuto */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }

/* Cloud badges */
.cloud-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cloud-badges .cb {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  font-family: var(--font-display); font-size: .9rem; color: var(--text-muted);
}
.cloud-badges .cb .d { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-1); box-shadow: 0 0 8px var(--accent-1); }

/* Pillar (riga icona + testo) */
.pillar { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: flex; gap: 16px; align-items: flex-start; transition: border-color .3s, transform .3s; }
.pillar:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.pillar + .pillar { margin-top: 16px; }
.pillar .ico { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent-1); }
.pillar .ico svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.12rem; }
.pillar p { color: var(--text-muted); font-size: .93rem; margin-top: 6px; }

/* Badge "in arrivo / nuovo" */
.badge-soon {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  padding: 5px 11px; border-radius: 999px; color: var(--accent-3);
  border: 1px solid rgba(124,92,255,.35); background: rgba(124,92,255,.1);
}
.card .head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card .head-row .ico { margin-bottom: 0; }

/* Hero sottopagine */
.page-hero { position: relative; padding-top: 150px; padding-bottom: clamp(40px, 6vw, 76px); overflow: hidden; }
.page-hero .glow-1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(34,211,238,.4), transparent 60%); top: -160px; right: -120px; }
.page-hero .glow-2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(124,92,255,.4), transparent 60%); top: 80px; left: -160px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 18px; max-width: 16ch; }
.page-hero p.sub { color: var(--text-muted); font-size: 1.15rem; margin-top: 20px; max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--text-dim); font-size: .9rem; }
.breadcrumb a { color: var(--text-dim); } .breadcrumb a:hover { color: var(--accent-1); }

/* CTA band */
.cta-band { background: var(--grad-soft); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cta-band p { color: var(--text-muted); margin: 14px auto 0; max-width: 560px; }
.cta-band .hero-cta { justify-content: center; }

@media (max-width: 980px) {
  .split-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 16px; }
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  max-width: 1040px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px 24px;
}
.cookie-text strong { font-family: var(--font-display); display: block; margin-bottom: 4px; }
.cookie-text p { color: var(--text-muted); font-size: .9rem; margin: 0; }
.cookie-text a { color: var(--accent-1); }
.cookie-actions { display: flex; gap: 12px; flex: none; }
.cookie-actions .btn { padding: 11px 22px; }
@media (max-width: 760px) {
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-actions .btn { flex: 1; }
}

/* ---------- Selettore lingua ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang-switch button {
  border: 0; background: transparent; color: var(--text-muted);
  font-family: var(--font-display); font-size: .82rem; font-weight: 500; line-height: 1;
  padding: 6px 11px; border-radius: 999px; transition: color .2s, background .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active { color: var(--accent-ink); background: var(--grad); }

/* ---------- Pagine legali (prose) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 44px; }
.prose h3 { font-size: 1.14rem; margin-top: 28px; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.75; }
.prose p { margin-top: 14px; }
.prose ul { margin-top: 14px; padding-left: 22px; list-style: disc; }
.prose li { margin-top: 7px; }
.prose a { color: var(--accent-1); }
.prose strong { color: var(--text); }
.prose .updated { color: var(--text-dim); font-size: .9rem; }
.prose .note { font-size: .88rem; color: var(--text-dim); border-left: 3px solid var(--border); padding: 4px 0 4px 16px; margin-top: 22px; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 540px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
.legal-table th { font-family: var(--font-display); color: var(--text); background: var(--surface); font-weight: 500; }
.legal-table td { color: var(--text-muted); }

/* =====================================================================
   Tema CHIARO + toggle
   ===================================================================== */
:root[data-theme="light"] {
  --bg:          #f5f8fc;
  --bg-soft:     #eceff5;
  --surface:     #ffffff;
  --surface-2:   #f3f6fb;
  --border:      #dde4ee;
  --border-soft: #e8edf4;
  --text:        #101a28;
  --text-muted:  #46566b;
  --text-dim:    #6b7a8d;
  --accent-1:    #0892ab;   /* cyan più scuro: contrasto su sfondo chiaro */
  --shadow:      0 16px 40px -24px rgba(20,40,80,.20);
  --shadow-glow: 0 0 0 1px rgba(79,124,255,.18), 0 18px 44px -22px rgba(79,124,255,.30);
  --header-bg:   rgba(255,255,255,.80);
  --menu-bg:     rgba(255,255,255,.97);
  --hover-bg:    rgba(16,26,40,.06);
}
/* glow decorativi più tenui su sfondo chiaro */
:root[data-theme="light"] .glow { opacity: .22; }
:root[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(to right, rgba(79,124,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79,124,255,.07) 1px, transparent 1px);
}
/* il notch del mockup telefono resta scuro (lo schermo è sempre scuro) */
:root[data-theme="light"] .phone::before { background: #0a0f17; }

/* Toggle tema (sole/luna) */
/* .theme-toggle eredita il box da .icon-btn; qui solo lo swap delle icone */
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
