/* =========================================================
   DUALIS — Landing
   Palette dal logo, finitura cromata anodizzata lucida
   ========================================================= */

/* Font ospitati dal sito (nessuna richiesta a Google). Space Grotesk è variabile: un file per tutti i pesi. */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/space-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/space-mono-700-latin.woff2") format("woff2");
}

:root {
  --bg: #0B0F19;
  --bg-2: #10162A;
  --bg-3: #151C33;
  --line: rgba(255, 255, 255, 0.08);
  --text: #EEF0F6;
  --muted: #8A90A6;
  --blue: #2F6BFF;
  --violet: #7C3AED;
  --blue-hi: #A9C2FF;
  --violet-hi: #D3C2FF;

  --chrome: linear-gradient(105deg,
      #3B74FF 0%, #9DB8FF 14%, #F1F5FF 24%, #6E8DFF 36%,
      #7C3AED 56%, #D7C6FF 70%, #8B4CF3 82%, #3B74FF 100%);
  --anodized: linear-gradient(135deg, #4A80FF 0%, #2F6BFF 28%, #5A4CF0 56%, #7C3AED 82%, #6A2FD6 100%);
  --edge: linear-gradient(135deg, rgba(47, 107, 255, 0.55), rgba(255, 255, 255, 0.22) 45%, rgba(124, 58, 237, 0.55));

  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
  --section-pad: clamp(96px, 14vh, 160px);
}

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

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Su smartphone gli elementi che entrano di lato non devono allargare la pagina */
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
html.reduced { scroll-behavior: auto; }
html.is-locked, html.is-locked body,
html.menu-open, html.menu-open body,
html.dialog-open, html.dialog-open body { overflow: hidden; }
/* Traduzione in arrivo: niente lampo di italiano */
html.i18n-pending .nav, html.i18n-pending main, html.i18n-pending .footer { visibility: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
strong { font-weight: 600; color: var(--text); }

::selection { background: rgba(124, 58, 237, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-hi);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Finitura cromata ---------- */

.chrome {
  background: var(--chrome);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: chrome-shift 9s linear infinite;
}
@keyframes chrome-shift {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}
html.reduced .chrome { animation: none; }

/* ---------- Sfondo a candele ---------- */

#candles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(120% 80% at 50% 50%, #000 40%, transparent 100%);
}

/* ---------- Brand (logo) ---------- */

.brand {
  --brand-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--brand-size);
}
.brand .mark { height: 1.75em; width: auto; overflow: visible; }
.brand-word {
  display: inline-flex;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--text);
}
.brand-word span { display: inline-block; }

.mark { overflow: visible; }
.mark .m-wick { stroke: url(#g-blue); stroke-width: 4; stroke-linecap: round; }
.mark .m-body { fill: url(#g-blue); }
.mark .m-arc {
  fill: none;
  stroke: url(#g-violet);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 1 2;
  stroke-dashoffset: 0;
}

/* ---------- Intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
html.intro-running .intro { display: flex; }
.intro-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 40% at 50% 50%, rgba(91, 76, 240, 0.18), transparent 70%),
    var(--bg);
}
.brand--intro {
  position: relative;
  --brand-size: clamp(26px, 6vw, 54px);
  will-change: transform;
}
.intro-hint {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}
html.intro-running .nav .brand { opacity: 0; }

/* ---------- Navigazione ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 15, 25, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--chrome);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Pulsanti ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}
.btn-label { position: relative; z-index: 2; display: inline-block; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); }

.btn--primary {
  background: var(--anodized);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 14px 34px -12px rgba(91, 76, 240, 0.75);
}
.btn--ghost {
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--edge) border-box;
  border: 1px solid transparent;
}
.btn--small { height: 42px; padding: 0 20px; font-size: 14px; }

/* ---------- Testi comuni ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.eyebrow-dot {
  width: 6px; height: 14px;
  border-radius: 2px;
  background: var(--anodized);
  box-shadow: 0 0 12px rgba(47, 107, 255, 0.8);
}

h1, h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; }
h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }

.section { padding-block: var(--section-pad); position: relative; }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-sub { color: var(--muted); max-width: 52ch; font-size: 1.1rem; }

/* ---------- 1 · Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-title { font-size: clamp(2.7rem, 6.6vw, 5.6rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--blue { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.dot--violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  display: grid;
  place-items: center;
}
.emblem-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 38% 50%, rgba(47, 107, 255, 0.55), transparent),
    radial-gradient(closest-side at 64% 50%, rgba(124, 58, 237, 0.55), transparent);
  filter: blur(48px);
  opacity: 0.75;
}
.emblem-wrap {
  position: relative;
  width: 72%;
  aspect-ratio: 86 / 92;
  perspective: 1100px;
}
.emblem {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.emblem-face, .emblem-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.emblem-face { transform: translateZ(1px); filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.35)); }
.emblem-sheen { mix-blend-mode: screen; opacity: 0.85; }
.emblem-sweep { mix-blend-mode: screen; }
.emblem-floor {
  position: absolute;
  left: 22%; right: 22%;
  bottom: 4%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(91, 76, 240, 0.45), transparent);
  filter: blur(10px);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 22px;
  height: 36px;
  margin-left: -11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 2px;
  height: 8px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--blue-hi);
  animation: scroll-hint 1.8s var(--ease-out) infinite;
}
@keyframes scroll-hint {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
html.reduced .scroll-hint span { animation: none; opacity: 1; }

html.motion [data-hero] { opacity: 0; }
html.motion .hero-title .line > span { opacity: 0; }

/* ---------- 2 · Perché DUALIS ---------- */

.manifesto .container { display: grid; gap: clamp(40px, 6vw, 72px); justify-items: center; text-align: center; }
.mf-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 40px);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 6.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.mf-word--left { color: var(--blue-hi); text-shadow: 0 0 40px rgba(47, 107, 255, 0.45); }
.mf-word--right { color: var(--violet-hi); text-shadow: 0 0 40px rgba(124, 58, 237, 0.45); }
.mf-mark { height: 1.25em; width: auto; flex: none; }
.mf-text { max-width: 60ch; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.7; }

/* ---------- Card (bordo cromato) ---------- */

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(21, 28, 51, 0.92), rgba(14, 19, 36, 0.92)) padding-box,
    var(--card-edge, var(--edge)) border-box;
  transform-style: preserve-3d;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* ---------- 3 · Due mondi ---------- */

.worlds-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.worlds-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--blue) 20%, rgba(255, 255, 255, 0.6) 50%, var(--violet) 80%, transparent);
  opacity: 0.6;
}
.world { display: grid; gap: 28px; align-content: start; }
.world-head { display: grid; gap: 14px; }
.world-icon { height: 46px; width: auto; margin-bottom: 6px; }
.world-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.world--trading .world-label { color: var(--blue-hi); }
.world--digital .world-label { color: var(--violet-hi); }
.world-text { color: var(--muted); }
.world-items { display: grid; gap: 14px; }
.world-items .card { padding: 22px 24px; display: grid; gap: 8px; }
.world-items .card p { color: var(--muted); font-size: 15.5px; }
.world--trading { --card-edge: linear-gradient(135deg, rgba(47, 107, 255, 0.7), rgba(255, 255, 255, 0.14) 55%, rgba(47, 107, 255, 0.25)); }
.world--digital { --card-edge: linear-gradient(135deg, rgba(124, 58, 237, 0.7), rgba(255, 255, 255, 0.14) 55%, rgba(124, 58, 237, 0.25)); }
.risk-note {
  font-size: 13px;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--blue);
}

/* ---------- 4 · Chi siamo ---------- */

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.person { padding: 18px; display: grid; gap: 24px; }
.person-body { display: grid; gap: 14px; padding: 0 8px 10px; }
.person-body > p { color: var(--muted); }
.person-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.person--lorenzo .person-role { color: var(--blue-hi); }
.person--riccardo .person-role { color: var(--violet-hi); }
.person-name { font-family: var(--font-mono); font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg);
}
.portrait--blue { background: radial-gradient(80% 90% at 30% 20%, rgba(47, 107, 255, 0.35), transparent 70%), #0D1324; }
.portrait--violet { background: radial-gradient(80% 90% at 70% 20%, rgba(124, 58, 237, 0.35), transparent 70%), #0D1324; }
.portrait-mono {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.portrait-note {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.portrait-icon { position: absolute; right: 16px; top: 16px; height: 34px; width: auto; opacity: 0.9; }
.person--lorenzo .portrait-icon { right: auto; left: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.person-link {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.person-link:hover { color: var(--text); border-color: var(--violet-hi); }

/* ---------- 5 · Metodo ---------- */

.method-steps {
  position: relative;
  max-width: 780px;
  padding-left: 72px;
}
.method-line {
  position: absolute;
  left: 23px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.method-line-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--blue), #9DB8FF 45%, var(--violet));
  box-shadow: 0 0 14px rgba(91, 76, 240, 0.8);
  transform-origin: top;
}
.method-steps ol { display: grid; gap: clamp(56px, 8vw, 88px); }
.step { position: relative; display: grid; gap: 10px; transition: opacity 0.6s var(--ease-out); }
.step-node {
  position: absolute;
  left: -56px;
  top: 2px;
  width: 16px;
  height: 34px;
  border-radius: 5px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.6s;
}
.step-node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: 2px;
  margin-left: -1px;
  background: inherit;
  z-index: -1;
}
.step-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--blue-hi); }
.step h3 { font-family: var(--font-mono); font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; }
.step p { color: var(--muted); max-width: 56ch; }

.step.is-lit .step-node,
html:not(.motion) .step-node {
  background: var(--anodized);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 22px rgba(91, 76, 240, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
html.motion .step { opacity: 0.32; }
html.motion .step.is-lit { opacity: 1; }

/* ---------- 6 · Contatti ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.contact-form { padding: clamp(22px, 3vw, 36px); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(169, 194, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}
.field-error { display: none; font-size: 13px; color: #FF8FA3; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF8FA3; }
.field.is-invalid .field-error { display: block; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--muted); }

.contact-links { display: grid; gap: 12px; }
.contact-link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label arrow" "value arrow";
  align-items: center;
  gap: 2px 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease-out);
}
.contact-link:hover {
  border-color: rgba(169, 194, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(6px);
}
.cl-label { grid-area: label; font-weight: 600; }
.cl-value { grid-area: value; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.cl-arrow { grid-area: arrow; font-size: 20px; color: var(--blue-hi); transition: transform 0.5s var(--ease-out); }
.contact-link:hover .cl-arrow { transform: translateX(4px); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: rgba(11, 15, 25, 0.85); }
.footer .container { display: grid; gap: 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-claim { color: var(--muted); font-size: 14px; text-align: right; }
.disclaimer { font-size: 12.5px; line-height: 1.7; color: var(--muted); max-width: 110ch; }
.disclaimer strong { color: var(--text); }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.footer-links a:hover { color: var(--text); border-color: var(--violet-hi); }

/* ---------- Azioni nav: lingua e menu ---------- */

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch button {
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  transition: color 0.3s, background 0.4s var(--ease-out);
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--anodized);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.5s var(--ease-out), background 0.3s;
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; background: var(--chrome); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
}
.menu[hidden] { display: none; }
.menu-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 40% at 20% 15%, rgba(47, 107, 255, 0.22), transparent 70%),
    radial-gradient(60% 40% at 85% 85%, rgba(124, 58, 237, 0.22), transparent 70%),
    rgba(11, 15, 25, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.menu-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 104px 0 36px;
  overflow-y: auto;
}
.menu-links { display: grid; gap: 6px; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
}
.menu-num { font-size: 12px; letter-spacing: 0.2em; color: var(--blue-hi); font-weight: 400; }
.menu-links li:nth-child(even) .menu-num { color: var(--violet-hi); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ---------- 6 · Quiz ---------- */

.quiz-box {
  max-width: 860px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
}
.quiz-progress {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  margin-bottom: clamp(24px, 4vw, 36px);
}
.quiz-progress-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #9DB8FF 50%, var(--violet));
  box-shadow: 0 0 14px rgba(91, 76, 240, 0.8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
}
.quiz-stage { position: relative; }
.quiz-step { display: grid; gap: 18px; justify-items: start; }
.quiz-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-hi); }
.quiz-q { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.15; }
.quiz-q:focus { outline: none; }
.quiz-options { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.quiz-opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  font: inherit;
  font-size: 16.5px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.35s, background 0.35s, transform 0.5s var(--ease-out);
}
.quiz-opt:hover, .quiz-opt:focus-visible {
  border-color: rgba(169, 194, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(6px);
}
.quiz-opt-key {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font: 700 12px/1 var(--font-mono);
  color: var(--blue-hi);
  border: 1px solid rgba(169, 194, 255, 0.3);
}
.quiz-opt-arrow { color: var(--muted); transition: transform 0.5s var(--ease-out), color 0.3s; }
.quiz-opt:hover .quiz-opt-arrow { color: var(--blue-hi); transform: translateX(4px); }
.quiz-back, .quiz-restart {
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.quiz-back:hover, .quiz-restart:hover { color: var(--text); border-color: var(--violet-hi); }
.quiz-text { color: var(--muted); font-size: 1.08rem; max-width: 58ch; }
.quiz-summary { display: grid; gap: 8px; width: 100%; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.quiz-summary li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 14.5px; }
.quiz-summary span { color: var(--muted); }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.quiz-result--trading .quiz-count { color: var(--blue-hi); }
.quiz-result--digital .quiz-count { color: var(--violet-hi); }
.quiz-result--digital .quiz-q, .quiz-result--both .quiz-q { color: var(--text); }
.quiz-fallback { color: var(--muted); }
.quiz-fallback a { color: var(--text); border-bottom: 1px solid var(--violet-hi); }

/* ---------- 7 · FAQ ---------- */

.faq-wrap { max-width: 860px; }
.faq-tabs {
  position: relative;
  display: none;
  gap: 4px;
  padding: 4px;
  margin-bottom: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  width: max-content;
  max-width: 100%;
}
.faq-wrap.is-tabbed .faq-tabs { display: inline-flex; }
.faq-tabs button {
  position: relative;
  z-index: 1;
  font: 700 13px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: color 0.4s;
}
.faq-tabs button[aria-selected="true"] { color: #fff; }
.faq-tabs-ink {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #4A80FF, var(--blue));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 24px -8px rgba(47, 107, 255, 0.8);
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out), background 0.6s;
}
.faq-tabs-ink[data-tone="violet"] {
  background: linear-gradient(135deg, #8B4CF3, var(--violet));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 24px -8px rgba(124, 58, 237, 0.8);
}
.faq-panel { display: grid; gap: 10px; }
.faq-panel + .faq-panel { margin-top: 40px; }
.faq-wrap.is-tabbed .faq-panel + .faq-panel { margin-top: 0; }
.faq-panel[hidden] { display: none; }
.faq-group { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-hi); margin-bottom: 8px; }
.faq-panel--digital .faq-group { color: var(--violet-hi); }
.faq-wrap.is-tabbed .faq-group { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-item {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.4s, background 0.4s;
}
.faq-item[open]:not(.is-closing) { border-color: rgba(169, 194, 255, 0.35); background: rgba(255, 255, 255, 0.04); }
.faq-panel--digital .faq-item[open]:not(.is-closing) { border-color: rgba(211, 194, 255, 0.35); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--blue-hi), var(--blue-hi)) center / 100% 2px no-repeat,
    linear-gradient(var(--blue-hi), var(--blue-hi)) center / 2px 100% no-repeat;
  transition: transform 0.5s var(--ease-out);
}
.faq-panel--digital .faq-item summary::after {
  background:
    linear-gradient(var(--violet-hi), var(--violet-hi)) center / 100% 2px no-repeat,
    linear-gradient(var(--violet-hi), var(--violet-hi)) center / 2px 100% no-repeat;
}
.faq-item[open]:not(.is-closing) summary::after { transform: rotate(135deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); max-width: 70ch; }

/* ---------- WhatsApp fisso ---------- */

.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--anodized);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 34px -10px rgba(91, 76, 240, 0.9);
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
}
.wa-float svg { width: 22px; height: 22px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Pagine legali e 404 ---------- */

html[data-lang="it"] .legal-lang[lang="en"],
html[data-lang="en"] .legal-lang[lang="it"] { display: none; }
.legal-page {
  background:
    radial-gradient(50% 40% at 10% 0%, rgba(47, 107, 255, 0.14), transparent 70%),
    radial-gradient(50% 40% at 95% 30%, rgba(124, 58, 237, 0.12), transparent 70%);
  background-attachment: fixed;
}
.legal { padding: 140px 0 96px; max-width: 820px; }
.legal-lang { display: grid; gap: 22px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.legal h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: none; margin-bottom: 8px; }
.legal h3 { margin-top: 18px; }
.legal section { display: grid; gap: 14px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { display: grid; gap: 12px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--chrome); }
.legal a:not(.legal-back) { color: var(--text); border-bottom: 1px solid var(--violet-hi); }
.legal code { font-family: var(--font-mono); font-size: 0.9em; color: var(--blue-hi); }
.legal-back { justify-self: start; font-size: 14px; color: var(--muted); transition: color 0.3s; }
.legal-back:hover { color: var(--text); }
.legal-updated { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-toc a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line) !important; font-size: 14px; }
.legal-table { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.legal-row { display: grid; grid-template-columns: 1.1fr 1fr 2fr 1.3fr; gap: 12px; padding: 12px 16px; font-size: 14px; color: var(--muted); }
.legal-row + .legal-row { border-top: 1px solid var(--line); }
.legal-row--head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); background: rgba(255, 255, 255, 0.03); }
@media (max-width: 640px) {
  .legal-row { grid-template-columns: 1fr 1fr; }
  .legal-row--head { display: none; }
}

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 0 60px;
}
.notfound .container { display: grid; justify-items: center; gap: 22px; }
.nf-code { font-family: var(--font-mono); font-weight: 700; font-size: clamp(5rem, 18vw, 11rem); letter-spacing: -0.06em; line-height: 0.9; }
.nf-mark { height: clamp(90px, 16vw, 140px); width: auto; animation: nf-tilt 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes nf-tilt { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-6px); } }
.nf-text { color: var(--muted); max-width: 44ch; font-family: var(--font-sans); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: 0; line-height: 1.5; }
.nf-text span { display: block; }
.nf-text span + span { font-size: 0.92em; opacity: 0.8; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .nf-mark { animation: none; } }

/* ---------- Calendario Cal.com ---------- */

.cal-dialog {
  width: min(980px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(180deg, #121931, #0D1224) padding-box,
    var(--edge) border-box;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.cal-dialog[open] { display: flex; flex-direction: column; animation: cal-in 0.5s var(--ease-out); }
.cal-dialog::backdrop { background: rgba(6, 9, 16, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes cal-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
html.reduced .cal-dialog[open] { animation: none; }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.cal-title { font-family: var(--font-mono); font-size: 1.2rem; letter-spacing: -0.01em; }
.cal-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cal-body { position: relative; flex: 1; min-height: 520px; overflow-y: auto; }
.cal-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; }
#cal-inline { position: relative; min-height: 520px; }
.cal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cal-fallback { color: var(--muted); border-bottom: 1px solid var(--line); }
.cal-dialog.is-fallback .cal-fallback { color: var(--text); border-color: var(--blue-hi); }

/* ---------- Cursore ---------- */

html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(169, 194, 255, 0.6);
}
.cursor-ring > span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transition: transform 0.45s var(--ease-out), background 0.45s, border-color 0.45s;
}
html.cursor-visible .cursor-dot, html.cursor-visible .cursor-ring { opacity: 1; }
.cursor-ring.is-hover > span { transform: scale(1.7); background: rgba(124, 58, 237, 0.14); }
.cursor-ring.is-hover { border-color: transparent; }
.cursor-ring.is-hover > span { border: 1px solid rgba(211, 194, 255, 0.7); }
.cursor-ring.is-down > span { transform: scale(0.8); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-visual { order: -1; max-width: 320px; }
  .hero { padding-top: 88px; align-items: flex-start; }
  .worlds-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; }
  .worlds-divider { display: none; }
  .footer-claim { text-align: left; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .wa-float { display: inline-flex; }
  html.menu-open .nav { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .nav-inner { height: 64px; gap: 12px; }
  .nav-actions { gap: 10px; }
  .nav-cta { display: none; }
  .menu-inner { padding-top: 92px; }
  .quiz-opt { padding: 14px 16px; gap: 12px; }
  .quiz-actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .faq-tabs { width: 100%; }
  .faq-tabs button { flex: 1; padding-inline: 12px; }
  .faq-item summary { padding: 16px 18px; }
  .faq-a p { padding: 0 18px 18px; }
  .cal-body, #cal-inline { min-height: 60vh; }
  .hero-visual { max-width: 240px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .method-steps { padding-left: 56px; }
  .method-line { left: 15px; }
  .step-node { left: -48px; }
  .scroll-hint { display: none; }
}
