/* ============================================================
   Mental Lab — editorial minimal, energetic sports/business
   ============================================================ */

:root {
  --bg: #f3efe7;
  --bg-2: #ebe6db;
  --paper: #ffffff;
  --ink: #0e0e0e;
  --ink-2: #2a2a2a;
  --muted: #8a8579;
  --line: #1a1a1a;
  --line-soft: rgba(14,14,14,0.12);
  --accent: #ff4a1c;
  --accent-ink: #ffffff;
  --ok: #2f6f3e;

  /* Density — controlled by tweaks */
  --density: 1;
  --pad-section: calc(120px * var(--density));
  --pad-section-x: clamp(20px, 5vw, 80px);
  --gap-lg: calc(48px * var(--density));
  --gap-md: calc(24px * var(--density));
  --gap-sm: calc(12px * var(--density));
  --row-h: calc(72px * var(--density));

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Geist", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- type system ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.serif { font-family: var(--font-display); font-weight: 400; }
.mono  { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; font-size: 11px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.muted { color: var(--muted); }

/* ---------- layout ---------- */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad-section-x); }
.divider { height: 1px; background: var(--line-soft); width: 100%; }
.divider-strong { height: 1px; background: var(--ink); width: 100%; }

section { padding: var(--pad-section) 0; position: relative; }
section + section .shell { border-top: 1px solid var(--line-soft); padding-top: var(--pad-section); }
section + section { padding-top: 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding: 0 var(--pad-section-x);
}
.brand { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; }
.brand-mark {
  display: inline-block; width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  transform: translateY(-1px);
}
.brand-dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 999px;
  background: var(--ink);
  margin: 0 2px 3px;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.01em;
  position: relative;
}
.nav-links a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transition: transform .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta .arrow { font-size: 16px; line-height: 0; }

/* Hamburger (mobile) */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: calc(80px * var(--density)); padding-bottom: calc(60px * var(--density)); }
.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap-md);
  padding-bottom: calc(40px * var(--density));
  align-items: end;
}
.hero-tag { display: flex; gap: 10px; align-items: center; }
.hero-tag .live-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,74,28,0.18);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,74,28,0.0); } }
.hero-headline {
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-headline .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
  font-style: italic;
}
.hero-sub {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap-lg);
  padding-top: calc(40px * var(--density));
  align-items: start;
}
.hero-sub p {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  max-width: 38ch;
  margin: 0;
  text-wrap: pretty;
}
.hero-stats {
  display: flex; gap: var(--gap-md); justify-content: flex-end;
}
.stat {
  display: flex; flex-direction: column; gap: 6px; min-width: 110px;
  border-left: 1px solid var(--line-soft); padding-left: 14px;
}
.stat-num { font-family: var(--font-display); font-size: 44px; line-height: 1; }
.stat-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.hero-ticker {
  display: flex; align-items: center; gap: 32px;
  margin-top: calc(60px * var(--density));
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  overflow: hidden;
  white-space: nowrap;
}
.hero-ticker-inner { display: flex; gap: 32px; animation: marquee 38s linear infinite; }
.hero-ticker span { display: inline-flex; align-items: center; gap: 12px; }
.hero-ticker .sep { width: 4px; height: 4px; background: var(--ink); border-radius: 999px; display: inline-block; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CHAT
   ============================================================ */
.chat-wrap {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  min-height: calc(640px * var(--density));
  box-shadow: 0 1px 0 var(--ink), 14px 14px 0 -1px var(--ink);
}
.chat-side {
  background: var(--ink);
  color: #fff;
  padding: calc(28px * var(--density)) calc(24px * var(--density));
  display: flex; flex-direction: column; gap: 20px;
  border-right: 1px solid var(--ink);
}
.chat-side h3 { font-family: var(--font-display); font-size: 28px; margin: 0; line-height: 1; letter-spacing: -0.01em; }
.chat-side .agent-card {
  border: 1px solid rgba(255,255,255,0.18);
  padding: 14px;
  border-radius: 4px;
}
.agent-row { display: flex; align-items: center; gap: 10px; }
.agent-avatar {
  width: 34px; height: 34px; border-radius: 999px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 18px;
}
.agent-meta { display: flex; flex-direction: column; line-height: 1.15; }
.agent-name { font-size: 13px; }
.agent-role { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); }
.agent-status {
  margin-top: 12px; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.7);
}
.agent-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: #46e07a;
  box-shadow: 0 0 0 3px rgba(70,224,122,0.2);
}

.side-section h4 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin: 0 0 10px;
}
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list button {
  text-align: left;
  background: transparent; border: 0; color: #fff;
  padding: 8px 10px; border-radius: 4px;
  font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .15s;
}
.side-list button:hover { background: rgba(255,255,255,0.06); }
.side-list button.active { background: rgba(255,255,255,0.1); }
.side-list button .pill {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em;
  background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 999px;
}

.chat-main { display: flex; flex-direction: column; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--line-soft);
}
.chat-head-title { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.chat-head-meta { display: flex; gap: 18px; align-items: center; }
.chat-head-meta .kbd {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  border: 1px solid var(--line-soft); padding: 4px 8px; border-radius: 4px; color: var(--muted);
}

.chat-stream {
  flex: 1; overflow-y: auto;
  padding: calc(28px * var(--density)) calc(40px * var(--density));
  display: flex; flex-direction: column; gap: calc(20px * var(--density));
  max-height: calc(540px * var(--density));
}
.msg { display: flex; gap: 16px; max-width: 760px; }
.msg.user { margin-left: auto; flex-direction: row-reverse; }
.msg-avatar {
  width: 32px; height: 32px; border-radius: 999px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 16px;
}
.msg.bot .msg-avatar { background: var(--ink); color: #fff; }
.msg.user .msg-avatar { background: var(--accent); color: #fff; }
.msg-body { display: flex; flex-direction: column; gap: 6px; }
.msg-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.msg.user .msg-name { text-align: right; }
.msg-bubble {
  font-size: 15.5px; line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.msg.user .msg-bubble {
  background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 4px;
  max-width: 520px;
}
.msg.bot .msg-bubble { max-width: 620px; }
.msg.bot .msg-bubble p { margin: 0 0 10px; }
.msg.bot .msg-bubble p:last-child { margin-bottom: 0; }
.msg.bot .msg-bubble strong { color: var(--accent); font-weight: 600; }

.typing { display: inline-flex; gap: 4px; padding: 8px 0; }
.typing span {
  width: 6px; height: 6px; border-radius: 999px; background: var(--ink-2);
  animation: blink 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

.chat-suggest {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 calc(40px * var(--density)) 14px;
}
.chat-suggest button {
  background: transparent;
  border: 1px solid var(--line-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  transition: all .15s;
}
.chat-suggest button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.chat-composer {
  border-top: 1px solid var(--line-soft);
  padding: 14px calc(40px * var(--density));
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2);
}
.chat-composer input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 14px 0;
  outline: none;
  color: var(--ink);
}
.chat-composer input::placeholder { color: var(--muted); }
.send-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  transition: transform .15s;
  flex-shrink: 0;
}
.send-btn:hover { transform: translateX(2px); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   METHOD
   ============================================================ */
.method-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gap-lg);
  padding-bottom: calc(80px * var(--density));
  align-items: end;
}
.method-head h2 {
  font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95; letter-spacing: -0.02em; margin: 0;
}
.method-head h2 em { color: var(--accent); }
.method-head p { font-size: 18px; line-height: 1.55; max-width: 50ch; margin: 0; }

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.method-cell {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: calc(36px * var(--density)) calc(28px * var(--density));
  background: var(--bg);
  min-height: calc(280px * var(--density));
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  transition: background .2s;
}
.method-cell:hover { background: var(--bg-2); }
.method-num {
  font-family: var(--font-display); font-size: 56px; line-height: 1;
  color: var(--accent);
}
.method-cell h3 { font-family: var(--font-display); font-size: 26px; margin: 16px 0 8px; line-height: 1.05; }
.method-cell p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* ============================================================
   PROGRAMS
   ============================================================ */
.programs-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: calc(60px * var(--density));
  gap: var(--gap-lg);
}
.programs-head h2 {
  font-family: var(--font-display); font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95; margin: 0; letter-spacing: -0.02em;
}
.programs-head p { font-size: 16px; max-width: 36ch; color: var(--ink-2); margin: 0; }

.programs-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--ink);
}
.program-row {
  display: grid;
  grid-template-columns: 80px 1.6fr 1.4fr 220px 60px;
  align-items: center;
  gap: var(--gap-md);
  padding: calc(28px * var(--density)) 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background .2s, padding .2s;
  position: relative;
}
.program-row:hover { background: var(--bg-2); padding-left: 16px; padding-right: 16px; }
.program-row:hover .program-arrow { transform: translateX(6px); color: var(--accent); }
.program-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.program-title { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; }
.program-desc { font-size: 14px; color: var(--ink-2); max-width: 42ch; line-height: 1.5; }
.program-meta { display: flex; gap: 14px; }
.program-meta-cell { display: flex; flex-direction: column; gap: 2px; }
.program-meta-cell .v { font-family: var(--font-display); font-size: 20px; line-height: 1; }
.program-meta-cell .l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.program-arrow {
  font-family: var(--font-display); font-size: 36px; text-align: right; transition: transform .25s, color .25s;
}

/* ============================================================
   TWO-COL FEATURE: Athletes / Business
   ============================================================ */
.duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--ink);
}
.duo > div { padding: calc(60px * var(--density)) calc(48px * var(--density)); }
.duo-l { background: var(--bg-2); border-right: 1px solid var(--ink); }
.duo-r { background: var(--ink); color: #fff; }
.duo h3 { font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px); line-height: 1; margin: 0 0 12px; letter-spacing: -0.02em; }
.duo p { font-size: 15.5px; line-height: 1.55; margin: 0; max-width: 38ch; }
.duo-r p { color: rgba(255,255,255,0.75); }
.duo-list { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.duo-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.45;
  list-style: none; padding: 0;
}
.duo-list li::before {
  content: ""; flex-shrink: 0;
  width: 6px; height: 6px; margin-top: 8px;
  border-radius: 999px; background: var(--accent);
}
.duo ul { padding: 0; margin: 0; }
.duo-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  margin-bottom: 24px;
}
.duo-l .duo-tag { background: var(--ink); color: #fff; }
.duo-r .duo-tag { background: var(--accent); color: #fff; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-head {
  display: flex; gap: var(--gap-lg); align-items: end; padding-bottom: calc(60px * var(--density));
}
.testi-head h2 {
  font-family: var(--font-display); font-size: clamp(48px, 6vw, 84px); margin: 0; line-height: 0.95; letter-spacing: -0.02em;
}
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md);
}
.testi {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  padding: calc(32px * var(--density));
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: calc(360px * var(--density));
  border-radius: 4px;
  transition: border-color .2s, transform .2s;
}
.testi:hover { border-color: var(--ink); transform: translateY(-2px); }
.testi-quote {
  font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -0.005em;
  margin: 0 0 20px;
  text-wrap: pretty;
}
.testi-quote::before { content: "\201C"; font-size: 64px; line-height: 0; vertical-align: -28px; color: var(--accent); margin-right: 4px; }
.testi-foot { display: flex; align-items: center; gap: 12px; }
.testi-ph {
  width: 44px; height: 44px; border-radius: 999px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg) 50%, var(--bg-2) 100%);
  border: 1px solid var(--line-soft);
}
.testi-name { font-size: 14px; line-height: 1.2; }
.testi-role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--ink); color: #fff;
  padding: calc(120px * var(--density)) var(--pad-section-x);
  margin-top: calc(60px * var(--density));
  position: relative; overflow: hidden;
}
.cta-inner { max-width: 1100px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.cta h2 {
  font-family: var(--font-display); font-size: clamp(56px, 8vw, 140px);
  line-height: 0.9; letter-spacing: -0.03em; margin: 0 0 32px;
  text-wrap: balance;
}
.cta h2 em { color: var(--accent); font-style: italic; }
.cta p { font-size: 18px; max-width: 50ch; margin: 0 auto 40px; color: rgba(255,255,255,0.7); }
.cta-actions { display: inline-flex; gap: 12px; align-items: center; }
.btn-primary {
  background: var(--accent); color: #fff; border: 0;
  padding: 16px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25);
  padding: 16px 28px; border-radius: 999px;
  font-size: 14px;
}
.btn-ghost:hover { border-color: #fff; }

.cta-bg-text {
  position: absolute; left: 50%; bottom: -40px; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 28vw; line-height: 0.8;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: calc(60px * var(--density)) var(--pad-section-x);
  border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap-lg);
}
footer h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 400; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { font-size: 14px; }
footer a:hover { color: var(--accent); }
.foot-brand .display { font-family: var(--font-display); font-size: 44px; line-height: 0.9; margin-bottom: 14px; letter-spacing: -0.02em; }
.foot-brand p { font-size: 13px; color: var(--muted); max-width: 30ch; margin: 0; }
.foot-bottom {
  max-width: 1440px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ============================================================
   LEAD / RICHIEDI ACCESSO
   ============================================================ */
.lead {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--gap-lg);
  align-items: start;
}
.lead-intro h2 {
  font-family: var(--font-display); font-size: clamp(48px, 6vw, 88px);
  line-height: 0.95; letter-spacing: -0.02em; margin: 0 0 24px;
}
.lead-intro h2 em { color: var(--accent); font-style: italic; }
.lead-intro p { font-size: 18px; line-height: 1.55; max-width: 42ch; margin: 0 0 24px; color: var(--ink-2); }
.lead-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.lead-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.lead-points li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px;
  border-radius: 999px; background: var(--accent);
}

.lead-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: calc(36px * var(--density));
  box-shadow: 0 1px 0 var(--ink), 12px 12px 0 -1px var(--ink);
}
.lead-form .field { display: flex; flex-direction: column; gap: 7px; }
.lead-form .field-full { grid-column: 1 / -1; }
.lead-form label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.lead-form label .opt { text-transform: none; letter-spacing: 0; }
.lead-form input,
.lead-form select,
.lead-form textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 4px;
  padding: 12px 14px; outline: none; width: 100%;
  transition: border-color .15s;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus { border-color: var(--ink); }
.lead-form textarea { resize: vertical; min-height: 72px; }
.lead-actions {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 4px;
}
.lead-actions .btn-primary { border: 0; cursor: pointer; }
.lead-actions .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.lead-status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }
.lead-status.ok { color: var(--ok); }
.lead-status.err { color: var(--accent); }

/* ============================================================
   AUTH (login / admin gate)
   ============================================================ */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card {
  background: var(--paper); border: 1px solid var(--ink); border-radius: 4px;
  padding: 40px; width: 100%; max-width: 420px;
  box-shadow: 0 1px 0 var(--ink), 14px 14px 0 -1px var(--ink);
}
.auth-card .field { display: flex; flex-direction: column; gap: 7px; }
.auth-card label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.auth-card input {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: 4px; padding: 12px 14px; outline: none; width: 100%;
}
.auth-card input:focus { border-color: var(--ink); }
.auth-status { font-family: var(--font-mono); font-size: 11px; margin: 14px 0 0; }
.auth-status.err { color: var(--accent); }
.auth-status.ok { color: var(--ok); }

/* ============================================================
   HUB
   ============================================================ */
.hub-gate { min-height: 60vh; display: grid; place-items: center; }
.hub-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--ink); border-left: 1px solid var(--ink);
  margin-top: 40px;
}
.hub-card {
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
  padding: 28px 24px; min-height: 200px; background: var(--bg);
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
}
.hub-card.active { cursor: pointer; }
.hub-card.active:hover { background: var(--bg-2); }
.hub-card:not(.active) { opacity: 0.6; }
.hub-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hub-ico { font-size: 26px; color: var(--accent); }
.hub-state { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-soft); padding: 3px 8px; border-radius: 999px; }
.hub-state.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.hub-card h3 { font-family: var(--font-display); font-size: 26px; margin: 0; line-height: 1.05; }
.hub-card p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0; flex: 1; }
.hub-go { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* ============================================================
   ADMIN TABLE
   ============================================================ */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.admin-table td.msg { max-width: 280px; color: var(--ink-2); }
.admin-table .tag-on { font-family: var(--font-mono); font-size: 10px; background: var(--ok); color: #fff; padding: 3px 8px; border-radius: 999px; }
.admin-table .tag-new { font-family: var(--font-mono); font-size: 10px; background: var(--bg-2); color: var(--ink); padding: 3px 8px; border-radius: 999px; }
.btn-act { background: var(--accent); color: #fff; border: 0; padding: 8px 14px; border-radius: 999px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.btn-act:hover { transform: translateY(-1px); }
.btn-act:disabled { opacity: 0.5; cursor: default; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .lead { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .hero-sub { grid-template-columns: 1fr; }
  .hero-stats { justify-content: flex-start; flex-wrap: wrap; }
  .chat-wrap { grid-template-columns: 1fr; }
  .chat-side { display: none; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-head { grid-template-columns: 1fr; }
  .programs-head { flex-direction: column; align-items: flex-start; }
  .program-row { grid-template-columns: 40px 1fr 60px; }
  .program-desc, .program-meta { display: none; }
  .duo { grid-template-columns: 1fr; }
  .duo-l { border-right: 0; border-bottom: 1px solid var(--ink); }
  .testi-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
  .nav-inner { position: relative; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 22px;
    background: var(--bg); border-bottom: 1px solid var(--line-soft);
    padding: 22px var(--pad-section-x) 26px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { font-size: 16px; }
}

/* ============================================================
   LEGAL (privacy / termini / cookie)
   ============================================================ */
.legal { max-width: 820px; margin: 0 auto; padding: 56px var(--pad-section-x) 80px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); line-height: 0.95; margin: 0 0 8px; }
.legal .updated { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-family: var(--font-display); font-size: 26px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal .back { display: inline-block; margin-top: 40px; font-family: var(--font-mono); font-size: 12px; }
.legal .note { background: var(--bg-2); border-left: 3px solid var(--accent); padding: 12px 16px; font-size: 13.5px; border-radius: 4px; margin: 18px 0; }

/* consenso form lead */
.lead-consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.lead-consent input { width: auto; margin-top: 3px; flex-shrink: 0; }
.lead-consent a { color: var(--accent); }

/* cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  background: var(--ink); color: #fff; border-radius: 8px;
  padding: 16px 18px; display: flex; gap: 14px; align-items: center; justify-content: space-between;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3); font-size: 13px;
}
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner button { background: var(--accent); color: #fff; border: 0; padding: 9px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; flex-shrink: 0; }
