/* =========================================================
   Cristiano Michelangeli — Consulenza AI & Innovazione
   Design system: bianco caldo, ink quasi-nero, accent cobalto
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e9e7e1;
  --line-strong: #d6d3cb;
  --accent: #1a1aff;          /* cobalto elettrico - simbolo AI */
  --accent-hot: #ff3d2e;      /* lava - accenti caldi puntuali */
  --warm: #fffaf2;

  --r-xl: 28px;
  --r-l: 18px;
  --r-m: 10px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --maxw: 1480px;
  --pad: clamp(20px, 4vw, 64px);

  --sans:  'Inter Tight', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  /* --serif: alias storico ridiretto al sans dominante (refactor tipografia) */
  --serif: var(--sans);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
em { font-style: italic; }

::selection { background: var(--ink); color: var(--bg); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- aurora background ---------- */
.aurora {
  position: fixed; inset: -10vmax;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  filter: blur(60px) saturate(120%);
  opacity: .55;
}
.aurora__blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: drift 32s ease-in-out infinite alternate;
}
.aurora__blob--a {
  background: radial-gradient(closest-side, #d6e0ff, transparent 70%);
  left: -10vmax; top: -10vmax;
}
.aurora__blob--b {
  background: radial-gradient(closest-side, #ffe2d6, transparent 70%);
  right: -15vmax; top: 10vmax;
  animation-delay: -8s;
}
.aurora__blob--c {
  background: radial-gradient(closest-side, #efe9ff, transparent 70%);
  left: 30vmax; bottom: -20vmax;
  animation-delay: -16s;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(4vmax,-3vmax,0) scale(1.1); }
  100% { transform: translate3d(-3vmax,4vmax,0) scale(.95); }
}
.aurora__grain {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .25;
  mix-blend-mode: multiply;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .aurora__blob { animation: none; }
}

/* ---------- cursor (desktop) ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body { cursor: none; }
  a, button, [data-magnetic], input, textarea { cursor: none; }
}
.cursor-dot, .cursor-ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .25s var(--ease);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.65);
}
.cursor.is-hover .cursor-dot { width: 0; height: 0; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; border-color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
}
.nav__logo-mark {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.nav__logo-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.nav__logo-text { letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg) !important;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); }
.nav__cta::after { display: none !important; }

.nav__switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px !important;
  color: var(--muted) !important;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.nav__switch:hover { color: var(--ink) !important; border-color: var(--ink); }
.nav__switch::after { display: none !important; }
.nav__switch svg { opacity: .7; }

.footer__switch {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft) !important;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.footer__switch:hover { color: var(--ink) !important; border-color: var(--ink); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform .35s var(--ease);
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 24px var(--pad) 32px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child  { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- typography utilities ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.025em; }
p { margin: 0; }

.section-head {
  padding: 0 var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.section-head--split > .mono { grid-column: 1 / -1; }

.section-title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: .98;
  letter-spacing: -0.035em;
}
.section-title span { display: block; }
.section-title em {
  font-style: italic;
  color: var(--ink);
}
.section-lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  justify-self: end;
}

/* reveal animation — fade + slight rise, NO clipping (preserves italic swashes) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
[data-reveal] {
  display: inline-block;
  vertical-align: baseline;
  line-height: inherit;
}
.section-title [data-reveal],
.cta__title [data-reveal] {
  display: block;
}
.js [data-split] .word-inner {
  opacity: 0;
  transform: translateY(14px);
}
[data-split] {
  overflow: visible;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad) 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 60px;
  align-items: center;
}
.hero__inner { position: relative; z-index: 2; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(6px);
  margin-bottom: 36px;
}
.hero__eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,26,255,.12);
  animation: pulse 2.4s infinite var(--ease-soft);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(26,26,255,.12); }
  50%      { box-shadow: 0 0 0 8px rgba(26,26,255,0); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(48px, 7.4vw, 120px);
  line-height: .8;
  letter-spacing: -0.04em;
  padding-bottom: 0.12em; /* room for descenders */
}
.hero__title .line {
  display: block;
}
.hero__title em {
  font-style: italic;
  font-weight: 320;
  color: var(--ink);
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* extend paint area so italic swashes (entrate/code) get the gradient too */
  padding: 0.08em 0.22em;
  margin: -0.08em -0.22em;
}

.hero__sub {
  margin-top: 32px;
  max-width: 52ch;
  font-size: clamp(16px, 1.25vw, 18px);
  color: var(--ink-soft);
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

.btn--wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn--wa:hover {
  background: #1ebc5b;
  border-color: #1ebc5b;
}
.btn--wa svg { flex-shrink: 0; }
.btn--xl { padding: 22px 32px; font-size: 16px; border-radius: 999px; }

.hero__meta {
  margin-top: 56px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__meta > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}
.hero__meta .mono { color: var(--muted); }

/* hero art */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-height: 76vh;
  align-self: center;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__art canvas {
  /* dimensioni gestite inline dal JS (resize() in script.js) per mantenere il canvas quadrato */
  max-width: 100%;
  max-height: 100%;
}
.hero__art-label {
  position: absolute;
  bottom: 20px; right: 24px;
  color: var(--muted);
  letter-spacing: .12em;
}

.hero__scroll {
  position: absolute;
  left: var(--pad);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.hero__scroll-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleX(0); transform-origin: left; }
  45%  { transform: scaleX(1); transform-origin: left; }
  55%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
    gap: 30px;
  }
  .hero__art { max-height: 60vh; aspect-ratio: 1/1; justify-self: center; max-width: 60vh; width: 100%; }
  .hero__scroll { display: none; }
  .section-head--split { grid-template-columns: 1fr; }
  .section-lead { justify-self: start; }
}

/* ---------- marquee ---------- */
.marquee {
  margin-top: 80px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 320;
  letter-spacing: -0.02em;
  color: var(--ink);
  animation: marquee 50s linear infinite;
  will-change: transform;
}
.marquee__track span:nth-child(even) {
  color: var(--accent);
  font-style: italic;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- manifesto ---------- */
.manifesto {
  padding: clamp(80px, 14vw, 180px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.manifesto .mono { display: block; margin-bottom: 40px; }
.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.manifesto__col { min-width: 0; }
.manifesto__text {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
.manifesto__text em {
  font-style: italic;
  color: var(--accent);
}
.manifesto__sig {
  margin-top: 32px;
  color: var(--muted);
}

/* visual orbitale */
.manifesto__visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  justify-self: center;
  color: var(--ink);
}
.manifesto__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.manifesto__svg g.m-arc,
.manifesto__svg g.m-orbit,
.manifesto__svg .m-pulse {
  transform-origin: center;
  transform-box: view-box;
}
.m-arc--1   { animation: m-spin 22s linear infinite; }
.m-arc--2   { animation: m-spin 40s linear infinite reverse; }
.m-arc--3   { animation: m-spin 60s linear infinite; }
.m-arc--4   { animation: m-spin 90s linear infinite reverse; }
.m-orbit--1 { animation: m-spin 16s linear infinite reverse; }
.m-orbit--2 { animation: m-spin 28s linear infinite; }
.m-orbit--3 { animation: m-spin 44s linear infinite reverse; }
.m-orbit--4 { animation: m-spin 72s linear infinite; }
.m-pulse--1 { animation: m-pulse 6s ease-out infinite; }
.m-pulse--2 { animation: m-pulse 6s ease-out infinite 3s; }

@keyframes m-spin {
  to { transform: rotate(360deg); }
}
@keyframes m-pulse {
  0%   { transform: scale(0.4); opacity: .9; }
  100% { transform: scale(7); opacity: 0; }
}

@media (max-width: 860px) {
  .manifesto__grid { grid-template-columns: 1fr; gap: 48px; }
  .manifesto__visual { max-width: 380px; opacity: .8; }
}
@media (prefers-reduced-motion: reduce) {
  .m-arc, .m-orbit, .m-pulse { animation: none !important; }
}

/* ---------- bio / chi sono ---------- */
.bio {
  padding: clamp(80px, 12vw, 150px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.bio .section-head { margin-bottom: 56px; }
.bio__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.bio__visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  justify-self: start;
}
.bio__photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 30px 60px -30px rgba(10,10,10,.2);
}
.bio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio__halo {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  pointer-events: none;
  overflow: visible;
  color: var(--ink);
}
.bio__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 56ch;
}
.bio__name {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: .95;
  letter-spacing: -0.035em;
  margin: 0;
}
.bio__name em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.08em 0.22em;
  margin: -0.08em -0.22em;
}
.bio__role {
  margin: 0 0 8px;
  color: var(--muted);
}
.bio__text p {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.65;
}
.bio__text p b {
  color: var(--ink);
  font-weight: 500;
}
.bio__sign {
  margin-top: 12px;
}

/* WhatsApp CTA in bio */
.bio__wa {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px 14px 16px;
  margin-top: 14px;
  align-self: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
  max-width: 100%;
}
.bio__wa:hover {
  border-color: #25D366;
  background: linear-gradient(120deg, rgba(37,211,102,.04), rgba(26,26,255,.03));
  box-shadow: 0 20px 40px -25px rgba(37,211,102,.5);
}
.bio__wa-icon {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.bio__wa:hover .bio__wa-icon { transform: scale(1.06) rotate(-3deg); }
.bio__wa-icon svg {
  width: 22px;
  height: 22px;
}
.bio__wa-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
  min-width: 0;
}
.bio__wa-lead {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.bio__wa-sub {
  font-size: 11px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bio__wa-arrow {
  margin-left: 4px;
  color: var(--muted);
  transition: transform .35s var(--ease), color .35s var(--ease);
  flex-shrink: 0;
}
.bio__wa:hover .bio__wa-arrow {
  transform: translateX(4px);
  color: var(--ink);
}

@media (max-width: 480px) {
  .bio__wa-sub { white-space: normal; }
}

@media (max-width: 860px) {
  .bio__grid { grid-template-columns: 1fr; }
  .bio__visual { max-width: 320px; justify-self: center; }
  .bio__text { max-width: none; }
}

/* ---------- clienti ---------- */
.clients {
  padding: clamp(80px, 12vw, 130px) 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.clients .section-head { padding-bottom: 56px; }
.clients__marquee {
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  animation: clients-marquee 90s linear infinite;
  will-change: transform;
}
.clients__marquee--reverse .clients__track {
  animation-direction: reverse;
  animation-duration: 70s;
}
.clients__track--big {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1;
}
.clients__track--big span:nth-child(4n+1) {
  font-style: italic;
  color: var(--accent);
}
.clients__track--mono {
  font-family: var(--mono);
  font-size: clamp(13px, 1.2vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding: 8px 0;
}
.clients__track--mono span:nth-child(8n+1) {
  color: var(--accent);
}
.clients__track--mono span:nth-child(12n+5) {
  color: var(--accent-hot);
}
.clients__note {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  padding: 0 var(--pad);
}
@keyframes clients-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none !important; }
}

/* ---------- "P.S. del traduttore" callout ---------- */
.lang-cta {
  max-width: var(--maxw);
  margin: clamp(28px, 4vw, 48px) auto 12px;
  padding: 0 var(--pad);
}
.lang-cta__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 22px 16px 24px;
  background: linear-gradient(120deg, rgba(26,26,255,.05), rgba(255,61,46,.025));
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.lang-cta__inner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hot));
}
.lang-cta__tag {
  background: var(--ink);
  color: var(--bg);
  padding: 5px 9px 6px;
  border-radius: 999px;
  flex-shrink: 0;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.lang-cta__text {
  flex: 1;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}
.lang-cta__text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink-soft);
  margin: 0 1px;
  white-space: nowrap;
}
.lang-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.lang-cta__link:hover {
  color: var(--accent);
  border-color: var(--accent-hot);
}
.lang-cta__link svg {
  transition: transform .3s var(--ease);
}
.lang-cta__link:hover svg {
  transform: translate(2px, -2px);
}
.lang-cta__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  margin-left: 6px;
}

@media (max-width: 640px) {
  .lang-cta__inner { padding: 14px 18px; gap: 12px; align-items: flex-start; }
  .lang-cta__sub { display: block; margin: 6px 0 0; }
}

/* ---------- AI section ---------- */
.ai {
  padding: clamp(80px, 12vw, 150px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ai .section-head { padding-bottom: 80px; }

.ai__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ai__card {
  position: relative;
  background: var(--bg-soft);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .5s var(--ease), color .5s var(--ease);
  overflow: hidden;
}
.ai__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--ink) 0%, #1a1a1a 100%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: 0;
}
.ai__card > * { position: relative; z-index: 1; }
.ai__card:hover { color: var(--bg); }
.ai__card:hover::before { opacity: 1; }
.ai__card:hover .ai__card-art svg { color: var(--accent); }
.ai__card:hover .tags li { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }

.ai__num {
  color: var(--muted);
  font-size: 11px;
}
.ai__card h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ai__card p {
  font-size: 15.5px;
  line-height: 1.55;
  color: inherit;
  opacity: .82;
  max-width: 44ch;
}
.tags {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.ai__card-art {
  position: absolute;
  right: -10px; bottom: -10px;
  width: 160px; height: 160px;
  opacity: .12;
  color: var(--ink);
  pointer-events: none;
  transition: opacity .5s var(--ease), color .5s var(--ease), transform .8s var(--ease);
}
.ai__card:hover .ai__card-art {
  opacity: .5;
  transform: rotate(45deg) scale(1.1);
}

@media (max-width: 800px) {
  .ai__grid { grid-template-columns: 1fr; }
}

/* ---------- applications (use cases) ---------- */
.apps {
  padding: clamp(80px, 12vw, 150px) 0;
  position: relative;
  overflow: hidden;
}
.apps .section-head { padding-bottom: 64px; }

/* mini-sistemi orbitali di sfondo */
.apps__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  color: var(--ink);
}
.apps > .section-head,
.apps__list,
.apps > .feedback {
  position: relative;
  z-index: 1;
}
.apps-orb {
  position: absolute;
  width: var(--size, 220px);
  height: var(--size, 220px);
  overflow: visible;
}
.apps-orb--a { top: -6%;  left: -4%;  --size: 320px; }
.apps-orb--b { top:  4%;  right: -6%; --size: 380px; }
.apps-orb--c { top: 38%;  left: 6%;   --size: 180px; }
.apps-orb--d { bottom: 14%; right: 4%; --size: 280px; }
.apps-orb--e { bottom: -8%; left: 32%; --size: 240px; }

.apps-rotor {
  transform-origin: center;
  transform-box: view-box;
  animation: m-spin var(--speed, 30s) linear infinite;
}
.apps-rotor--rev { animation-direction: reverse; }

@media (max-width: 900px) {
  .apps-orb--a { --size: 200px; }
  .apps-orb--b { --size: 240px; }
  .apps-orb--c { display: none; }
  .apps-orb--d { --size: 200px; }
  .apps-orb--e { --size: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .apps-rotor { animation: none !important; }
}

.apps__list {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.apps__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding: 44px 0 44px 24px;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding-left .45s var(--ease);
}
.apps__item:last-child { border-bottom: 1px solid var(--line); }
.apps__item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hot));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .6s var(--ease), width .35s var(--ease);
}
.apps__item:hover { padding-left: 32px; }
.apps__item:hover::before { transform: scaleY(1); width: 3px; }
.apps__item:hover .apps__num { color: var(--accent); }

.apps__num {
  font-size: 12px;
  color: var(--muted);
  align-self: start;
  padding-top: 10px;
  transition: color .3s var(--ease);
}

.apps__body {
  max-width: 70ch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.apps__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.apps__problem {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
}
.apps__problem b {
  color: var(--ink);
  font-weight: 500;
}
.apps__desc {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.apps__desc strong {
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(180deg, transparent 60%, rgba(26,26,255,.12) 60%);
  padding: 0 2px;
}
.apps__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 6px;
}
.apps__tags li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .apps__item {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 0 32px 18px;
  }
  .apps__item:hover { padding-left: 22px; }
  .apps__num { padding-top: 0; }
}

/* ---------- feedback form ---------- */
.feedback {
  max-width: var(--maxw);
  margin: clamp(48px, 8vw, 96px) auto 0;
  padding: 0 var(--pad);
}
.feedback__inner {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -50px rgba(10,10,10,.18);
}
.feedback__inner::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
}
.feedback__inner > .mono {
  color: var(--muted);
}
.feedback__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-top: 4px;
  max-width: 22ch;
}
.feedback__title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent), var(--accent-hot));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.08em 0.22em;
  margin: -0.08em -0.22em;
}
.feedback__lead {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
}
.feedback__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > span {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.field input,
.field textarea {
  font: inherit;
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10,10,10,.06);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--accent-hot);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-top: 4px;
  max-width: 70ch;
}
.field-check input {
  flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: pointer;
}
.field-check a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feedback__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.feedback__note {
  color: var(--muted);
}
.feedback__success {
  margin-top: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,26,255,.06), rgba(255,61,46,.06));
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- capabilities ---------- */
.caps {
  padding: clamp(80px, 12vw, 150px) 0;
}
.caps .section-head { padding-bottom: 80px; }
.caps__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.caps__item {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: padding .4s var(--ease);
}
.caps__item:nth-child(3n) { border-right: 0; padding-right: 0; }
.caps__item:nth-child(3n+1) { padding-left: 0; }
.caps__item:not(:nth-child(3n+1)) { padding-left: 32px; }
.caps__item .mono { color: var(--muted); }
.caps__item h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.caps__item p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 38ch;
}
.caps__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 900px) {
  .caps__grid { grid-template-columns: 1fr 1fr; }
  .caps__item, .caps__item:nth-child(3n), .caps__item:nth-child(3n+1) {
    border-right: 1px solid var(--line);
    padding: 32px 20px;
  }
  .caps__item:nth-child(2n) { border-right: 0; padding-right: 0; }
  .caps__item:nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 600px) {
  .caps__grid { grid-template-columns: 1fr; }
  .caps__item, .caps__item:nth-child(2n), .caps__item:nth-child(2n+1) {
    border-right: 0;
    padding: 28px 0;
  }
}

/* ---------- gallery CTA in capabilities ---------- */
.caps__cta {
  max-width: var(--maxw);
  margin: clamp(48px, 7vw, 80px) auto 0;
  padding: 0 var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.btn--gallery {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.btn--gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--accent), var(--accent-hot));
  opacity: 0;
  transition: opacity .4s var(--ease);
  z-index: 0;
}
.btn--gallery:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.btn--gallery:hover::before { opacity: 1; }
.btn--gallery > * { position: relative; z-index: 1; }
.btn__ico {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
}
.btn__ico svg { width: 18px; height: 18px; }

.caps__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.caps__more:hover {
  color: var(--ink);
  border-color: var(--accent);
}
.caps__more svg { transition: transform .3s var(--ease); }
.caps__more:hover svg { transform: translate(2px, -2px); }

/* ---------- lightbox / portfolio ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}
.lightbox__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px clamp(20px, 4vw, 48px);
  color: rgba(255,255,255,.65);
}
.lightbox__counter {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.55);
}
.lightbox__close {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.lightbox__close:hover {
  background: rgba(255,255,255,.16);
  transform: rotate(90deg);
}
.lightbox__stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(8px, 2vw, 24px);
  align-items: center;
  padding: 0 clamp(12px, 3vw, 40px);
  min-height: 0;
}
.lightbox__nav {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__nav:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.4);
}
.lightbox__nav--prev:hover { transform: translateX(-3px); }
.lightbox__nav--next:hover { transform: translateX(3px); }

.lightbox__frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lightbox__media {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.lightbox__media img,
.lightbox__media video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.lightbox__media img.is-ready,
.lightbox__media video.is-ready {
  opacity: 1;
  transform: scale(1);
}

.lightbox__loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease);
  gap: 8px;
}
.lightbox__loader.is-visible { opacity: 1; }
.lightbox__loader span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  animation: lb-bounce 1.2s ease-in-out infinite;
}
.lightbox__loader span:nth-child(1) { animation-delay: 0s;   transform: translateX(-14px); }
.lightbox__loader span:nth-child(2) { animation-delay: 0.15s; }
.lightbox__loader span:nth-child(3) { animation-delay: 0.3s;  transform: translateX(14px); }
@keyframes lb-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: .4; }
  40%           { transform: scale(1);   opacity: 1; }
}
.lightbox__loader span:nth-child(1) { animation-name: lb-bounce-1; }
.lightbox__loader span:nth-child(3) { animation-name: lb-bounce-3; }
@keyframes lb-bounce-1 {
  0%, 80%, 100% { transform: translateX(-14px) scale(0.6); opacity: .4; }
  40%           { transform: translateX(-14px) scale(1);   opacity: 1; }
}
@keyframes lb-bounce-3 {
  0%, 80%, 100% { transform: translateX(14px) scale(0.6); opacity: .4; }
  40%           { transform: translateX(14px) scale(1);   opacity: 1; }
}

.lightbox__caption {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px clamp(20px, 4vw, 48px) 32px;
  color: #fff;
}
.lightbox__tag {
  color: rgba(255,255,255,.55);
  font-size: 11px;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 8px;
  min-height: 1em;
}
.lightbox__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  min-height: 1em;
}

.lightbox__archive {
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  letter-spacing: 0.06em;
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.lightbox__archive:hover { color: #fff; }

@media (max-width: 700px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__frame { max-height: calc(100vh - 260px); }
  .lightbox__title { font-size: 18px; }
}

/* scroll lock when lightbox open */
body.is-lightbox-open {
  overflow: hidden;
}

/* ---------- method ---------- */
.method {
  padding: clamp(80px, 12vw, 150px) 0;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.method::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60vw 60vw at 90% 10%, rgba(26,26,255,.22), transparent 60%),
    radial-gradient(60vw 60vw at 0% 90%, rgba(255,61,46,.18), transparent 60%);
  opacity: .6;
  pointer-events: none;
}
.method .section-head { padding-bottom: 80px; position: relative; }
.method .mono { color: rgba(255,255,255,.55); }
.method .section-title { color: var(--bg); }
.method .section-title em {
  background: linear-gradient(120deg, #8e8eff 0%, #ffb29f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.method .section-lead { color: rgba(255,255,255,.75); }

.method__steps {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.method__step {
  background: var(--ink);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.method__num {
  color: rgba(255,255,255,.45);
  font-size: 11px;
}
.method__step h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.02em;
}
.method__step p {
  color: rgba(255,255,255,.7);
  font-size: 15px;
  line-height: 1.55;
}
.method__step::after {
  content: '';
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.method__step.is-in::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .method__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .method__steps { grid-template-columns: 1fr; }
}

/* ---------- who (per chi) ---------- */
.who {
  padding: clamp(80px, 12vw, 150px) 0;
  position: relative;
  overflow: hidden;
}
.who .section-head { padding-bottom: 80px; }

.who__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  color: var(--ink);
}
.who > .section-head,
.who__grid {
  position: relative;
  z-index: 1;
}
.who-orb {
  position: absolute;
  width: var(--size, 280px);
  height: var(--size, 280px);
  overflow: visible;
}
.who-orb--a { top: 32%; left: -10%; --size: 460px; }
.who-orb--b { bottom: -12%; right: -8%; --size: 400px; }
.who-orb--c { top: 8%; right: 22%; --size: 160px; }

@media (max-width: 900px) {
  .who-orb--a { --size: 280px; top: 50%; left: -20%; }
  .who-orb--b { --size: 260px; }
  .who-orb--c { display: none; }
}
.who__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.who__card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.who__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(10,10,10,.18);
  border-color: var(--ink);
}
.who__card h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.who__card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

@media (max-width: 1000px) { .who__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .who__grid { grid-template-columns: 1fr; } }

/* ---------- stats ---------- */
.stats {
  padding: 0 var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 32px;
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stats__value {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(56px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -0.04em;
}
.stats__label {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .stats__inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(100px, 14vw, 180px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.cta__inner > .mono { grid-column: 1 / -1; margin-bottom: -20px; }

.cta__title {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(40px, 6vw, 88px);
  line-height: .96;
  letter-spacing: -0.035em;
}
.cta__title span { display: block; }
.cta__title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.08em 0.22em;
  margin: -0.08em -0.22em;
}
.cta__lead {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 48ch;
}

.cta__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.cta__info {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.cta__info > div { display: flex; flex-direction: column; gap: 10px; }
.cta__info p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.cta__info a { border-bottom: 1px solid var(--line-strong); transition: border-color .2s var(--ease); }
.cta__info a:hover { border-color: var(--ink); }

@media (max-width: 800px) {
  .cta__inner, .cta__info { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- footer ---------- */
.footer {
  padding: 40px var(--pad);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.55;
}
.footer__mark {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.footer__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.footer__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- in-view utilities for JS ---------- */
.js [data-fade] {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* selection */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   EDIT MODE — attivato con ?edit nell'URL
   ========================================================= */
.editing [data-reveal],
.editing [data-fade] {
  opacity: 1 !important;
  transform: none !important;
}
.editing .cursor { display: none !important; }
.editing .aurora { opacity: .25; }
html.editing,
html.editing body,
html.editing a,
html.editing button { cursor: auto !important; }

.editing [contenteditable="true"] {
  outline: 1px dashed rgba(26,26,255,.28);
  outline-offset: 4px;
  border-radius: 4px;
  transition: outline-color .2s var(--ease), background .2s var(--ease);
  cursor: text !important;
}
.editing [contenteditable="true"]:hover {
  outline-color: rgba(26,26,255,.55);
  background: rgba(26,26,255,.03);
}
.editing [contenteditable="true"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  background: rgba(26,26,255,.04);
}

/* Toolbar */
.editor-toolbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  background: #0a0a0a;
  color: #fff;
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.55);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 360px;
  max-width: calc(100vw - 40px);
  border: 1px solid rgba(255,255,255,.15);
  transition: width .35s var(--ease), height .35s var(--ease), padding .35s var(--ease);
}
.editor-toolbar.is-collapsed {
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.editor-toolbar.is-collapsed > *:not(.editor-toolbar__collapse) { display: none; }
.editor-toolbar.is-collapsed .editor-toolbar__collapse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  font-size: 18px;
}
.editor-toolbar.is-collapsed .editor-toolbar__collapse::after {
  content: '✎';
}
.editor-toolbar.is-collapsed .editor-toolbar__collapse > * { display: none; }

.editor-toolbar__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.editor-toolbar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 14px;
}
.editor-toolbar__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,26,255,.25);
  animation: pulse 2s infinite var(--ease-soft);
}
.editor-toolbar__status {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255,255,255,.55);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.editor-toolbar__hint {
  font-size: 12px;
  color: rgba(255,255,255,.62);
  line-height: 1.55;
}
.editor-toolbar__hint b { color: #fff; font-weight: 500; }

.editor-toolbar__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.editor-btn {
  font: inherit;
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.editor-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.editor-btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-hot));
  border-color: transparent;
  font-weight: 500;
}
.editor-btn--primary:hover { filter: brightness(1.08); }

.editor-toolbar__collapse {
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}
.editor-toolbar__collapse:hover { background: rgba(255,255,255,.1); color: #fff; }

@media (max-width: 540px) {
  .editor-toolbar { right: 10px; left: 10px; bottom: 10px; width: auto; max-width: none; }
}
