:root { --eo: cubic-bezier(0.23, 1, 0.32, 1); --eio: cubic-bezier(0.77, 0, 0.175, 1); }

/* Home: hero (variante 3, codice sorgente) */
.v3 .code-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 78%, transparent); }
.v3 .layer { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 48px; padding: 0 var(--pad); }
.v3 .layer pre { margin: 0; font: 12px/1.75 var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--code-ink); animation: codeup linear infinite; }
.v3 .layer.hi pre { color: var(--code-ink-hi); }
.v3 .layer.hi { -webkit-mask-image: linear-gradient(transparent calc(var(--y, -100px) - 34px), #000 calc(var(--y, -100px) - 8px), #000 calc(var(--y, -100px) + 8px), transparent calc(var(--y, -100px) + 34px));
                        mask-image: linear-gradient(transparent calc(var(--y, -100px) - 34px), #000 calc(var(--y, -100px) - 8px), #000 calc(var(--y, -100px) + 8px), transparent calc(var(--y, -100px) + 34px)); }
@keyframes codeup { to { transform: translateY(-50%); } }
.v3.hero { height: 100svh; min-height: 0; padding-top: 72px; padding-bottom: 0; }
/* Titolo scalato su larghezza e altezza: 4 righe restano sempre nello spazio tra header e barra loghi. */
.v3 h1 { font-size: clamp(1.4rem, min(calc((100vw - 2 * var(--pad)) / 8.3), calc((100svh - 330px) * .2)), 11rem); }
/* Sottotitolo: allineato al titolo, misura corta, sotto un filetto che lo stacca dal display. */
.v3 .sub { display: block; max-width: 44ch; margin-top: clamp(20px, 3vh, 36px); padding-top: clamp(14px, 2vh, 20px); border-top: 1px solid var(--line-strong); color: var(--ink-2); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; letter-spacing: -.005em; text-wrap: pretty; }
.v3 h1 .ln { white-space: nowrap !important; }
@media (max-height: 560px) { .v3 .logos { padding-block: 14px 16px; } .v3 .logos-lab { display: none; } .v3 .track li { height: 44px; } .v3 .track img { transform: scale(.8); } .v3 h1 { font-size: clamp(1.4rem, min(calc((100vw - 2 * var(--pad)) / 8.3), calc((100svh - 200px) * .2)), 11rem); } .v3 .sub { margin-top: 12px; padding-top: 10px; font-size: 15px; } }
.v3 .logos { position: relative; margin-inline: calc(var(--pad) * -1); background: var(--surface); border-top: 1px solid var(--line); padding: 22px var(--pad) 26px; animation: up 1s .8s var(--ease) both; }
.v3 .logos > * { max-width: var(--max); margin-inline: auto; }
.v3 .logos-lab { color: var(--ink-3); margin-bottom: 18px; }
.v3 .marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.v3 .track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.v3 .marquee:hover .track { animation-play-state: paused; }
.v3 .track ul { display: flex; align-items: center; gap: clamp(48px, 5vw, 80px); padding-right: clamp(48px, 5vw, 80px); list-style: none; }
.v3 .track li { flex: none; display: flex; align-items: center; height: 60px; }
.v3 .track img { display: block; height: auto; max-height: 56px; filter: var(--logo-filter); opacity: .86; transition: opacity .3s var(--ease); }
.v3 .track img:hover { opacity: 1; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (max-width: 600px) { .v3 .track img { transform: scale(.82); } .v3 .track { animation-duration: 45s; } }
@media (prefers-reduced-motion: reduce) {
  .v3 .marquee { -webkit-mask-image: none; mask-image: none; }
  .v3 .track { width: auto; }
  .v3 .track ul { flex-wrap: wrap; gap: 24px 48px; padding: 0; }
  .v3 .track ul[aria-hidden] { display: none; }
}

/* Home: sezione prodotti (card B v2) */
.grid6 { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(64px, 6vw, 96px) clamp(24px, 2.4vw, 40px); }
.card .vis { position: relative; aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .4s var(--ease); }
.card:hover .vis, .card.live .vis { border-color: var(--line-strong); }
.card h3 { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: calc(12px + 10px + 2 * .98em); margin: 0 0 22px; font-weight: 300; font-variation-settings: "wdth" 125; font-size: clamp(1.75rem, 2.4vw, 2.5rem); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.card h3 .mono { font-size: 12px; font-weight: 400; letter-spacing: .06em; line-height: 1; color: var(--signal); }
.card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 46ch; margin-top: 20px; }
.card .cmeta { margin-top: 12px; color: var(--ink-3); font-size: 12px; }
@media (max-width: 1100px) { .grid6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid6 { grid-template-columns: 1fr; } .card h3 { min-height: 0; font-size: clamp(1.75rem, 7.6vw, 2.2rem); } }

/* B v2: miniature di prodotto in scala col contenitore (cqw), motion solo transform/opacity. */
.vb { --eo: cubic-bezier(0.23, 1, 0.32, 1); --eio: cubic-bezier(0.77, 0, 0.175, 1); }
.vb .vis { container-type: inline-size; background: var(--surface); }
.vb .s { position: absolute; inset: 0; font: 400 2.35cqw/1.35 var(--mono); letter-spacing: .01em; color: var(--ink-3); }
.vb .t { font-family: var(--sans); font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.vb .pill { border: 1px solid var(--line-strong); border-radius: 999px; padding: .15em .75em; white-space: nowrap; }
.vb .bar { display: block; height: .45em; border-radius: .25em; background: var(--line-strong); }
.vb .bar.s { width: 62%; }

/* Finestra che esce dal riquadro in basso a destra */
.vb .win { position: absolute; left: 9cqw; top: 8cqw; width: 100cqw; height: 62.5cqw; background: var(--raised); border: 1px solid var(--line-strong); border-radius: .8em 0 0 0; box-shadow: 0 2em 4em -2em color-mix(in oklab, var(--shadow) 90%, transparent); transition: transform 300ms var(--eo); }
.vb .card:hover .win, .vb .card.live .win { transform: translate(-1.6cqw, -1.6cqw); }
.vb .chrome { height: 2em; display: flex; align-items: center; gap: .45em; padding: 0 .9em; border-bottom: 1px solid var(--line); }
.vb .chrome i { width: .62em; height: .62em; border-radius: 50%; background: var(--line-strong); }
.vb .chrome .url { margin-left: 1em; width: 14em; border: 1px solid var(--line); border-radius: 999px; padding: .1em .9em; font-size: .9em; }

/* 01 SaaS */
.vb .saas { display: grid; grid-template-columns: 9em 1fr; height: calc(100% - 2em); }
.vb .saas aside { border-right: 1px solid var(--line); padding: 1.1em .9em; display: flex; flex-direction: column; gap: .85em; }
.vb .saas .logo { width: 1em; height: 1em; border-radius: .25em; background: var(--ink-3); margin-bottom: .5em; }
.vb .saas .nav.on { color: var(--ink); }
.vb .saas .main { padding: 1.1em calc(9cqw + 1.2em) calc(8cqw + 1em) 1.2em; display: flex; flex-direction: column; gap: 1em; min-width: 0; }
.vb .saas .hd { display: flex; justify-content: space-between; align-items: center; }
.vb .saas .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.vb .saas .kpi { border: 1px solid var(--line); border-radius: .4em; padding: .6em .65em .7em; font-size: .9em; white-space: nowrap; overflow: hidden; }
.vb .saas .kpi i { display: block; height: .4em; margin-top: .7em; border-radius: .2em; background: var(--ink-3); transform-origin: left; transform: scaleX(calc(var(--v) * .3)); transition: transform 600ms var(--eo) var(--d); }
.vb .card:hover .saas .kpi i, .vb .card.live .saas .kpi i { transform: scaleX(var(--v)); }
.vb .saas .chart { position: relative; flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: .4em; padding: .6em .65em; display: flex; flex-direction: column; gap: .5em; font-size: .9em; }
.vb .saas .plot { position: relative; flex: 1; min-height: 0; }
.vb .saas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vb .saas .area { fill: var(--signal-soft); }
.vb .saas .ln0 { fill: none; stroke: var(--ui-dim); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.vb .saas .ln1 { fill: none; stroke: var(--signal); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 900ms var(--eo) 120ms; }
.vb .card:hover .saas .ln1, .vb .card.live .saas .ln1 { stroke-dashoffset: 0; }
.vb .saas .end { position: absolute; right: -.35em; top: calc(12% - .35em); width: .7em; height: .7em; border-radius: 50%; background: var(--signal); transform: scale(0.4); opacity: 0; transition: transform 250ms var(--eo), opacity 250ms var(--eo); }
.vb .card:hover .saas .end, .vb .card.live .saas .end { transform: scale(1); opacity: 1; transition-delay: 900ms; }

/* 02 MVP: dallo schizzo alla prima versione */
.vb .mvp .tag { position: absolute; left: 4cqw; top: 4cqw; display: grid; }
.vb .mvp .tag b { grid-area: 1 / 1; font-weight: 400; transition: opacity 250ms var(--eo); }
.vb .mvp .tag .b2, .vb .card:hover .mvp .tag .b1, .vb .card.live .mvp .tag .b1 { opacity: 0; }
.vb .card:hover .mvp .tag .b2, .vb .card.live .mvp .tag .b2 { opacity: 1; color: var(--ink); }
.vb .mvp .phone { position: absolute; left: 50%; top: 5cqw; height: 56cqw; aspect-ratio: 9 / 18; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 1.7em; background: var(--raised); transition: transform 400ms var(--eo); }
.vb .card:hover .mvp .phone, .vb .card.live .mvp .phone { transform: translate(-50%, -1.6cqw); }
.vb .mvp .notch { position: absolute; top: .8em; left: 50%; width: 2.6em; height: .4em; margin-left: -1.3em; border-radius: .2em; background: var(--line-strong); }
.vb .mvp .scr { position: absolute; inset: 2.2em .9em .9em; display: flex; flex-direction: column; gap: .6em; transition: opacity 350ms var(--eo); }
.vb .mvp .sk .bx { border: 1px dashed var(--ui-dim); border-radius: .3em; }
.vb .mvp .sk .h { height: 1.6em; width: 80%; }
.vb .mvp .sk .p { height: .6em; }
.vb .mvp .sk .p.s { width: 65%; }
.vb .mvp .sk .img, .vb .mvp .bt .img { flex: 1; }
.vb .mvp .sk .btn { height: 2em; border-radius: 999px; }
.vb .mvp .bt { opacity: 0; }
.vb .mvp .bt .t { font-size: 1.3em; line-height: 1.15; }
.vb .mvp .bt .sub { font-size: .85em; }
.vb .mvp .bt .img { border-radius: .35em; background: var(--ui-mute); }
.vb .mvp .bt .go { text-align: center; padding: .45em 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-family: var(--sans); font-weight: 600; }
.vb .card:hover .mvp .sk, .vb .card.live .mvp .sk { opacity: 0; }
.vb .card:hover .mvp .bt, .vb .card.live .mvp .bt { opacity: 1; transition-delay: 100ms; }
.vb .mvp .note { position: absolute; right: 4cqw; bottom: 4cqw; text-align: right; }

/* 03 Gestionali: arriva un nuovo ordine */
.vb .gest { padding: 1em calc(9cqw + 1.2em) 0 1.2em; }
.vb .gest .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9em; }
.vb .gest .new { transition: border-color 200ms var(--eo), color 200ms var(--eo); }
.vb .card:hover .gest .new, .vb .card.live .gest .new { border-color: var(--accent); color: var(--ink); }
.vb .gest .th, .vb .gest .r { display: grid; grid-template-columns: 1.5fr .9fr 1fr; gap: .8em; align-items: center; height: 2.4em; padding: 0 .6em; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vb .gest .th { color: var(--ink-2); height: 2em; }
.vb .gest .r > span:first-child { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.vb .gest .rows { height: 12em; overflow: hidden; }
.vb .gest .rw { transform: translateY(-2.4em); transition: transform 450ms var(--eo); }
.vb .card:hover .gest .rw, .vb .card.live .gest .rw { transform: none; }
.vb .gest .st { justify-self: start; border: 1px solid var(--line-strong); border-radius: 999px; padding: .05em .65em; font-size: .9em; }
.vb .gest .st.ok { border-style: dashed; }
.vb .gest .r.hot { background: var(--signal-soft); }
.vb .gest .r.hot > span:first-child { color: var(--ink); }
.vb .gest .r.hot .st { border-color: var(--signal); color: var(--signal); }

/* 04 Siti: stesso sito, desktop e telefono */
.vb .site .pg { padding: 1.1em calc(9cqw + 1.4em) 0 1.4em; }
.vb .site .nv { display: flex; align-items: center; gap: .9em; margin-bottom: 2em; }
.vb .site .nv b { width: 3.2em; height: .7em; border-radius: .2em; background: var(--ink-3); margin-right: auto; }
.vb .site .nv span { width: 2.4em; height: .4em; border-radius: .2em; background: var(--line-strong); }
.vb .site .h1, .vb .mob .h1 { display: block; font-family: var(--sans); font-weight: 300; font-variation-settings: "wdth" 120; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.vb .site .h1 { font-size: 2.3em; margin-bottom: .55em; }
.vb .site .bar { width: 46%; margin-bottom: .5em; }
.vb .site .bar.s { width: 30%; }
.vb .site .cta, .vb .mob .cta { display: inline-block; margin-top: .9em; padding: .4em 1em; border-radius: 999px; background: var(--line-strong); color: var(--ink); font-family: var(--sans); font-weight: 600; transition: background 250ms var(--eo), color 250ms var(--eo); }
.vb .card:hover .site .cta, .vb .card.live .site .cta, .vb .card:hover .mob .cta, .vb .card.live .mob .cta { background: var(--accent); color: var(--on-accent); }
.vb .mob { position: absolute; right: 6cqw; top: 15cqw; width: 19cqw; height: 40cqw; padding: 2.4em .8em .8em; border: 1px solid var(--line-strong); border-radius: 1.4em; background: var(--raised); box-shadow: 0 1.5em 3em -1em color-mix(in oklab, var(--shadow) 90%, transparent); transform: translateY(26cqw); transition: transform 450ms var(--eo) 60ms; }
.vb .card:hover .mob, .vb .card.live .mob { transform: none; }
.vb .mob .notch { position: absolute; top: .8em; left: 50%; width: 2em; height: .35em; margin-left: -1em; border-radius: .2em; background: var(--line-strong); }
.vb .mob .h1 { font-size: 1.25em; margin-bottom: .5em; }
.vb .mob .cta { font-size: .85em; margin-top: .4em; }
.vb .mob .blk { display: block; height: 4.5em; margin-top: .8em; border-radius: .3em; background: var(--ui-mute); }

/* 05 E-commerce: prodotto nel carrello */
.vb .shop .ttl { position: absolute; left: 1.4em; top: 3.1em; }
.vb .shop .cart { position: absolute; left: 25.5em; top: 2.9em; display: flex; align-items: center; gap: .5em; transition: border-color 200ms var(--eo) 750ms, color 200ms var(--eo) 750ms; }
.vb .card:hover .shop .cart, .vb .card.live .shop .cart { border-color: var(--accent); color: var(--ink); }
.vb .shop .n { display: grid; height: 1.35em; overflow: hidden; font-weight: 400; color: var(--ink); }
.vb .shop .n i { font-style: normal; grid-area: 1 / 1; transition: transform 250ms var(--eo); }
.vb .shop .n i + i { transform: translateY(100%); }
.vb .card:hover .shop .n i, .vb .card.live .shop .n i { transform: translateY(-100%); transition-delay: 760ms; }
.vb .card:hover .shop .n i + i, .vb .card.live .shop .n i + i { transform: none; color: var(--signal); }
.vb .shop .prods { position: absolute; left: 1.4em; top: 5.6em; width: 32em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.vb .shop .pr { height: 14em; border: 1px solid var(--line); border-radius: .45em; padding: .6em; display: flex; flex-direction: column; gap: .4em; }
.vb .shop .img { height: 7em; border-radius: .3em; background: var(--ui-mute); }
.vb .shop .nm { color: var(--ink-2); }
.vb .shop .add { margin-top: auto; text-align: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: .2em 0; transition: background 200ms var(--eo), border-color 200ms var(--eo), color 200ms var(--eo); }
.vb .card:hover .shop .pr.hot .add, .vb .card.live .shop .pr.hot .add { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vb .shop .fly { position: absolute; left: 16.3em; top: 8.6em; width: 2.2em; height: 2.2em; border-radius: .3em; background: var(--signal); opacity: 0; pointer-events: none; }
.vb .card:hover .shop .fly, .vb .card.live .shop .fly { animation: fly 650ms var(--eio) 150ms both; }
@keyframes fly {
  0% { opacity: 0; transform: scale(.7); }
  18% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translate(12.9em, -5.75em) scale(.25); }
}

/* 06 Integrazioni: i record passano da un sistema all'altro */
.vb .int .app { position: absolute; top: 4em; width: 14em; height: 15.5em; border: 1px solid var(--line-strong); border-radius: .6em; background: var(--raised); overflow: hidden; }
.vb .int .a1 { left: 2.2em; }
.vb .int .a2 { left: 26.15em; }
.vb .int .ah { display: flex; justify-content: space-between; align-items: center; height: 2.4em; padding: 0 .8em; border-bottom: 1px solid var(--line); }
.vb .int .rr { padding: .9em .8em; display: flex; flex-direction: column; gap: .6em; }
.vb .int .row { display: flex; flex-direction: column; justify-content: center; gap: .4em; height: 3em; padding: 0 .7em; border: 1px solid var(--line); border-radius: .35em; }
.vb .int .row i { display: block; height: .4em; width: 78%; border-radius: .2em; background: var(--ink-3); }
.vb .int .row i + i { width: 50%; background: var(--line-strong); }
.vb .int .a2 .row { border-style: dashed; transition: border-color 250ms var(--eo); }
.vb .int .a2 .row i { opacity: 0; transform: translateX(-.8em); transition: opacity 300ms var(--eo), transform 300ms var(--eo); }
.vb .card:hover .int .a2 .row, .vb .card.live .int .a2 .row { border-style: solid; transition-delay: calc(var(--i) * 220ms + 560ms); }
.vb .card:hover .int .a2 .row i, .vb .card.live .int .a2 .row i { opacity: 1; transform: none; transition-delay: calc(var(--i) * 220ms + 560ms); }
.vb .int .pipe { position: absolute; left: 16.2em; width: 9.95em; top: 11.35em; height: .8em; }
.vb .int .pipe::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-strong); }
.vb .int .pk { position: absolute; left: 0; top: 0; width: .8em; height: .8em; border-radius: 50%; background: var(--signal); opacity: 0; }
.vb .card:hover .int .pk, .vb .card.live .int .pk { animation: pk 650ms var(--eio) calc(var(--i) * 220ms) both; }
@keyframes pk { 0% { opacity: 0; transform: none; } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(9.15em); } }
.vb .int .status { position: absolute; left: 0; right: 0; top: 21.6em; display: grid; justify-items: center; }
.vb .int .status b { grid-area: 1 / 1; font-weight: 400; transition: opacity 250ms var(--eo); }
.vb .int .status .b2 { opacity: 0; color: var(--signal); }
.vb .card:hover .int .status .b1, .vb .card.live .int .status .b1 { opacity: 0; }
.vb .card:hover .int .status .b2, .vb .card.live .int .status .b2 { opacity: 1; transition-delay: 1100ms; }
@media (prefers-reduced-motion: reduce) { .card *, .card *::before, .card *::after { transition: none !important; animation: none !important; } }

/* Home: riga per le web agency (pubblico secondario, dentro la sezione servizi) */
.ag { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px clamp(24px, 4vw, 56px); margin-top: clamp(64px, 7vw, 112px); padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 36px); border: 1px solid var(--line-strong); border-radius: 8px; }
.ag h3 { font-weight: 300; font-variation-settings: "wdth" 125; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; }
.ag h3 b { font-weight: 650; color: var(--accent); }
.ag p { color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.btn-o { border-color: var(--line-strong); color: var(--ink); transition: border-color .25s var(--ease), color .25s var(--ease); }
.btn-o:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 900px) { .ag { grid-template-columns: 1fr; justify-items: start; } }

/* Home: chi sono (retino + intervista) */
.c7 picture img { display: block; width: 100%; height: 100%; object-fit: cover; }
.c7 .c7g { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.c7 .c7g > * { min-width: 0; }
.c7 .lab { grid-column: 1 / -1; margin-bottom: 0; }
.c7 .stk { position: sticky; top: 88px; }
.c7 .stage { position: relative; aspect-ratio: 1; width: 100%; max-height: calc(100svh - 150px); max-width: calc(100svh - 150px); touch-action: pan-y; }
.c7 .stage picture { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 40%, transparent 100%); mask-image: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 40%, transparent 100%); }
/* Mobile: bordo morbido più stretto, così la foto è piena fino al bordo del cerchio e non "sembra chiara" prima. */
.c7 .stage.scrub picture { -webkit-mask-image: radial-gradient(circle var(--r, 0px) at 50% 42%, #000 70%, transparent 100%); mask-image: radial-gradient(circle var(--r, 0px) at 50% 42%, #000 70%, transparent 100%); }
.c7 canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.c7 .cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-3); }
.c7 .prog { display: flex; gap: 6px; align-items: center; }
.c7 .prog i { width: 18px; height: 2px; background: var(--line-strong); transition: background .4s cubic-bezier(0.23, 1, 0.32, 1); }
.c7 .prog i.on { background: var(--signal); }
.c7 .qa { counter-reset: q; }
.c7 .q { padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--line); min-height: 52svh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s cubic-bezier(0.23, 1, 0.32, 1); }
.c7 .q:first-child { border-top: 0; }
.c7 .q.on { opacity: 1; }
.c7 .q h3 { display: flex; gap: 16px; align-items: baseline; font-size: clamp(1.5rem, 2.4vw, 2.4rem); font-weight: 300; font-variation-settings: "wdth" 120; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 18px; counter-increment: q; }
.c7 .q h3::before { content: counter(q, decimal-leading-zero); font-family: var(--mono); font-size: 13px; letter-spacing: .05em; color: var(--signal); }
.c7 .q p { color: var(--ink-2); max-width: 56ch; font-size: clamp(17px, 1.3vw, 19px); }
.c7 .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) {
  .c7 .c7g { grid-template-columns: 1fr; }
  .c7 .stk { position: relative; top: 0; }
  .c7 .stage { max-width: none; max-height: none; }
  .c7 .q { min-height: 0; opacity: 1; }
  .c7 .prog { display: none; }
}
@media (prefers-reduced-motion: reduce) { .c7 .q { opacity: 1; } }

/* Home: titoli di sezione (stile terminale) */
.t.v4 { margin-bottom: clamp(40px, 4vw, 64px); }

.v4 .cmd { font-family: var(--mono); font-size: clamp(14px, 1.2vw, 17px); color: var(--ink-3); min-height: 1.6em; margin-bottom: 18px; }
.v4 .cmd .p { color: var(--signal); }
.v4 .cmd .car { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.15em; background: var(--ink-2); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.v4 h2 { max-width: none; font-size: clamp(3rem, 8.4vw, 8.6rem); font-weight: 650; line-height: .92; letter-spacing: -.045em; color: var(--accent); }
.v4 .out { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.v4 .out span { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--ink-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 12px; }
.v4 h2, .v4 .out span { opacity: 0; transform: translateY(12px); transition: opacity 450ms var(--eo), transform 450ms var(--eo); }
.v4.done h2, .v4.done .out span { opacity: 1; transform: none; }
.v4.done .out span { transition-delay: calc(var(--i) * 50ms + 150ms); }
@media (prefers-reduced-motion: reduce) { .v4 .car { animation: none; } .v4 h2, .v4 .out span { opacity: 1; transform: none; transition: none; } }

/* Home: contatto (quattro passi) */
.cta-sec { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; }
.cta-sec > * { width: 100%; }
.k2 .btn { transition: background 200ms var(--eo), border-color 200ms var(--eo), transform 160ms var(--eo); }
.k2 .btn:active { transform: scale(.97); }
.k2 .alt { color: var(--ink-3); font-size: 15px; }
.k2 .alt a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); transition: color .2s, border-color .2s; }
.k2 .alt a:hover { color: var(--ink); border-color: var(--ink); }
.k2 .steps2 { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 4vw, 64px); position: relative; }
.k2 .steps2::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.k2 .steps2::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform 1200ms var(--eo) 200ms; }
.k2 .steps2.in::after { transform: none; }
.k2 .steps2 li { position: relative; padding-top: 36px; }
.k2 .steps2 li::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--ink-3); transition: background 300ms var(--eo), border-color 300ms var(--eo); transition-delay: calc(var(--i) * 300ms + 200ms); }
.k2 .steps2.in li::before { background: var(--signal); border-color: var(--signal); }
.k2 .steps2 .n { color: var(--ink-3); display: block; margin-bottom: 12px; }
.k2 .steps2 h3 { margin-bottom: 10px; }
.k2 .steps2 p { color: var(--ink-2); font-size: 16px; max-width: 32ch; }
.k2 .act2 { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(40px, 4vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.k2 .act2 .hint { color: var(--ink-3); }
.k2 .act2 .alt { margin-left: auto; }
/* Mobile: "Binario". La linea del percorso diventa verticale e si riempie con lo scroll (--fill da home.js);
   ogni passo è una stazione numerata che si accende al passaggio, l'ultima prende il colore della CTA. */
@media (max-width: 900px) {
  .k2 .steps2 { grid-template-columns: 1fr; row-gap: 0; padding-left: 44px; margin-top: 40px; }
  .k2 .steps2::before, .k2 .steps2::after { left: 11px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; border-radius: 2px; }
  .k2 .steps2::after { bottom: auto; height: var(--fill, 0%); transform: none; transition: none; }
  .k2 .steps2 li { padding: 0 0 36px; }
  .k2 .steps2 li:last-child { padding-bottom: 0; }
  .k2 .steps2 li::before { content: attr(data-n); left: -44px; top: -2px; width: 24px; height: 24px; display: grid; place-items: center; box-sizing: border-box; border: 2px solid var(--line-strong); font: 600 11px/1 var(--mono); color: var(--ink-3); z-index: 1; transition: background .3s var(--eo), border-color .3s var(--eo), color .3s var(--eo); transition-delay: 0s; }
  .k2 .steps2 li.on::before, .k2 .steps2.in li.on::before { background: var(--signal); border-color: var(--signal); color: var(--bg); }
  .k2 .steps2.in li:not(.on)::before { background: var(--bg); border-color: var(--line-strong); }
  .k2 .steps2 .n { display: none; }
  .k2 .steps2 h3 { font-size: 21px; margin-bottom: 8px; }
  .k2 .steps2 li:last-child h3 { font-size: 24px; color: var(--accent); }
  .k2 .steps2 p { max-width: none; font-size: 16px; }
  .k2 .act2 { display: block; margin: 40px 0 0 44px; padding-top: 0; border-top: 0; }
  .k2 .act2 .btn-p { display: flex; justify-content: flex-start; width: 100%; min-height: 56px; padding: 0 26px; font-size: 17px; }
  .k2 .act2 .hint, .k2 .act2 .alt { margin: 12px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .k2 .steps2::after { transform: none; transition: none; } .k2 .steps2 li::before { background: var(--signal); border-color: var(--signal); transition: none; } }
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .k2 .steps2::after { height: 100%; } .k2 .steps2 li::before, .k2 .steps2.in li:not(.on)::before { background: var(--signal); border-color: var(--signal); color: var(--bg); } }

/* Header: terminale */
.hx { position: fixed; inset: 0 0 auto; z-index: 40; }
.hx .name { font-family: var(--sans); font-weight: 600; font-variation-settings: "wdth" 125; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.hx .l-short { display: none; }
@media (max-width: 860px) { .hx .l-long { display: none; } .hx .l-short { display: inline; } }

.h1v { display: flex; align-items: center; gap: 22px; height: 56px; padding: 0 var(--pad); background: var(--bg-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.h1v .prompt { color: var(--ink-3); }
.h1v .car { display: inline-block; width: 7px; height: 14px; margin-left: 6px; vertical-align: -2px; background: var(--ink-2); animation: hblink 1s steps(1) infinite; }
@keyframes hblink { 50% { opacity: 0; } }
.h1v nav { display: flex; gap: 4px; margin-left: auto; }
.h1v nav a { padding: 6px 10px; color: var(--ink-3); border-radius: 4px; transition: color .2s, background .2s; }
.h1v nav a::before { content: "  "; white-space: pre; color: var(--signal); }
.h1v nav a:hover { color: var(--ink); background: var(--hover-fill); }
.h1v nav a.on { color: var(--ink); }
.h1v nav a.on::before { content: "› "; }
.h1v .stat { color: var(--ink-3); padding-left: 18px; border-left: 1px solid var(--line); }
.h1v .cta1 { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 16px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-family: var(--sans); font-size: 14px; font-weight: 600; font-variation-settings: "wdth" 108; letter-spacing: -.005em; line-height: 1; white-space: nowrap; box-shadow: inset 0 1px 0 color-mix(in oklab, var(--sheen) 22%, transparent), 0 0 0 1px var(--accent-edge), 0 6px 18px -8px var(--accent-glow); transition: background .2s var(--ease), box-shadow .3s var(--ease); }
.h1v .cta1 .ar { display: inline-block; font-size: 13px; transition: transform .35s var(--eo); }
.h1v .cta1:hover { background: var(--accent-hover); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--sheen) 28%, transparent), 0 0 0 1px var(--accent-edge), 0 8px 24px -8px color-mix(in oklab, var(--accent) 75%, transparent); }
.h1v .cta1:hover .ar { transform: translateX(3px); }
.h1v .cta1:active { transform: translateY(1px); }
/* Riflesso: una banda chiara e sottile che attraversa la CTA ogni 6s. Solo transform. */
.h1v .cta1::after { content: ""; position: absolute; z-index: -1; top: -50%; bottom: -50%; left: 0; width: 38%; background: linear-gradient(100deg, transparent, color-mix(in oklab, var(--sheen) 32%, transparent) 50%, transparent); transform: translateX(-160%) skewX(-18deg); animation: sheen 6s var(--eio) 2.2s infinite; pointer-events: none; }
@keyframes sheen { 0% { transform: translateX(-160%) skewX(-18deg); } 22%, 100% { transform: translateX(380%) skewX(-18deg); } }
@media (prefers-reduced-motion: reduce) { .h1v .cta1::after { animation: none; display: none; } .h1v .cta1 .ar { transition: none; } }
@media (max-width: 860px) { .h1v { height: 60px; } .h1v nav, .h1v .prompt, .h1v .stat { display: none; } .h1v .cta1 { margin-left: auto; flex: none; height: 44px; padding: 0 14px; } .h1v .cta1 .ar { display: none; } .h1v { gap: 10px; } .hx .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 380px) { .h1v { gap: 8px; } .hx .name { font-size: 13px; letter-spacing: .01em; } .h1v .cta1 { padding: 0 12px; font-size: 13px; } }
@media (max-width: 340px) { .hx .name { font-size: 12px; letter-spacing: 0; font-variation-settings: "wdth" 112; } .h1v .cta1 { padding: 0 10px; font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) { .h1v .car { animation: none; } }
