/* ==========================================================
   SONITECH — bozza sito one-page a sezioni "sfogliabili"
   ========================================================== */

:root {
  --bg: #10101d;          /* stesso fondo del logo */
  --bg-2: #151527;
  --ink: #f2f3f8;
  --ink-2: #a9adc4;
  --ink-3: #6c7090;
  --line: rgba(255, 255, 255, .09);
  --blue: #48a8da;        /* accento del logo */
  --accent: var(--blue);
  --radius: 18px;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 1s;
  --top: 84px;
  --font: "Sora", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 56px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
/* ---------- Logo nella barra: simbolo ⇄ logo completo ----------
   Unità: --u = 1/116 del simbolo; --f = scala dell'immagine del logo (1024×196)
   tale che le lettere siano alte il 60% del simbolo. Coordinate dal logo originale. */
.brand {
  --sz: 34px;
  --u: calc(var(--sz) / 116);
  --f: calc(var(--sz) * .6 / 128);
  --ox: calc(-71 * var(--f));                 /* la S parte dal bordo sinistro */
  --oy: calc(var(--sz) / 2 - 98 * var(--f));  /* lettere centrate sul simbolo */
  --ease-m: cubic-bezier(.65, 0, .25, 1);
  position: relative; display: block; width: var(--sz); height: var(--sz);
}
.brand-symbol { position: absolute; inset: 0; display: block; }
.brand-symbol i { position: absolute; display: block; box-sizing: border-box; }

/* a riposo: quadrato arrotondato con la barra al centro */
.bm-ring {
  left: 0; top: 0; width: calc(116 * var(--u)); height: calc(116 * var(--u));
  border: calc(20 * var(--u)) solid #F2F2F5; border-radius: calc(40 * var(--u));
  transition: all .7s var(--ease-m) .12s;
}
.bm-bar {
  left: calc(36 * var(--u)); top: calc(48 * var(--u)); width: calc(44 * var(--u)); height: calc(20 * var(--u));
  background: #00A8DD;
  transition: all .7s var(--ease-m) .05s;
}

/* lettere: finestre con maschera, ognuna mostra la sua porzione del logo */
.brand-word { position: absolute; left: 0; top: 0; pointer-events: none; }
.brand-word i {
  position: absolute; overflow: hidden;
  left: calc(var(--ox) + (var(--x0) - 5) * var(--f));
  top: calc(var(--oy) + 34 * var(--f));
  width: calc((var(--x1) - var(--x0) + 10) * var(--f));
  height: calc(128 * var(--f));
}
.brand-word i::before {
  content: ""; position: absolute;
  left: calc((var(--x0) - 5) * var(--f) * -1); top: calc(-34 * var(--f));
  width: calc(1024 * var(--f)); height: calc(196 * var(--f));
  background: url(../img/web/logo-nobar.png) 0 0 / 100% 100% no-repeat;
  transform: translateY(105%);
  /* in uscita le lettere scendono dall'ultima alla prima */
  transition: transform .45s cubic-bezier(.55, 0, .7, .2) calc((6 - var(--i)) * 35ms);
}

/* al passaggio del mouse (solo dispositivi con puntatore) */
@media (hover: hover) {
  .brand:hover .brand-word, .brand:focus-visible .brand-word { pointer-events: auto; }
  .brand:hover .brand-word i::before, .brand:focus-visible .brand-word i::before {
    transform: none;
    transition: transform .7s cubic-bezier(.16, 1, .3, 1) calc(.18s + var(--i) * 45ms);
  }
  /* il quadrato diventa la O del logo */
  .brand:hover .bm-ring, .brand:focus-visible .bm-ring {
    left: calc(var(--ox) + 192 * var(--f)); top: calc(var(--oy) + 40 * var(--f));
    width: calc(124 * var(--f)); height: calc(116 * var(--f));
    border-width: calc(21 * var(--f)) calc(25 * var(--f));
    border-radius: calc(40 * var(--f)) / calc(44 * var(--f));
    transition-delay: 0s;
  }
  /* la barra vola sulla E */
  .brand:hover .bm-bar, .brand:focus-visible .bm-bar {
    left: calc(var(--ox) + 637.6 * var(--f)); top: calc(var(--oy) + 40.6 * var(--f));
    width: calc(88.2 * var(--f)); height: calc(21.2 * var(--f));
    box-shadow: 0 0 calc(var(--sz) * .35) rgba(0,168,221,.45);
    transition-delay: .06s;
  }
}
.brand:focus-visible { outline: none; }
.menu { display: flex; gap: 6px; align-items: center; }
.menu a {
  font-size: 13px; letter-spacing: .02em; color: var(--ink-2);
  padding: 9px 14px; border-radius: 99px;
  transition: color .3s, background .3s;
}
.menu a:hover { color: var(--ink); }
.menu a.is-on { color: var(--ink); background: rgba(255,255,255,.07); }
.menu a.menu-cta { border: 1px solid var(--line); margin-left: 8px; }

/* ---------- Pager (destra) ---------- */
.pager {
  position: fixed; right: clamp(14px, 2.4vw, 36px); top: 50%; z-index: 50;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.pager-count {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pager-count #pg-cur { color: var(--ink); }
.pager-count i { width: 1px; height: 18px; background: var(--line); }
.pager-dots { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pager-dots button {
  display: block; width: 8px; height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.18);
  transition: height .5s var(--ease-out), background .4s;
}
.pager-dots button.is-on { height: 28px; background: var(--accent); }
.pager-dots button:hover { background: rgba(255,255,255,.5); }

.progress {
  position: fixed; left: 0; right: 0; bottom: 0; height: 2px; z-index: 50;
  background: rgba(255,255,255,.04);
}
.progress span {
  display: block; height: 100%; width: 0; background: var(--accent);
  transition: width var(--dur) var(--ease), background .6s;
}

/* ---------- Deck & transizioni ---------- */
.deck { position: fixed; inset: 0; overflow: hidden; }

.slide {
  position: absolute; inset: 0;
  height: 100vh; height: 100dvh;
  background: var(--bg);
  visibility: hidden;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  will-change: clip-path, transform;
}
.slide.is-active { visibility: visible; z-index: 2; }

/* entrata: la nuova sezione si "srotola" sopra la precedente */
.slide.from-below { clip-path: inset(100% 0 0 0); }
.slide.from-above { clip-path: inset(0 0 100% 0); }
.slide.animating { transition: clip-path var(--dur) var(--ease); }

/* uscita: la precedente arretra come un foglio sotto al nuovo */
.slide.is-leaving {
  visibility: visible; z-index: 1;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), filter var(--dur) var(--ease);
  opacity: .25; filter: blur(4px);
}
.slide.is-leaving.up   { transform: translateY(-6%) scale(.94); }
.slide.is-leaving.down { transform: translateY(6%) scale(.94); }

.inner {
  position: relative; z-index: 1;
  height: 100%;
  max-width: 1280px; margin: 0 auto;
  padding: calc(var(--top) + 2vh) clamp(16px, 6vw, 96px) 6vh;
  display: flex; flex-direction: column; justify-content: center;
}

/* comparsa dei contenuti a ogni ingresso */
.reveal { opacity: 0; transform: translateY(26px); }
.slide.is-active .reveal {
  animation: rise .9s var(--ease-out) both;
  animation-delay: calc(.35s + var(--i, 0) * .09s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Tipografia ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 22px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow b {
  color: var(--accent); font-weight: 500;
  padding: 3px 8px; border: 1px solid currentColor; border-radius: 6px; letter-spacing: .05em;
}
h1, h2 { font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(42px, 7.4vw, 108px); }
h2 { font-size: clamp(32px, 4vw, 58px); margin-bottom: 22px; }
.lead { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 54ch; font-weight: 300; }
.lead strong { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 99px; font-size: 14px; font-weight: 600;
  transition: transform .3s var(--ease-out), background .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- 0 · Hero ---------- */
.slide-hero { background: radial-gradient(120% 90% at 80% 10%, #1b2140 0%, var(--bg) 55%); }
.net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero h1 em {
  background: linear-gradient(90deg, var(--blue), #8fd3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 28px; }
.hint {
  position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); z-index: 1;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 12px;
}
.mouse { width: 18px; height: 28px; border: 1.5px solid var(--ink-3); border-radius: 10px; position: relative; }
.mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px;
  background: var(--ink-2); border-radius: 2px; animation: wheel 1.8s infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

/* ---------- 1 · Approccio ---------- */
.slide-approach { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
/* sfondo: righe di codice stilizzate che scorrono in un editor inclinato */
.code-bg {
  position: absolute; left: -10%; top: -6%; width: 120%; height: 118%;
  transform: perspective(1100px) rotateX(24deg);
  transform-origin: 50% 70%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 72%, transparent 100%);
  opacity: .75;
  pointer-events: none;
}
.slide-approach .card { background: rgba(16,16,29,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.card {
  padding: 28px 24px 30px; border-radius: var(--radius);
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  transition: border-color .4s, background .4s, transform .5s var(--ease-out);
}
.card:hover { border-color: rgba(72,168,218,.5); background: rgba(72,168,218,.06); transform: translateY(-4px); }
.card-ico {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(72,168,218,.12); color: var(--blue); font-size: 20px; margin-bottom: 26px;
}
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }

/* ---------- Split (progetti) ---------- */
.split { flex-direction: row; align-items: center; gap: clamp(32px, 5vw, 80px); }
.split.reverse { flex-direction: row-reverse; }
.split .copy { flex: 1 1 46%; min-width: 0; }
.split .visual { flex: 1 1 54%; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; }

.feats { list-style: none; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; max-width: 620px; }
.feats li { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); font-weight: 300; padding-left: 16px; border-left: 2px solid var(--accent); }
.feats b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 3px; }

/* sfondi con alone colorato per progetto */
.slide-travel { background: radial-gradient(70% 80% at 78% 50%, rgba(232,163,61,.16), transparent 70%), var(--bg); }
.slide-nia    { background: radial-gradient(70% 80% at 25% 50%, rgba(63,198,180,.14), transparent 70%), var(--bg); }
.slide-cs     { background: radial-gradient(70% 80% at 75% 50%, rgba(72,168,218,.16), transparent 70%), var(--bg); }
.slide-gda    { background: radial-gradient(70% 80% at 25% 50%, rgba(74,134,240,.16), transparent 70%), var(--bg); }
.slide-wf     { background: radial-gradient(70% 80% at 75% 50%, rgba(139,124,246,.16), transparent 70%), var(--bg); }

/* ---------- Workflow Designer: editor di flussi animato ---------- */
.wf-window { max-width: 720px; }
.wf-canvas {
  padding: 18px 16px;
  background: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 18px 18px, #141526;
}
.wf-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.wf-edge { fill: none; stroke: rgba(255,255,255,.13); stroke-width: 1.5; }
.wf-flow { fill: none; stroke: var(--slide-accent); stroke-width: 1.5; stroke-dasharray: 3 11; opacity: .55; animation: wf-dash 1.2s linear infinite; }
@keyframes wf-dash { to { stroke-dashoffset: -14; } }
.wf-pulse { fill: #fff; filter: drop-shadow(0 0 4px var(--slide-accent)) drop-shadow(0 0 8px var(--slide-accent)); }
.wf-node rect.box { fill: #1a1c30; stroke: rgba(255,255,255,.1); }
.wf-node.trigger rect.box { stroke: rgba(255,255,255,.16); }
.wf-node.ai rect.box { fill: #221d40; stroke: var(--slide-accent); stroke-width: 1.5; animation: wf-think 2.4s ease-in-out infinite; }
@keyframes wf-think { 50% { filter: drop-shadow(0 0 14px rgba(139,124,246,.55)); } }
.wf-node .ico { fill: rgba(139,124,246,.16); }
.wf-node.trigger .ico { fill: rgba(232,163,61,.16); }
.wf-node.out .ico { fill: rgba(72,168,218,.16); }
.wf-node .glyph { font-size: 13px; text-anchor: middle; dominant-baseline: central; fill: var(--slide-accent); }
.wf-node.trigger .glyph { fill: #e8a33d; }
.wf-node.out .glyph { fill: #48a8da; }
.wf-node .label { font-size: 13px; font-weight: 600; fill: #f2f3f8; }
.wf-node .sub { font-family: var(--mono); font-size: 9.5px; fill: #8a8eab; }
.wf-port { fill: #141526; stroke: rgba(255,255,255,.35); stroke-width: 1.2; }
.wf-node.hit rect.box { stroke: #fff; transition: stroke .2s; }
.slide[data-accent] em, .slide[data-accent] .eyebrow b { color: var(--slide-accent); }
.slide[data-accent] .feats li { border-left-color: var(--slide-accent); }

/* ---------- Telefono ---------- */
.phone {
  position: relative;
  width: min(300px, 26vw, calc((100dvh - var(--top) - 150px) * .49));
  aspect-ratio: 600 / 1219;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(145deg, #2a2b3d, #0c0c16);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -20px rgba(0,0,0,.8), 0 0 120px -40px var(--slide-accent, var(--blue));
}
.phone img, .story-track { width: 100%; height: 100%; border-radius: 34px; object-fit: cover; object-position: top; }
.story-track { position: relative; overflow: hidden; background: #000; }
.story-track img {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.04);
  transition: opacity .7s ease, transform 1.2s var(--ease-out);
}
.story-track img.is-on { opacity: 1; transform: none; }
.story-tap { position: absolute; top: 0; bottom: 0; width: 40%; z-index: 2; }
.story-tap.prev { left: 0; } .story-tap.next { right: 0; }

.story-bars {
  position: absolute; left: 8px; right: 8px; top: -22px;
  display: flex; gap: 4px;
}
.story-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.story-bars span i { display: block; height: 100%; width: 0; background: var(--slide-accent); }
.story-bars span.done i { width: 100%; }
.story-bars span.run i { animation: fill var(--story, 3.8s) linear forwards; }
@keyframes fill { to { width: 100%; } }
.story-cap {
  margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-2);
  text-transform: uppercase; min-height: 1.4em; transition: opacity .3s;
}

/* ---------- Browser ---------- */
.browser {
  width: 100%;
  border-radius: 14px; overflow: hidden;
  background: #1b1c2b;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -20px rgba(0,0,0,.8), 0 0 140px -50px var(--slide-accent, var(--blue));
}
.browser-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.browser-bar span { margin-left: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.browser img { width: 100%; }

.slide-nia .visual, .slide-gda .visual { perspective: 1600px; }
.slide-nia .browser, .slide-gda .browser { transform: rotateY(9deg) rotateX(3deg); transition: transform 1s var(--ease-out); }
.slide-nia .visual:hover .browser, .slide-gda .visual:hover .browser { transform: none; }
.float-chip {
  position: absolute; z-index: 2;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink);
  padding: 10px 14px; border-radius: 12px;
  background: rgba(16,16,29,.82); border: 1px solid var(--slide-accent, rgba(63,198,180,.4));
  backdrop-filter: blur(10px);
  animation: bob 5s ease-in-out infinite;
}
.float-chip.c1 { left: -4%; bottom: 14%; }
.float-chip.c2 { right: -2%; top: 8%; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Centro Servizi ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 30px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.tab { font-size: 13px; padding: 10px 16px; border-radius: 99px; color: var(--ink-2); transition: background .3s, color .3s; }
.tab.is-on { background: var(--slide-accent); color: #0b1020; font-weight: 600; }
.tab-desc { margin-top: 20px; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; min-height: 4.8em; font-weight: 300; }

.cs-stage { position: relative; width: 100%; display: grid; place-items: center; }
.cs-view {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(20px) scale(.97); pointer-events: none;
  transition: opacity .6s ease, transform .8s var(--ease-out);
}
.cs-view.is-on { opacity: 1; transform: none; pointer-events: auto; }
.phone.small { width: min(260px, 22vw, calc((100dvh - var(--top) - 120px) * .46)); }

/* ---------- Contatti ---------- */
.slide-contact { background: radial-gradient(90% 70% at 50% 110%, rgba(72,168,218,.22), transparent 70%), var(--bg); }
.contact { align-items: flex-start; }
.foot {
  position: absolute; left: clamp(16px, 6vw, 96px); right: clamp(16px, 6vw, 96px); bottom: 5vh;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
}
.foot img { height: 16px; width: auto; opacity: .7; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1280px) and (min-width: 901px) {
  .menu { gap: 2px; }
  .menu a { padding: 8px 10px; font-size: 12.5px; }
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Elementi solo mobile (nascosti su desktop) ---------- */
.m-bar, .m-menu, .hint-m, .story-cap span { display: none; }
.story-cap b { font-weight: 400; }

/* ---------- Lightbox (desktop e mobile) ---------- */
.browser img, .cs-view.phone img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 8, 16, .94); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-scroll { overflow: auto; max-height: 100%; padding: 0 5vw; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lb-scroll::-webkit-scrollbar { display: none; }
.lb-scroll img { max-width: none; width: min(1600px, 90vw); margin: 0 auto; border-radius: 10px; }
.lb-scroll img.tall { width: auto; height: 86vh; height: 86dvh; }
.lb-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); font-size: 16px;
}
.lb-hint { display: none; }

/* ==========================================================
   VERSIONE MOBILE
   Ogni sezione è pensata per stare in uno schermo:
   titolo in alto, visual al centro (prende lo spazio libero),
   dettagli in una striscia scorrevole in orizzontale.
   ========================================================== */
@media (max-width: 900px) {
  :root { --top: 60px; --gut: 20px; }

  html, body { overscroll-behavior: none; }

  /* topbar: logo + contatore + hamburger */
  .topbar { padding: 0 var(--gut); padding-top: env(safe-area-inset-top); height: calc(var(--top) + env(safe-area-inset-top)); }
  .topbar::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(16,16,29,.92), rgba(16,16,29,0));
  }
  .brand { --sz: 28px; }
  .menu, .pager { display: none; }
  .m-bar { display: flex; align-items: center; gap: 14px; }
  .m-count { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
  .m-count b { color: var(--ink); font-weight: 500; }
  .burger {
    position: relative; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255,255,255,.04);
  }
  .burger i {
    position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px;
    transition: transform .45s var(--ease-out), top .45s var(--ease-out);
  }
  .burger i:first-child { top: 16px; }
  .burger i:last-child { top: 24px; }
  body.menu-open .burger i:first-child { top: 20px; transform: rotate(45deg); }
  body.menu-open .burger i:last-child { top: 20px; transform: rotate(-45deg); }

  /* menu a tutto schermo */
  .m-menu {
    display: flex; flex-direction: column; justify-content: center;
    position: fixed; inset: 0; z-index: 40;
    padding: calc(var(--top) + 20px) var(--gut) calc(30px + env(safe-area-inset-bottom));
    background: radial-gradient(120% 70% at 100% 0%, #1b2140, var(--bg) 60%);
    clip-path: circle(0 at calc(100% - 41px) 30px);
    transition: clip-path .7s var(--ease);
    pointer-events: none;
  }
  body.menu-open .m-menu { clip-path: circle(150% at calc(100% - 41px) 30px); pointer-events: auto; }
  .m-menu ol { list-style: none; }
  .m-menu li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s var(--ease-out); }
  body.menu-open .m-menu li { opacity: 1; transform: none; }
  body.menu-open .m-menu li:nth-child(1) { transition-delay: .18s; }
  body.menu-open .m-menu li:nth-child(2) { transition-delay: .22s; }
  body.menu-open .m-menu li:nth-child(3) { transition-delay: .26s; }
  body.menu-open .m-menu li:nth-child(4) { transition-delay: .30s; }
  body.menu-open .m-menu li:nth-child(5) { transition-delay: .34s; }
  body.menu-open .m-menu li:nth-child(6) { transition-delay: .38s; }
  .m-menu a {
    display: flex; align-items: baseline; gap: 16px;
    padding: 16px 0; font-size: clamp(26px, 8vw, 38px); font-weight: 600; letter-spacing: -.03em;
  }
  .m-menu a span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
  .m-menu a.is-on { color: var(--accent); }
  .m-menu-foot { margin-top: 32px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

  /* struttura della sezione: colonna a tutta altezza */
  .inner {
    justify-content: flex-start;
    padding: calc(var(--top) + env(safe-area-inset-top) + 14px) var(--gut) calc(26px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  }
  .inner::-webkit-scrollbar { display: none; }

  .eyebrow { font-size: 10.5px; margin-bottom: 14px; gap: 10px; }
  h1 { font-size: clamp(40px, 12.5vw, 64px); }
  h2 { font-size: clamp(27px, 8vw, 40px); margin-bottom: 12px; }
  .lead { font-size: 14.5px; line-height: 1.55; }
  .btn { padding: 14px 22px; }

  /* hero */
  .hero { justify-content: center; padding-bottom: 90px; }
  .hero .lead { margin-top: 20px; }
  .hero .actions { margin-top: 30px; }
  .hero .btn { flex: 1 1 auto; justify-content: center; }
  .hint { bottom: calc(26px + env(safe-area-inset-bottom)); }
  .hint .mouse { display: none; }
  .hint-d { display: none; }
  .hint-m { display: inline; animation: nudge 2.2s ease-in-out infinite; }
  .hint::before { content: "↑"; font-size: 14px; animation: nudge 2.2s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateY(-5px); } }

  /* approccio: griglia 2×2 compatta */
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
  .card { padding: 16px 14px 18px; border-radius: 14px; }
  .card-ico { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; margin-bottom: 12px; }
  .card h3 { font-size: 14.5px; margin-bottom: 6px; }
  .card p { font-size: 12.5px; line-height: 1.5; }

  /* sezioni progetto: i figli di .copy entrano direttamente nella colonna */
  .split, .split.reverse { flex-direction: column; align-items: stretch; gap: 0; }
  .split .copy { display: contents; }
  .split .eyebrow { order: 1; }
  .split h2 { order: 2; }
  .split .lead { order: 3; margin-bottom: 4px; }
  .split .tabs { order: 4; }
  .split .visual { order: 5; flex: 1 1 auto; min-height: 240px; margin: 14px 0 0; justify-content: center; }
  .split .feats, .split .tab-desc { order: 6; }

  /* dettagli come striscia orizzontale a scorrimento */
  .feats {
    display: flex; gap: 10px; margin: 16px calc(-1 * var(--gut)) 0; padding: 0 var(--gut) 2px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut);
    scrollbar-width: none; max-width: none;
  }
  .feats::-webkit-scrollbar { display: none; }
  .feats li {
    flex: 0 0 72%; scroll-snap-align: start;
    padding: 12px 14px; font-size: 12.5px; line-height: 1.45;
    border: 1px solid var(--line); border-left: 2px solid var(--slide-accent, var(--accent));
    border-radius: 12px; background: rgba(255,255,255,.03);
  }
  .feats b { font-size: 13.5px; }

  /* Travel AI: il telefono racconta le funzioni, la lista non serve */
  .slide-travel .lead, .slide-travel .feats { display: none; }
  .slide-travel .visual { margin-top: 26px; min-height: 0; }
  /* altezza = schermo meno titolo, barre e didascalia; la larghezza segue l'aspect-ratio */
  .phone {
    --ph: clamp(300px, calc(100dvh - 300px), 600px);
    height: var(--ph); width: calc(var(--ph) * .492); /* proporzioni fisse dello screenshot (600×1219) */
    aspect-ratio: auto; padding: 6px; border-radius: 30px; flex: none;
  }
  .slide-travel h2 { font-size: clamp(24px, 6.6vw, 34px); }
  .slide-travel .eyebrow { margin-bottom: 10px; }
  .phone img, .story-track { border-radius: 26px; }
  .story-bars { top: -13px; left: 12px; right: 12px; gap: 3px; }
  .story-bars span { height: 2.5px; }
  .slide-travel .visual { display: flex; flex-direction: column; align-items: center; }
  .story-cap { margin-top: 14px; text-align: center; text-transform: none; letter-spacing: 0; font-family: var(--font); min-height: 3.2em; }
  .story-cap b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--slide-accent); margin-bottom: 4px; }
  .story-cap span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); max-width: 32ch; margin: 0 auto; font-weight: 300; }

  /* screenshot desktop: dritti, con invito a ingrandire */
  .slide-nia .browser, .slide-gda .browser { transform: none !important; }
  .float-chip { display: none; }
  .browser { border-radius: 10px; position: relative; }
  .browser-bar { height: 26px; padding: 0 10px; gap: 5px; }
  .browser-bar i { width: 7px; height: 7px; }
  .browser-bar span { font-size: 9.5px; margin-left: 6px; }
  .wf-window::after { display: none; }
  .slide-wf .lead { display: none; }
  .slide-wf .visual { flex: none; }
  .wf-canvas { padding: 12px 10px; }
  .code-bg { opacity: .55; }
  .browser::after {
    content: "⤢ Tocca per ingrandire"; position: absolute; right: 8px; bottom: 8px;
    font-family: var(--mono); font-size: 10px; padding: 6px 9px; border-radius: 8px;
    background: rgba(16,16,29,.85); color: var(--ink); pointer-events: none;
  }

  /* Centro Servizi: schede in alto, visual al centro, descrizione sotto */
  .slide-cs .lead { display: none; }
  .tabs { display: flex; margin-top: 6px; border-radius: 14px; }
  .tab { flex: 1; padding: 10px 6px; font-size: 12px; border-radius: 10px; }
  .cs-view.browser { align-self: center; }
  /* la regola desktop (22vw) qui va annullata: larghezza dalle proporzioni dello screenshot (600×1304) */
  .phone.small { --ph: clamp(280px, calc(100dvh - 380px), 520px); width: calc(var(--ph) * .46); }
  .tab-desc { margin-top: 14px; min-height: 4.5em; font-size: 13.5px; }

  /* contatti */
  .contact { justify-content: center; }
  .contact .actions { flex-direction: column; align-items: stretch; width: 100%; }
  .contact .btn { justify-content: center; }
  .foot { left: var(--gut); right: var(--gut); bottom: calc(26px + env(safe-area-inset-bottom)); }

  /* lightbox: screenshot orizzontale a piena altezza, si scorre col dito */
  .lb-scroll { padding: 0 var(--gut); }
  .lb-scroll img { width: auto; height: min(72vh, 520px); }
  .lb-scroll img.tall { width: 100%; height: auto; }   /* immagini verticali o quadrate: a tutta larghezza */
  .lb-hint {
    display: block; text-align: center; margin-top: 18px;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-3);
  }

  .progress { bottom: env(safe-area-inset-bottom); }
}

/* telefoni bassi (es. iPhone SE) o in orizzontale: si stringe ancora */
@media (max-width: 900px) and (max-height: 700px) {
  h2 { font-size: 26px; }
  .eyebrow { margin-bottom: 10px; }
  .card p { display: none; }
  .card { padding: 14px; }
  .card-ico { margin-bottom: 8px; }
  .split .visual { min-height: 200px; }
  .story-cap span { display: none; }
  .story-cap { min-height: 0; }
  .slide-travel .phone { --ph: clamp(260px, calc(100dvh - 260px), 600px); }
}

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

@media (prefers-reduced-motion: reduce) {
  :root { --dur: .01s; }
  .reveal, .slide.is-active .reveal { animation: none; opacity: 1; transform: none; }
  .float-chip, .mouse::after { animation: none; }
}
