/* ─────────────────────────────────────────────
   New Era · spatial system
   Tokens, body backdrop, aurora, starfield, stardust,
   typography primitives, nav, ticker, footer.
   Page-specific styles live in each page's <style>.
   ───────────────────────────────────────────── */

/* Font self-hostati (GDPR: nessun caricamento da CDN Google). Variable font: 1 file, range pesi. */
@font-face{font-family:'Nunito';font-style:normal;font-weight:300 900;font-display:swap;src:url(assets/fonts/nunito.woff2) format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url(assets/fonts/jetbrainsmono.woff2) format('woff2');}

:root{
  --bg: #0A0716;
  --bg-2: #100B26;
  --bg-3: #1C1348;
  --violet: #6027F1;
  --violet-2: #8A5BF6;
  --violet-glow: rgba(96,39,241,.55);
  --paper: #F4F1EC;
  --ink-light: rgba(244,241,236,.92);
  --ink-mid: rgba(244,241,236,.62);
  --ink-low: rgba(244,241,236,.38);
  --line: rgba(244,241,236,.10);
  --good: #6BE39E;
  --warn: #FFB572;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --pad-x: clamp(20px, 4.5vw, 88px);
  --section-y: clamp(80px, 9vw, 160px);
}

*{ box-sizing: border-box; }
/* Focus visibile da tastiera (a11y WCAG 2.4.7) */
:focus-visible{ outline: 2px solid var(--violet-2); outline-offset: 2px; border-radius: 3px; }
html, body{ margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background:
    radial-gradient(ellipse 1200px 700px at 78% -10%, rgba(96,39,241,.28), transparent 60%),
    radial-gradient(ellipse 1100px 900px at 8% 20%, rgba(28,19,72,.55), transparent 70%),
    radial-gradient(ellipse 900px 700px at 92% 55%, rgba(154,74,212,.18), transparent 60%),
    radial-gradient(ellipse 1200px 800px at 50% 110%, rgba(96,39,241,.22), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink-light);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
body::before{
  content: ""; position: fixed; inset: -20%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(96,39,241,.32) 0%, transparent 32%),
    radial-gradient(circle at 75% 60%, rgba(180,90,220,.16) 0%, transparent 40%),
    radial-gradient(circle at 55% 90%, rgba(60,30,180,.22) 0%, transparent 38%);
  filter: blur(30px);
  animation: nebula 38s ease-in-out infinite alternate;
}
@keyframes nebula{
  0%{ transform: translate(-1.5%, -1.5%) scale(1); opacity: .85; }
  100%{ transform: translate(1.5%, 2%) scale(1.04); opacity: 1; }
}
body::after{
  content: ""; position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
::selection{ background: var(--violet); color: #fff; }
a{ color: inherit; text-decoration: none; }
img, svg{ display: block; max-width: 100%; }
main, header, section, nav, footer{ position: relative; z-index: 1; }

/* ─── aurora veil */
#aurora{
  position: fixed; inset: -25%;
  pointer-events: none; z-index: 0;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(96,39,241,.10) 0deg,
    rgba(28,19,72,0) 60deg,
    rgba(154,86,236,.12) 140deg,
    rgba(28,19,72,0) 220deg,
    rgba(40,20,140,.10) 300deg,
    rgba(96,39,241,.10) 360deg
  );
  filter: blur(80px);
  mix-blend-mode: screen;
  opacity: .55;
  animation: aurora 90s linear infinite;
}
@keyframes aurora{
  from{ transform: rotate(0deg) scale(1.05); }
  to{ transform: rotate(360deg) scale(1.05); }
}

/* ─── starfield */
#stars{
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
  transform: translateY(calc(var(--pY, 0px) * .25));
  will-change: transform;
}
#stars-near{
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
  transform: translateY(calc(var(--pY, 0px) * .55));
  will-change: transform;
}
#stars .s, #stars-near .s{
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #fff; opacity: .5;
  animation: twinkle 4.2s ease-in-out infinite;
}
#stars .s.dim, #stars-near .s.dim{ width: 1px; height: 1px; background: rgba(255,255,255,.7); }
#stars .s.lg, #stars-near .s.lg{
  width: 3px; height: 3px; background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,.65), 0 0 14px rgba(186,150,255,.45);
}
#stars .s.violet, #stars-near .s.violet{
  background: var(--violet-2);
  box-shadow: 0 0 6px rgba(138,91,246,.7);
}
#stars-near .s{ width: 2.5px; height: 2.5px; }
#stars-near .s.cross{ width: 3px; height: 3px; background: transparent; box-shadow: none; }
#stars-near .s.cross::before, #stars-near .s.cross::after{
  content: ""; position: absolute; background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,.6);
}
#stars-near .s.cross::before{ top: 50%; left: -5px; right: -5px; height: 1px; transform: translateY(-50%); }
#stars-near .s.cross::after{ left: 50%; top: -5px; bottom: -5px; width: 1px; transform: translateX(-50%); }
@keyframes twinkle{
  0%, 100%{ opacity: .25; transform: scale(.92); }
  50%{ opacity: 1; transform: scale(1.05); }
}
/* comets */
#stars .comet{
  position: absolute; top: -10px; left: -10vw;
  width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.95) 60%, #fff 100%);
  transform: rotate(18deg);
  filter: drop-shadow(0 0 6px rgba(255,255,255,.55));
  opacity: 0;
  animation: comet 11s ease-in 4s infinite;
}
#stars .comet.b{ animation-delay: 8s; animation-duration: 14s; top: 20vh; }
#stars .comet.c{
  animation-delay: 22s; animation-duration: 13s; top: 8vh; width: 320px;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent 0%, rgba(186,150,255,.95) 60%, var(--violet-2) 100%);
  filter: drop-shadow(0 0 8px rgba(154,86,236,.6));
}
@keyframes comet{
  0%{ transform: translate(0,0) rotate(18deg); opacity: 0; }
  6%{ opacity: 1; }
  35%{ transform: translate(120vw, 36vh) rotate(18deg); opacity: 0; }
  100%{ transform: translate(120vw, 36vh) rotate(18deg); opacity: 0; }
}
#stars-near .shoot{
  position: absolute; top: 12vh; right: -200px;
  width: 140px; height: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  filter: drop-shadow(0 0 10px rgba(255,255,255,.7));
  transform: rotate(-32deg);
  opacity: 0;
  animation: shoot 18s ease-out 6s infinite;
}
@keyframes shoot{
  0%{ transform: translate(0,0) rotate(-32deg); opacity: 0; }
  3%{ opacity: 1; }
  14%{ transform: translate(-120vw, 40vh) rotate(-32deg); opacity: 0; }
  100%{ opacity: 0; }
}

/* ─── cursor stardust */
#stardust{ position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
#stardust .p{
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(186,150,255,.7) 30%, transparent 70%);
  opacity: 0;
  will-change: transform, opacity;
  animation: dustfade 900ms ease-out forwards;
}
#stardust .p.v{ background: radial-gradient(circle, var(--violet-2) 0%, rgba(96,39,241,.7) 30%, transparent 70%); }
@keyframes dustfade{
  0%{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100%{ opacity: 0; transform: translate(-50%, calc(-50% - 24px)) scale(.3); }
}
@media (hover: none), (prefers-reduced-motion: reduce){ #stardust{ display: none; } }
@media (prefers-reduced-motion: reduce){
  #aurora, #stars, #stars-near, body::before{ animation: none !important; transform: none !important; }
  #stars .s, #stars-near .s, #stars .comet, #stars-near .shoot{ animation: none !important; }
}

/* ─── typographic primitives */
.label{ font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.mono{ font-family: var(--mono); }
.micro{ font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-low); }
.wrap{ padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section{ padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }

.display{
  font-weight: 900;
  font-size: clamp(54px, 8.6vw, 154px);
  line-height: .88;
  letter-spacing: -.036em;
  margin: 0;
  color: #fff;
}
.display em{ font-style: normal; color: var(--violet-2); }
.display .ghost{ color: var(--ink-low); }

h2.section-title{
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 96px);
  line-height: .92;
  letter-spacing: -.03em;
  margin: 0;
  color: #fff;
}
h2.section-title em{ font-style: normal; color: var(--violet-2); }
h2.section-title.sm{ font-size: clamp(32px, 4vw, 64px); }

.lede{
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
  color: var(--ink-light);
  max-width: 56ch;
}

/* section meta header */
.section-head{ display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 96px); }
.section-head .meta{
  display: flex; align-items: center; gap: 18px;
  color: var(--ink-mid);
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
}
.section-head .meta > span:first-child{
  position: relative; padding-left: 18px;
}
.section-head .meta > span:first-child::before{
  content: ""; position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet-2);
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(154,86,236,.7);
  animation: markerPulse 3.4s ease-in-out infinite;
}
@keyframes markerPulse{
  0%, 100%{ opacity: .55; transform: translateY(-50%) scale(.85); }
  50%{ opacity: 1; transform: translateY(-50%) scale(1.2); box-shadow: 0 0 12px rgba(154,86,236,.95); }
}
.section-head .meta .ln{ flex: 1; height: 1px; background: var(--line); max-width: 280px; }

/* ─── buttons */
.btn-primary{
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px 18px 22px;
  background: var(--violet); color: #fff;
  border: none; border-radius: 999px;
  font-family: var(--sans); font-weight: 800; font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 32px -10px var(--violet-glow), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  text-decoration: none;
}
.btn-primary:hover{
  transform: translateY(-2px);
  background: #4F18DC;
  box-shadow: 0 16px 40px -10px var(--violet-glow);
}
.btn-primary .arrow{
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.btn-ghost{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #fff; background: transparent;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s;
  text-decoration: none;
}
.btn-ghost:hover{ background: rgba(244,241,236,.06); border-color: var(--ink-mid); }

/* ─── nav */
.nav{
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  padding: 16px var(--pad-x);
  background: rgba(10,7,22,.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .brand{
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 900; letter-spacing: -.02em; color: #fff;
}
.nav .brand svg{ width: 30px; height: 30px; color: var(--violet-2); }
.nav .brand .word{ font-size: 18px; }
.nav .links{
  display: flex; gap: 28px;
  font-size: 13px; font-weight: 700;
  color: var(--ink-light);
}
.nav .links a{ position: relative; padding: 6px 0; }
.nav .links a::after{
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--violet);
  transition: right .35s cubic-bezier(.2,.7,.2,1);
}
.nav .links a:hover::after, .nav .links a.active::after{ right: 0; }
.nav .right{ display: inline-flex; align-items: center; gap: 16px; }
.nav .clock{
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--ink-mid);
  display: inline-flex; align-items: center; gap: 8px;
}
.nav .clock .pulse{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 0 rgba(107,227,158,.5);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(107,227,158,.55); }
  100%{ box-shadow: 0 0 0 12px rgba(107,227,158,0); }
}
.nav .cta{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: var(--violet); color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 800;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 12px 28px -16px var(--violet-glow);
}
.nav .cta:hover{ background: #fff; color: var(--bg); transform: translateY(-1px); }
@media (max-width: 980px){ .nav .links, .nav .clock{ display: none; } }

/* ─── ticker */
.ticker{
  background: var(--violet); color: #fff;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,.2);
}
.ticker .track{
  display: inline-flex; gap: 48px;
  padding: 12px 0;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
  font-family: var(--mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
.ticker .item{ display: inline-flex; align-items: center; gap: 48px; }
.ticker .star{ color: rgba(255,255,255,.55); }
@keyframes ticker{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ─── reveal */
[data-reveal]{
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].in{ opacity: 1; transform: translateY(0); }

/* ─── footer */
footer{
  padding: clamp(48px, 6vw, 80px) var(--pad-x) 24px;
  border-top: 1px solid var(--line);
}
footer .top{
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px){ footer .top{ grid-template-columns: 1fr 1fr; } }
footer h6{
  margin: 0 0 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mid); font-weight: 500;
}
footer ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer ul a, footer ul li{ font-size: 14px; font-weight: 600; color: var(--ink-light); }
footer ul a:hover{ color: var(--violet-2); }
footer .signature{ display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
footer .signature svg{ width: 34px; height: 34px; color: var(--violet-2); }
footer .signature .word{ font-weight: 900; font-size: 22px; letter-spacing: -.02em; color: #fff; }
footer .signoff{ font-size: 14px; color: var(--ink-mid); max-width: 36ch; }
footer .bottom{
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding-top: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-low);
}
footer .bottom .right{ display: flex; gap: 18px; }

/* horizon — cinematic planetary signature */
footer .horizon{
  position: relative;
  margin: clamp(72px, 9vw, 120px) calc(var(--pad-x) * -1) 16px;
  padding: clamp(140px, 18vw, 240px) var(--pad-x) clamp(48px, 6vw, 72px);
  text-align: center;
  overflow: hidden; isolation: isolate;
  mask-image: linear-gradient(180deg, transparent 0, black 14%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, black 14%, black 100%);
}
footer .horizon .planet{
  position: absolute;
  left: 50%; bottom: clamp(-2400px, -180vw, -1400px);
  width: clamp(1600px, 220vw, 2800px);
  aspect-ratio: 1 / 1;
  margin-left: clamp(-1400px, -110vw, -800px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 4%, rgba(154,86,236,.55), rgba(76,32,180,.18) 14%, transparent 24%),
    radial-gradient(circle at 50% 8%, rgba(28,19,72,0) 0, rgba(28,19,72,.85) 18%, #07041A 28%);
  box-shadow: 0 -1px 0 rgba(255,255,255,.06) inset;
  z-index: -2; pointer-events: none;
}
footer .horizon .atmo{
  position: absolute;
  left: 50%; bottom: clamp(-2400px, -180vw, -1400px);
  width: clamp(1600px, 220vw, 2800px);
  aspect-ratio: 1 / 1;
  margin-left: clamp(-1400px, -110vw, -800px);
  border-radius: 50%;
  border: 1px solid rgba(154,86,236,.55);
  box-shadow: 0 0 24px rgba(154,86,236,.45), inset 0 1px 0 rgba(255,255,255,.06);
  z-index: -1; pointer-events: none;
}
footer .horizon .ringset{
  position: absolute;
  left: 50%; top: 6%;
  transform: translateX(-50%);
  width: 140vw; max-width: 1800px;
  height: clamp(160px, 22vw, 300px);
  z-index: -1; pointer-events: none;
  opacity: .9;
  animation: ringbreath 12s ease-in-out infinite alternate;
}
footer .horizon .ringset svg{ width: 100%; height: 100%; overflow: visible; }
footer .horizon .ringset .ring{
  fill: none; stroke: rgba(244,241,236,.16); stroke-width: 1;
  stroke-dasharray: 2 6;
}
footer .horizon .ringset .ring.solid{ stroke: rgba(154,86,236,.32); stroke-dasharray: none; }
footer .horizon .ringset .ring.faint{ stroke: rgba(244,241,236,.08); }
@keyframes ringbreath{
  from{ transform: translate(-50%, 0) scaleY(.98); opacity: .8; }
  to{ transform: translate(-50%, -8px) scaleY(1.02); opacity: 1; }
}
footer .horizon .ribbon{
  display: inline-flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 36px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-low);
}
footer .horizon .ribbon .ln{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,241,236,.22), transparent);
  flex: 1; max-width: 200px;
}
footer .horizon .ribbon .coord{ color: var(--ink-mid); letter-spacing: .22em; }
footer .horizon .ribbon .x{ color: var(--violet-2); font-size: 9px; transform: translateY(-1px); }
footer .horizon .mark-row{
  display: inline-flex; align-items: center; justify-content: center;
  gap: clamp(14px, 2vw, 24px);
}
footer .horizon .mark-row .mk{
  width: clamp(32px, 3vw, 44px); height: auto;
  color: var(--violet-2);
  filter: drop-shadow(0 0 14px rgba(154,86,236,.5));
  animation: pulseGlow 5.5s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%, 100%{ filter: drop-shadow(0 0 10px rgba(154,86,236,.35)); }
  50%{ filter: drop-shadow(0 0 22px rgba(154,86,236,.7)); }
}
footer .horizon .mark-row .divider{
  width: 1px;
  height: clamp(28px, 2.4vw, 36px);
  background: linear-gradient(180deg, transparent, rgba(244,241,236,.32), transparent);
}
footer .horizon .wordmark{
  display: inline-block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: .42em;
  text-indent: .42em;
  color: #fff;
  text-transform: uppercase;
}
footer .horizon .wordmark .e{ color: var(--violet-2); }
footer .horizon .tagline{
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-mid);
}
footer .horizon .tagline .vt{ color: var(--violet-2); }
footer .horizon .tagline .sep{ color: var(--ink-low); margin: 0 8px; }
footer .horizon .twinkles{ position: absolute; inset: 0; z-index: -1; pointer-events: none; }
footer .horizon .twinkles span{
  position: absolute;
  width: 2px; height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 4.5s ease-in-out infinite;
}
footer .horizon .twinkles span:nth-child(1){ top: 18%; left: 12%; animation-delay: .2s; }
footer .horizon .twinkles span:nth-child(2){ top: 26%; left: 78%; animation-delay: 1.8s; opacity: .6; }
footer .horizon .twinkles span:nth-child(3){ top: 44%; left: 24%; animation-delay: 3.1s; opacity: .5; }
footer .horizon .twinkles span:nth-child(4){ top: 12%; left: 64%; animation-delay: 2.4s; box-shadow: 0 0 6px #fff; }
footer .horizon .twinkles span:nth-child(5){ top: 38%; left: 88%; animation-delay: .8s; opacity: .5; }
footer .horizon .twinkles span:nth-child(6){ top: 8%; left: 38%; animation-delay: 1.2s; box-shadow: 0 0 8px rgba(154,86,236,.7); background: var(--violet-2); }

/* ───────────────────────────────────────────────
   Shared page primitives (used by inner pages)
   ─────────────────────────────────────────────── */

/* breadcrumbs */
.crumbs{
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: var(--ink-mid);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.crumbs a{ color: var(--ink-mid); }
.crumbs a:hover{ color: var(--violet-2); }
.crumbs .sep{ color: var(--ink-low); }
.crumbs .curr{ color: var(--violet-2); }
.crumbs .reparto-num{
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--violet-2);
}

/* hero title row pattern (1fr + sidecar) */
.hero-page{ padding-top: clamp(40px, 4vw, 64px); padding-bottom: clamp(72px, 8vw, 120px); }
.hero-page .title-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 28vw, 420px);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hero-page .title-row.wide-sidecar{ grid-template-columns: minmax(0, 1fr) clamp(320px, 34vw, 480px); }
.hero-page .title-row.single{ grid-template-columns: minmax(0, 1fr); max-width: 80ch; }
@media (max-width: 980px){ .hero-page .title-row{ grid-template-columns: 1fr; } }
.hero-page h1 .line{
  display: block; opacity: 0; transform: translateY(40px);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-page h1 .line:nth-child(1){ animation-delay: .05s; }
.hero-page h1 .line:nth-child(2){ animation-delay: .15s; }
.hero-page h1 .line:nth-child(3){ animation-delay: .25s; }
.hero-page h1 .line:nth-child(4){ animation-delay: .35s; }
.hero-page h1 .line:nth-child(5){ animation-delay: .45s; }
@keyframes rise{ to{ transform: translateY(0); opacity: 1; } }
.hero-page .cta-row{ display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.hero-page .cta-foot{ font-size: 13px; color: var(--ink-mid); margin-top: 16px; max-width: 56ch; }
.hero-page .lede-after-h1{ margin-top: 36px; }

/* final CTA panel (violet, full-width inside section padding) */
.final-cta{
  margin: 0 var(--pad-x);
  padding: clamp(48px, 6vw, 96px);
  background: linear-gradient(135deg, var(--violet) 0%, #4515BB 100%);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.final-cta::before{
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 100% 60px;
  pointer-events: none; opacity: .4;
}
.final-cta::after{
  content: ""; position: absolute;
  right: -20%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}
.final-cta .inner{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  color: #fff;
}
@media (max-width: 880px){ .final-cta .inner{ grid-template-columns: 1fr; } }
.final-cta h2{ color: #fff; max-width: 18ch; }
.final-cta p{ margin: 20px 0 0; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.86); max-width: 56ch; }
.btn-w{
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--bg);
  padding: 20px 28px; border-radius: 999px;
  font-weight: 900; font-size: 15px;
  text-decoration: none;
  transition: background .25s, color .25s, transform .25s;
}
.btn-w:hover{ background: var(--bg); color: #fff; transform: translateY(-2px); }
.btn-w .a{
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.1);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* generic 2-col split for body sections */
.split-2{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
.split-2.balanced{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 980px){ .split-2{ grid-template-columns: 1fr; } }

/* generic pull-quote with violet edge */
.pull-violet{
  margin-top: 24px;
  padding: 22px 26px;
  border-left: 2px solid var(--violet-2);
  background: linear-gradient(90deg, rgba(96,39,241,.12), transparent 70%);
  border-radius: 0 12px 12px 0;
  font-size: 18px; line-height: 1.5;
  color: #fff;
  font-weight: 500;
}
.pull-violet em{ font-style: normal; color: var(--violet-2); }

/* generic card */
.card-base{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-2);
  padding: 24px;
  transition: border-color .25s, transform .35s ease, box-shadow .35s;
}
.card-base:hover{
  border-color: var(--violet);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -32px var(--violet-glow);
}

/* live status pill (small) */
.live-pill{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--good);
}
.live-pill .d{
  width: 6px; height: 6px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 0 rgba(107,227,158,.5);
  animation: pulse 1.6s ease-out infinite;
}

/* ───────────────────────────────────────────────
   Long-document pages (Privacy, Cookie, Legal, Articolo)
   ────────────────────────────────────────────── */
.doc-wrap{
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 980px){ .doc-wrap{ grid-template-columns: 1fr; } }

.doc-toc{
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(244,241,236,.02);
  padding: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.doc-toc h6{
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-low);
  font-weight: 500;
}
.doc-toc ol{
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  counter-reset: toc;
}
.doc-toc ol li{
  counter-increment: toc;
}
.doc-toc ol li a{
  display: flex; gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-mid);
  transition: background .2s, color .2s;
}
.doc-toc ol li a:hover{ background: rgba(244,241,236,.04); color: var(--ink-light); }
.doc-toc ol li a::before{
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-weight: 500;
  color: var(--violet-2);
  letter-spacing: .08em;
  flex: 0 0 auto;
}
@media (max-width: 980px){ .doc-toc{ position: static; } }

.doc-body{ max-width: 72ch; }
.doc-body h2{
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15; letter-spacing: -.02em;
  color: #fff;
  margin: 56px 0 18px;
  scroll-margin-top: 100px;
}
.doc-body h2:first-child{ margin-top: 0; }
.doc-body h2 .num{
  font-family: var(--mono); font-weight: 500; font-size: 12px;
  letter-spacing: .22em;
  color: var(--violet-2);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.doc-body h3{
  margin: 36px 0 12px;
  font-weight: 800; font-size: 18px; letter-spacing: -.01em;
  color: #fff;
}
.doc-body p{
  margin: 0 0 18px;
  font-size: 16px; line-height: 1.7;
  color: var(--ink-light);
}
.doc-body strong{ color: #fff; font-weight: 800; }
.doc-body a{ color: var(--violet-2); text-decoration: underline; text-underline-offset: 3px; }
.doc-body ul, .doc-body ol{
  margin: 0 0 18px;
  padding-left: 22px;
}
.doc-body li{ margin-bottom: 10px; font-size: 16px; line-height: 1.7; color: var(--ink-light); }
.doc-body table{
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14.5px;
  background: var(--bg-2);
}
.doc-body table th, .doc-body table td{
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.doc-body table th{
  background: rgba(244,241,236,.04);
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-mid);
  font-weight: 500;
}
.doc-body table tr:last-child td{ border-bottom: none; }
.doc-body table td.cat{ color: var(--violet-2); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.doc-body blockquote{
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 2px solid var(--violet-2);
  background: linear-gradient(90deg, rgba(96,39,241,.10), transparent 70%);
  border-radius: 0 12px 12px 0;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-light);
}
.doc-body code{
  font-family: var(--mono);
  font-size: .9em;
  padding: 2px 6px;
  background: rgba(244,241,236,.06);
  border-radius: 4px;
  color: var(--violet-2);
}
.doc-body .doc-meta{
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center;
  margin-bottom: 32px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(244,241,236,.02);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mid);
}
.doc-body .doc-meta b{ color: var(--violet-2); font-weight: 500; }


/* ───────────────────────────────────────────────
   MOBILE — simplified experience
   ─────────────────────────────────────────────── */

/* Hamburger trigger (hidden on desktop) */
.menu-toggle{
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0;
}
.menu-toggle .bars{
  position: relative;
  width: 18px; height: 12px;
  display: inline-block;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after{
  content: ""; position: absolute;
  left: 0; right: 0; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, top .25s, bottom .25s;
}
.menu-toggle .bars::before{ top: 0; }
.menu-toggle .bars::after{ bottom: 0; }
.menu-toggle .bars::before{ box-shadow: 0 5px 0 #fff; }
body.menu-open .menu-toggle .bars::before{ top: 5px; transform: rotate(45deg); box-shadow: none; }
body.menu-open .menu-toggle .bars::after{ bottom: 5px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer{
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(10,7,22,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  padding: 88px 24px 32px;
  opacity: 0;
  transition: opacity .3s ease;
  overflow-y: auto;
}
body.menu-open .mobile-drawer{ display: flex; opacity: 1; }
.mobile-drawer a{
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 4px;
  font-size: 22px; font-weight: 900;
  letter-spacing: -.01em;
  color: #fff;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer a .ar{
  font-family: var(--mono); font-size: 14px;
  color: var(--violet-2);
}
.mobile-drawer .footer{
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mid);
}
.mobile-drawer .footer a{
  display: inline; padding: 0; border: none;
  font-size: 11px; color: var(--violet-2); font-weight: 500;
  letter-spacing: .14em;
}
.mobile-drawer .cta-big{
  margin: 24px 0 32px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 22px;
  background: var(--violet);
  color: #fff;
  border-radius: 999px;
  font-weight: 800; font-size: 15px;
  border: none;
}
/* Pulsante X di chiusura nel drawer (l'hamburger resta sotto l'overlay) */
.drawer-close{
  position: absolute;
  top: 14px; right: var(--pad-x);
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(244,241,236,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff; cursor: pointer; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.drawer-close:hover{ background: rgba(244,241,236,.1); border-color: var(--violet); }
/* Blocca lo scroll della pagina dietro al drawer aperto */
body.menu-open{ overflow: hidden; }

@media (max-width: 880px) {
  :root {
    --pad-x: 18px;
    --section-y: 56px;
  }

  /* ── disable expensive background animations on mobile */
  body::before { animation: none !important; opacity: .55; }
  #aurora { display: none !important; }
  #stars-near { display: none !important; }
  #stars { opacity: .55; }
  #stars .comet, #stars .comet.b, #stars .comet.c { display: none; }
  #stardust { display: none !important; }

  /* ── typography */
  body { font-size: 16px; line-height: 1.55; }
  .display { font-size: clamp(40px, 11.5vw, 64px) !important; line-height: .94; letter-spacing: -.03em; }
  h2.section-title { font-size: clamp(30px, 8.5vw, 46px) !important; line-height: .96; }
  h2.section-title.sm { font-size: clamp(24px, 7vw, 36px) !important; }
  .lede { font-size: 16px; max-width: none; }
  .micro, .label { font-size: 10px; letter-spacing: .14em; }

  /* ── nav */
  .nav {
    padding: 12px var(--pad-x);
    gap: 10px;
    flex-wrap: nowrap;
  }
  .nav .brand .word { font-size: 16px; }
  .nav .brand svg { width: 26px; height: 26px; }
  .nav .links { display: none !important; }
  .nav .clock { display: none !important; }
  .nav .right .cta { display: none !important; }
  .nav .right { gap: 0; }
  .menu-toggle { display: inline-flex; }

  /* ── ticker — even smaller, faster */
  .ticker .track { font-size: 10.5px; padding: 9px 0; animation-duration: 22s; gap: 24px; }
  .ticker .item { gap: 24px; }

  /* ── section heads */
  .section-head {
    margin-bottom: clamp(28px, 6vw, 44px);
    gap: 14px;
  }
  .section-head .meta {
    flex-wrap: wrap; gap: 6px 12px; font-size: 11px;
  }
  .section-head .meta .ln { display: none; }
  /* hide secondary "micro" caption on mobile when present alongside section num */
  .section-head .meta > span:last-child:not(:first-child):not(:nth-child(2)) { display: none; }

  /* ── hero (homepage) */
  .hero { padding-bottom: 60px; padding-top: 28px; }
  .hero .meta-row { flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: 10px; letter-spacing: .12em; }
  .hero .meta-row .right { display: none; }
  .hero .meta-row .left .id { padding: 4px 8px; font-size: 10px; }
  .hero .mark-bg { display: none; }
  .hero .below {
    grid-template-columns: 1fr !important;
    gap: 24px;
    margin-top: 32px;
  }
  .hero .cta-row { gap: 12px; flex-wrap: wrap; }
  .hero .below .cta-row .btn-ghost { display: none; }
  .hero .status-panel {
    grid-template-columns: 1fr 1fr !important;
    margin-top: 40px;
  }
  .hero .status-panel .cell {
    padding: 12px 14px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .hero .status-panel .cell:nth-last-child(-n+2) { border-bottom: none; }
  .hero .status-panel .cell .k { font-size: 9px; }
  .hero .status-panel .cell .v { font-size: 13px; }

  /* ── inner page hero */
  .hero-page { padding-top: 32px; padding-bottom: 56px; }
  .hero-page .title-row,
  .hero-page .title-row.wide-sidecar,
  .hero-page .title-row.single {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .hero-page .cta-row { margin-top: 28px; gap: 12px; flex-wrap: wrap; }
  .hero-page .cta-foot { font-size: 12.5px; margin-top: 12px; }
  .hero-page .lede-after-h1 { margin-top: 24px; }
  .crumbs {
    font-size: 11px; gap: 8px; flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .crumbs .sep, .crumbs .curr { display: none; }
  .crumbs .reparto-num { padding: 3px 8px; font-size: 10px; }

  /* ── hide heavy sidecar widgets on phones (already redundant content) */
  .signal-panel,
  .agent-term,
  .bridge,
  .location-card,
  .creative-strip { display: none !important; }
  /* Hero dashboard mock for Seller Pilot — too heavy, hide */
  .hero-dash { display: none !important; }

  /* ── buttons */
  .btn-primary {
    padding: 14px 22px;
    font-size: 14px;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }
  .btn-ghost { padding: 12px 20px; font-size: 13px; }
  .btn-w { padding: 16px 22px; font-size: 14px; }
  .btn-w .a, .btn-primary .arrow { width: 22px; height: 22px; font-size: 11px; }
  /* Tighten CTA row on heroes */
  .hero-page .cta-row .btn-primary { width: auto; }

  /* ── grids → single column everywhere */
  .reparti .grid,
  .perche .grid,
  .casi .grid,
  .voci .quotes,
  .pilot .inner,
  .pilot .grid,
  .amazon .grid,
  .contatti .grid,
  .channels,
  .servizi .grid,
  .servizi-grid,
  .deliv-grid,
  .feat-grid,
  .features,
  .segments,
  .diff-grid,
  .audience-list,
  .team-grid,
  .certs-grid,
  .pain-list,
  .cats,
  .articles,
  .cases-grid,
  .filter-bar .filter-group { grid-template-columns: 1fr !important; }

  /* Reparti cards on home — taller min-height looks bad in 1col */
  .reparto, .servizio, .servizio-d, .deliv, .feat, .case, .seg-card, .cat, .team-card, .channel,
  .processo-creativo .step, .processo-d .step, .processo .step,
  .pain { min-height: auto !important; }

  /* Hide last reparto card on home — keep the grid lean (was 4) */
  /* Actually keep all 4 — they're the core offering. Skip this. */

  /* ── full-bleed inset sections that overflow */
  .pilot, .numeri, .final-cta, .pricing-card, .newsletter, .prato, .founder, .timeline {
    margin-left: var(--pad-x) !important;
    margin-right: var(--pad-x) !important;
    padding: 28px 22px !important;
    border-radius: 16px;
  }
  .pilot .inner, .final-cta .inner, .pricing-card .inner, .newsletter, .founder .inner, .prato {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    gap: 22px;
  }

  /* ── numeri */
  .numeri .head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .numeri .row { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .numeri .cell {
    border-right: none !important;
    padding: 0 !important;
  }
  .numeri .big { font-size: 44px !important; }
  .numeri .lbl { font-size: 10px; letter-spacing: .12em; }

  /* ── quotes / testimonials */
  .quote { padding: 22px; }
  .quote p { font-size: 16px; line-height: 1.5; }
  .quote .who { font-size: 10px; letter-spacing: .12em; }

  /* ── forms */
  form.contact { padding: 22px 18px; gap: 14px; border-radius: 18px; }
  form.contact .duo { grid-template-columns: 1fr !important; gap: 14px; }
  form.contact input, form.contact select, form.contact textarea { padding: 13px 14px; font-size: 15px; }
  form.contact .submit-row { flex-direction: column; align-items: stretch; gap: 14px; }
  form.contact .submit-row small { max-width: none; font-size: 11.5px; }
  form.contact .submit-row .btn-primary { width: 100%; }

  /* ── filters bar (portfolio) */
  .filter-bar { padding: 16px 18px; }
  .filter-bar .filter-group {
    grid-template-columns: 1fr !important;
    gap: 8px; padding: 8px 0;
  }
  .filter-bar .filter-group .lbl { font-size: 10px; }
  .filter-bar .chip { padding: 6px 12px; font-size: 12px; }
  .filter-meta { font-size: 10px; }

  /* ── case study cards */
  .case.featured {
    grid-column: span 1 !important;
    flex-direction: column !important;
  }
  .case.featured .thumb, .case.featured .body { flex: none; }
  .case .thumb { aspect-ratio: 16/10; }
  .case h3 { font-size: 18px; }
  .case .kpis { gap: 16px; }
  .case .kpi .n { font-size: 19px; }

  /* ── final CTA panel */
  .final-cta h2 { font-size: 30px !important; line-height: 1; }
  .final-cta p { font-size: 15px; }
  .final-cta .btn-w { width: 100%; justify-content: center; }

  /* ── pricing */
  .pricing-card .price { font-size: 56px !important; }
  .pricing-card .price .u { font-size: 14px; }
  .pricing-card .perks li { font-size: 14px; padding-left: 26px; }
  .pricing-card .ctas .btn-primary { width: 100%; justify-content: center; }

  /* ── footer */
  footer { padding: 40px var(--pad-x) 20px; }
  footer .top {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding-bottom: 24px;
  }
  footer .signature .word { font-size: 19px; }
  footer .signoff { font-size: 13px; }
  footer ul a, footer ul li { font-size: 13.5px; }
  footer h6 { font-size: 10px; }
  footer .bottom {
    flex-direction: column; align-items: flex-start;
    font-size: 9.5px; gap: 8px; padding-top: 16px;
  }
  footer .bottom .right { gap: 14px; }

  /* horizon footer signature — radically smaller */
  footer .horizon {
    margin: 36px calc(var(--pad-x) * -1) 12px;
    padding: 80px var(--pad-x) 28px;
  }
  footer .horizon .ribbon { font-size: 9px; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; justify-content: center; }
  footer .horizon .ribbon .ln { display: none; }
  footer .horizon .ribbon .coord { letter-spacing: .12em; }
  footer .horizon .wordmark { font-size: 24px; letter-spacing: .26em; }
  footer .horizon .mark-row .mk { width: 30px; }
  footer .horizon .mark-row .divider { height: 24px; }
  footer .horizon .tagline {
    font-size: 9.5px; letter-spacing: .16em;
    padding: 0 var(--pad-x);
    line-height: 1.6;
  }
  footer .horizon .tagline .sep { margin: 0 4px; }

  /* ── table-style rows on Design page */
  .mp-row { grid-template-columns: 1fr !important; }
  .mp-row > div { border-right: none !important; border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .mp-row > div:last-child { border-bottom: none; }
  .mp-row.head { display: none; }
  .mp-row .name { font-size: 16px; }
  .mp-row .spec { font-size: 14px; }

  /* ── timeline (Chi siamo) */
  .tl-row { grid-template-columns: 1fr !important; gap: 10px; padding: 22px 0; }
  .tl-row .year { font-size: 19px; }

  /* ── processes */
  .processo-creativo .steps,
  .processo-d .steps,
  .processo .steps,
  .cosa-facciamo .phases {
    grid-template-columns: 1fr !important;
  }
  .processo-creativo .step,
  .processo-d .step,
  .processo .step,
  .phase { padding: 22px 18px; }
  .phase { grid-template-columns: 1fr !important; gap: 10px; }
  .phase .out { text-align: left; max-width: none; }

  /* ── stack tech grid */
  .stack-grid { grid-template-columns: 1fr 1fr !important; }
  .tech-card { padding: 16px 14px; min-height: 110px; }

  /* ── blog cards */
  .blog-feat { grid-template-columns: 1fr !important; }
  .blog-feat h2 { font-size: 24px !important; }
  .blog-feat .body { padding: 26px 22px; }

  /* ── articolo / case study body */
  .doc-wrap { grid-template-columns: 1fr !important; }
  .doc-toc { position: static; }
}

@media (max-width: 480px) {
  :root { --pad-x: 16px; --section-y: 48px; }
  .display { font-size: clamp(34px, 10vw, 50px) !important; }
  h2.section-title { font-size: clamp(26px, 8vw, 38px) !important; }
  .ticker .track { font-size: 9.5px; gap: 18px; }
  .ticker .item { gap: 18px; }
  .nav .brand .word { font-size: 15px; }
  .crumbs { font-size: 10.5px; gap: 6px; }
  footer .horizon .wordmark { font-size: 20px; letter-spacing: .22em; }
  footer .horizon .ribbon { font-size: 8.5px; gap: 6px; }
  /* Two-col KPI rows get smaller still */
  .numeri .big { font-size: 38px !important; }
  /* Heroes don't need 3 status cells */
  .hero .status-panel .cell { padding: 10px 12px; }
  .hero .status-panel .cell .v { font-size: 12.5px; }
}

/* Slot immagini case study (foto se presente, gradiente se assente) */
.slot-img{ position:absolute; inset:0; background-size:cover; background-position:center; z-index:1; }
.case .thumb .tag-row{ z-index:2; }
.related-card .thumb{ position: relative; overflow: hidden; }

/* ───────────────────────────────────────────────
   RESPONSIVE ESTESO — dispositivi
   foldable · telefoni piccoli · tablet · landscape · schermi grandi / TV
   Si somma ai breakpoint 880 / 480 piu' sopra. Questi vengono DOPO nel file,
   quindi a pari specificita' vincono nei rispettivi range.
   ─────────────────────────────────────────────── */

/* ── Telefoni piccoli e foldable chiusi (<=360px; es. Galaxy Z Fold chiuso ~280px) */
@media (max-width: 360px){
  :root{ --pad-x: 14px; }
  .display{ font-size: clamp(28px, 9.5vw, 40px) !important; }
  h2.section-title{ font-size: clamp(22px, 7.5vw, 32px) !important; }
  h2.section-title.sm{ font-size: clamp(20px, 6.5vw, 28px) !important; }
  .pilot-logo{ flex-wrap: wrap; row-gap: 6px; }
  /* qualsiasi griglia residua a 2 colonne torna a 1 */
  .numeri .row, .stack-grid, .hero .status-panel, .facts{ grid-template-columns: 1fr !important; }
  .mobile-drawer a{ font-size: 20px; }
  .btn-primary, .btn-w, .btn-ghost{ font-size: 13.5px; }
}

/* ── Tablet / foldable aperti in verticale (600–880px, quasi quadrati):
   due colonne dove ha senso invece di liste lunghissime in colonna singola */
@media (min-width: 600px) and (max-width: 880px){
  .feat-grid, .pain-list, .segments, .kpi-defs, .articles, .cases-grid,
  .servizi .grid, .team-grid, .certs-grid, .cats{
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .roadmap, .sp-steps, .processo .steps{ grid-template-columns: repeat(3, 1fr) !important; }
  .lede{ max-width: 64ch; }
}

/* ── Tablet landscape / piccoli laptop (881–1100px): rilassa le griglie piu' dense */
@media (min-width: 881px) and (max-width: 1100px){
  .feat-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* ── Foldable con schermo a due segmenti (cerniera) — CSS Viewport Segments (MQ L5).
   Non spezzare i contenuti sulla piega: una sola colonna logica. */
@media (horizontal-viewport-segments: 2){
  .pilot .inner, .pilot .grid, .final-cta .inner, .report-split,
  .segments, .hero .below, .doc-wrap{
    grid-template-columns: 1fr !important;
  }
  :root{ --pad-x: clamp(20px, 5vw, 48px); }
}
@media (vertical-viewport-segments: 2){
  .hero, .hero-page{ min-height: auto; }
  .mobile-drawer{ padding-top: 72px; }
}
/* fallback per la vecchia spec sperimentale (screen-spanning) */
@media (spanning: single-fold-vertical){
  .pilot .inner, .final-cta .inner, .report-split, .segments{ grid-template-columns: 1fr !important; }
}

/* ── Telefoni in orizzontale (poca altezza): comprimi gli hero a tutta altezza */
@media (max-height: 520px) and (orientation: landscape){
  .hero, .hero-page{ padding-top: 24px !important; padding-bottom: 32px !important; }
  .mobile-drawer{ padding-top: 64px; }
  .display{ font-size: clamp(28px, 7vh, 46px) !important; }
}

/* ── Schermi grandi (>=1600px): piu' aria ai lati */
@media (min-width: 1600px){
  :root{ --pad-x: clamp(96px, 9vw, 200px); }
}
/* ── TV / 4K (>=2000px): centra il contenuto, evita righe lunghissime */
@media (min-width: 2000px){
  body{ font-size: 18px; }
  .wrap{ max-width: 1840px; margin-left: auto; margin-right: auto; }
}

/* ── Rete di sicurezza anti-overflow su schermi stretti: form e media non sforano mai */
@media (max-width: 480px){
  form.contact input, form.contact select, form.contact textarea{ width: 100%; min-width: 0; }
  form.contact label, form.contact .duo, form.contact .duo > *{ min-width: 0; }
  iframe, img, video, .map-big, .map{ max-width: 100%; }
}
/* ── Tabelle in documenti/articoli/case: su mobile scorrono in orizzontale invece di sforare la pagina */
@media (max-width: 600px){
  .doc-body table, .art-body table, .story-body table, .article table, article table{
    display: block !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; width: 100%;
  }
}
