/* =========================================================
   ForMinds — Design System
   ========================================================= */

:root {
  --bg: #0b0b0d;
  --bg-soft: #101013;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-solid: #141418;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --muted: #9494a4;
  --muted-dim: #6e6e7c;
  --green: #2cb67d;
  --green-hi: #3fe89c;
  --purple: #7f5af0;
  --purple-hi: #9b7bff;
  --grad: linear-gradient(120deg, var(--green-hi), var(--purple-hi));

  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background: grid + glows */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 40%, transparent 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 12% -5%, rgba(44, 182, 125, 0.16), transparent 65%),
    radial-gradient(560px 420px at 92% 8%, rgba(127, 90, 240, 0.14), transparent 65%);
}

::selection { background: var(--green); color: #06120c; }

a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }

/* =========================================================
   Scroll progress
   ========================================================= */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--grad); z-index: 200; transition: width 0.1s linear;
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 120;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(11, 11, 13, 0.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo {
  display: flex; align-items: center;
  font-family: var(--display); font-weight: 900; font-size: 1.28rem;
  text-decoration: none; letter-spacing: -0.03em;
}
.logo-mark {
  width: 32px; height: 32px; margin-right: 11px; flex-shrink: 0; display: block;
  filter: drop-shadow(0 0 14px rgba(44, 182, 125, 0.22));
  transition: transform 0.35s var(--ease), filter 0.35s;
}
.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
  filter: drop-shadow(0 0 18px rgba(127, 90, 240, 0.35));
}
footer .logo-mark { width: 30px; height: 30px; }
.logo b { color: var(--green); font-weight: 900; }

.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links > li > a {
  display: block; padding: 9px 14px; border-radius: var(--r-sm);
  color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links > li > a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links > li > a.active { color: var(--text); }
.nav-links > li > a.active::after {
  content: ""; display: block; height: 2px; width: 18px; margin: 5px auto -2px;
  background: var(--green); border-radius: 2px;
}
.nav-links a.cta {
  background: var(--text); color: #0b0b0d; font-weight: 700; padding: 10px 20px;
  margin-left: 8px; border-radius: 999px;
}
.nav-links a.cta:hover { background: var(--green-hi); color: #06120c; }
.nav-links a.cta.active::after { display: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 18px; height: 1.6px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   Typography
   ========================================================= */
h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.9rem, 8vw, 5.6rem); line-height: 0.98; letter-spacing: -0.04em;
}
h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 4.8vw, 3.2rem); line-height: 1.06; letter-spacing: -0.03em;
}
h3 { font-family: var(--display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.01em; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.accent { color: var(--green); }
.accent-alt { color: var(--purple-hi); }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--green); text-transform: uppercase; margin-bottom: 22px;
  padding: 6px 14px; border: 1px solid rgba(44, 182, 125, 0.28); border-radius: 999px;
  background: rgba(44, 182, 125, 0.06);
}
.kicker::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite;
}
.kicker.alt { color: var(--purple-hi); border-color: rgba(127, 90, 240, 0.3); background: rgba(127, 90, 240, 0.07); }
.kicker.alt::before { background: var(--purple-hi); box-shadow: 0 0 10px var(--purple-hi); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 58ch; }
.lead strong { color: var(--text); font-weight: 600; }

.section-intro { color: var(--muted); max-width: 62ch; font-size: 1.04rem; margin-top: 18px; }
.section-intro strong { color: var(--text); font-weight: 600; }

/* =========================================================
   Layout
   ========================================================= */
section { padding: 100px 0; position: relative; }
.section-head { margin-bottom: 52px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }

/* =========================================================
   Buttons
   ========================================================= */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  cursor: pointer; white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--green); color: #06120c; box-shadow: 0 8px 30px rgba(44, 182, 125, 0.28); }
.btn-primary:hover { background: var(--green-hi); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(44, 182, 125, 0.4); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-hi); transform: translateY(-2px); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--mono); font-size: 0.85rem; color: var(--green);
  border-bottom: 1px solid rgba(44, 182, 125, 0.3); padding-bottom: 3px;
  transition: gap 0.25s var(--ease), border-color 0.25s;
}
.btn-link:hover { gap: 14px; border-color: var(--green); }

/* =========================================================
   Cards (with cursor spotlight)
   ========================================================= */
.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; transition: border-color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(44, 182, 125, 0.1), transparent 70%);
  pointer-events: none;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); background: rgba(255, 255, 255, 0.045); }
.card:hover::before { opacity: 1; }
.card.alt::before { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 90, 240, 0.12), transparent 70%); }
.card p { color: var(--muted); font-size: 0.96rem; margin-top: 10px; }
.card p strong { color: var(--text); font-weight: 600; }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(44, 182, 125, 0.12); border: 1px solid rgba(44, 182, 125, 0.22);
  font-family: var(--mono); font-size: 1.05rem; color: var(--green); margin-bottom: 18px;
}
.card.alt .card-icon { background: rgba(127, 90, 240, 0.14); border-color: rgba(127, 90, 240, 0.26); color: var(--purple-hi); }

.badge {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
  background: var(--grad); color: #06120c; font-weight: 700;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: var(--mono); font-size: 0.74rem; color: var(--muted);
  border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.card:hover .chip { color: var(--green); border-color: rgba(44, 182, 125, 0.3); }
.card.alt:hover .chip { color: var(--purple-hi); border-color: rgba(127, 90, 240, 0.32); }

/* =========================================================
   Terminal
   ========================================================= */
.terminal {
  background: rgba(16, 16, 20, 0.85); border: 1px solid var(--line-strong);
  border-radius: var(--r); font-family: var(--mono); font-size: 0.86rem;
  overflow: hidden; backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
}
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar em {
  font-style: normal; margin-left: auto; font-size: 0.72rem; color: var(--muted-dim); letter-spacing: 0.04em;
}
.terminal-body { padding: 22px; line-height: 2; color: var(--muted); min-height: 210px; }
.terminal-body .p { color: var(--green); }
.terminal-body .cmd { color: var(--text); }
.terminal-body .ok { color: var(--green); }
.terminal-body .dim { color: var(--muted-dim); }
.cursor {
  display: inline-block; width: 8px; height: 15px; background: var(--green);
  vertical-align: -2px; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* =========================================================
   Marquee
   ========================================================= */
.marquee-wrap {
  overflow: hidden; padding: 26px 0; position: relative;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span {
  font-family: var(--display); font-weight: 900; font-size: 1.55rem; letter-spacing: 0.02em;
  color: var(--muted-dim); padding: 0 38px; white-space: nowrap;
  transition: color 0.3s;
}
.marquee span:hover { color: var(--text); }
.marquee span::after { content: "◆"; color: var(--green); font-size: 0.5rem; vertical-align: middle; margin-left: 38px; opacity: 0.5; }
@keyframes slide { to { transform: translateX(-50%); } }

.trust-line {
  text-align: center; font-family: var(--mono); font-size: 0.78rem;
  color: var(--muted-dim); letter-spacing: 0.05em; margin-bottom: 4px;
}

/* =========================================================
   Compare (Non facciamo / Facciamo)
   ========================================================= */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border-radius: var(--r); padding: 30px; border: 1px solid var(--line); }
.compare-col.bad { background: rgba(255, 95, 87, 0.035); border-color: rgba(255, 95, 87, 0.18); }
.compare-col.good { background: rgba(44, 182, 125, 0.05); border-color: rgba(44, 182, 125, 0.24); }
.compare-col h3 { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.compare-col.bad h3 { color: #ff8a83; }
.compare-col.good h3 { color: var(--green); }
.compare-col ul { list-style: none; display: grid; gap: 14px; }
.compare-col li { display: flex; gap: 12px; font-size: 0.97rem; color: var(--muted); align-items: flex-start; }
.compare-col li b { font-family: var(--mono); flex-shrink: 0; }
.compare-col.bad li b { color: #ff8a83; }
.compare-col.good li b { color: var(--green); }

/* =========================================================
   Tabs
   ========================================================= */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tab {
  font-family: var(--mono); font-size: 0.84rem; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; transition: all 0.25s var(--ease);
}
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab.active { background: var(--text); color: #0b0b0d; border-color: var(--text); font-weight: 700; }
.tab-panel { display: none; animation: fadeUp 0.45s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.syllabus { display: grid; gap: 2px; margin-top: 26px; }
.syllabus-row {
  display: grid; grid-template-columns: 70px 1fr; gap: 22px; padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.syllabus-row:last-child { border-bottom: none; }
.syllabus-row .mod { font-family: var(--mono); font-size: 0.82rem; color: var(--purple-hi); }
.syllabus-row h4 { font-family: var(--display); font-size: 1.02rem; margin-bottom: 4px; }
.syllabus-row p { color: var(--muted); font-size: 0.93rem; }

/* =========================================================
   Steps
   ========================================================= */
.steps { position: relative; }
.steps::before {
  content: ""; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 1px;
  background: linear-gradient(180deg, var(--green), var(--purple), transparent);
  opacity: 0.4;
}
.step { display: grid; grid-template-columns: 44px 1fr; gap: 26px; padding: 22px 0; position: relative; }
.step .dot {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 0.8rem; color: var(--green); z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step:hover .dot { border-color: var(--green); box-shadow: 0 0 24px rgba(44, 182, 125, 0.3); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.97rem; max-width: 60ch; }

/* =========================================================
   Stats
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat {
  text-align: center; padding: 40px 24px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--panel);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.stat:hover { border-color: rgba(44, 182, 125, 0.3); transform: translateY(-4px); }
.stat .num {
  font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { font-family: var(--mono); color: var(--muted); font-size: 0.82rem; margin-top: 12px; letter-spacing: 0.04em; }

/* =========================================================
   Quote / manifesto
   ========================================================= */
.manifesto {
  position: relative; padding: 44px 0 44px 42px; margin: 44px 0;
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.35;
}
.manifesto::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad); border-radius: 3px;
}

/* =========================================================
   Partner band
   ========================================================= */
.partner-band {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px;
  background:
    radial-gradient(700px 200px at 15% 0%, rgba(127, 90, 240, 0.14), transparent 70%),
    var(--panel);
  display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center;
}
.partner-logo {
  width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(127, 90, 240, 0.12); border: 1px solid rgba(127, 90, 240, 0.3);
  flex-shrink: 0;
}

/* =========================================================
   Accordion / FAQ
   ========================================================= */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 26px 44px 26px 0; position: relative; color: var(--text);
  font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--green); }
.faq-q::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.4rem; color: var(--green); font-weight: 400;
  transition: transform 0.35s var(--ease);
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { color: var(--muted); font-size: 0.98rem; padding-bottom: 26px; max-width: 72ch; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 76px 44px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(44, 182, 125, 0.16), transparent 70%),
    radial-gradient(500px 300px at 50% 100%, rgba(127, 90, 240, 0.14), transparent 70%),
    var(--bg-soft);
}
.cta-band p { color: var(--muted); margin: 18px auto 32px; max-width: 52ch; font-size: 1.06rem; }
.cta-band .btn-row { justify-content: center; }
.cta-note { font-family: var(--mono); font-size: 0.78rem; color: var(--muted-dim); margin-top: 24px; }

/* =========================================================
   Forms
   ========================================================= */
form { display: grid; gap: 22px; }
.field label {
  display: block; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 9px;
}
input, select, textarea {
  width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--text); padding: 15px 17px;
  font-family: var(--body); font-size: 0.97rem; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
input::placeholder, textarea::placeholder { color: var(--muted-dim); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green); background: rgba(44, 182, 125, 0.04);
  box-shadow: 0 0 0 4px rgba(44, 182, 125, 0.1);
}
input.invalid, textarea.invalid, select.invalid { border-color: #ff5f57; box-shadow: 0 0 0 4px rgba(255, 95, 87, 0.1); }
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239494a4' stroke-width='1.6'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 17px center;
}
select option { background: var(--panel-solid); }
textarea { min-height: 150px; resize: vertical; }
.err { color: #ff8a83; font-family: var(--mono); font-size: 0.75rem; margin-top: 7px; display: none; }
.field.error .err { display: block; }

.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.83rem; color: var(--muted); cursor: pointer;
  transition: all 0.25s var(--ease);
}
.choice span:hover { border-color: var(--line-strong); color: var(--text); }
.choice input:checked + span {
  background: rgba(44, 182, 125, 0.12); border-color: var(--green); color: var(--green-hi);
}
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(44, 182, 125, 0.15); }

.check-row { display: flex; gap: 13px; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.check-row input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: var(--green); }
.check-row input.invalid { outline: 2px solid #ff5f57; outline-offset: 2px; box-shadow: none; }
.check-row a { color: var(--green); }

.form-success {
  display: none; text-align: center; padding: 56px 30px;
  border: 1px solid rgba(44, 182, 125, 0.3); border-radius: var(--r);
  background: rgba(44, 182, 125, 0.06);
}
.form-success.show { display: block; animation: fadeUp 0.5s var(--ease); }

.form-error {
  display: none; color: #ff8a83; font-size: 0.9rem; padding: 14px 16px;
  border: 1px solid rgba(255, 95, 87, 0.3); border-radius: var(--r-sm);
  background: rgba(255, 95, 87, 0.07);
}
.form-error.show { display: block; animation: fadeUp 0.35s var(--ease); }

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.form-success .tick {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--green); display: grid; place-items: center; color: #06120c; font-size: 1.6rem;
}

/* =========================================================
   Contact info list
   ========================================================= */
.info-list { display: grid; gap: 2px; }
.info-item {
  display: flex; gap: 18px; align-items: center; padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-child { border-bottom: none; }
.info-item .ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(44, 182, 125, 0.1); border: 1px solid rgba(44, 182, 125, 0.22);
  font-size: 1rem; flex-shrink: 0;
}
.info-item .lbl { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-dim); }
.info-item .val { font-size: 1rem; color: var(--text); text-decoration: none; }
a.val:hover { color: var(--green); }

/* =========================================================
   Pagine legali
   ========================================================= */
.legal h2 {
  font-family: var(--display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.01em; margin: 44px 0 14px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal p { color: var(--muted); margin-bottom: 14px; }
.legal p strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(44, 182, 125, 0.3); }
.legal a:hover { border-color: var(--green); }
.legal ul { list-style: none; margin: 0 0 18px; display: grid; gap: 10px; }
.legal li {
  position: relative; padding-left: 26px; color: var(--muted); font-size: 0.97rem;
}
.legal li::before {
  content: "▸"; position: absolute; left: 4px; color: var(--green); font-size: 0.8rem;
}

/* =========================================================
   Footer
   ========================================================= */
footer { border-top: 1px solid var(--line); padding: 72px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 56px; }
.footer-brand p { color: var(--muted); font-size: 0.93rem; margin-top: 18px; max-width: 34ch; }
footer h4 {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-dim); margin-bottom: 20px;
}
footer ul { list-style: none; display: grid; gap: 12px; }
footer ul a { color: var(--muted); text-decoration: none; font-size: 0.93rem; transition: color 0.2s; }
footer ul a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted-dim);
}

/* =========================================================
   Reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* =========================================================
   Page hero
   ========================================================= */
.hero { padding: 92px 0 64px; }
.hero-lg { padding: 116px 0 84px; }
.hero .lead { margin-top: 26px; }
.hero .btn-row { margin-top: 40px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partner-band { grid-template-columns: 1fr; text-align: left; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch;
    background: rgba(11, 11, 13, 0.98); backdrop-filter: blur(20px);
    padding: 24px 28px 34px; gap: 4px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links > li > a { padding: 15px 6px; font-size: 1.06rem; }
  .nav-links > li > a.active::after { margin: 5px 0 -2px; }
  .nav-links a.cta { margin: 12px 0 0; text-align: center; padding: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero, .hero-lg { padding: 64px 0 48px; }
  .cta-band { padding: 54px 26px; }
  .container { padding: 0 22px; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  h1, h2 { overflow-wrap: break-word; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .syllabus-row { grid-template-columns: 1fr; gap: 8px; }
  .btn { width: 100%; justify-content: center; }
  .marquee span { font-size: 1.2rem; padding: 0 24px; }
  .marquee span::after { margin-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; }
}
