/* ==========================================================
   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; }
/* richiamo: ogni 9 s Cursore dà un segno di vita (si inclina, rimbalza, la barretta scorre con un bagliore) per invitare
   al clic. Solo dopo l'intro; si ferma al passaggio del mouse (il logo si apre nella scritta) */
html:not(.has-intro):not(.intro-opening) .brand { animation: brand-richiamo 9s cubic-bezier(.36, .07, .19, .97) 4s infinite; transform-origin: 50% 85%; }
html:not(.has-intro):not(.intro-opening) .bm-bar { animation: bar-richiamo 9s ease-in-out 4s infinite; }
@keyframes brand-richiamo {
  0%, 86%, 100% { transform: none; }
  88% { transform: translateY(-3px) rotate(-11deg) scale(1.08); }
  91% { transform: translateY(0) rotate(8deg) scale(1.02); }
  94% { transform: rotate(-4deg); }
  97% { transform: rotate(1.5deg); }
}
@keyframes bar-richiamo {
  0%, 86%, 100% { transform: none; box-shadow: none; }
  89% { transform: translateX(-28%); box-shadow: 0 0 10px rgba(0,168,221,.8); }
  93% { transform: translateX(28%); box-shadow: 0 0 12px rgba(0,168,221,.9); }
  97% { transform: none; box-shadow: 0 0 6px rgba(0,168,221,.5); }
}
@media (hover: hover) {
  .brand:hover, .brand:focus-visible, .brand:hover .bm-bar, .brand:focus-visible .bm-bar { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) { .brand, .bm-bar { animation: none !important; } }
.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; }
/* CREALO e RINNOVALO nel menu con il loro marchio: la scritta e la O di Cursore che lampeggia */
.menu a.mk-voce { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; }
.menu a.cr-menu:hover { border-color: #f5821f; }
.mk-cr { position: relative; display: block; height: 14px; aspect-ratio: 1460 / 299; flex: none; }
.mk-cr img { position: absolute; top: 0; height: 100%; display: block; }
.mk-rn { display: inline-flex; align-items: baseline; font: 800 15px/1 'Sora', sans-serif; letter-spacing: -.03em; white-space: nowrap; }
.mk-rn > span:first-child { background: linear-gradient(100deg, #1fd6a4 0%, #8af3d6 45%, #1fd6a4 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rn-luce 6s ease-in-out infinite; }
.mk-o { position: relative; display: inline-block; width: .65em; height: .73em; margin-left: .05em; flex: none; }
.mk-o img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mk-o .mk-ob { inset: auto; left: 30.45%; top: 43.48%; width: 38.72%; height: 20.07%; }
.mk-ob { animation: cr-blink 1.1s steps(1) infinite; }
.menu a.mk-voce:hover .mk-cr, .menu a.mk-voce:hover .mk-rn { filter: drop-shadow(0 0 10px rgba(255,255,255,.18)); }
@media (prefers-reduced-motion: reduce) { .mk-ob, .mk-rn > span:first-child { animation: none; } }

/* ---------- tema natalizio (html.tema-natale, acceso dal pannello admin): il cappello di Babbo Natale su Cursore ----------
   coordinate in unità del simbolo (116 = lato del simbolo). Compare cadendo sul simbolo (dopo l'intro, che nasconde il
   simbolo vero finché non vola nella barra); al passaggio del mouse il simbolo si apre nella scritta e il cappello vola via */
.brand-cappello { display: none; }
.tema-natale .brand-cappello {
  display: block; position: absolute; pointer-events: none;
  left: 0; top: calc(-80 * var(--u)); width: calc(172 * var(--u)); height: calc(96 * var(--u));
  transform-origin: 30% 90%;
  transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .1s, opacity .3s .1s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.tema-natale.has-intro .brand-cappello, .tema-natale.intro-opening .brand-cappello { opacity: 0; }
.tema-natale:not(.has-intro):not(.intro-opening) .brand-cappello { animation: cappello-cade .8s cubic-bezier(.34, 1.56, .64, 1) .35s backwards; }
@keyframes cappello-cade { from { opacity: 0; transform: translateY(calc(-40 * var(--u))) rotate(-12deg); } 30% { opacity: 1; } }
@media (hover: hover) {
  .tema-natale .brand:hover .brand-cappello, .tema-natale .brand:focus-visible .brand-cappello {
    transform: translate(calc(-14 * var(--u)), calc(-30 * var(--u))) rotate(-18deg); opacity: 0;
    transition: transform .45s cubic-bezier(.55, 0, .7, .2), opacity .3s .1s;
  }
}
@media (prefers-reduced-motion: reduce) { .tema-natale .brand-cappello { animation: none !important; transition: none; } }

/* ---------- prova: menu verticale a sinistra (html.menu-sx, solo desktop largo) ----------
   speculare al pager di destra: voci in colonna con un trattino; al passaggio del mouse il trattino si allunga
   nel colore della sezione e la voce scivola a destra */
@media (min-width: 1180px) and (hover: hover) {
  /* centrata in verticale senza transform (così la scelta della lingua può restare agganciata in alto a destra) */
  .menu-sx .topbar .menu {
    position: fixed; left: clamp(22px, 2.6vw, 44px); top: 0; bottom: 0;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    counter-reset: voce; pointer-events: none;
  }
  .menu-sx .topbar .menu > * { pointer-events: auto; }
  .menu-sx .menu a, .menu-sx .menu a.menu-cta, .menu-sx .menu a.mk-voce {
    position: relative; display: flex; align-items: center; height: clamp(34px, 2.2vw, 46px); margin: 0; padding: 0 0 0 30px;
    border: 0; border-radius: 0; background: none; font-size: clamp(12.5px, .78vw, 16px); letter-spacing: .04em; color: var(--ink-3);
    counter-increment: voce;
    transition: color .35s, transform .5s var(--ease-out);
  }
  /* il trattino */
  .menu-sx .menu a::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: currentColor;
    transition: width .5s var(--ease-out), background .35s, box-shadow .35s;
  }
  /* il numero della sezione, che compare accanto al trattino */
  .menu-sx .menu a::after {
    content: counter(voce, decimal-leading-zero); position: absolute; left: 30px; top: 50%; transform: translate(-6px, -50%);
    font-family: var(--mono); font-size: 10px; letter-spacing: .05em; color: var(--accent); opacity: 0;
    transition: opacity .3s, transform .5s var(--ease-out);
  }
  .menu-sx .menu a > * { transition: transform .5s var(--ease-out); }
  .menu-sx .menu a:hover, .menu-sx .menu a:focus-visible { color: var(--ink); }
  .menu-sx .menu a:hover::before, .menu-sx .menu a:focus-visible::before { width: 22px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
  .menu-sx .menu a:hover::after, .menu-sx .menu a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
  /* la voce fa posto al numero */
  .menu-sx .menu a:not(.mk-voce):hover, .menu-sx .menu a:not(.mk-voce):focus-visible { transform: translateX(26px); }
  .menu-sx .menu a:hover::before, .menu-sx .menu a:focus-visible::before { transform: translateX(-26px); }
  .menu-sx .menu a:not(.mk-voce):hover::after, .menu-sx .menu a:not(.mk-voce):focus-visible::after { transform: translate(-26px, -50%); }
  .menu-sx .menu a.mk-voce:hover > span, .menu-sx .menu a.mk-voce:focus-visible > span { transform: translateX(26px); }
  /* «Approccio» non ha numero (nelle slide i progetti vanno da 01 AI Travel a 07 Rinnovalo): niente numero e niente spostamento */
  .menu-sx .menu a[data-goto="1"] { counter-increment: none; }
  .menu-sx .menu a[data-goto="1"]::after { content: none; }
  .menu-sx .menu a[data-goto="1"]:hover, .menu-sx .menu a[data-goto="1"]:focus-visible { transform: translateX(8px); }
  .menu-sx .menu a[data-goto="1"]:hover::before, .menu-sx .menu a[data-goto="1"]:focus-visible::before { transform: translateX(-8px); }
  /* sezione attiva */
  .menu-sx .menu a.is-on { color: var(--ink); background: none; font-weight: 600; }
  .menu-sx .menu a.is-on::before { width: 22px; background: var(--accent); }
  /* CREALO e RINNOVALO: i loro marchi, un po' staccati dalle altre voci */
  .menu-sx .menu a.cr-menu { margin-top: 10px; }
  .menu-sx .menu .mk-cr { height: clamp(10px, .62vw, 13px); }
  .menu-sx .menu .mk-rn { font-size: clamp(11px, .68vw, 14px); }
  .menu-sx .menu a.mk-voce:not(.is-on) > span { opacity: .8; }
  .menu-sx .menu a.mk-voce:hover > span { opacity: 1; }
  .menu-sx .menu a.cr-menu:hover::before { background: #f5821f; box-shadow: 0 0 10px #f5821f; }
  .menu-sx .menu a.rn-menu:hover::before { background: #1fd6a4; box-shadow: 0 0 10px #1fd6a4; }
  .menu-sx .menu a.cr-menu::after { color: #f5821f; }
  .menu-sx .menu a.rn-menu::after { color: #1fd6a4; }
  /* la scelta della lingua resta in alto a destra, come con il menu in alto */
  .menu-sx .menu .lang { position: fixed; top: calc(var(--top) / 2); right: clamp(16px, 4vw, 56px); transform: translateY(-50%); margin: 0; }
  /* i contenuti non finiscono sotto il menu: si spostano solo quanto serve */
  .menu-sx .inner { padding-left: max(clamp(16px, 6vw, 96px), calc(250px - (100vw - 1280px) / 2)); }
}

/* ---------- 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.slide-off { display: none !important; }   /* sezione spenta dal pannello */
.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(244,122,90,.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: #2b1d18; 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(244,122,90,.55)); } }
.wf-node .ico { fill: rgba(244,122,90,.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)); }

/* ---------- Il tuo progetto: wizard ---------- */
.slide-wiz { background: radial-gradient(70% 80% at 72% 50%, rgba(61,220,151,.12), transparent 70%), var(--bg); }
.wiz-layout { flex-direction: row; align-items: center; gap: clamp(32px, 5vw, 80px); }
.wiz-intro { flex: 1 1 36%; min-width: 0; }
/* invito al questionario: si apre a pagina intera in /progetto/ */
.wl-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.wl-actions .btn-primary { background: var(--slide-accent); color: #0b1020; }
.wl-code { font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.wl-code:hover { color: var(--slide-accent); }
button.wl-code { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; cursor: pointer; }
/* finestra «Hai già un codice?»: si inserisce il codice senza lasciare il sito */
.cod { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 20px; background: rgba(5,6,14,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: cod-f .25s ease; }
.cod[hidden] { display: none; }
@keyframes cod-f { from { opacity: 0; } }
.cod-box { position: relative; width: min(420px, 100%); padding: 28px 26px 24px; border-radius: 20px; background: #12142a; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); color: #eef0f7; animation: cod-su .4s cubic-bezier(.2,.8,.2,1); }
@keyframes cod-su { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.cod-tit { display: block; font-size: 21px; line-height: 1.25; padding-right: 30px; }
.cod-txt { margin: 10px 0 18px; font-size: 14px; line-height: 1.55; color: #a3a9c3; }
.cod-in { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #fff; font: inherit; font-family: var(--mono, ui-monospace, monospace); font-size: 19px; letter-spacing: .12em; text-align: center; outline: none; transition: border-color .2s; }
.cod-in:focus { border-color: #f5821f; }
.cod-in.err { border-color: #e5534b; animation: cod-no .35s; }
@keyframes cod-no { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cod-err { min-height: 20px; margin: 8px 2px 10px; font-size: 13px; color: #ff8a80; }
.cod-ok { width: 100%; height: 48px; border: 0; border-radius: 13px; background: #f5821f; color: #0b0c18; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.cod-ok:disabled { opacity: .6; cursor: progress; }
.cod-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; cursor: pointer; }
.cod-x svg { width: 16px; height: 16px; fill: none; stroke: #c9cde0; stroke-width: 2; stroke-linecap: round; }
@media (prefers-reduced-motion: reduce) { .cod, .cod-box, .cod-in.err { animation: none; } }
.wl-meta { margin-top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); }
.wl-mock { flex: 1 1 54%; min-width: 0; position: relative; display: block; perspective: 1400px; }
.wl-win { display: grid; grid-template-columns: 17% 1fr 22%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #121323; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 90px -40px var(--slide-accent); transform: rotateY(-9deg) rotateX(4deg); transition: transform .8s var(--ease-out); }
.wl-mock:hover .wl-win { transform: rotateY(-3deg) rotateX(1deg); }
.wl-win i { display: block; border-radius: 6px; background: rgba(255,255,255,.07); }
.wl-side { display: flex; flex-direction: column; gap: 9%; padding: 14% 12%; border-right: 1px solid var(--line); background: rgba(255,255,255,.02); }
.wl-side i { height: 7%; } .wl-side i.on { background: color-mix(in srgb, var(--slide-accent) 45%, transparent); }
.wl-side .wl-logo { height: 14%; width: 46%; background: var(--slide-accent); margin-bottom: 10%; }
.wl-main { display: flex; flex-direction: column; gap: 5%; padding: 4.5% 5%; min-width: 0; }
.wl-top { display: flex; gap: 4%; height: 9%; } .wl-top i { flex: 1; border-radius: 99px; } .wl-top b { width: 9%; border-radius: 50%; background: var(--slide-accent); }
.wl-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; height: 32%; }
.wl-kpis i { position: relative; border-radius: 10px; background: rgba(255,255,255,.05); border-left: 3px solid var(--slide-accent); overflow: hidden; }
.wl-kpis em { position: absolute; left: 12%; top: 16%; width: 46%; height: 16%; border-radius: 4px; background: rgba(255,255,255,.16); }
.wl-kpis svg { position: absolute; left: 8%; right: 8%; bottom: 12%; width: 84%; height: 36%; fill: none; stroke: var(--slide-accent); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.wl-rows { flex: 1; display: flex; flex-direction: column; gap: 9%; padding: 4% 0; }
.wl-rows i { flex: 1; } .wl-rows i:nth-child(2) { width: 82%; } .wl-rows i:nth-child(4) { width: 64%; }
.wl-feed { display: flex; flex-direction: column; gap: 6%; padding: 14% 10%; border-left: 1px solid var(--line); background: rgba(255,255,255,.02); }
.wl-feed i { height: 15%; border-radius: 8px; animation: wl-feed 3.6s var(--ease-out) infinite; }
.wl-feed i:nth-child(2) { animation-delay: 1.2s; } .wl-feed i:nth-child(3) { animation-delay: 2.4s; }
@keyframes wl-feed { 0%, 70%, 100% { background: rgba(255,255,255,.07); } 10% { background: color-mix(in srgb, var(--slide-accent) 35%, transparent); } }
.wl-badge { position: absolute; left: 6%; bottom: -16px; padding: 10px 16px; border-radius: 99px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--slide-accent) 50%, transparent); font-size: 13px; color: var(--ink); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
@media (prefers-reduced-motion: reduce) { .wl-feed i { animation: none; } }
.wiz {
  flex: 1 1 64%; min-width: 0; max-width: 680px;
  display: flex; flex-direction: column;
  height: min(600px, calc(100dvh - var(--top) - 80px));
  border-radius: 22px; border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.7);
  overflow: hidden;
}
.wiz-top { padding: 22px 28px 0; }
.wiz-step { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.wiz-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); margin-top: 12px; overflow: hidden; }
.wiz-bar i { display: block; height: 100%; width: 0; background: var(--slide-accent); border-radius: 3px; transition: width .6s var(--ease-out); }

.wiz-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 22px 28px 8px; scrollbar-width: thin; }
.wiz-pane { animation: wiz-in .5s var(--ease-out) both; }
.wiz-pane.from-left { animation-name: wiz-in-l; }
@keyframes wiz-in   { from { opacity: 0; transform: translateX(28px); } }
@keyframes wiz-in-l { from { opacity: 0; transform: translateX(-28px); } }
.wiz-q { font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
/* cursore a forma di simbolo Sonitech (proporzioni dal logo: anello 116u, spessore 20u, raggio 40u, barra 44×20u) */
.wiz-q { min-height: 1.2em; }
.wiz-cursor {
  position: relative; display: inline-block; box-sizing: border-box;
  width: .66em; height: .66em; margin-left: .14em; vertical-align: -.04em;
  border: .114em solid #F2F2F5; border-radius: .23em;
  animation: wiz-blink 1.05s steps(1) infinite;
}
.wiz-cursor::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: .25em; height: .114em; background: #00A8DD; transform: translate(-50%, -50%);
  box-shadow: 0 0 .3em rgba(0,168,221,.7);
}
.wiz-cursor.typing { animation: none; transform: translateY(-.02em); }
@keyframes wiz-blink { 50% { opacity: 0; } }

/* risposte: compaiono una dopo l'altra quando la domanda è scritta */
.wiz-pane .wr { opacity: 0; transform: translateY(12px); pointer-events: none; }
.wiz-pane.is-in .wr {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity .45s ease, transform .55s var(--ease-out), border-color .25s, background .25s;
  transition-delay: calc(var(--i, 0) * 55ms), calc(var(--i, 0) * 55ms), 0s, 0s;
}
.wiz-pane.settled .wr { transition-delay: 0s; }

.wiz-hint { margin-top: 8px; font-size: 14px; color: var(--ink-2); font-weight: 300; line-height: 1.5; }

.wiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.wiz-opts-inline { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.wiz-opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.3;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  transition: border-color .25s, background .25s, transform .25s var(--ease-out);
}
.wiz-opt:hover { border-color: rgba(255,255,255,.25); transform: translateY(-1px); }
.wiz-opt.is-on { border-color: var(--slide-accent); background: rgba(61,220,151,.1); }
.wiz-check {
  flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.3);
  display: grid; place-items: center; transition: background .25s, border-color .25s;
}
.wiz-opt.is-on .wiz-check { background: var(--slide-accent); border-color: var(--slide-accent); }
.wiz-opt.is-on .wiz-check::after { content: ""; width: 8px; height: 4px; border: 2px solid #0b1020; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.wiz-opts[role="radiogroup"] .wiz-check { border-radius: 50%; }

.wiz-input {
  width: 100%; margin-top: 12px; padding: 13px 15px; border-radius: 12px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); outline: none;
  transition: border-color .25s, background .25s;
}
.wiz-input:focus { border-color: var(--slide-accent); background: rgba(255,255,255,.06); }
.wiz-input::placeholder { color: var(--ink-3); }
.wiz-area { margin-top: 20px; resize: none; line-height: 1.5; min-height: 140px; }
.wiz-other.is-hidden { display: none; }
.wiz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 16px; }
.wiz-fields label span { display: block; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.wiz-fields .wiz-input { margin-top: 6px; }
.wiz-mini { margin-top: 18px; font-size: 12px; color: var(--ink-2); }
.wiz-privacy { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.wiz-privacy input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--slide-accent); }
.wiz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wiz-review { margin-top: 18px; }
.wiz-review > div { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.wiz-review dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.wiz-review dd { font-size: 14px; line-height: 1.45; color: var(--ink); word-break: break-word; }
.wiz-edit { font-size: 12px; color: var(--slide-accent); }
.wiz-error { margin-top: 14px; font-size: 13px; line-height: 1.5; color: #ff8a80; }
.wiz-error a { color: var(--ink); text-decoration: underline; }

.wiz-nav { display: flex; justify-content: space-between; gap: 12px; padding: 16px 28px 22px; border-top: 1px solid var(--line); }
.wiz-nav .btn { padding: 13px 24px; }
.wiz-next:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.wiz-next.is-send { background: var(--slide-accent); color: #0b1020; }

.wiz-done { text-align: center; padding-top: 40px; }
.wiz-done .wiz-hint { max-width: 38ch; margin: 10px auto 0; }
.wiz-ok { width: 72px; height: 72px; margin: 0 auto 22px; display: block; fill: none; stroke: var(--slide-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wiz-ok circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: wiz-draw .7s var(--ease-out) forwards; }
.wiz-ok path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: wiz-draw .45s var(--ease-out) .55s forwards; }
@keyframes wiz-draw { to { stroke-dashoffset: 0; } }

/* ---------- 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 a.mk-voce { align-items: center; }
  .m-menu a .mk-cr { height: clamp(22px, 6.4vw, 30px); }
  .m-menu a span.mk-rn { font: 800 clamp(26px, 8vw, 36px)/1 'Sora', sans-serif; letter-spacing: -.03em; color: inherit; }
  .m-menu a .mk-rn span { font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
  .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; }

  /* AI Travel: 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: "⤢ " var(--zoom-t, "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; }

  /* wizard: intro compatta, scheda a tutta larghezza */
  .wiz-layout { flex-direction: column; align-items: stretch; gap: 14px; }
  .wiz-intro { flex: none; }
  .wiz-intro .lead { display: block; font-size: 14px; }
.wl-actions { margin-top: 18px; }
.wl-mock { flex: none; width: 100%; max-width: 440px; margin: 10px auto 0; }
.wl-win { transform: none !important; }
.wl-badge { font-size: 12px; bottom: -14px; }
  .wiz-intro h2 { margin-bottom: 0; }
  .wiz { flex: 1 1 auto; min-height: 380px; height: auto; max-width: none; border-radius: 18px; }
  .wiz-top { padding: 16px 18px 0; }
  .wiz-body { padding: 16px 18px 8px; }
  .wiz-nav { padding: 12px 18px 14px; }
  .wiz-nav .btn { padding: 12px 20px; }
  .wiz-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .wiz-opts-inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wiz-opt { min-width: 0; padding: 10px 9px; gap: 7px; font-size: 12px; border-radius: 12px; overflow-wrap: break-word; }
  .wiz-check { width: 15px; height: 15px; }
  .wiz-body { padding-left: 14px; padding-right: 14px; }
  .wiz-fields { grid-template-columns: 1fr; }
  .wiz-review > div { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .wiz-review dt { grid-column: 1 / -1; }

  /* 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; }
}

/* ================= questionario in una finestra sopra il sito ================= */
.wzo { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 3vh 3vw;
  background: rgba(6, 6, 14, .55); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.wzo.open { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.wzo.closing { opacity: 0; visibility: visible; transition: opacity .4s ease; }
.wzo-win { width: min(1180px, 100%); height: min(760px, 100%); border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: var(--bg);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.85), 0 0 80px -30px rgba(61,220,151,.6);
  transform-origin: var(--ox, 50%) var(--oy, 50%); transform: translateY(24px) scale(.92); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s ease; }
.wzo.open .wzo-win { transform: none; opacity: 1; }
.wzo.closing .wzo-win { transform: translateY(16px) scale(.95); opacity: 0; transition-duration: .35s; }
.wzo iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }
body.wzo-lock { overflow: hidden; }
@media (max-width: 760px) { .wzo { padding: 8px; } .wzo-win { height: 100%; border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .wzo, .wzo.open, .wzo.closing, .wzo-win { transition: none !important; } .wzo-win { transform: none !important; } }

/* ================= approfondimenti: link e pannello laterale ================= */
.info-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--slide-accent, var(--accent)) 60%, transparent); text-underline-offset: 5px; transition: color .25s; }
.info-link:hover { color: var(--ink); }
.info-link span { transition: transform .25s; } .info-link:hover span { transform: translateX(3px); }

.info { position: fixed; inset: 0; z-index: 180; background: rgba(6, 6, 14, .5); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.info.open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.info-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -40px 0 80px -30px rgba(0,0,0,.8); transform: translateX(100%); transition: transform .55s var(--ease-out); }
.info.open .info-panel { transform: none; }
.info-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px 0; }
.info-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.info-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, color .2s; }
.info-x:hover { color: var(--ink); border-color: rgba(255,255,255,.3); }
.info-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.info-body { flex: 1; overflow-y: auto; padding: 14px 28px 36px; scrollbar-width: thin; overscroll-behavior: contain; }
.info-body h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.info-intro { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 8px; }
.info-item { padding: 20px 0; border-top: 1px solid var(--line); }
.info-item:first-of-type { margin-top: 14px; }
.info-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.info-item p { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); margin: 0 0 8px; }
.info-item p b { color: var(--ink); font-weight: 600; }
.info-ex { margin-top: 12px !important; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.035); border-left: 3px solid var(--accent); font-size: 13.5px !important; }
.info-ex b { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 4px; }
.info-cta { margin-top: 8px; padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, rgba(61,220,151,.12), transparent 60%); }
.info-cta p { margin: 0 0 14px; font-size: 15px; font-weight: 500; }
.info-cta .btn { background: #3ddc97; color: #0b1020; }
@media (max-width: 760px) {
  .info-link { margin-top: 16px; font-size: 13px; }
  .info-head { padding: 16px 18px 0; } .info-body { padding: 10px 18px 28px; }
}
@media (prefers-reduced-motion: reduce) { .info, .info-panel { transition: none !important; } }

/* ================= video dei progetti: pulsante play e monitor ================= */
.play-btn { position: absolute; left: 50%; top: 50%; z-index: 5; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(10, 10, 20, .35); border: 1.5px solid rgba(255,255,255,.55); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); transition: transform .3s var(--ease-out), background .3s, border-color .3s; }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; opacity: .92; }
.play-btn::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); animation: play-ring 2.4s ease-out infinite; }
.play-btn:hover { transform: scale(1.08); background: rgba(10, 10, 20, .5); border-color: #fff; }
@keyframes play-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }

.vmod { position: fixed; inset: 0; z-index: 220; background: rgba(5, 5, 12, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.vmod.open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.vmod-stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
  --mw: min(1180px, 92vw, calc((100dvh - 190px) * 16 / 9));
  transform: translate(var(--ox, 0), var(--oy, 0)) scale(.2); opacity: 0; transition: transform .6s var(--ease-out), opacity .35s ease; }
.vmod.open .vmod-stage { transform: none; opacity: 1; }
.vmod-x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.vmod-x:hover { background: rgba(255,255,255,.14); }
.vmod-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* il monitor: cornice sottile, mento con il nome, collo e base */
.monitor { width: var(--mw); padding: 12px 12px 0; border-radius: 18px; background: linear-gradient(180deg, #1c1e2a, #12131c); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 40px 90px -30px rgba(0,0,0,.9), 0 0 120px -40px rgba(232,163,61,.45); }
.monitor-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.monitor-screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.monitor-chin { position: relative; height: 34px; display: flex; align-items: center; justify-content: center; }
.monitor-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.monitor-led { position: absolute; right: 18px; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 8px #3ddc97; }
.monitor-neck { width: calc(var(--mw) * .11); height: calc(var(--mw) * .07); max-height: 70px; background: linear-gradient(90deg, #14151e, #262836 50%, #14151e); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.monitor-base { width: calc(var(--mw) * .3); height: 12px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #2a2c3a, #15161f); box-shadow: 0 18px 30px -12px rgba(0,0,0,.8); }
@media (max-width: 760px) {
  .play-btn { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .play-btn svg { width: 26px; height: 26px; }
  .vmod-stage { padding: 12px; --mw: 96vw; }
  .monitor { padding: 6px 6px 0; border-radius: 12px; } .monitor-chin { height: 26px; } .monitor-cap { font-size: 9.5px; }
  .vmod-x { top: 12px; right: 12px; }
}
/* video verticale (spot sul telefono): lo schermo diventa 9:16 e occupa quasi tutta l'altezza */
.vmod.verticale .vmod-stage { --mw: min(92vw, calc((100dvh - 110px) * 9 / 16)); }
.vmod.verticale .monitor { border-radius: 26px; padding: 8px 8px 0; }
.vmod.verticale .monitor-screen { aspect-ratio: 9 / 16; border-radius: 18px; }
.vmod.verticale .monitor-neck, .vmod.verticale .monitor-base { display: none; }
@media (prefers-reduced-motion: reduce) { .vmod, .vmod-stage { transition: none !important; } .play-btn::before { animation: none; } }

/* ================= CREALO: la scritta che si compone, la demo che cambia forma, lo spot ================= */
@property --ac { syntax: '<color>'; inherits: true; initial-value: #f5821f; }
.slide-crealo { background: var(--bg); overflow: hidden; }
.slide-crealo .inner { position: relative; z-index: 1; }

/* sfondo vivo: due luci calde che si muovono e una griglia in prospettiva */
.cr-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cr-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: cr-orb 16s ease-in-out infinite alternate; }
.cr-orb.o1 { width: 46vw; height: 46vw; left: 48%; top: -12%; background: radial-gradient(circle, rgba(245,130,31,.55), transparent 65%); }
.cr-orb.o2 { width: 34vw; height: 34vw; left: -8%; bottom: -18%; background: radial-gradient(circle, rgba(255,176,64,.35), transparent 65%); animation-duration: 20s; animation-delay: -6s; }
@keyframes cr-orb { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 8%) scale(1.12); } 100% { transform: translate(5%, -4%) scale(.95); } }
.cr-grid { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 60%; opacity: .35;
  background-image: linear-gradient(rgba(245,130,31,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(245,130,31,.35) 1px, transparent 1px); background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg); transform-origin: 50% 100%; -webkit-mask: linear-gradient(to top, #000 10%, transparent 85%); mask: linear-gradient(to top, #000 10%, transparent 85%);
  animation: cr-grid 6s linear infinite; }
@keyframes cr-grid { to { background-position: 0 64px, 0 0; } }
.slide-crealo:not(.is-active) .cr-bg *, .slide-crealo:not(.is-active) .cr-mock, .slide-crealo:not(.is-active) .cr-chips span { animation-play-state: paused; }

.cr-layout { flex-direction: row; align-items: center; gap: clamp(32px, 5vw, 84px); }
.cr-copy { flex: 1 1 44%; min-width: 0; position: relative; z-index: 2; }

/* la scritta CREALO: le lettere salgono una alla volta, il simbolo ruota ed entra, la barretta si accende come un cursore */
.cr-word { position: relative; display: block; width: min(560px, 100%); aspect-ratio: 1460 / 299; margin: 18px 0 26px; cursor: pointer; }
.cr-letters { position: absolute; inset: 0; perspective: 900px; transition: filter .4s; }
.cr-word:hover .cr-letters { filter: drop-shadow(0 0 26px rgba(245,130,31,.45)); }
.cr-l, .cr-ring { position: absolute; top: 0; height: 100%; opacity: 0; transform-origin: 50% 100%; transform: translateY(45%) rotateX(-80deg); filter: blur(8px); }
.cr-ring { transform-origin: 50% 50%; transform: scale(.15) rotate(-200deg); }
.cr-bar { position: absolute; transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.cr-shine { position: absolute; inset: 0; -webkit-mask: url(../img/web/crealo.png) 0 0 / 100% 100% no-repeat; mask: url(../img/web/crealo.png) 0 0 / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 140% 0; }
.cr-play .cr-l { animation: cr-letter .9s cubic-bezier(.2, 1.35, .4, 1) forwards; }
.cr-play .l1 { animation-delay: .1s; } .cr-play .l2 { animation-delay: .19s; } .cr-play .l3 { animation-delay: .28s; } .cr-play .l4 { animation-delay: .37s; } .cr-play .l5 { animation-delay: .46s; }
.cr-play .cr-ring { animation: cr-ring 1s cubic-bezier(.3, 1.45, .5, 1) .7s forwards; }
.cr-play .cr-bar { animation: cr-bar .45s cubic-bezier(.2, .9, .3, 1) 1.45s forwards, cr-blink 1.1s steps(1) 2.6s infinite; }
.cr-play .cr-shine { animation: cr-shine 1.3s ease-in-out 1.75s forwards; }
.cr-word:hover .cr-shine { animation: cr-shine 1s ease-in-out forwards; }
@keyframes cr-letter { to { opacity: 1; transform: none; filter: none; } }
@keyframes cr-ring { to { opacity: 1; transform: none; filter: none; } }
@keyframes cr-bar { to { opacity: 1; transform: none; } }
@keyframes cr-blink { 50% { opacity: .2; } }
@keyframes cr-shine { from { background-position: 140% 0; } to { background-position: -40% 0; } }

/* titolo con la parola che si riscrive */
.cr-title { font-size: clamp(24px, 2.5vw, 38px); line-height: 1.15; letter-spacing: -.025em; min-height: 2.3em; }
.cr-rot { color: #f5821f; display: inline-block; vertical-align: bottom; }
.cr-rot-t { display: inline-block; transition: transform .45s cubic-bezier(.2, .9, .3, 1), opacity .35s, filter .35s; }
.cr-rot-t.out { transform: translateY(-55%); opacity: 0; filter: blur(4px); }
.cr-rot-t.in { transform: translateY(55%); opacity: 0; filter: blur(4px); transition: none; }
.cr-caret { display: none; }
.slide-crealo .lead { max-width: 52ch; }

/* pulsanti */
.cr-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 30px; }
.cr-cta { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 17px 28px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 16px; color: #1a0d02;
  background: linear-gradient(120deg, #f5821f, #ffa94d); box-shadow: 0 14px 40px -12px rgba(245,130,31,.85); overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s; animation: cr-pulse 2.6s ease-in-out infinite; }
.cr-cta::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: cr-cta-shine 3.2s ease-in-out 2s infinite; }
.cr-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.cr-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 50px -10px rgba(245,130,31,1); }
.cr-cta:hover svg { transform: translateX(4px); }
@keyframes cr-pulse { 50% { box-shadow: 0 14px 40px -12px rgba(245,130,31,.85), 0 0 0 8px rgba(245,130,31,.12); } }
@keyframes cr-cta-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.cr-spot { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink); font: inherit; font-size: 14.5px; cursor: pointer; transition: border-color .3s, background .3s; }
.cr-spot small { color: var(--ink-3); font-size: 12px; }
.cr-spot:hover { border-color: rgba(245,130,31,.6); background: rgba(245,130,31,.08); }
.cr-spot-i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,130,31,.18); color: #f5821f; }
.cr-spot-i svg { width: 16px; height: 16px; margin-left: 2px; fill: currentColor; }
.cr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 22px; }
.cr-meta .info-link { margin-top: 0; }
/* contatore delle demo create */
.cr-count { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.cr-count b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.cr-count i { width: 8px; height: 8px; border-radius: 50%; background: var(--slide-accent, #f5821f); box-shadow: 0 0 0 0 color-mix(in srgb, var(--slide-accent, #f5821f) 60%, transparent); animation: cr-pulse 2.4s ease-out infinite; }
@keyframes cr-pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .cr-count i { animation: none; } }
/* logo come pulsante (usato nel pannello degli approfondimenti) */
.cr-btn { display: inline-flex; padding: 14px 18px; border-radius: 16px; border: 1px solid rgba(245,130,31,.45); background: rgba(255,255,255,.035); transition: transform .3s var(--ease-out), border-color .3s; }
.cr-btn:hover { transform: translateY(-2px); border-color: #f5821f; }
.cr-btn img { display: block; width: 180px; height: auto; }

/* la demo che cambia forma */
.cr-visual { flex: 1 1 50%; min-width: 0; position: relative; perspective: 1400px; }
.cr-mock { --ac: #f5821f; border-radius: 18px; overflow: hidden; background: #121322; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 100px -40px var(--ac); transform: rotateY(-10deg) rotateX(5deg); transition: --ac .8s ease, transform .8s var(--ease-out); animation: cr-float 7s ease-in-out infinite; }
.cr-visual:hover .cr-mock { transform: rotateY(-3deg) rotateX(2deg); }
@keyframes cr-float { 50% { translate: 0 -10px; } }
.cr-mbar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); }
.cr-mbar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.cr-url { margin-left: 10px; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.05); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.cr-mbody { display: grid; grid-template-columns: 30% 1fr; min-height: clamp(280px, 30vw, 380px); }
.cr-mside { padding: 18px 14px; border-right: 1px solid var(--line); background: rgba(255,255,255,.02); }
.cr-mlogo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--ac); color: #0b0c14; font-size: 14px; font-weight: 700; margin-bottom: 18px; transition: background .8s; }
.cr-mmenu { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cr-mmenu li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-mmenu li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: rgba(255,255,255,.2); }
.cr-mmenu li:first-child { color: var(--ink); background: color-mix(in srgb, var(--ac) 18%, transparent); }
.cr-mmenu li:first-child::before { background: var(--ac); }
.cr-mmain { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cr-mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cr-mname { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-mtag { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.cr-mtag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; margin-right: 6px; box-shadow: 0 0 8px #3ddc97; }
.cr-mkpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cr-mkpi { padding: 11px 12px; border-radius: 11px; background: rgba(255,255,255,.04); border-left: 3px solid var(--ac); min-width: 0; transition: border-color .8s; }
.cr-mkpi span { display: block; font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-mkpi b { display: block; margin-top: 4px; font-size: clamp(15px, 1.5vw, 21px); letter-spacing: -.02em; }
.cr-mchart { flex: 1; min-height: 90px; display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px 58px; border-radius: 11px; background: rgba(255,255,255,.025); }
.cr-mchart i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, color-mix(in srgb, var(--ac) 35%, transparent), var(--ac)); transition: height .9s cubic-bezier(.3, 1.3, .5, 1), background .8s; }
.cr-mtoast { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: #1b1d2e; border: 1px solid color-mix(in srgb, var(--ac) 45%, transparent);
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.8); font-size: 12px; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s var(--ease-out); }
.cr-mtoast i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 10px var(--ac); }
.cr-mtoast.on { opacity: 1; transform: none; }
.cr-mock .cr-mside, .cr-mock .cr-mmain > :not(.cr-mtoast), .cr-url { transition: opacity .3s, transform .3s; }
.cr-mock.cr-swap .cr-mside, .cr-mock.cr-swap .cr-mmain > :not(.cr-mtoast), .cr-mock.cr-swap .cr-url { opacity: .15; transform: translateY(6px); }
.cr-chips { position: absolute; right: -6px; bottom: -22px; display: flex; gap: 8px; }
.cr-chips span { padding: 8px 14px; border-radius: 99px; background: #1b1d2e; border: 1px solid rgba(245,130,31,.4); font-size: 12.5px; color: var(--ink); box-shadow: 0 14px 30px -12px rgba(0,0,0,.8); animation: cr-chip 6s ease-in-out infinite; }
.cr-chips span::before { content: "✓"; color: #f5821f; margin-right: 6px; font-weight: 700; }
.cr-chips span:nth-child(2) { animation-delay: -2s; } .cr-chips span:nth-child(3) { animation-delay: -4s; }
@keyframes cr-chip { 50% { translate: 0 -6px; } }

@media (max-width: 900px) {
  .cr-layout { flex-direction: column; align-items: stretch; gap: 18px; }
  .cr-copy, .cr-visual { flex: none; }
  .cr-word { width: min(240px, 66%); margin: 8px 0 14px; }
  .cr-title { font-size: clamp(22px, 6.4vw, 30px); }
  .slide-crealo .lead { font-size: 14px; margin-top: 10px; }
  .cr-actions { margin-top: 16px; gap: 10px 12px; }
  .cr-cta { padding: 14px 22px; font-size: 15px; }
  .cr-spot { font-size: 13.5px; } .cr-spot-i { width: 32px; height: 32px; }
  .cr-meta { margin-top: 14px; gap: 8px 20px; }
  .cr-visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .cr-mock { transform: none; animation: none; }
  .cr-mbody { min-height: 220px; grid-template-columns: 34% 1fr; }
  .cr-mchart { min-height: 60px; }
  .cr-chips { display: none; }
}
@media (max-width: 600px) {
  .cr-mbody { grid-template-columns: 1fr; min-height: 0; }
  .cr-mside { display: none; }
  .cr-mmain { padding: 14px; gap: 10px; }
  .cr-mkpi { padding: 9px 10px; } .cr-mkpi b { font-size: 15px; }
  .cr-mchart { min-height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-l, .cr-ring, .cr-bar { opacity: 1; transform: none; filter: none; }
  .cr-play .cr-l, .cr-play .cr-ring, .cr-play .cr-bar, .cr-play .cr-shine, .cr-cta, .cr-cta::after, .cr-orb, .cr-grid, .cr-mock, .cr-chips span, .cr-caret { animation: none !important; }
}

/* ================= RINNOVALO: la home del cliente, rifatta moderna ================= */
.slide-rinnovalo { background: var(--bg); overflow: hidden; }
.slide-rinnovalo .inner { position: relative; z-index: 1; }
.rn-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: cr-orb 18s ease-in-out infinite alternate; }
.rn-orb.o1 { width: 42vw; height: 42vw; left: -10%; top: -16%; background: radial-gradient(circle, rgba(31,214,164,.42), transparent 65%); }
.rn-orb.o2 { width: 36vw; height: 36vw; right: -8%; bottom: -20%; background: radial-gradient(circle, rgba(0,168,221,.35), transparent 65%); animation-duration: 22s; animation-delay: -8s; }
.slide-rinnovalo:not(.is-active) .cr-bg *, .slide-rinnovalo:not(.is-active) .rn-dopo, .slide-rinnovalo:not(.is-active) .rn-linea, .slide-rinnovalo:not(.is-active) .cr-chips span { animation-play-state: paused; }
.menu a.rn-menu { margin-left: 4px; }
.menu a.rn-menu:hover { border-color: #1fd6a4; }

/* la scritta: lettere di testo e la O che è Cursore */
.rn-word { display: inline-flex; align-items: baseline; margin: 18px 0 22px; font: 800 clamp(44px, 5.4vw, 84px)/1 'Sora', sans-serif; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.rn-word > span:first-child { background: linear-gradient(100deg, #1fd6a4 0%, #8af3d6 45%, #1fd6a4 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rn-luce 6s ease-in-out infinite; }
.rn-o { position: relative; display: inline-block; width: .65em; height: .73em; margin-left: .05em; flex: none; transition: transform .5s var(--ease-out); }
.rn-o img { position: absolute; inset: 0; width: 100%; height: 100%; }
.rn-o .rn-ob { inset: auto; left: 30.45%; top: 43.48%; width: 38.72%; height: 20.07%; animation: cr-blink 1.1s steps(1) infinite; }
@keyframes rn-luce { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.rn-acc { color: #1fd6a4; }
.slide-rinnovalo .lead { max-width: 52ch; }

/* indirizzo del sito, direttamente dalla home */
.rn-form { display: flex; align-items: center; gap: 8px; max-width: 560px; margin-top: 28px; padding: 6px 6px 6px 18px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: border-color .3s, box-shadow .3s; }
.rn-form:focus-within { border-color: #1fd6a4; box-shadow: 0 0 0 4px rgba(31,214,164,.14); }
.rn-pre { color: var(--ink-3); font-family: var(--mono); font-size: 14px; }
.rn-form input[name=d] { flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none; color: var(--ink); font: 500 16px/1 var(--mono); }
.rn-form input[name=d]::placeholder { color: var(--ink-3); }
.rn-cta { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: 99px; background: linear-gradient(120deg, #1fd6a4, #5ee8c1); color: #04241b; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 12px 34px -12px rgba(31,214,164,.8); transition: transform .3s var(--ease-out), box-shadow .3s; }
.rn-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.rn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(31,214,164,1); }
.rn-cta:hover svg { transform: translateX(4px); }
.rn-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; padding-left: 18px; color: var(--ink-3); font-size: 13.5px; }
.rn-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1fd6a4; margin-right: 8px; vertical-align: 2px; }
/* pulsante dello spot RINNOVALO: come quello di CREALO, ma verde acqua */
.rn-azioni { margin-top: 18px; }
.rn-spot:hover { border-color: rgba(31,214,164,.6); background: rgba(31,214,164,.08); }
.rn-spot .cr-spot-i { background: rgba(31,214,164,.18); color: #1fd6a4; }

/* prima e dopo: la linea di Cursore passa e la home cambia */
.rn-pd { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 100px -40px #1fd6a4; transform: rotateY(-10deg) rotateX(5deg); transition: transform .8s var(--ease-out); animation: cr-float 7s ease-in-out infinite; }
.cr-visual:hover .rn-pd { transform: rotateY(-3deg) rotateX(2deg); }
.rn-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #eceef1; }
.rn-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9ced6; }
.rn-bar span { margin-left: 10px; padding: 4px 12px; border-radius: 99px; background: #fff; font: 11px/1 var(--mono); color: #7a828e; }
.rn-corpo { position: relative; aspect-ratio: 4 / 3; }
.rn-prima, .rn-dopo { position: absolute; inset: 0; padding: 16px; }
.rn-prima { background: #f3f1ea; }
.v-menu { display: flex; align-items: center; gap: 8px; padding: 8px; background: #2c4a7a; }
.v-menu b { width: 70px; height: 16px; background: #c8d3e6; } .v-menu i { width: 38px; height: 8px; background: #8ea3c6; }
.v-banner { height: 34%; margin: 10px 0; background: repeating-linear-gradient(45deg, #b8c0c9, #b8c0c9 8px, #c3cad2 8px, #c3cad2 16px); }
.v-righe i { display: block; height: 7px; margin: 7px 0; background: #b2aea3; }
.v-tre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.v-tre i { height: 58px; background: #d9d5ca; border: 1px solid #bfb9ab; }
.rn-dopo { background: #fbfaf7; clip-path: inset(0 0 0 88%); animation: rn-taglio 7s cubic-bezier(.65,0,.35,1) infinite; }
.n-menu { display: flex; align-items: center; gap: 10px; padding: 4px 2px 12px; }
.n-menu b { width: 64px; height: 14px; border-radius: 4px; background: #11231e; }
.n-menu span { display: flex; gap: 8px; margin-left: auto; } .n-menu span i { width: 30px; height: 6px; border-radius: 3px; background: #c9cfcc; }
.n-menu em { width: 54px; height: 20px; border-radius: 99px; background: #1fa985; }
.n-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: center; height: 52%; }
.n-hero i { display: block; border-radius: 4px; background: #13231f; }
.n-hero .t1 { height: 15px; width: 92%; } .n-hero .t2 { height: 15px; width: 70%; margin-top: 7px; } .n-hero .t3 { height: 6px; width: 80%; margin-top: 14px; background: #b9c2bf; }
.n-btn { display: block; width: 74px; height: 22px; border-radius: 99px; margin-top: 14px; background: #1fa985; }
.n-foto { height: 100%; border-radius: 14px; background: linear-gradient(135deg, #8fd7c3, #2b8f9e 60%, #1b4e6b); }
.n-bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 30%; margin-top: 12px; }
.n-bento i { border-radius: 10px; background: #edf1ef; border: 1px solid #e0e6e3; }
.n-bento i:first-child { grid-row: span 2; background: #1fa985; border: 0; } .n-bento i:last-child { grid-column: span 2; }
.rn-linea { position: absolute; top: 0; bottom: 0; left: 88%; width: 2px; background: #1fd6a4; box-shadow: 0 0 18px rgba(31,214,164,.9); animation: rn-linea 7s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes rn-taglio { 0%, 100% { clip-path: inset(0 0 0 88%); } 45%, 60% { clip-path: inset(0 0 0 8%); } }
@keyframes rn-linea { 0%, 100% { left: 88%; } 45%, 60% { left: 8%; } }
.rn-chips span { border-color: rgba(31,214,164,.4); }
.rn-chips span::before { color: #1fd6a4; }

@media (max-width: 900px) {
  .rn-word { font-size: clamp(38px, 11vw, 56px); margin: 8px 0 14px; }
  .slide-rinnovalo .lead { font-size: 14px; margin-top: 10px; }
  .rn-form { margin-top: 16px; }
  .rn-pd { transform: none; animation: none; }
}
@media (max-width: 600px) {
  .rn-form { flex-wrap: wrap; border-radius: 22px; padding: 6px; }
  .rn-pre { padding-left: 12px; }
  .rn-cta { width: 100%; justify-content: center; }
  .rn-meta { padding-left: 4px; }
  .slide-rinnovalo .cr-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rn-orb, .rn-word > span:first-child, .rn-o .rn-ob, .rn-dopo, .rn-linea, .rn-pd { animation: none !important; }
  .rn-dopo { clip-path: inset(0 0 0 45%); } .rn-linea { left: 45%; }
}

/* ================= domande frequenti e contatti ================= */
.faq-layout { flex-direction: row; align-items: center; gap: clamp(32px, 5vw, 84px); padding-bottom: 70px; }
.faq-intro { flex: 1 1 38%; min-width: 0; }
.faq-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 30px; }
.faq-contact span { font-size: 14px; color: var(--ink-2); }
.faq { flex: 1 1 56%; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--slide-accent, var(--accent)) 50%, transparent); background: rgba(255,255,255,.045); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; cursor: pointer; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--slide-accent, var(--accent)); }
.faq p { margin: 0; padding: 0 18px 16px; font-size: 14px; line-height: 1.65; color: var(--ink-2); animation: faq-in .35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
.faq-foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.faq-foot a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .faq-layout { flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 0; }
  .faq-intro .lead { font-size: 14px; }
  .faq-contact { margin-top: 14px; }
  .faq-contact .btn { width: 100%; justify-content: center; }
  .faq summary { padding: 13px 14px; font-size: 14.5px; }
  .faq p { padding: 0 14px 14px; font-size: 13.5px; }
  .faq-foot { position: static; flex-direction: column; align-items: flex-start; gap: 8px; margin: 18px var(--gut, 16px) 24px; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .faq p { animation: none; } }

/* ---------- Selettore della lingua (il componente è in js/lingua.js) ---------- */
.menu .lang { margin-left: 10px; }
.lang { --lng-accento: var(--accent, #f5821f); }

html[lang="en"] { --zoom-t: "Tap to zoom"; }
html[lang="es"] { --zoom-t: "Toca para ampliar"; }
html[lang="fr"] { --zoom-t: "Touchez pour agrandir"; }
