/* ==========================================================================
   Dxveblud Studio — studio.dxveblud.dev
   Tema scuro con accento verde (marchio dxveblud), tante animazioni leggere.
   Le animazioni "grosse" (scorrimento orizzontale, parallasse, contatori)
   sono in studio.js con GSAP; qui ci sono layout, colori ed effetti CSS.
   ========================================================================== */

:root {
  --fondo: #07090a;
  --fondo-2: #0d1011;
  --fondo-3: #141819;
  --chiaro: #f4f5f1;
  --testo: #eef1ef;
  --tenue: #8f9893;
  --tenue-2: #5d6662;
  --linea: rgba(255, 255, 255, .09);
  --linea-2: rgba(255, 255, 255, .16);
  --accento: #00e07f;
  --accento-2: #00b366;
  --accento-rgb: 0, 224, 127;
  --viola: #7b6cff;
  --azzurro: #00cfff;

  --titoli: "Inter Tight", "Inter", system-ui, sans-serif;
  --corpo: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --raggio: 22px;
  --testata: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--corpo); font-size: 1rem; line-height: 1.65; color: var(--testo); background: var(--fondo); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titoli); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; margin: 0 0 .5em; }
h2 { font-size: clamp(2.2rem, 8vw, 4.2rem); }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }
h1 em, h2 em, h3 em { font-style: normal; background: linear-gradient(100deg, var(--accento), var(--azzurro)); -webkit-background-clip: text; background-clip: text; color: transparent; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; }
::selection { background: var(--accento); color: #000; }
.salta { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--accento); color: #000; padding: 8px 14px; border-radius: 8px; }
.salta:focus { left: 8px; }
.contenitore { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.etichetta { font-family: var(--mono); font-size: .8rem; color: var(--accento); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.testa { max-width: 760px; margin-bottom: 3rem; }
.testa__sotto { font-size: 1.1rem; color: var(--tenue); max-width: 52ch; }
.pallino-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accento); box-shadow: 0 0 0 0 rgba(var(--accento-rgb), .6); animation: pulsa 2s infinite; flex: none; display: inline-block; }

/* Cursore personalizzato (solo mouse) */
.cursore { position: fixed; top: 0; left: 0; z-index: 400; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accento); pointer-events: none; mix-blend-mode: difference; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .3s; opacity: 0; }
.cursore.is-grande { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
@media (hover: hover) and (pointer: fine) { .cursore { opacity: 1; } }
.grana { position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .05; background-image: radial-gradient(rgba(255, 255, 255, .9) .6px, transparent .6px); background-size: 3px 3px; }

/* Pulsanti */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 22px; border-radius: 14px; font: 600 .97rem/1.2 var(--corpo); text-decoration: none; border: 1px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate; transition: background .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn--grande { min-height: 56px; padding: 14px 26px; font-size: 1.02rem; }
.btn--accento { background: var(--accento); color: #02140b; box-shadow: 0 0 0 0 rgba(var(--accento-rgb), 0), 0 14px 30px rgba(var(--accento-rgb), .25); }
.btn--accento::before { content: ""; position: absolute; inset: -2px; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); }
.btn--accento:hover::before { transform: translateX(120%); }
.btn--accento:hover { box-shadow: 0 0 0 6px rgba(var(--accento-rgb), .15), 0 18px 40px rgba(var(--accento-rgb), .35); }
.btn--vetro { background: rgba(255, 255, 255, .05); border-color: var(--linea-2); color: var(--testo); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--vetro:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.btn--scuro { background: var(--fondo); color: #fff; }
.btn--scuro:hover { background: #1e2423; }
.bottoni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* Testata */
.testata { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: transform .45s var(--ease); }
.testata::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 9, 10, .72); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--linea); opacity: 0; transition: opacity .3s; }
.testata.is-scrollata::before { opacity: 1; }
.testata.is-nascosta { transform: translateY(-100%); }
.testata__barra { display: flex; align-items: center; gap: 16px; height: var(--testata); }
.marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marchio__segno { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(var(--accento-rgb), .12); border: 1px solid rgba(var(--accento-rgb), .35); color: var(--accento); font: 600 .82rem var(--mono); }
.marchio__nome { font: 700 1.12rem var(--titoli); letter-spacing: -.02em; }
.marchio__nome b { font-weight: 500; color: var(--tenue); margin-left: 3px; }
.hamburger { width: 44px; height: 44px; border: 0; background: none; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 10px; cursor: pointer; }
.hamburger span { height: 2px; background: var(--testo); border-radius: 2px; transition: transform .3s var(--ease); }
.hamburger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.menu { position: fixed; inset: var(--testata) 0 auto; z-index: 59; display: flex; flex-direction: column; padding: 14px 20px 24px; background: rgba(7, 9, 10, .97); border-bottom: 1px solid var(--linea); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .3s var(--ease), visibility .3s; }
.menu.is-aperto { opacity: 1; visibility: visible; transform: none; }
.menu a { padding: 14px 4px; text-decoration: none; font: 600 1.25rem var(--titoli); border-bottom: 1px solid var(--linea); }
.menu a.menu__cta { margin-top: 14px; border: 0; color: #02140b; }

/* ------------------------------- HERO ------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--testata) + 30px) 0 80px; overflow: hidden; isolation: isolate; }
.hero__griglia-luce { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 35%), #000, transparent 75%); mask-image: radial-gradient(420px circle at var(--mx, 70%) var(--my, 35%), #000, transparent 75%); }
.hero__aurora { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.hero__aurora span:nth-child(1) { width: 520px; height: 520px; background: rgba(var(--accento-rgb), .35); top: -12%; right: -10%; animation: deriva 18s ease-in-out infinite; }
.hero__aurora span:nth-child(2) { width: 420px; height: 420px; background: rgba(123, 108, 255, .3); bottom: -18%; left: -12%; animation: deriva 22s ease-in-out infinite reverse; }
.hero__aurora span:nth-child(3) { width: 300px; height: 300px; background: rgba(0, 207, 255, .22); top: 40%; left: 45%; animation: deriva 26s ease-in-out infinite; }
.hero__corpo { display: grid; gap: 56px; align-items: center; }
.hero__titolo { font-size: clamp(2.7rem, 11.5vw, 6rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-bottom: .35em; }
.riga { display: block; overflow: hidden; padding-bottom: .06em; }
.riga > span { display: inline-block; }
.rotatore { position: relative; display: inline-grid; vertical-align: bottom; }
.rotatore b { grid-area: 1 / 1; font-weight: 800; background: linear-gradient(100deg, var(--accento), var(--azzurro) 60%, var(--viola)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(70%) rotateX(-60deg); transition: opacity .5s var(--ease), transform .7s var(--ease); white-space: nowrap; }
.rotatore b.is-attiva { opacity: 1; transform: none; }
.rotatore b.is-uscita { opacity: 0; transform: translateY(-70%) rotateX(60deg); }
.hero__sotto { font-size: 1.12rem; color: var(--tenue); max-width: 42ch; }
.hero__scena { position: relative; height: 420px; perspective: 1200px; }
.hero__strato { position: absolute; transition: transform .2s linear; will-change: transform; }
.hero__strato--browser { left: 0; right: 14%; top: 10%; }
.hero__strato--telefono { right: 0; bottom: 0; width: 34%; }
.browser { border-radius: 14px; overflow: hidden; background: #111516; border: 1px solid var(--linea-2); box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.browser__barra { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #171c1d; border-bottom: 1px solid var(--linea); }
.browser__barra i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.browser__barra i:nth-child(2) { background: #febc2e; }
.browser__barra i:nth-child(3) { background: #28c840; }
.browser__barra span { margin-left: 10px; font: 500 .66rem var(--mono); color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img, .browser video { width: 100%; display: block; }
.telefono { position: relative; border-radius: 30px; overflow: hidden; border: 6px solid #0b0d0e; background: #000; box-shadow: 0 0 0 1px var(--linea-2), 0 40px 80px rgba(0, 0, 0, .65); aspect-ratio: 1 / 2; }
.telefono img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero__chip { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 15px; background: rgba(20, 24, 25, .82); border: 1px solid var(--linea-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0, 0, 0, .45); font-size: .8rem; }
.hero__chip strong { display: block; font-size: .85rem; }
.hero__chip small { color: var(--tenue); display: block; line-height: 1.3; }
.hero__chip--1 { left: -4%; top: 0; }
.hero__chip--2 { left: 6%; bottom: 4%; flex-direction: column; align-items: flex-start; gap: 0; }
.hero__chip--2 b { font: 800 2rem var(--titoli); color: var(--accento); line-height: 1; display: inline; }
.hero__chip--3 { right: 26%; top: 46%; }
.spunta { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accento-rgb), .15); color: var(--accento); font-weight: 700; }
.hero__scorri { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--linea-2); border-radius: 14px; }
.hero__scorri span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accento); animation: rotella 1.8s var(--ease) infinite; }

/* Nastro */
.nastro { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--linea); white-space: nowrap; background: var(--fondo-2); transform: rotate(-1.2deg) scale(1.02); }
.nastro__scorre { display: inline-flex; align-items: center; animation: nastro 36s linear infinite; }
.nastro span { font: 700 clamp(1.6rem, 6vw, 2.6rem) var(--titoli); letter-spacing: -.02em; padding: 0 22px; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.nastro span:nth-child(4n+1) { color: var(--testo); -webkit-text-stroke: 0; }
.nastro i { font-style: normal; color: var(--accento); }

/* Numeri */
.numeri { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding-top: 90px; padding-bottom: 40px; }
.numero b { display: block; font: 800 clamp(2.6rem, 10vw, 4.4rem) var(--titoli); letter-spacing: -.04em; line-height: 1; background: linear-gradient(180deg, #fff, #9aa29e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numero > span { display: block; margin-top: 8px; font-size: .88rem; color: var(--tenue); line-height: 1.45; }

/* ------------------------ LAVORI (scorrimento orizzontale) ------------------------ */
.lavori { position: relative; padding: 90px 0 60px; }
.lavori__testa { margin-bottom: 2rem; }
.lavori__aiuto { font: 500 .78rem var(--mono); color: var(--tenue); }
.solo-pc { display: none; }
.lavori__binario { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 20px; scroll-padding: 0 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
.lavori__binario::-webkit-scrollbar { display: none; }
.pannello { flex: 0 0 88vw; scroll-snap-align: start; display: grid; gap: 28px; padding: 26px 22px; border-radius: 26px; background: linear-gradient(160deg, var(--fondo-3), var(--fondo-2)); border: 1px solid var(--linea); position: relative; overflow: hidden; isolation: isolate; }
.pannello::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background: radial-gradient(600px circle at 85% 20%, rgba(var(--accento-rgb), .14), transparent 60%); }
.pannello--biolink::before { background: radial-gradient(600px circle at 85% 20%, rgba(123, 108, 255, .2), transparent 60%); }
.pannello--remote::before { background: radial-gradient(600px circle at 75% 40%, rgba(0, 207, 255, .16), transparent 60%); }
.pannello--bot::before { background: radial-gradient(600px circle at 80% 30%, rgba(88, 101, 242, .22), transparent 60%); }
.pannello__n { font: 500 .78rem var(--mono); color: var(--accento); margin-bottom: 12px; }
.pannello h3 { font-size: clamp(1.6rem, 6vw, 2.5rem); line-height: 1.05; }
.pannello__testo > p:not(.pannello__n) { color: var(--tenue); }
.pillole { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pillole li { font: 500 .72rem var(--mono); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--linea-2); color: var(--tenue); }
.spunte { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 8px; }
.spunte li { position: relative; padding-left: 24px; color: var(--tenue); font-size: .92rem; line-height: 1.45; }
.spunte li::before { content: "✓"; position: absolute; left: 0; color: var(--accento); font-weight: 700; }
.spunte b { color: var(--testo); font-weight: 600; margin-right: 4px; }
.schermate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 320px; margin: 1rem 0 0; }
.schermate figure { margin: 0; }
.schermate img { border-radius: 10px; border: 1px solid var(--linea-2); aspect-ratio: 540 / 1000; object-fit: cover; object-position: top; transition: transform .4s var(--ease); }
.schermate figure:hover img { transform: translateY(-4px) scale(1.04); }
.schermate figcaption { font: 500 .66rem var(--mono); color: var(--tenue); text-align: center; margin-top: 4px; }
.pannello__visual { position: relative; min-height: 260px; }
.browser--grande { width: 88%; }
.telefono--sovrapposto { position: absolute; right: 0; bottom: -10px; width: 30%; border-width: 5px; border-radius: 22px; }
.etichetta-flottante { position: absolute; left: 4%; bottom: 6%; padding: 9px 14px; border-radius: 12px; background: rgba(var(--accento-rgb), .14); border: 1px solid rgba(var(--accento-rgb), .4); color: var(--accento); font: 600 .78rem var(--mono); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pannello--biolink .browser--grande { width: 76%; }
.ventaglio { position: absolute; right: -2%; bottom: -14px; width: 46%; aspect-ratio: 1 / 1.1; }
.ventaglio img { position: absolute; bottom: 0; left: 50%; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); transition: transform .9s var(--ease); }
.ventaglio__centro { z-index: 2; width: 54%; transform: translateX(-50%); }
.ventaglio__sx, .ventaglio__dx { width: 44%; z-index: 1; }
.ventaglio__sx { transform: translateX(-110%) rotate(-10deg); }
.ventaglio__dx { transform: translateX(10%) rotate(10deg); }
.pannello:hover .ventaglio__sx { transform: translateX(-122%) rotate(-14deg) translateY(-6px); }
.pannello:hover .ventaglio__dx { transform: translateX(22%) rotate(14deg) translateY(-6px); }
.pannello:hover .ventaglio__centro { transform: translateX(-50%) translateY(-10px); }

/* Remote control: due telefoni collegati */
.remote { display: grid; grid-template-columns: 1fr .7fr 1fr; align-items: center; gap: 4px; min-height: 0; }
.remote__ruolo { font: 600 .68rem var(--mono); color: var(--tenue); text-align: center; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .12em; }
.remote__telefono--comanda .remote__ruolo { color: var(--accento); }
.remote__telefono--controllato .remote__ruolo { color: var(--azzurro); }
.remote .telefono { border-radius: 22px; border-width: 5px; }
.schermo-app { position: absolute; inset: 0; overflow: hidden; }
.schermo-app img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transition: transform .9s var(--ease); }
.barra-controllo { position: absolute; z-index: 3; top: 0; left: 0; right: 0; padding: 4px 0; text-align: center; background: #e5484d; color: #fff; font: 700 .52rem var(--corpo); letter-spacing: .03em; }
.remote__telefono--controllato .schermo-app img { top: 15px; }
.dito, .tocco { position: absolute; z-index: 4; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none; left: 50%; top: 50%; }
.dito { background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 6px rgba(255, 255, 255, .2), 0 6px 14px rgba(0, 0, 0, .5); transition: left .7s var(--ease), top .7s var(--ease), transform .15s; }
.dito.is-premuto { transform: scale(.75); }
.tocco { border: 2px solid var(--azzurro); opacity: 0; }
.tocco.is-onda { animation: onda .7s var(--ease); }
.remote__collegamento { position: relative; height: 60px; }
.remote__collegamento svg { width: 100%; height: 40px; overflow: visible; }
.remote__collegamento path { fill: none; stroke: rgba(var(--accento-rgb), .45); stroke-width: 1.5; stroke-dasharray: 5 6; animation: tratteggio 1s linear infinite; }
.pacchetto { position: absolute; top: 16px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accento); box-shadow: 0 0 12px var(--accento); animation: viaggio 1.6s linear infinite; }
.pacchetto:nth-of-type(2) { animation-delay: .53s; }
.pacchetto:nth-of-type(3) { animation-delay: 1.06s; }
.remote__latenza { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); white-space: nowrap; display: flex; align-items: center; gap: 6px; font: 600 .66rem var(--mono); color: var(--tenue); margin: 0; }
.remote__latenza b { color: var(--accento); }

/* Chat bot */
.chat { border-radius: 16px; overflow: hidden; background: #313338; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); font-size: .85rem; max-width: 520px; }
.chat__testa { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #2b2d31; border-bottom: 1px solid rgba(0, 0, 0, .3); font-weight: 600; }
.chat__canale { color: #f2f3f5; }
.chat__online { display: flex; align-items: center; gap: 6px; color: #b5bac1; font: 500 .72rem var(--mono); }
.chat__corpo { height: 260px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; }
.msg { display: grid; grid-template-columns: 34px 1fr; gap: 10px; animation: msgEntra .45s var(--ease) both; }
.msg__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .75rem; color: #fff; }
.msg__nome { font-weight: 600; color: #f2f3f5; margin-right: 6px; }
.msg__tag { font: 700 .6rem var(--corpo); background: #5865f2; color: #fff; padding: 1px 5px; border-radius: 4px; vertical-align: 1px; }
.msg__testo { color: #dbdee1; margin-top: 2px; }
.msg__testo code { font: .8rem var(--mono); background: #2b2d31; padding: 1px 5px; border-radius: 4px; color: #e3e5e8; }
.embed { margin-top: 6px; padding: 10px 12px; border-left: 4px solid var(--accento); background: #2b2d31; border-radius: 4px; color: #dbdee1; }
.embed strong { color: #fff; display: block; margin-bottom: 2px; }
.chat__scrivi { margin: 0 14px 14px; padding: 11px 14px; border-radius: 10px; background: #383a40; color: #dbdee1; font: .82rem var(--mono); min-height: 40px; display: flex; align-items: center; }
.cursore-testo { display: inline-block; width: 7px; height: 15px; background: #dbdee1; margin-left: 2px; animation: lampeggia 1s steps(1) infinite; }

.pannello--fine { place-content: center; text-align: left; background: linear-gradient(135deg, rgba(var(--accento-rgb), .14), rgba(0, 207, 255, .08) 50%, rgba(123, 108, 255, .12)); }
.pannello--fine h3 { font-size: clamp(2rem, 8vw, 3.6rem); }

/* ------------------------------- BENTO TOOL ------------------------------- */
.sez { padding: 100px 0; position: relative; }
.bento { display: grid; gap: 14px; }
.tessera { position: relative; padding: 26px 22px; border-radius: var(--raggio); background: var(--fondo-2); border: 1px solid var(--linea); overflow: hidden; isolation: isolate; min-height: 260px; display: flex; flex-direction: column; }
.tessera::after { /* luce che segue il mouse */ content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--lx, 50%) var(--ly, 50%), rgba(var(--accento-rgb), .12), transparent 60%); }
.tessera:hover::after { opacity: 1; }
.tessera h3 { margin-bottom: .3em; }
.tessera > p { color: var(--tenue); font-size: .95rem; margin-bottom: 1.2rem; }
.codice { margin: auto 0 0; padding: 16px; border-radius: 14px; background: #050607; border: 1px solid var(--linea); font: 500 .74rem/1.7 var(--mono); color: #c6ccc9; white-space: pre-wrap; word-break: break-all; min-height: 120px; }
.codice .k { color: #ff7ab2; } .codice .a { color: var(--azzurro); } .codice .s { color: var(--accento); }
.codice code::after { content: "▍"; color: var(--accento); animation: lampeggia 1s steps(1) infinite; }
.notifiche { margin-top: auto; display: grid; gap: 8px; }
.notifica { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 13px; background: var(--fondo-3); border: 1px solid var(--linea); font-size: .82rem; }
.notifica b { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--accento-rgb), .14); color: var(--accento); flex: none; }
.notifica strong { display: block; } .notifica small { color: var(--tenue); }
.mini-cal { margin-top: auto; }
.mini-cal__giorni { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font: 500 .66rem var(--mono); color: var(--tenue); text-align: center; margin-bottom: 6px; }
.mini-cal__griglia { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 22px; gap: 6px; }
.mini-cal__griglia span { border-radius: 6px; background: rgba(255, 255, 255, .04); }
.mini-cal__griglia span.is-pieno { background: linear-gradient(90deg, rgba(var(--accento-rgb), .55), rgba(0, 207, 255, .45)); animation: pop .5s var(--ease); }
.borsa-demo { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.borsa-demo__prodotti { display: flex; gap: 8px; }
.borsa-demo__prodotti span { width: 42px; height: 58px; border-radius: 10px; background: linear-gradient(180deg, #2b3231, #171b1c); border: 1px solid var(--linea-2); position: relative; }
.borsa-demo__prodotti span::before { content: ""; position: absolute; left: 30%; right: 30%; top: -6px; height: 10px; border-radius: 3px 3px 0 0; background: #3a4342; }
.borsa-demo__prodotti span.vola { animation: volaInBorsa 1s var(--ease) forwards; }
.borsa-demo__icona { position: relative; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(var(--accento-rgb), .12); border: 1px solid rgba(var(--accento-rgb), .4); }
.borsa-demo__icona svg { width: 30px; height: 30px; fill: none; stroke: var(--accento); stroke-width: 1.8; }
.borsa-demo__icona b { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; background: var(--accento); color: #02140b; font-size: .78rem; }
.borsa-demo__icona.salta-su { animation: saltella .45s var(--ease); }
.indicatore { margin-top: auto; position: relative; width: 120px; height: 120px; align-self: center; }
.indicatore svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.indicatore circle { fill: none; stroke-width: 9; stroke: rgba(255, 255, 255, .07); }
.indicatore circle[data-arco] { stroke: var(--accento); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; transition: stroke-dashoffset 1.6s var(--ease); }
.indicatore.is-pieno circle[data-arco] { stroke-dashoffset: 8; }
.indicatore b { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 700 .9rem/1.1 var(--titoli); }

/* ------------------------------- SERVIZI (chiaro) ------------------------------- */
.sez--chiara { background: var(--chiaro); color: #0b0d0c; }
.sez--chiara .etichetta { color: var(--accento-2); }
.sez--chiara .testa__sotto { color: #59615d; }
.sez--chiara h2 em { background: linear-gradient(100deg, var(--accento-2), #0090c0); -webkit-background-clip: text; background-clip: text; }
.servizi-layout { display: grid; gap: 40px; }
.servizi-lista { list-style: none; padding: 0; margin: 0; }
.servizi-lista li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid #dfe1da; transition: padding .35s var(--ease); }
.servizi-lista li:last-child { border-bottom: 1px solid #dfe1da; }
.servizi-lista li > span { font: 600 .82rem var(--mono); color: var(--accento-2); padding-top: 6px; }
.servizi-lista h3 { margin-bottom: .2em; }
.servizi-lista p { margin: 0; color: #59615d; }
.servizi-lista li:hover { padding-left: 10px; }

/* ------------------------------- METODO ------------------------------- */
.linea-tempo { list-style: none; padding: 0 0 0 28px; margin: 0; display: grid; gap: 34px; position: relative; }
.linea-tempo::before, .linea-tempo::after { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
.linea-tempo::before { background: var(--linea-2); }
.linea-tempo::after { background: linear-gradient(180deg, var(--accento), var(--azzurro)); transform-origin: top; transform: scaleY(var(--avanzamento, 0)); }
.linea-tempo li { position: relative; }
.linea-tempo__punto { position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--fondo); border: 2px solid var(--linea-2); transition: border-color .4s, box-shadow .4s, background .4s; }
.linea-tempo li.is-attivo .linea-tempo__punto { border-color: var(--accento); background: var(--accento); box-shadow: 0 0 0 6px rgba(var(--accento-rgb), .15); }
.linea-tempo__n { font: 600 .78rem var(--mono); color: var(--accento); margin-bottom: 6px; }
.linea-tempo li > p:last-child { color: var(--tenue); margin: 0; }

/* ------------------------------- FAQ ------------------------------- */
.faq-layout { display: grid; gap: 30px; }
.faq details { border-bottom: 1px solid #dfe1da; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 46px 22px 0; position: relative; font: 600 1.15rem var(--titoli); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #dfe1da; transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accento); border-color: var(--accento); }
.faq details p { color: #59615d; padding-right: 30px; animation: compari .4s var(--ease); }

/* ------------------------------- CONTATTI ------------------------------- */
.contatti-sez { overflow: hidden; isolation: isolate; }
.contatti-sez__luce { position: absolute; z-index: -1; left: 50%; top: 30%; width: 900px; height: 900px; margin-left: -450px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accento-rgb), .16), transparent 60%); }
.contatti { display: grid; gap: 40px; }
.contatti__titolo { font-size: clamp(2.8rem, 12vw, 5.6rem); font-weight: 800; letter-spacing: -.045em; }
.contatti__punti { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 10px; color: #cfd5d2; }
.contatti__punti li::before { content: "✓"; color: var(--accento); font-weight: 700; margin-right: 10px; }
.modulo { display: grid; gap: 14px; padding: 26px 22px; border-radius: 26px; background: rgba(20, 24, 25, .75); border: 1px solid var(--linea-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.modulo label > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.modulo small { font-weight: 400; color: var(--tenue); }
.modulo input, .modulo textarea { width: 100%; font: 400 16px var(--corpo); padding: 13px 14px; border: 1px solid var(--linea-2); border-radius: 12px; background: rgba(0, 0, 0, .35); color: var(--testo); transition: border-color .2s, box-shadow .2s; resize: vertical; }
.modulo input::placeholder, .modulo textarea::placeholder { color: var(--tenue-2); }
.modulo input:focus, .modulo textarea:focus { outline: none; border-color: var(--accento); box-shadow: 0 0 0 4px rgba(var(--accento-rgb), .15); }
.modulo .consenso { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--tenue); }
.modulo .consenso input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--accento); padding: 0; }
.modulo .btn { width: 100%; }
.nascosto { position: absolute; left: -9999px; }

/* Piede */
.piede { padding: 60px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); overflow: hidden; }
/* Il nome riempie esattamente la larghezza del contenitore (unita' cqi), senza mai uscire */
.piede > .contenitore { container-type: inline-size; }
.piede__grande { font: 800 min(10.6vw, 12rem) var(--titoli); font-size: 13.6cqi; letter-spacing: -.025em; line-height: .9; margin: 0 0 30px; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .18); white-space: nowrap; }
.piede__grande b { font-weight: 800; -webkit-text-stroke: 0; padding-right: .04em; background: linear-gradient(100deg, var(--accento), var(--azzurro)); -webkit-background-clip: text; background-clip: text; }
.piede__riga { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; color: var(--tenue); }
.piede__riga p { margin: 0; }
.piede a { text-decoration: none; }
.piede a:hover { color: var(--accento); }

/* ------------------------------- Animazioni base ------------------------------- */
/* Prima che GSAP parta (o se non c'e'), il contenuto resta visibile */
@keyframes pulsa { 70% { box-shadow: 0 0 0 9px rgba(var(--accento-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accento-rgb), 0); } }
@keyframes deriva { 50% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes rotella { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes nastro { to { transform: translateX(-50%); } }
@keyframes tratteggio { to { stroke-dashoffset: -22; } }
@keyframes viaggio { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
@keyframes onda { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes lampeggia { 50% { opacity: 0; } }
@keyframes msgEntra { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
@keyframes volaInBorsa { 60% { transform: translate(var(--vx, 120px), -40px) scale(.6) rotate(18deg); opacity: 1; } 100% { transform: translate(var(--vx, 120px), 10px) scale(.3); opacity: 0; } }
@keyframes saltella { 40% { transform: scale(1.15) rotate(-6deg); } 70% { transform: scale(.95); } }
@keyframes compari { from { opacity: 0; transform: translateY(-6px); } }

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

/* ------------------------------- Tablet ------------------------------- */
@media (min-width: 720px) {
  .contenitore { padding: 0 36px; }
  .numeri { grid-template-columns: repeat(4, 1fr); }
  .lavori__binario { padding: 4px 36px 20px; scroll-padding: 0 36px; }
  .pannello { flex-basis: 78vw; padding: 36px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tessera--codice { grid-column: span 2; }
  .modulo { padding: 32px; }
}

/* ------------------------------- Computer ------------------------------- */
@media (min-width: 1000px) {
  :root { --testata: 78px; }
  .hamburger { display: none; }
  .menu { position: static; flex-direction: row; align-items: center; gap: 30px; padding: 0; background: none; border: 0; opacity: 1; visibility: visible; transform: none; }
  .menu a { border: 0; padding: 6px 0; font: 500 .95rem var(--corpo); color: var(--tenue); transition: color .2s; }
  .menu a:hover { color: var(--testo); }
  .menu a.menu__cta { margin-left: 6px; padding: 11px 20px; min-height: 44px; color: #02140b; }
  .hero__corpo { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .hero__scena { height: 540px; }
  .solo-pc { display: inline; } .solo-tel { display: none; }

  /* Lavori: la sezione si "blocca" e i pannelli scorrono di lato (GSAP) */
  .lavori.is-orizzontale { height: 100vh; padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .lavori.is-orizzontale .lavori__testa { margin-bottom: clamp(.8rem, 2.4vh, 1.6rem); }
  .lavori.is-orizzontale .lavori__testa .etichetta { margin-bottom: 6px; }
  .lavori.is-orizzontale .lavori__testa h2 { font-size: clamp(2rem, min(4vw, 6vh), 3.6rem); margin-bottom: .15em; }
  .lavori.is-orizzontale .lavori__binario { overflow: visible; scroll-snap-type: none; padding: 0 0 0 max(36px, calc((100vw - 1240px) / 2 + 36px)); width: max-content; gap: 28px; }
  /* Il pannello sta sempre nello schermo: altezza = schermo meno titolo della sezione */
  .pannello { flex: 0 0 min(1060px, 80vw); grid-template-columns: .82fr 1.18fr; gap: 40px; align-items: center; padding: clamp(24px, 4vh, 44px) 44px; height: min(620px, calc(100vh - 190px)); }
  .pannello h3 { font-size: clamp(1.6rem, min(2.6vw, 4.6vh), 2.5rem); }
  .pannello__testo > p:not(.pannello__n) { font-size: .95rem; margin-bottom: .8em; }
  .pannello .bottoni { margin-top: 1.2rem; }
  /* Remote su PC: punti forti compatti, le miniature le mostrano gia' i due telefoni */
  .pannello--remote { grid-template-columns: 1fr 1.1fr; }
  .pannello--remote .spunte { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .pannello--remote .spunte li { font-size: .88rem; }
  .pannello--remote .spunte li span { display: none; }
  .pannello--remote .schermate { display: none; }
  .pannello--remote .pillole { margin-top: .8rem; }
  .pannello--remote .remote .telefono { width: min(100%, calc((100vh - 330px) / 2)); margin: 0 auto; }
  .pannello__visual { min-height: 0; }
  .pannello--fine { flex-basis: min(620px, 50vw); grid-template-columns: 1fr; }
  .pannello__visual { height: 100%; display: flex; align-items: center; }
  .remote { display: grid; }
  .chat { width: 100%; }

  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); }
  .tessera--codice { grid-column: span 4; }
  .tessera--email { grid-column: span 2; grid-row: span 2; }
  .tessera--calendario { grid-column: span 2; }
  .tessera--shop { grid-column: span 2; }
  .tessera--velocita { grid-column: span 6; flex-direction: row; align-items: center; gap: 30px; min-height: 0; }
  .tessera--velocita h3 { margin: 0; }
  .tessera--velocita > p { margin: 0; }
  .tessera--velocita .indicatore { margin: 0 0 0 auto; width: 96px; height: 96px; }
  .tessera--email .notifiche { gap: 12px; }

  .sez { padding: 140px 0; }
  .servizi-layout { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .servizi-layout__testa { position: sticky; top: 120px; }
  .linea-tempo { grid-template-columns: repeat(4, 1fr); padding: 34px 0 0; gap: 30px; }
  .linea-tempo::before, .linea-tempo::after { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; }
  .linea-tempo::after { transform-origin: left; transform: scaleX(var(--avanzamento, 0)); }
  .linea-tempo__punto { left: 0; top: -34px; }
  .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .contatti { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
}

/* Telefono e tablet: nei progetti l'immagine va sopra il testo, ogni pannello alto quanto serve */
@media (max-width: 999px) {
  .lavori__binario { align-items: flex-start; }
  .pannello__visual { order: -1; height: 290px; min-height: 0; }
  .pannello--booking .browser--grande { width: 86%; margin-top: 10px; }
  .pannello--booking .telefono--sovrapposto { width: 32%; bottom: 0; }
  .pannello--booking .etichetta-flottante { bottom: 2%; }
  .pannello--biolink .browser--grande { width: 80%; margin-top: 10px; }
  .pannello--biolink .ventaglio { bottom: 0; width: 52%; }
  .pannello--remote .pannello__visual { height: auto; }
  .pannello--bot .pannello__visual { height: auto; }
  .chat__corpo { height: 210px; }
  .pannello--fine { min-height: 0; }
  .pannello--fine .pannello__testo { padding: 20px 0; }
}
