/* Portfolio Enrico Ascari — stile «sci-fi tech» (2026-10).
   Effetti: keyframes CSS per il movimento continuo + UN gestore di scroll in site.js (data-rv, data-px, data-count).
   ‼️ Rete di sicurezza: tutto parte VISIBILE (opacity 1). La dissolvenza la toglie il JS, non la mette il CSS. */

@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: 'Space Grotesk'; src: url('../fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, canvas { -webkit-user-drag: none; -webkit-touch-callout: none; }  /* niente trascinamento / menu della pressione lunga */

:root {
  --bg: #010810;
  --bg-2: #020f1f;
  --panel: rgba(4, 20, 44, .72);
  --panel-2: rgba(6, 28, 60, .82);
  --line: rgba(60, 150, 255, .16);
  --line-h: rgba(90, 190, 255, .42);
  --text: #e2efff;
  --text-m: #9bbad6;
  --text-d: #6a8cab;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #a78bfa;
  --accent: #22d3ee;
  --grad: linear-gradient(100deg, #22d3ee 0%, #60a5fa 35%, #a78bfa 65%, #22d3ee 100%);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --disp: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --nav-h: 64px;
  --gx: clamp(16px, 5vw, 72px);
  --maxw: 1240px;
  --r: 12px;
  color-scheme: dark;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ── lingua: i testi fissi esistono in entrambe le lingue, si mostra quella di <html lang> ── */
html[lang="it"] [data-l="en"], html[lang="en"] [data-l="it"] { display: none !important; }

/* ── sfondi ─────────────────────────────────────────────────────────── */
#bg-canvas, #matrix-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: block; transition: opacity 1s; }
#matrix-canvas { opacity: 0; }
body.matrix-mode #bg-canvas { opacity: 0; }
body.matrix-mode #matrix-canvas { opacity: 1; }
#matrix-glitch {
  position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--mono); font-size: clamp(1.2rem, 4vw, 3rem); letter-spacing: .25em; color: #00ff41;
  text-shadow: 0 0 20px #00ff41, 0 0 60px #00ff41aa; pointer-events: none; opacity: 0; transition: opacity .25s;
}
#matrix-glitch.show { opacity: 1; }
#matrix-glitch small { font-size: .35em; letter-spacing: .3em; opacity: .7; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--cyan); color: #001; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

main, footer { position: relative; z-index: 1; }

/* ── barra in alto ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 18px; padding: 0 var(--gx);
  transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(1, 8, 18, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.nav-logo { font-family: var(--disp); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; text-decoration: none; margin-right: auto; }
.nav-logo em { font-style: normal; color: var(--cyan); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 6px 11px; border-radius: 8px; text-decoration: none; font-size: .88rem; color: var(--text-m); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: rgba(60, 150, 255, .1); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { padding: 5px 9px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--text-d); }
.lang button[aria-pressed="true"] { background: rgba(34, 211, 238, .14); color: var(--cyan); }
.nav-cta { white-space: nowrap; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99; display: none; flex-direction: column; gap: 4px;
  padding: 12px var(--gx) 20px; background: rgba(1, 8, 18, .96); border-bottom: 1px solid var(--line);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 6px; text-decoration: none; border-bottom: 1px solid rgba(60, 150, 255, .08); font-size: 1rem; }
@media (max-width: 980px) { .nav-links { display: none; } .burger { display: flex; } }
@media (max-width: 420px) { .nav-cta { display: none; } }

/* ── bottoni ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; text-decoration: none; letter-spacing: .01em; transition: transform .2s, box-shadow .25s, background .25s, border-color .25s;
  min-height: 46px;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-a { background: linear-gradient(135deg, #22d3ee, #3b82f6); color: #021022; box-shadow: 0 8px 28px -8px rgba(34, 211, 238, .55); }
.btn-a:hover { box-shadow: 0 12px 36px -8px rgba(34, 211, 238, .75); }
.btn-b { background: linear-gradient(135deg, #a78bfa, #6366f1); color: #0b0620; box-shadow: 0 8px 28px -8px rgba(167, 139, 250, .5); }
.btn-g { border: 1px solid var(--line-h); background: rgba(8, 30, 64, .5); }
.btn-g:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.btn-s { padding: 8px 14px; min-height: 38px; font-size: .85rem; border-radius: 8px; }

/* ── sezioni ───────────────────────────────────────────────────────── */
/* overflow-x: clip — i bagliori sfocati escono dai bordi apposta: senza, la pagina scorreva di lato di 209 px */
section { position: relative; padding: clamp(72px, 10vw, 128px) var(--gx); overflow-x: clip; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.lbl { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.lbl::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.ttl { font-family: var(--disp); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.06; letter-spacing: -.02em; }
.ttl em { font-style: normal; }
.grad { background: var(--grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shine 7s linear infinite; }
.sub { color: var(--text-m); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 62ch; margin-top: 16px; }
.head { margin-bottom: clamp(36px, 5vw, 56px); }

/* pannello HUD: angoli tagliati con staffe agli angoli */
.hud { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hud::before, .hud::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--cyan); opacity: .55; pointer-events: none; transition: opacity .25s; }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r); }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r); }

/* ── keyframes (motore A: movimento continuo) ───────────────────────── */
@keyframes shine { to { background-position: -220% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, -30px) scale(1.15); } }
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); } 100% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes tile-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

.glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: .5; animation: drift 18s ease-in-out infinite alternate; z-index: -1; }

/* ── HERO ──────────────────────────────────────────────────────────── */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; width: 100%; }
.hero-tag { font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; color: var(--cyan); margin-bottom: 18px; animation: up .7s .05s both; }
.hero-tag .cur { display: inline-block; width: .55em; height: 1em; background: var(--cyan); vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
.hero-name { font-family: var(--disp); font-weight: 700; font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: .98; letter-spacing: -.035em; cursor: default; user-select: none; animation: up .8s .12s both; }
.hero-role { font-family: var(--disp); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2.4rem); line-height: 1.15; margin-top: 10px; animation: up .8s .22s both; }
.hero-lead { color: var(--text-m); font-size: clamp(1rem, 1.7vw, 1.16rem); max-width: 54ch; margin-top: 20px; animation: up .8s .32s both; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: up .8s .42s both; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; animation: up .8s .52s both; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(6, 26, 56, .55); font-size: .8rem; color: var(--text-m); }
.chip b { color: var(--text); font-weight: 600; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: pulse 1.8s infinite; flex: none; }

.devices { position: relative; height: clamp(380px, 46vw, 560px); animation: up 1s .3s both; }
.dev { position: absolute; border-radius: 22px; padding: 6px; background: linear-gradient(160deg, #13284a, #050c18); border: 1px solid rgba(120, 180, 255, .28); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 0 60px -20px rgba(34, 211, 238, .35); animation: float 8s ease-in-out infinite; }
.dev img { border-radius: 15px; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #0a1424; backface-visibility: hidden; }
/* ‼️ Nessun aspect-ratio fisso: le schermate hanno proporzioni diverse (9:17,8 … 9:19,5) e con una cornice fissa
   + object-fit:cover venivano ingrandite e tagliate ai lati (segnalato dall'utente, 2026-10-07).
   L'altezza della cornice la dà l'immagine, che si vede sempre intera. */
.dev-phone { width: 34%; }
.dev-phone img { height: auto; object-fit: fill; display: block; }
.dev-web { border-radius: 12px; padding: 0; overflow: hidden; }
.dev-web .bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #0b1730; border-bottom: 1px solid rgba(120, 180, 255, .16); font-family: var(--mono); font-size: .62rem; color: var(--text-d); white-space: nowrap; overflow: hidden; }
.dev-web .bar i { width: 8px; height: 8px; border-radius: 50%; background: #334a6e; flex: none; }
.dev-web .bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; }
.dev-web img { border-radius: 0; height: calc(100% - 26px); }
.devices .d1 { left: 0; top: 30%; width: 29%; --r: -6deg; z-index: 2; animation-delay: -2s; }
.devices .d2 { left: 9%; right: 4%; top: 2%; aspect-ratio: 16 / 10; --r: 0deg; z-index: 1; animation-duration: 9s; }
.devices .d3 { right: 0; top: 38%; width: 26%; --r: 5deg; z-index: 3; animation-delay: -5s; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .devices { height: clamp(300px, 92vw, 440px); max-width: 560px; margin: 0 auto; width: 100%; }
}

/* ── NUMERI ────────────────────────────────────────────────────────── */
#numeri { padding-top: 40px; padding-bottom: 40px; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.num { background: rgba(2, 14, 32, .86); padding: 26px 18px; text-align: center; }
.num-v { font-family: var(--disp); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.num-v small { font-size: .5em; color: var(--cyan); margin-left: 2px; }
.num-l { color: var(--text-m); font-size: .84rem; margin-top: 8px; }
@media (max-width: 860px) { .nums { grid-template-columns: repeat(2, 1fr); } }

/* ── SERVIZI ───────────────────────────────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, transform .25s; }
.svc:hover { border-color: var(--line-h); transform: translateY(-3px); }
.svc:hover::before, .svc:hover::after { opacity: 1; }
.svc-ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(34, 211, 238, .1); color: var(--c, var(--cyan)); border: 1px solid rgba(34, 211, 238, .22); }
.svc-ico svg { width: 22px; height: 22px; }
.svc h3 { font-family: var(--disp); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.svc p { color: var(--text-m); font-size: .93rem; }
.svc .ex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.ex-l { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--text-d); width: 100%; text-transform: uppercase; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; font-size: .78rem; border: 1px solid var(--line); background: rgba(8, 30, 64, .5); color: var(--text-m); transition: border-color .2s, color .2s, background .2s; text-align: left; }
button.pill:hover, a.pill:hover { border-color: var(--cyan); color: var(--text); background: rgba(34, 211, 238, .08); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--cyan)); flex: none; }

/* ── DA PROVARE SUBITO ─────────────────────────────────────────────── */
#dal-vivo { padding-top: clamp(56px, 7vw, 96px); }
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .live-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }
/* ‼️ «live-card», non «live»: .live è già la classe del bollino di stato «Online» (.st.live) */
.live-card { display: flex; flex-direction: column; overflow: hidden; border-color: color-mix(in srgb, var(--c) 30%, transparent); }
.live-img { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: #050d1b; border-bottom: 1px solid var(--line); }
.live-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.live-img:hover img { transform: scale(1.04); }
.live-b { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.live-b h3 { font-family: var(--disp); font-size: 1.35rem; line-height: 1.15; }
.live-b p { color: var(--text-m); font-size: .92rem; }
.live-l { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.live-l .btn svg, .feat .acts .btn svg, .sh-side .btn svg { width: 15px; height: 15px; }
.live-more { align-self: flex-start; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--c); padding: 4px 0; }
.live-more:hover { text-decoration: underline; }

/* ── IN EVIDENZA (righe alternate) ─────────────────────────────────── */
.feat { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 6vw, 70px) 0; }
.feat + .feat { border-top: 1px solid rgba(60, 150, 255, .08); }
.feat:nth-child(even) .feat-txt { order: 2; }
.feat-k { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; color: var(--c); text-transform: uppercase; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.feat h3 { font-family: var(--disp); font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.08; margin-top: 10px; letter-spacing: -.02em; }
.feat .uno { color: var(--text-m); margin-top: 14px; font-size: 1.04rem; }
.feat ul { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.feat li { position: relative; padding-left: 22px; font-size: .95rem; }
.feat li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border: 2px solid var(--c); transform: rotate(45deg); }
.feat .stk { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.feat .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* il telefono resta DENTRO il proprio riquadro (padding-bottom): fuori, con la parallasse, copriva il titolo della riga dopo */
.feat-vis { position: relative; min-height: clamp(260px, 34vw, 420px); padding-bottom: 9%; }
.feat-vis .dev-web { position: relative; width: 88%; aspect-ratio: 16 / 10; animation-duration: 10s; }
.feat-vis .ph-wrap { position: absolute; right: 0; bottom: 0; width: 26%; z-index: 2; }
/* relative: .dev è absolute di suo, e dentro un contenitore absolute lo lasciava alto 0 px → il telefono pendeva sotto la riga */
.feat-vis .ph-wrap .dev-phone { position: relative; width: 100%; animation-delay: -4s; --r: 3deg; }
.feat:nth-child(even) .feat-vis .dev-web { margin-left: auto; }
.feat:nth-child(even) .feat-vis .ph-wrap { right: auto; left: 0; }
.feat:nth-child(even) .feat-vis .ph-wrap .dev-phone { --r: -3deg; }
.feat-vis.solo-phone { display: flex; justify-content: center; gap: 4%; align-items: flex-start; }
.feat-vis.solo-phone .dev-phone { position: relative; right: auto; bottom: auto; left: auto; width: 34%; }
.feat-vis.solo-phone .dev-phone:nth-child(2) { margin-top: 12%; animation-delay: -3s; }
/* «In evidenza» senza schermate: pannello di testo con il problema e lo stack */
.feat-vis.feat-desc { min-height: 0; padding-bottom: 0; }
.feat-card { padding: 26px 26px 24px; }
.feat-card h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin: 0 0 8px; }
.feat-card p { color: var(--text-m); margin-bottom: 20px; font-size: 1rem; }
.feat-card .stk { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-cli { font-family: var(--mono); font-size: .78rem; color: var(--text-d); margin-bottom: 16px; }
.feat-cli b { color: var(--text); font-weight: 600; }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; }
  .feat:nth-child(even) .feat-txt { order: 0; }
}

/* ── PROGETTI: barra filtri + griglia ──────────────────────────────── */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search input { width: 100%; padding: 12px 14px 12px 40px; border-radius: 10px; border: 1px solid var(--line); background: rgba(3, 16, 36, .8); color: var(--text); font: inherit; font-size: .95rem; }
.search input::placeholder { color: var(--text-d); }
.search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-d); }
.toggle { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line); background: rgba(3, 16, 36, .8); font-size: .86rem; color: var(--text-m); }
.toggle[aria-pressed="true"] { border-color: var(--cyan); color: var(--text); background: rgba(34, 211, 238, .1); }
.toggle .sw { width: 30px; height: 17px; border-radius: 9px; background: #1d3354; position: relative; transition: background .2s; flex: none; }
.toggle .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #9bb; transition: transform .2s, background .2s; }
.toggle[aria-pressed="true"] .sw { background: rgba(34, 211, 238, .5); }
.toggle[aria-pressed="true"] .sw::after { transform: translateX(13px); background: #fff; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; scrollbar-color: #1d3354 transparent; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 99px; border: 1px solid var(--line); background: rgba(3, 16, 36, .75); font-size: .84rem; color: var(--text-m); transition: all .2s; white-space: nowrap; }
.cat .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.cat small { font-family: var(--mono); font-size: .72rem; color: var(--text-d); }
.cat:hover { color: var(--text); border-color: var(--line-h); }
.cat[aria-pressed="true"] { color: #021022; background: var(--c, var(--cyan)); border-color: transparent; }
.cat[aria-pressed="true"] small { color: rgba(2, 16, 34, .7); }
.cat[aria-pressed="true"] .dot { background: #021022; }
.filt-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: .78rem; color: var(--text-d); margin-bottom: 18px; min-height: 30px; }
.filt-info .tech { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 7px; background: rgba(167, 139, 250, .14); border: 1px solid rgba(167, 139, 250, .4); color: var(--text); }
.filt-info .tech button { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; }
.filt-info .tech button:hover { background: rgba(255, 255, 255, .1); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.tile {
  --c: var(--cyan); display: flex; flex-direction: column; text-align: left; overflow: hidden; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s; position: relative; width: 100%;
}
.tile.anim { animation: tile-in .45s both; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c) 55%, transparent); }
.tile-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #050d1b; border-bottom: 1px solid var(--line); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s; }
.tile-img img.phone { object-fit: contain; object-position: center; padding: 10px 0; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2, 10, 24, .75)); pointer-events: none; }
.tile-n { position: absolute; left: 10px; top: 10px; z-index: 2; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; padding: 3px 7px; border-radius: 5px; background: rgba(1, 8, 18, .78); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.tile-st { position: absolute; right: 10px; top: 10px; z-index: 2; display: flex; gap: 5px; }
.st { font-family: var(--mono); font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: rgba(1, 8, 18, .8); border: 1px solid var(--line); color: var(--text-m); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.st.live, .st.play { color: #6ee7b7; border-color: rgba(110, 231, 183, .45); }
.st.live::before, .st.play::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: pulse 1.8s infinite; }
.st.azienda { color: #fcd34d; border-color: rgba(252, 211, 77, .45); }
.tile-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-c { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.tile h3 { font-family: var(--disp); font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.tile p { color: var(--text-m); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile .stk { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 8px; }
.tag { font-family: var(--mono); font-size: .68rem; padding: 3px 7px; border-radius: 5px; background: rgba(60, 150, 255, .08); border: 1px solid rgba(60, 150, 255, .14); color: var(--text-m); }
.empty { grid-column: 1 / -1; text-align: center; padding: 50px 20px; color: var(--text-m); }
/* telefono: due colonne compatte (foto, categoria, nome). In una colonna 43 tessere erano ~25 schermate di scorrimento.
   ‼️ Deve stare DOPO le regole .tile: prima, «.tile p { display:-webkit-box }» vinceva per ordine. */
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile-b { padding: 10px 11px 12px; gap: 4px; }
  .tile h3 { font-size: .9rem; }
  .tile p, .tile .stk { display: none; }
  .tile-c { font-size: .6rem; letter-spacing: .08em; }
  .tile-st .st:nth-child(2) { display: none; }
  .tile-n { display: none; }
  /* le schede di solo testo tengono la descrizione: senza foto è tutto ciò che hanno */
  .tile.txt .tile-b { padding: 12px 12px 14px; gap: 6px; }
  .tile.txt h3 { font-size: .95rem; }
  .tile.txt p { display: -webkit-box; -webkit-line-clamp: 4; font-size: .8rem; }
  .tile.txt .tile-top { flex-direction: column; align-items: flex-start; gap: 5px; }
  .tile-cli { display: none; }
  .grp-d { margin-left: 0; font-size: .88rem; }
}

/* «E anche»: nastri di titoli che scorrono; si fermano al passaggio del mouse */
.altri { margin-top: clamp(40px, 6vw, 64px); }
.mq { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-t { display: flex; width: max-content; animation: nastro 38s linear infinite; }
.mq-t.rev { animation-direction: reverse; animation-duration: 44s; }
.mq-t > span:not(.mq-copia), .mq-copia { display: flex; }
.mq-copia { gap: 0; }
.mq:hover .mq-t { animation-play-state: paused; }
.mq-i { display: inline-flex; align-items: center; gap: 9px; margin-right: 12px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(6, 26, 56, .6); font-size: .9rem; color: var(--text-m); white-space: nowrap; }
.mq-i i { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: #94a3b8; flex: none; }
@keyframes nastro { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.grid-cta { margin-top: clamp(40px, 6vw, 64px); padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.grid-cta b { font-family: var(--disp); font-size: 1.25rem; }
.grid-cta p { color: var(--text-m); margin-top: 4px; max-width: 62ch; }

/* gruppi per categoria */
.groups { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }
.grp { scroll-margin-top: calc(var(--nav-h) + 20px); }
.grp-h { display: flex; align-items: center; gap: 12px; }
.grp-h .dot { width: 11px; height: 11px; border-radius: 3px; background: var(--c); transform: rotate(45deg); flex: none; box-shadow: 0 0 12px var(--c); }
.grp-h h3 { font-family: var(--disp); font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.grp-h small { font-family: var(--mono); font-size: .76rem; color: var(--c); padding: 2px 8px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); flex: none; }
.grp-h .ln { flex: 1; height: 1px; min-width: 20px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, transparent), transparent); }
.grp-d { color: var(--text-m); font-size: .95rem; margin: 8px 0 20px 23px; max-width: 70ch; }

/* scheda di SOLO TESTO (progetto senza schermate pubblicabili) */
.tile.txt { border-left: 3px solid var(--c); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 9%, rgba(4, 20, 44, .8)), var(--panel) 55%); }
.tile.txt .tile-b { padding: 18px 20px 20px; gap: 9px; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tile.txt .tile-st { position: static; }
.tile.txt h3 { font-size: 1.2rem; }
.tile-cli { font-size: .8rem; color: var(--text-d); margin-top: -4px; }
.tile.txt p { -webkit-line-clamp: 5; }

/* ── SCHEDA (finestra) ─────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding: clamp(0px, 3vw, 40px); overflow-y: auto; overscroll-behavior: contain;
  background: rgba(0, 4, 12, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .25s; }
.modal[hidden] { display: none; }
.modal.open { opacity: 1; }
body.lock { overflow: hidden; }
.sheet { --c: var(--cyan); position: relative; width: 100%; max-width: 1120px; margin: auto; background: linear-gradient(180deg, rgba(5, 22, 48, .97), rgba(2, 11, 26, .98)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); border-radius: 16px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 80px -40px var(--c); transform: translateY(18px) scale(.985); transition: transform .3s; }
.modal.open .sheet { transform: none; }
.sheet::before, .sheet::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid var(--c); pointer-events: none; }
.sheet::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.sheet::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
/* testata OPACA: con la sfumatura verso il trasparente il testo che scorreva sotto si leggeva attraverso il titolo
   e la scheda sembrava confusa (segnalato dall'utente, 2026-10-07) */
.sh-top { display: flex; align-items: flex-start; gap: 14px; padding: 22px clamp(18px, 3vw, 32px) 16px; position: sticky; top: 0; z-index: 5;
  background: #05162f; border-bottom: 1px solid color-mix(in srgb, var(--c) 28%, transparent); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8);
  border-radius: 16px 16px 0 0; margin-bottom: 16px; }
.sh-tit { flex: 1; min-width: 0; }
.sh-k { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sh-tit h2 { font-family: var(--disp); font-size: clamp(1.45rem, 3.4vw, 2.2rem); line-height: 1.1; margin-top: 6px; letter-spacing: -.015em; }
.sh-btns { display: flex; gap: 6px; flex: none; }
.ib { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(3, 16, 36, .8); transition: border-color .2s, background .2s; }
.ib:hover { border-color: var(--c); background: rgba(34, 211, 238, .08); }
.ib svg { width: 18px; height: 18px; }
.sh-uno { padding: 0 clamp(18px, 3vw, 32px); color: var(--text-m); font-size: 1.04rem; max-width: 80ch; }
.gal { margin: 18px clamp(18px, 3vw, 32px) 0; }
.stage { position: relative; height: clamp(240px, 52vh, 560px); border-radius: 12px; overflow: hidden; background: radial-gradient(80% 80% at 50% 40%, color-mix(in srgb, var(--c) 12%, #050d1b), #030913); border: 1px solid var(--line); touch-action: pan-y; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: opacity .35s; }
.stage img.phone { padding: 16px 0; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.stage .nav-g { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.stage .prev { left: 10px; } .stage .next { right: 10px; }
.stage .cnt { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-family: var(--mono); font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: rgba(1, 8, 18, .8); color: var(--text-m); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 92px; height: 58px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .6; transition: opacity .2s, border-color .2s; background: #050d1b; }
.thumbs button[aria-current="true"] { border-color: var(--c); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sh-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); padding: 26px clamp(18px, 3vw, 32px) 30px; }
.sh-body h4 { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-bottom: 10px; }
.sh-body section, .sh-side > div { padding: 0; }
.sh-p { color: var(--text-m); margin-bottom: 24px; }
.sh-list { list-style: none; display: grid; gap: 10px; }
.sh-list li { position: relative; padding-left: 24px; }
.sh-list li::before { content: ''; position: absolute; left: 3px; top: .6em; width: 8px; height: 8px; border: 2px solid var(--c); transform: rotate(45deg); }
.sh-side { display: flex; flex-direction: column; gap: 22px; }
.sh-side .wrapc { display: flex; flex-wrap: wrap; gap: 6px; }
.dirs { font-family: var(--mono); font-size: .76rem; color: var(--text-m); display: grid; gap: 4px; }
.dirs span { display: block; padding: 5px 9px; border-radius: 6px; background: rgba(60, 150, 255, .06); border: 1px solid rgba(60, 150, 255, .1); overflow-wrap: anywhere; }
.dirs span::before { content: '▸ '; color: var(--c); }
.cli { font-size: .9rem; color: var(--text); }
/* .sh-side > .sh-cta: deve battere «.sh-side > div { padding: 0 }», che lasciava il testo attaccato al bordo */
.sh-side > .sh-cta { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 9%, rgba(3, 16, 36, .85)); }
.sh-cta b { font-family: var(--disp); font-size: 1.08rem; }
.sh-cta span { color: var(--text-m); font-size: .88rem; }
.sh-cta .wrapc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 820px) { .sh-body { grid-template-columns: 1fr; } .modal { padding: 0; } .sheet { border-radius: 0; min-height: 100%; } .sh-top { border-radius: 0; } }

/* ── ESPERIENZA ────────────────────────────────────────────────────── */
.tl { position: relative; display: grid; gap: 22px; padding-left: 34px; }
.tl::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--violet), transparent); opacity: .6; }
.tl-i { position: relative; padding: 24px 26px; }
.tl-i::marker { content: none; }
.tl-dot { position: absolute; left: -32px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.tl-when { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; color: var(--cyan); text-transform: uppercase; }
.tl-i h3 { font-family: var(--disp); font-size: 1.3rem; margin-top: 6px; line-height: 1.25; }
.tl-org { color: var(--text-m); font-size: .95rem; margin-top: 2px; }
.tl-i ul { list-style: none; display: grid; gap: 7px; margin-top: 14px; }
.tl-i li { position: relative; padding-left: 20px; font-size: .94rem; }
.tl-i li::before { content: '›'; position: absolute; left: 4px; color: var(--cyan); font-weight: 700; }
.tl-i .ex { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ── METODO ────────────────────────────────────────────────────────── */
/* Percorso a 5 passi. La linea (.flow-line) la posiziona site.js fra il centro del primo e dell'ultimo nodo;
   .flow-fill si allunga con lo scorrimento e ogni passo prende .on quando la testa della linea raggiunge il suo nodo.
   ‼️ Rete di sicurezza: senza JS (niente .flow-js) i passi sono tutti accesi. */
.flow { position: relative; }
.flow-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; z-index: 1; }
.flow-line { position: absolute; z-index: 0; background: rgba(60, 150, 255, .14); border-radius: 3px; }
.flow-fill { position: absolute; left: 0; top: 0; border-radius: 3px; background: linear-gradient(90deg, #22d3ee, #818cf8, #34d399); box-shadow: 0 0 14px rgba(34, 211, 238, .55); }
.flow-head { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #e0fbff; box-shadow: 0 0 0 4px rgba(34, 211, 238, .35), 0 0 22px #22d3ee; }
.fstep { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.fnode { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 35%, #0b1d38), #061226); border: 2px solid color-mix(in srgb, var(--c) 70%, transparent);
  color: var(--c); box-shadow: 0 0 0 6px rgba(1, 8, 18, .9), 0 0 26px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .5s cubic-bezier(.2, 1.4, .4, 1), filter .5s, box-shadow .5s; }
.fnode svg { width: 26px; height: 26px; }
.fbody { width: 100%; padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 8px; transition: opacity .55s, transform .55s cubic-bezier(.2, .9, .3, 1), border-color .5s; }
.fnum { font-family: var(--mono); font-size: .78rem; color: var(--c); letter-spacing: .1em; }
.fnum::after { content: ' //'; opacity: .6; }
.fbody h3 { font-family: var(--disp); font-size: 1.12rem; line-height: 1.25; }
.fbody p { color: var(--text-m); font-size: .9rem; }
.fout { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: .74rem; color: var(--c); }
/* stato «spento» SOLO quando il JS gira: niente JS = tutto visibile */
.flow-js .fstep:not(.on) .fnode { filter: grayscale(1) brightness(.55); transform: scale(.78); box-shadow: 0 0 0 6px rgba(1, 8, 18, .9); }
.flow-js .fstep:not(.on) .fbody { opacity: .12; transform: translateY(22px); }
.flow-js .fstep.on .fnode { animation: accendi .9s ease-out; }
.flow-js .fstep.on .fbody { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
@keyframes accendi { 0% { box-shadow: 0 0 0 6px rgba(1, 8, 18, .9), 0 0 0 0 var(--c); } 60% { box-shadow: 0 0 0 6px rgba(1, 8, 18, .9), 0 0 0 16px color-mix(in srgb, var(--c) 0%, transparent); } }
/* telefono e tablet: percorso verticale, nodo a sinistra e testo a destra */
@media (max-width: 980px) {
  .flow-steps { grid-template-columns: 1fr; gap: 26px; }
  .fstep { flex-direction: row; align-items: flex-start; gap: 18px; }
  .fnode { width: 54px; height: 54px; }
  .fnode svg { width: 23px; height: 23px; }
  .flow-js .fstep:not(.on) .fbody { transform: translateX(18px); }
}

/* ── STACK ─────────────────────────────────────────────────────────── */
.stack-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 980px) { .stack-g { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stack-g { grid-template-columns: 1fr; } }
.sg { padding: 20px 20px 18px; }
.sg h3 { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.sg .wrapc { display: flex; flex-wrap: wrap; gap: 7px; }
.sg .pill small { font-family: var(--mono); font-size: .66rem; color: var(--cyan); }
.stack-note { color: var(--text-d); font-size: .85rem; margin-top: 18px; font-family: var(--mono); }

/* ── CONTATTI ──────────────────────────────────────────────────────── */
#contatti { text-align: center; overflow: hidden; }
#contatti .sub { margin-left: auto; margin-right: auto; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.contact-mail { font-family: var(--mono); color: var(--text-m); margin-top: 22px; font-size: .9rem; }
.contact-mail a { color: var(--cyan); }

footer { padding: 28px var(--gx) 96px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: .76rem; color: var(--text-d); }
@media (min-width: 768px) { footer { padding-bottom: 28px; } }

/* barra CTA fissa su telefono, con isteresi in site.js */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(1, 8, 18, .92); border-top: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(110%); transition: transform .35s; will-change: transform; backface-visibility: hidden; }
.cta-bar .btn { flex: 1; padding: 11px 10px; min-height: 44px; font-size: .9rem; }
.cta-bar.on { transform: none; }
@media (max-width: 767px) { .cta-bar { display: flex; } }

/* banner cookie */
#cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 600; max-width: 560px; margin: 0 auto; padding: 16px 18px; display: none; gap: 14px; align-items: center; flex-wrap: wrap; }
#cookie.vis { display: flex; }
#cookie p { flex: 1 1 260px; font-size: .86rem; color: var(--text-m); }
#cookie p strong { color: var(--text); }
#cookie .btns { display: flex; gap: 8px; }

/* ‼️ Niente will-change:transform su [data-rv]: Chrome congela il livello alla scala della comparsa (0.97) e poi lo
   ingrandisce → schermate nei telefoni sfocate (2026-10-07). Il gestore di scroll scrive opacity/transform inline. */
