/* ==========================================================================
   Skalio — Home (stile Apple, chiaro, animato)
   Template: page-home-skalio.php  ·  JS: assets/js/home.js
   Colori principali: modifica le variabili qui sotto.
   ========================================================================== */

.skalio-home {
	--ink: #1d1d1f;
	--ink2: #636368;          /* testo secondario: contrasto AA anche su #f5f5f7 */
	--ink3: #6e6e73;
	--bg: #ffffff;
	--bg2: #f5f5f7;
	--line: #d2d2d7;
	--hair: rgba(0, 0, 0, .08);
	--blue: #2d68fb;          /* blu Skalio (logo), scurito di un soffio: testo bianco AA */
	--blue-h: #1f5ae8;        /* hover / testo blu su bianco */
	--indigo: #5e5ce6;
	--grad: linear-gradient(95deg, #2d68fb 0%, #5e5ce6 100%);
	--green: #34c759;
	--green-t: #1b8a3c;
	--orange: #ff9f0a;
	--orange-t: #b35a00;
	--red: #ff3b30;
	--red-t: #d70015;
	--r-xl: 32px;
	--r-lg: 28px;
	--r-md: 18px;
	--r-sm: 12px;
	--shadow: 0 30px 80px -24px rgba(16, 24, 40, .22), 0 0 0 1px rgba(0, 0, 0, .05);
	--shadow-sm: 0 10px 30px -12px rgba(16, 24, 40, .20), 0 0 0 1px rgba(0, 0, 0, .05);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--ease-spring: cubic-bezier(.34, 1.36, .64, 1);
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
	--nav: 52px;
	--wrap: 1180px;
	--gutter: 22px;

	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.47;
	letter-spacing: -0.022em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	color-scheme: light;
	overflow-x: clip;
}

/* ---- reset locale (il tema padre non è caricato su questa pagina) ---- */
.skalio-home *, .skalio-home *::before, .skalio-home *::after { box-sizing: border-box; }
.skalio-home :where(h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, dl, dd, blockquote) { margin: 0; padding: 0; }
.skalio-home :where(ul, ol) { list-style: none; }
.skalio-home :where(img, video, svg) { display: block; max-width: 100%; }
.skalio-home :where(a) { color: inherit; text-decoration: none; }
.skalio-home :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
.skalio-home :where(h1, h2, h3, h4) { font-family: var(--font); color: inherit; font-weight: 700; }
.skalio-home ::selection { background: rgba(47, 107, 255, .18); }
html:has(.skalio-home) { scroll-behavior: smooth; scroll-padding-top: 64px; }
.skalio-home :focus-visible { outline: 2px solid var(--blue-h); outline-offset: 3px; border-radius: 8px; }

.hx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skalio-home svg:not([viewBox]) { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skalio-home symbol { overflow: visible; }

.hx-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.hx-skip:focus { left: 12px; }

.hx-wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---- tipografia ---- */
.hx-eyebrow { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.hx-h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.hx-lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.38; letter-spacing: -0.02em; color: var(--ink2); max-width: 760px; margin-top: 20px; font-weight: 450; }
.hx-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-muted { color: var(--ink3); }
.hx-note { font-size: 13px; color: var(--ink3); text-align: center; margin-top: 18px; letter-spacing: -0.005em; }
.hx-head { margin-bottom: clamp(40px, 6vw, 72px); }
.hx-head--center { text-align: center; }
.hx-head--center .hx-eyebrow, .hx-head--center .hx-lead { margin-inline: auto; }
.hx-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hx-subhead { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.03em; line-height: 1.12; margin: clamp(64px, 8vw, 110px) 0 28px; }

/* ---- bottoni e link ---- */
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff !important; font-size: 17px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; padding: 15px 26px; border-radius: 999px; border: 0; transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); box-shadow: 0 10px 24px -12px rgba(47, 107, 255, .7); white-space: nowrap; }
.hx-btn:hover { background: var(--blue-h); transform: translateY(-1px); }
.hx-btn:active { transform: scale(.98); }
.hx-btn svg { width: 17px; height: 17px; stroke-width: 2.2; }
.hx-btn--sm { font-size: 14px; padding: 8px 16px; box-shadow: none; }
.hx-btn--lg { font-size: 18px; padding: 17px 30px; }
.hx-link { color: var(--blue-h); font-size: 19px; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.hx-link:hover { color: #0f47c9; }
.hx-playdot { width: 30px; height: 30px; border-radius: 50%; border: 1.6px solid currentColor; display: grid; place-items: center; transition: transform .3s var(--ease-spring); }
.hx-playdot svg { width: 13px; height: 13px; margin-left: 2px; }
.hx-link--play:hover .hx-playdot { transform: scale(1.12); }
.hx-link--play { min-width: 44px; min-height: 44px; justify-content: center; }  /* area di tocco comoda anche senza testo */

/* ---- NAV ---- */
.hx-nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav); background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
/* barra di amministrazione di WordPress (solo per chi è collegato) */
.admin-bar .hx-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .hx-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hx-nav { top: 0; } }
.hx-nav.is-scrolled { border-bottom-color: var(--hair); background: rgba(255, 255, 255, .8); }
.hx-nav__in { height: 100%; width: min(1180px, 100% - 44px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.hx-nav__logo img { height: 26px; width: auto; }
.hx-nav__links { display: flex; gap: clamp(16px, 2.4vw, 32px); margin-inline: auto; }
.hx-nav__links a { font-size: 13px; letter-spacing: -0.005em; color: rgba(29, 29, 31, .8); transition: color .2s; }
.hx-nav__links a:hover { color: var(--ink); }
.hx-nav__links a.is-current { color: var(--ink); font-weight: 600; }
.hx-nav__burger { display: none; width: 40px; height: 40px; position: relative; margin-left: 4px; }
.hx-nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.hx-nav__burger span:first-child { top: 16px; }
.hx-nav__burger span:last-child { top: 23px; }
.hx-nav.is-open .hx-nav__burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.hx-nav.is-open .hx-nav__burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---- ingresso hero e comparsa allo scroll ---- */
.hx-in { opacity: 0; transform: translateY(24px); filter: blur(8px); animation: hx-in 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * .11s + .1s); }
@keyframes hx-in { to { opacity: 1; transform: none; filter: blur(0); } }
.js .hx-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--rd, 0) * 90ms); }
.js .hx-reveal.is-in { opacity: 1; transform: none; }

/* ---- HERO ---- */
.hx-hero { padding-top: calc(var(--nav) + clamp(48px, 9vw, 112px)); text-align: center; }
.hx-hero .hx-eyebrow { margin-inline: auto; }
.hx-hero__title { font-size: clamp(44px, 8.2vw, 104px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.hx-line { display: block; }
.hx-hero__lead { font-size: clamp(19px, 2vw, 25px); line-height: 1.36; letter-spacing: -0.02em; color: var(--ink2); max-width: 720px; margin: 26px auto 0; }
.hx-hero__cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px 32px; margin-top: 34px; }

.hx-film-frame { --s: .9; --rx: 9deg; --y: 0px; width: min(1180px, 100% - 40px); margin: clamp(52px, 7vw, 88px) auto 0; perspective: 1600px; }
.hx-film-frame__inner { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(18px, 2.4vw, 32px); overflow: hidden; background: var(--bg2) center / cover no-repeat; box-shadow: 0 50px 120px -40px rgba(16, 24, 40, .35), 0 0 0 1px rgba(0, 0, 0, .06); transform: translateY(var(--y)) rotateX(var(--rx)) scale(var(--s)); transform-origin: 50% 0; will-change: transform; }
.hx-film-frame__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-film-frame__play { position: absolute; left: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); display: flex; align-items: center; padding: 9px; border-radius: 999px; background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .05); text-align: left; transition: transform .35s var(--ease-spring), background-color .3s; }
.hx-motion-toggle { position: absolute; right: clamp(14px, 2.4vw, 28px); bottom: clamp(14px, 2.4vw, 28px); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .05); transition: transform .3s var(--ease-spring), background-color .3s; }
.hx-motion-toggle:hover { transform: scale(1.06); background: rgba(255, 255, 255, .9); }
.hx-motion-toggle svg { width: 16px; height: 16px; }
.hx-motion-toggle .i-resume { display: none; margin-left: 2px; }
html.hx-paused .hx-motion-toggle .i-resume { display: block; }
html.hx-paused .hx-motion-toggle .i-pause { display: none; }
html.hx-paused .skalio-home *, html.hx-paused .skalio-home *::before, html.hx-paused .skalio-home *::after { animation-play-state: paused !important; }
.hx-film-frame__play:hover { transform: scale(1.04); background: rgba(255, 255, 255, .9); }
.hx-film-frame__icon { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(47, 107, 255, .8); }
.hx-film-frame__icon svg { width: 18px; height: 18px; margin-left: 3px; }
.hx-author { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--ink2); }
.hx-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hx-author p { text-align: left; line-height: 1.3; }
.hx-author strong { display: block; color: var(--ink); font-weight: 600; }

/* ---- CLIENTI (loghi in scorrimento) ---- */
.hx-clients { padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hx-clients__title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; text-align: center; margin-bottom: 30px; }
.hx-clients__title span { color: var(--ink3); font-weight: 500; }
.hx-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hx-marquee__track { display: flex; gap: 18px; width: max-content; padding: 6px 0; animation: hx-marquee 42s linear infinite; }
.hx-marquee:hover .hx-marquee__track, .hx-marquee:focus-within .hx-marquee__track { animation-play-state: paused; }
@keyframes hx-marquee { to { transform: translateX(calc(-50% - 9px)); } }
.hx-logo { width: 200px; height: 96px; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--hair); display: grid; place-items: center; overflow: hidden; flex: none; }
.hx-logo img { max-width: 70%; max-height: 54%; width: auto; height: auto; object-fit: contain; }
.hx-logo--fill { background: #1aa3e8; }
.hx-logo--fill img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.hx-logo--dark { background: #1d1d1f; }

/* ---- MANIFESTO ---- */
.hx-statement { padding: clamp(90px, 14vw, 190px) 0; }
.hx-statement__text { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; max-width: 1040px; }
.hx-statement__text .w { color: #d2d2d7; transition: color .5s var(--ease); }
.hx-statement__text .w.is-lit { color: var(--ink); }
.hx-statement__text .w.is-key.is-lit { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- SEZIONI ---- */
.hx-section { padding: clamp(90px, 12vw, 160px) 0; }
.hx-section--alt { background: var(--bg2); }

/* ---- METODO (sticky) ---- */
.hx-method { padding-top: clamp(40px, 6vw, 80px); }
.hx-method__track { position: relative; height: calc(100vh + var(--steps) * 62vh); }
.hx-method__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: var(--nav); }
@supports (height: 100svh) {
	.hx-method__track { height: calc(100svh + var(--steps) * 62svh); }
	.hx-method__sticky { height: 100svh; }
}
.hx-method__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.hx-steps { position: relative; padding-left: 26px; }
.hx-steps::before, .hx-steps::after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--hair); }
.hx-steps::after { background: var(--grad); bottom: auto; height: calc((100% - 16px) * var(--prog, 0)); transition: height .2s linear; }
.hx-step { padding: 7px 0; }
.hx-step__btn { display: flex; align-items: baseline; gap: 14px; text-align: left; width: 100%; }
.hx-step__n { font-size: 13px; font-weight: 600; color: var(--ink3); font-variant-numeric: tabular-nums; width: 20px; transition: color .4s; }
.hx-step__t { font-size: clamp(20px, 2.1vw, 28px); font-weight: 650; letter-spacing: -0.028em; line-height: 1.2; color: var(--ink3); transition: color .45s var(--ease); }
.hx-step__btn:hover .hx-step__t { color: var(--ink2); }
.hx-step__d { display: grid; grid-template-rows: 0fr; opacity: 0; margin-left: 34px; font-size: 17px; line-height: 1.45; color: var(--ink2); max-width: 380px; transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease), margin .55s var(--ease); overflow: hidden; }
.hx-step__d > span { overflow: hidden; min-height: 0; }
.hx-step.is-active .hx-step__t { color: var(--ink); }
.hx-step.is-active .hx-step__n { color: var(--blue); }
.hx-step.is-active .hx-step__d { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; margin-bottom: 8px; }
.hx-step.is-done .hx-step__t { color: var(--ink2); }

.hx-win, .hx-app { background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.hx-win__bar { height: 46px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--hair); background: #fbfbfd; }
.hx-win__bar i { width: 11px; height: 11px; border-radius: 50%; background: #e3e3e8; flex: none; }
.hx-win__bar b { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-win__badge { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ink3); background: var(--bg2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.hx-stage__body { position: relative; aspect-ratio: 16 / 10.4; min-height: 400px; }
.hx-pnl { position: absolute; inset: 0; padding: clamp(18px, 2.6vw, 30px); opacity: 0; transform: translateY(14px) scale(.985); filter: blur(6px); transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease); pointer-events: none; }
.hx-pnl.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }

/* avatar */
.hx-av { --h: 0; width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 650; font-style: normal; letter-spacing: 0; background: linear-gradient(135deg, hsl(calc(222 + var(--h) * 16) 95% 74%), hsl(calc(222 + var(--h) * 16) 82% 56%)); }
.hx-av--lg { width: 52px; height: 52px; font-size: 17px; }

/* 1 target */
.hx-pnl--target { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto 1fr; gap: 18px 26px; }
.hx-filters { grid-row: 1 / 3; display: flex; flex-direction: column; gap: 10px; align-self: center; }
.hx-filter { display: grid; grid-template-columns: 22px auto 1fr 24px; align-items: center; gap: 10px; background: var(--bg2); border-radius: 14px; padding: 12px 14px; font-size: 14px; opacity: .45; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .5s, box-shadow .5s; transition-delay: calc(var(--i) * .45s + .2s); }
.hx-filter > svg { width: 20px; height: 20px; color: var(--ink3); transition: color .4s; transition-delay: inherit; }
.hx-filter b { font-weight: 600; }
.hx-filter span { color: var(--ink2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-tick { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .5s var(--ease-spring); transition-delay: inherit; }
.hx-tick svg { width: 13px; height: 13px; stroke-width: 2.6; }
.is-on .hx-filter { opacity: 1; transform: none; background: #fff; box-shadow: var(--shadow-sm); }
.is-on .hx-filter > svg { color: var(--blue); }
.is-on .hx-tick { transform: scale(1); }
.hx-counter { align-self: end; }
.hx-counter strong { display: block; font-size: clamp(40px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-counter span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink2); }
.hx-counter--sm { position: absolute; right: clamp(18px, 2.6vw, 30px); bottom: clamp(18px, 2.6vw, 30px); text-align: right; }
.hx-counter--sm strong { font-size: clamp(34px, 3.6vw, 48px); }
.hx-counter--ok strong { background: none; color: var(--green-t); }
.hx-dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 7px; align-self: start; }
.hx-dots i { aspect-ratio: 1; border-radius: 50%; background: #c7c7cc; transition: background-color .5s, opacity .5s, transform .5s var(--ease); }
.hx-dots i.is-out { opacity: .18; transform: scale(.7); }
.hx-dots i.is-keep { background: var(--blue); }

/* 2-3 liste */
.hx-rows { display: flex; flex-direction: column; gap: 8px; max-width: 78%; }
.hx-row { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 12px; padding: 9px 14px 9px 10px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); font-size: 14px; max-height: 60px; overflow: hidden; }
.hx-row b { font-weight: 600; white-space: nowrap; }
.hx-row span:not(.hx-av) { color: var(--ink2); font-size: 13px; white-space: nowrap; }
.hx-row em { font-style: normal; color: var(--ink3); font-size: 12px; }
.hx-pnl--list .hx-row { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * .12s + .15s); }
.hx-pnl--list.is-on .hx-row { opacity: 1; transform: none; }
.hx-flag { font-style: normal; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 4px 10px; opacity: 0; transform: scale(.6); transition: opacity .4s, transform .5s var(--ease-spring); transition-delay: calc(var(--i) * .22s + .4s); white-space: nowrap; }
.hx-flag--ok { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; background: rgba(52, 199, 89, .14); color: var(--green-t); }
.hx-flag--ok svg { width: 13px; height: 13px; stroke-width: 2.6; }
.hx-flag--bad { background: rgba(255, 59, 48, .1); color: var(--red-t); }
.hx-pnl--clean.is-on .hx-flag { opacity: 1; transform: none; }
.hx-pnl--clean .hx-row { transition: max-height .6s var(--ease), opacity .5s, transform .6s var(--ease), padding .6s var(--ease), margin .6s var(--ease); transition-delay: 0s; }
.hx-pnl--clean.is-on .hx-row.is-bad { max-height: 0; opacity: 0; transform: translateX(-30px); padding-top: 0; padding-bottom: 0; margin-top: -8px; transition-delay: 2.1s; }

/* 4 sequenza */
.hx-seq__head { font-size: 14px; color: var(--ink2); margin-bottom: 18px; }
.hx-seq__head b { color: var(--ink); font-weight: 600; }
.hx-seq { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 30px; }
.hx-seq::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 2px; background: var(--grad); border-radius: 2px; transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease); }
.hx-pnl--seq.is-on .hx-seq::before { transform: scaleY(1); }
.hx-seq li { position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: 12px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(12px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * .32s + .25s); }
.hx-seq li::before { content: ""; position: absolute; left: -27px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2.5px solid var(--blue); }
.hx-pnl--seq.is-on .hx-seq li { opacity: 1; transform: none; }
.hx-seq span { grid-row: 1 / 3; font-size: 12px; font-weight: 600; color: var(--blue-h); align-self: center; }
.hx-seq b { font-size: 15px; font-weight: 600; }
.hx-seq em { font-style: normal; font-size: 13px; color: var(--ink2); }

/* 5 messaggio */
.hx-pnl--msg { display: grid; place-items: center; }
.hx-msg { position: relative; z-index: 2; width: min(92%, 520px); background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 22px 24px; }
.hx-msg__to { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); margin-bottom: 14px; }
.hx-msg__to p { line-height: 1.25; }
.hx-msg__to b { display: block; font-size: 15px; font-weight: 600; }
.hx-msg__to em { font-style: normal; font-size: 13px; color: var(--ink2); }
.hx-msg__txt { font-size: 16px; line-height: 1.5; min-height: 5.2em; }
.hx-msg__txt .w { opacity: 0; transition: opacity .18s; }
.hx-msg__txt .w.on { opacity: 1; }
.hx-msg__txt mark { background: transparent; color: inherit; border-radius: 6px; padding: 1px 3px; margin: 0 -3px; transition: background-color .6s var(--ease); }
.hx-msg__txt.is-marked mark { background: rgba(47, 107, 255, .14); color: #1a47c2; }
.hx-msg--ghost { position: absolute; z-index: 1; width: min(70%, 380px); right: 4%; bottom: 8%; padding: 16px 18px; background: var(--bg2); box-shadow: none; color: var(--ink3); font-size: 14px; transform: rotate(-3deg) translateY(10px); opacity: 0; transition: opacity .5s, transform .8s var(--ease); transition-delay: 1.6s; }
.hx-msg--ghost p { text-decoration: line-through; text-decoration-color: rgba(215, 0, 21, .7); text-decoration-thickness: 2px; }
.hx-msg__no { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--red-t); background: rgba(255, 59, 48, .1); border-radius: 999px; padding: 3px 10px; }
.hx-pnl--msg.is-on .hx-msg--ghost { opacity: 1; transform: rotate(-3deg) translateY(0); }

/* 6 kanban */
.hx-kb { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: 100%; }
.hx-kb__col { background: var(--bg2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.hx-kb__col p { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.hx-kb__col p b { font-size: 12px; background: #fff; border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.hx-kb__col--hot { background: rgba(47, 107, 255, .07); }
.hx-kb__card, .hx-kb__mover { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 10px; font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow-sm); white-space: nowrap; overflow: hidden; }
.hx-kb__mover { position: absolute; left: 0; top: 0; width: var(--mw, 30%); box-shadow: 0 18px 40px -14px rgba(47, 107, 255, .45), 0 0 0 1.5px var(--blue); opacity: 0; }
.hx-pnl--kanban.is-on .hx-kb__mover { animation: hx-mover 4.8s var(--ease-io) .6s forwards; }
@keyframes hx-mover {
	0% { opacity: 0; transform: translate(var(--x0), calc(var(--y0) - 14px)) scale(.96); }
	10% { opacity: 1; transform: translate(var(--x0), var(--y0)) scale(1); }
	30% { transform: translate(var(--x0), var(--y0)) scale(1.03) rotate(-1.5deg); }
	50% { opacity: 1; transform: translate(var(--x1), var(--y1)) scale(1); }
	70% { transform: translate(var(--x1), var(--y1)) scale(1.03) rotate(-1.5deg); }
	100% { opacity: 1; transform: translate(var(--x2), var(--y2)) scale(1); }
}
.hx-toast { position: absolute; right: clamp(18px, 2.6vw, 30px); bottom: clamp(18px, 2.6vw, 30px); display: flex; align-items: center; gap: 10px; background: rgba(29, 29, 31, .88); color: #fff; font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .7s var(--ease-spring); transition-delay: 3s; }
.hx-pnl--kanban.is-on .hx-toast { opacity: 1; transform: none; }
.hx-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 199, 89, .6); animation: hx-live 1.8s infinite; }
@keyframes hx-live { 70% { box-shadow: 0 0 0 8px rgba(52, 199, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); } }

/* 7 report */
.hx-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hx-kpis div { background: var(--bg2); border-radius: 16px; padding: 16px 18px; }
.hx-kpis strong { display: block; font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-kpis span { font-size: 13px; color: var(--ink2); }
.hx-kpis__note { font-size: 12px; color: var(--ink3); margin: 8px 2px 16px; }
.hx-bars { display: flex; flex-direction: column; gap: 10px; }
.hx-bar { display: grid; grid-template-columns: 124px 1fr 84px; align-items: center; gap: 12px; font-size: 13px; }
.hx-bar span { color: var(--ink2); white-space: nowrap; }
.hx-bar i { height: 12px; border-radius: 6px; background: #dfe3ec; position: relative; overflow: hidden; }
.hx-bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: #a9b4c8; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease), background-color .5s; }
.hx-bar em { font-style: normal; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 3px 9px; justify-self: start; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s var(--ease); }
.hx-pnl--report.is-on .hx-bar i::after { transform: scaleX(1); }
.hx-pnl--report.is-on .hx-bar:nth-child(2) i::after { transition-delay: .12s; }
.hx-pnl--report.is-on .hx-bar:nth-child(3) i::after { transition-delay: .24s; }
.hx-pnl--report.is-on .hx-bar:nth-child(4) i::after { transition-delay: .36s; }
.hx-pnl--report.is-on .hx-bar em { opacity: 1; transform: none; }
.hx-bar--ok em { background: rgba(52, 199, 89, .14); color: var(--green-t); transition-delay: 1.2s; }
.hx-bar--go em { background: rgba(47, 107, 255, .12); color: var(--blue-h); transition-delay: 1.8s; }
.hx-bar--fix em { background: rgba(255, 159, 10, .15); color: var(--orange-t); transition-delay: 2.4s; }
.hx-pnl--report.is-on .hx-bar--ok i::after { background: var(--green); transition-delay: 0s, 1.2s; }
.hx-pnl--report.is-on .hx-bar--go i::after { background: var(--blue); transition-delay: .24s, 1.8s; }
.hx-pnl--report.is-on .hx-bar--fix i::after { background: var(--orange); transition-delay: .36s, 2.4s; }

/* ---- VANTAGGI (bento) ---- */
.hx-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hx-tile { background: #fff; border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 24px; min-height: 340px; overflow: hidden; }
.hx-tile--xl { grid-column: 1 / 3; grid-row: 1 / 3; }
.hx-tag { font-size: 13px; font-weight: 600; color: var(--blue-h); margin-bottom: 8px; letter-spacing: -0.005em; }
.hx-tile h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; }
.hx-tile p:not(.hx-tag) { font-size: 16px; color: var(--ink2); margin-top: 8px; line-height: 1.45; }
.hx-tile--xl h3 { font-size: clamp(28px, 3.2vw, 40px); }
.hx-viz { position: relative; margin-top: auto; }
.hx-tile:not(.is-in) .hx-viz * { animation-play-state: paused !important; }

/* profilo verificato */
.hx-viz--profile { display: grid; place-items: center; padding: 20px 0 10px; }
.hx-tile--xl .hx-viz { margin-block: auto; }
.hx-tile--xl .hx-pcard { width: min(100%, 580px); padding: 26px 28px; box-shadow: var(--shadow); background: #fff; }
.hx-pcard { position: relative; width: min(100%, 520px); background: var(--bg2); border-radius: 22px; padding: 22px; }
.hx-pcard__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); margin-bottom: 8px; }
.hx-pcard__head p { line-height: 1.25; }
.hx-pcard__head b { display: block; font-size: 17px; font-weight: 600; }
.hx-pcard__head em { font-style: normal; font-size: 14px; color: var(--ink2); }
.hx-pcard__ok { position: absolute; top: -14px; right: 18px; box-shadow: 0 8px 20px -10px rgba(27, 138, 60, .6); background: #e9f9ee !important; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green-t); background: rgba(52, 199, 89, .14); border-radius: 999px; padding: 6px 12px; animation: hx-badge 7s var(--ease) infinite; animation-delay: 2.2s; opacity: 0; }
.hx-pcard__ok svg { width: 15px; height: 15px; }
@keyframes hx-badge { 0% { opacity: 0; transform: scale(.7); } 6%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }
.hx-pcard ul li { display: grid; grid-template-columns: 1fr auto 26px; align-items: center; gap: 12px; padding: 12px 2px; font-size: 15px; border-bottom: 1px solid var(--hair); }
.hx-pcard ul li:last-child { border-bottom: 0; }
.hx-pcard ul li span { color: var(--ink2); }
.hx-pcard ul li b { font-weight: 600; }
.hx-pcard ul li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; animation: hx-tick 7s var(--ease-spring) infinite; animation-delay: calc(var(--i) * .45s); transform: scale(0); }
.hx-pcard ul li i svg { width: 13px; height: 13px; stroke-width: 2.8; }
@keyframes hx-tick { 0% { transform: scale(0); } 7%, 82% { transform: scale(1); } 90%, 100% { transform: scale(0); } }

/* due corsie */
.hx-viz--lanes { height: 150px; }
.hx-lane { position: absolute; left: 0; right: 64px; height: 44px; display: flex; align-items: center; }
.hx-lane:first-child { top: 18px; }
.hx-lane--b { top: 86px; }
.hx-lane b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg2); color: var(--ink); flex: none; z-index: 1; }
.hx-lane span { position: absolute; left: 30px; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #d2d2d7 0 6px, transparent 6px 12px); }
.hx-lane i { position: absolute; left: 30px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(47, 107, 255, .14); animation: hx-lane 3.2s linear infinite; animation-delay: calc(var(--i) * -.8s); }
.hx-lane--b i { background: var(--indigo); box-shadow: 0 0 0 5px rgba(94, 92, 230, .15); animation-duration: 4.4s; animation-delay: calc(var(--i) * -2.3s - .6s); }
@keyframes hx-lane { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(var(--lane-w, 260px)); opacity: 0; } }
.hx-lanes__node { position: absolute; right: 0; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(47, 107, 255, .7); animation: hx-node 1.6s var(--ease) infinite; }
.hx-lanes__node svg { width: 24px; height: 24px; }
@keyframes hx-node { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* anelli */
.hx-viz--rings { display: flex; justify-content: center; gap: 28px; padding-bottom: 6px; }
.hx-ring { position: relative; width: 132px; text-align: center; }
.hx-ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.hx-ring circle { fill: none; stroke-width: 10; stroke: var(--bg2); }
.hx-ring circle + circle { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.hx-ring--b circle + circle { stroke: var(--indigo); transition-delay: .55s; }
.hx-tile.is-in .hx-ring circle + circle { stroke-dashoffset: calc(314.16 * (1 - var(--p) / 100)); }
.hx-ring b { position: absolute; left: 0; right: 0; top: 44px; font-size: 30px; font-weight: 700; letter-spacing: -0.04em; }
.hx-ring span { display: block; margin-top: 8px; font-size: 13px; color: var(--ink2); }

/* mini kanban */
.hx-viz--mini-kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 150px; }
.hx-viz--mini-kb > div { background: var(--bg2); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.hx-viz--mini-kb p { font-size: 11px !important; font-weight: 600; color: var(--ink2); margin: 0 0 2px !important; }
.hx-viz--mini-kb i { height: 22px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.hx-mini-kb__mover { position: absolute; left: 10px; top: 72px; width: calc((100% - 16px) / 3 - 20px); height: 22px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1.5px var(--blue), 0 10px 20px -10px rgba(47, 107, 255, .6); animation: hx-mini-kb 5s var(--ease-io) infinite; }
@keyframes hx-mini-kb { 0%, 12% { transform: translate(0, 0); } 35%, 55% { transform: translate(calc(100% + 28px), -29px); } 78%, 92% { transform: translate(calc(200% + 56px), -29px); } 100% { transform: translate(calc(200% + 56px), -29px); opacity: 0; } }

/* calendario */
.hx-viz--cal { padding-bottom: 4px; }
.hx-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.hx-cal span { font-size: 11px; font-weight: 600; color: var(--ink3); text-align: center; padding-bottom: 2px; }
.hx-cal i { position: relative; height: 46px; border-radius: 10px; background: var(--bg2); }
.hx-cal__slot b { position: absolute; inset: 4px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.2; padding: 6px; overflow: hidden; box-shadow: 0 10px 20px -10px rgba(47, 107, 255, .8); animation: hx-slot 6s var(--ease-spring) infinite; transform: scale(0); }
.hx-cal__slot--b b { background: #fff; color: var(--blue-h); box-shadow: 0 0 0 1.5px var(--blue); animation-delay: 1.4s; }
@keyframes hx-slot { 0%, 8% { transform: scale(0); opacity: 0; } 18%, 86% { transform: scale(1); opacity: 1; } 96%, 100% { transform: scale(.9); opacity: 0; } }

/* correttivi */
.hx-viz--tune { display: flex; align-items: flex-end; gap: 16px; height: 150px; }
.hx-tune { flex: 1; display: flex; align-items: flex-end; gap: 10px; height: 100%; }
.hx-tune i { flex: 1; height: var(--a); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #8aa8ff, var(--blue)); animation: hx-tune 3.4s var(--ease-io) infinite alternate; }
.hx-tune i:nth-child(2) { animation-delay: .3s; }
.hx-tune i:nth-child(3) { animation-delay: .6s; }
.hx-tune i:nth-child(4) { animation-delay: .9s; }
.hx-tune i:nth-child(5) { animation-delay: 1.2s; }
@keyframes hx-tune { to { height: var(--b); } }
.hx-tune__ico { width: 44px; height: 44px; border-radius: 50%; background: var(--bg2); color: var(--blue); display: grid; place-items: center; flex: none; }
.hx-tune__ico svg { width: 20px; height: 20px; animation: hx-spin 3.4s var(--ease-io) infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }

/* ---- CANALI ---- */
.hx-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hx-card { position: relative; background: var(--bg2); border-radius: var(--r-lg); padding: clamp(28px, 3.2vw, 44px); display: flex; flex-direction: column; overflow: hidden; }
.hx-card__letter { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; font-weight: 700; font-size: 19px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.hx-card h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1.12; }
.hx-card p { font-size: 17px; color: var(--ink2); margin-top: 10px; max-width: 440px; }
.hx-chip { align-self: flex-start; margin-top: 24px; font-size: 14px; font-weight: 600; background: #fff; border-radius: 999px; padding: 9px 16px; box-shadow: var(--shadow-sm); }
.hx-grid-people { margin-top: 30px; display: grid; grid-template-columns: repeat(10, minmax(0, 26px)); gap: clamp(10px, 1.4vw, 16px); }
.hx-grid-people i { aspect-ratio: 1; border-radius: 50%; background: #d8dbe3; }
.hx-card.is-in .hx-grid-people i { animation: hx-person 8s linear infinite; animation-delay: calc(var(--i) * .2s); }
@keyframes hx-person { 0% { background: #d8dbe3; transform: scale(1); } 2% { background: var(--blue); transform: scale(1.18); } 5%, 88% { background: var(--blue); transform: scale(1); } 96%, 100% { background: #d8dbe3; } }
.hx-radar { position: relative; margin-top: 30px; aspect-ratio: 2.1 / 1; border-radius: 22px; overflow: hidden; background: repeating-radial-gradient(circle at 50% 100%, transparent 0 46px, rgba(94, 92, 230, .12) 46px 47px), #fff; box-shadow: var(--shadow-sm); }
.hx-radar__sweep { position: absolute; left: 50%; bottom: 0; width: 200%; aspect-ratio: 1; transform: translate(-50%, 50%); background: conic-gradient(from 0deg, rgba(94, 92, 230, .22), transparent 16%, transparent); border-radius: 50%; animation: hx-sweep 5s linear infinite; }
.hx-card:not(.is-in) .hx-radar__sweep, .hx-card:not(.is-in) .hx-signal { animation-play-state: paused; }
@keyframes hx-sweep { to { transform: translate(-50%, 50%) rotate(360deg); } }
.hx-signal { position: absolute; left: var(--x); top: var(--y); font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); padding: 6px 11px 6px 22px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap; opacity: 0; animation: hx-signal 5s var(--ease-spring) infinite; animation-delay: calc(var(--i) * 1.2s); }
.hx-signal::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 0 4px rgba(94, 92, 230, .18); }
@keyframes hx-signal { 0% { opacity: 0; transform: scale(.7); } 8%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-6px); } }

.hx-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hx-source { background: var(--bg2); border-radius: var(--r-lg); padding: 28px; }
.hx-source__ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.hx-source__ico svg { width: 24px; height: 24px; }
.hx-source h3 { font-size: 20px; letter-spacing: -0.025em; font-weight: 650; }
.hx-source p { margin-top: 8px; font-size: 16px; color: var(--ink2); }

/* ---- PIATTAFORMA ---- */
.hx-app-stage { --tilt: 16deg; --ts: .92; perspective: 1800px; margin-top: 10px; }
.hx-app { transform: rotateX(var(--tilt)) scale(var(--ts)); transform-origin: 50% 20%; will-change: transform; border-radius: 22px; box-shadow: 0 60px 120px -40px rgba(16, 24, 40, .35), 0 0 0 1px rgba(0, 0, 0, .06); }
.hx-app__body { display: grid; grid-template-columns: 188px minmax(0, 1fr); min-height: 460px; }
.hx-app__side { background: #fbfbfd; border-right: 1px solid var(--hair); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.hx-app__side img { height: 22px; width: auto; margin: 0 8px 16px; }
.hx-app__side span { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink2); padding: 8px 10px; border-radius: 10px; }
.hx-app__side span svg { width: 17px; height: 17px; }
.hx-app__side span.is-on { background: rgba(47, 107, 255, .1); color: var(--blue-h); font-weight: 600; }
.hx-app__main { padding: 22px 24px; min-width: 0; }
.hx-app__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.hx-app__head b { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; }
.hx-app__head span { font-size: 12.5px; color: var(--ink3); }
.hx-app__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hx-app__kpis div { background: var(--bg2); border-radius: 14px; padding: 14px 16px; }
.hx-app__kpis span { display: block; font-size: 12px; color: var(--ink2); }
.hx-app__kpis strong { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.04em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.hx-app__kpis em { font-style: normal; font-size: 11.5px; color: var(--ink3); }
.hx-app__panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; margin-top: 12px; }
.hx-app__panel { border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px; }
.hx-app__panel > p { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.hx-funnel { display: flex; flex-direction: column; gap: 12px; }
.hx-funnel div { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12.5px; }
.hx-funnel span { color: var(--ink2); }
.hx-funnel b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hx-funnel i { grid-column: 1 / 3; height: 8px; border-radius: 4px; background: var(--bg2); position: relative; overflow: hidden; }
.hx-funnel i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: max(var(--w), 3%); background: var(--grad); border-radius: 4px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.hx-app-stage.is-in .hx-funnel i::after { transform: scaleX(1); }
.hx-app__kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hx-app__kb div { background: var(--bg2); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.hx-app__kb div.is-hot { background: rgba(47, 107, 255, .08); }
.hx-app__kb em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink2); }
.hx-app__kb span { display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; background: #fff; border-radius: 8px; padding: 6px; font-size: 11.5px; font-weight: 500; box-shadow: 0 0 0 1px var(--hair); }
.hx-app__kb .hx-av { width: 22px; height: 22px; font-size: 9px; }
.hx-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(56px, 7vw, 88px); }
.hx-point svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 14px; stroke-width: 1.7; }
.hx-point h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.hx-point p { font-size: 15px; color: var(--ink2); margin-top: 6px; }

/* ---- RISULTATI (galleria) ---- */
.hx-results .hx-head { margin-bottom: 40px; }
.hx-gal-nav { display: flex; gap: 12px; flex: none; }
.hx-circle { width: 44px; height: 44px; border-radius: 50%; background: #e8e8ed; color: var(--ink); display: grid; place-items: center; transition: background-color .2s, opacity .2s, transform .2s; }
.hx-circle:hover { background: #dcdce1; }
.hx-circle:active { transform: scale(.94); }
.hx-circle[aria-disabled="true"] { opacity: .35; cursor: default; }
.hx-circle svg { width: 20px; height: 20px; stroke-width: 2.2; }
.hx-gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2); padding: 6px max(var(--gutter), (100vw - var(--wrap)) / 2) 30px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hx-gallery::-webkit-scrollbar { display: none; }
.hx-case { flex: none; width: clamp(300px, 30vw, 372px); scroll-snap-align: start; background: var(--bg2); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js .hx-gallery:not(.is-in) .hx-case { opacity: 0; transform: translateX(40px); }
.hx-gallery.is-in .hx-case:nth-child(2) { transition-delay: .08s; }
.hx-gallery.is-in .hx-case:nth-child(3) { transition-delay: .16s; }
.hx-gallery.is-in .hx-case:nth-child(4) { transition-delay: .24s; }
.hx-gallery.is-in .hx-case:nth-child(n+5) { transition-delay: .32s; }
.hx-case__sector { font-size: 14px; font-weight: 600; color: var(--ink2); min-height: 2.9em; }
.hx-case__kpi { margin: 18px 0 20px; }
.hx-case__kpi strong { display: block; font-size: clamp(56px, 5.4vw, 72px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.hx-case__kpi span { display: block; margin-top: 10px; font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; }
.hx-case__q { margin-bottom: 20px; }
.hx-case__q p { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink2); margin-bottom: 8px; }
.hx-case__q b { color: var(--ink); font-weight: 650; }
.hx-case__q i { display: block; height: 6px; border-radius: 3px; background: #e3e3e8; position: relative; overflow: hidden; }
.hx-case__q i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--green); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .5s; }
.hx-gallery.is-in .hx-case__q i::after { transform: scaleX(1); }
.hx-case__nota { font-size: 14px; color: var(--ink2); margin-bottom: 20px; }
.hx-case__lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); margin: 6px 0 8px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hx-chips span { font-size: 12.5px; background: #fff; border-radius: 999px; padding: 5px 11px; box-shadow: 0 0 0 1px var(--hair); }
.hx-chips span.is-co { background: rgba(47, 107, 255, .08); color: var(--blue-h); box-shadow: none; }
.hx-chips--geo span { background: transparent; }
.hx-case--cta { justify-content: space-between; background: var(--grad); color: #fff; min-height: 420px; }
.hx-case--cta strong { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.04em; line-height: 1.08; }
.hx-case--cta .hx-btn { align-self: flex-start; background: #fff; color: var(--blue-h) !important; box-shadow: none; }
.hx-case--cta .hx-btn svg { width: 17px; height: 17px; }

/* ---- CHI SONO ---- */
.hx-about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hx-about__photo { position: relative; }
.hx-about__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.hx-about__photo figcaption { position: absolute; left: 18px; bottom: 18px; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
.hx-about__list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.hx-about__list li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; }
.hx-about__list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(47, 107, 255, .12); color: var(--blue-h); stroke-width: 2.6; }

/* ---- CONTATTI ---- */
.hx-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.hx-contact .hx-h2 { font-size: clamp(32px, 4.4vw, 54px); }
.hx-direct { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.hx-direct a { display: inline-flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; width: fit-content; transition: color .2s; }
.hx-direct a:hover { color: var(--blue-h); }
.hx-direct span { width: 44px; height: 44px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; color: var(--blue); }
.hx-direct svg { width: 20px; height: 20px; }
.hx-form-card { background: var(--bg2); border-radius: var(--r-xl); padding: clamp(24px, 3.4vw, 44px); }
.hx-form { display: flex; flex-wrap: wrap; gap: 14px; }
.hx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hx-field { position: relative; flex: 1 1 100%; }
.hx-field--half { flex: 1 1 calc(50% - 7px); min-width: 200px; }
.skalio-home .hx-field input, .skalio-home .hx-field textarea { width: 100%; font: inherit; font-size: 17px; letter-spacing: -0.02em; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 24px 16px 9px; min-height: 58px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; box-shadow: none; margin: 0; }
.skalio-home .hx-field textarea { resize: vertical; min-height: 140px; line-height: 1.45; }
.hx-field label { position: absolute; left: 17px; top: 18px; font-size: 17px; color: var(--ink3); pointer-events: none; transform-origin: left top; transition: transform .2s var(--ease), color .2s; }
.hx-field input:focus, .hx-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 107, 255, .14); }
.hx-field input:focus + label, .hx-field textarea:focus + label, .hx-field input:not(:placeholder-shown) + label, .hx-field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.72); }
.hx-field input:focus + label, .hx-field textarea:focus + label { color: var(--blue-h); }
.hx-consent { flex: 1 1 100%; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink2); margin: 4px 0 6px; }
.hx-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.hx-consent a { color: var(--blue-h); text-decoration: underline; text-underline-offset: 2px; }
.hx-form .hx-btn { margin-top: 6px; }
.hx-form-msg { border-radius: var(--r-sm); padding: 14px 16px; font-size: 15px; margin-bottom: 18px; }
.hx-form-msg--ok { background: rgba(52, 199, 89, .14); color: var(--green-t); }
.hx-form-msg--err { background: rgba(255, 59, 48, .1); color: var(--red-t); }

/* ---- FOOTER ---- */
.hx-footer { background: var(--bg2); border-top: 1px solid var(--hair); padding: 26px 0 32px; font-size: 12px; color: var(--ink2); letter-spacing: -0.01em; }
.hx-footer__in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.hx-footer a { text-decoration: underline; text-decoration-color: rgba(0, 0, 0, .25); text-underline-offset: 2px; }
.hx-footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
.hx-footer__legal { display: flex; gap: 20px; }

/* ---- FILM (dialog) ---- */
.hx-film { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; margin: 0; inset: 0; overflow: hidden; color: #fff; }
.hx-film[open] { display: grid; place-items: center; animation: hx-film-in .5s var(--ease); }
.hx-film::backdrop { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); animation: hx-fade .4s var(--ease); }
@keyframes hx-film-in { from { opacity: 0; transform: scale(.97); } }
@keyframes hx-fade { from { opacity: 0; } }
.hx-film__box { width: min(1280px, 92vw, (100vh - 120px) * 16 / 9); }
.hx-film__video { width: 100%; aspect-ratio: 16 / 9; border-radius: clamp(10px, 1.4vw, 20px); background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.hx-film__close { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; transition: background-color .2s, transform .2s; z-index: 2; }
.hx-film__close:hover { background: rgba(255, 255, 255, .24); transform: scale(1.05); }
.hx-film__close svg { width: 20px; height: 20px; stroke-width: 2.2; }
html.hx-lock, html.hx-lock body { overflow: hidden; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1068px) {
	.hx-nav__links { gap: 18px; }
	.hx-bento { grid-template-columns: 1fr 1fr; }
	.hx-tile--xl { grid-column: 1 / 3; grid-row: auto; }
	.hx-points { grid-template-columns: 1fr 1fr; }
	.hx-app__body { grid-template-columns: minmax(0, 1fr); }
	.hx-app__side { display: none; }
	.hx-method__grid { grid-template-columns: 1fr; gap: 22px; align-content: center; }
	.hx-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
	.hx-stage { order: -1; width: min(100%, (100vh - var(--nav) - 210px) * 16 / 10.4); margin-inline: auto; }
	.hx-method__caption { width: min(100%, (100vh - var(--nav) - 210px) * 16 / 10.4); margin-inline: auto; }
}

@media (max-width: 900px) {
	.hx-nav__links { position: fixed; left: 0; right: 0; top: var(--nav); flex-direction: column; gap: 0; padding: 8px 28px 28px; margin: 0; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hair); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
	.hx-nav.is-open .hx-nav__links { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
	.hx-nav__links a { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); padding: 11px 0; border-bottom: 1px solid var(--hair); }
	.hx-nav__cta { margin-left: auto; }
	.hx-nav__burger { display: block; }
	.hx-duo, .hx-sources, .hx-about, .hx-contact__grid { grid-template-columns: 1fr; }
	.hx-about__photo { max-width: 460px; }
	.hx-head--row { flex-direction: column; align-items: flex-start; }
	.hx-gal-nav { display: none; }
}

@media (max-width: 734px) {
	.skalio-home { --gutter: 20px; }
	.hx-bento { grid-template-columns: 1fr; }
	.hx-tile--xl { grid-column: auto; }
	.hx-tile { min-height: 0; }
	.hx-points { grid-template-columns: 1fr; gap: 26px; }
	.hx-app__kpis { grid-template-columns: 1fr 1fr; }
	.hx-app__panels { grid-template-columns: minmax(0, 1fr); }
	.hx-app__main { padding: 16px; }
	.hx-film-frame { width: calc(100% - 24px); }
	.hx-film-frame__play { padding: 6px; }
	.hx-film-frame__icon { width: 38px; height: 38px; }
	.hx-stage, .hx-method__caption { width: 100%; }
	.hx-stage__body { aspect-ratio: auto; height: min(56svh, 480px); min-height: 330px; }
	.hx-pnl--target { grid-template-columns: 1fr; grid-template-rows: auto auto; }
	.hx-filters { grid-row: auto; }
	.hx-dots { display: none; }
	.hx-counter { align-self: start; }
	.hx-rows { max-width: 100%; }
	.hx-row em { display: none; }
	.hx-counter--sm { position: static; margin-top: 16px; text-align: left; }
	.hx-kb { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.hx-kb__col { padding: 8px; }
	.hx-kb__card, .hx-kb__mover { font-size: 0; gap: 0; justify-content: center; padding: 7px; }
	.hx-kb__col p { font-size: 11px; flex-wrap: wrap; gap: 4px; }
	.hx-bar { grid-template-columns: 100px 1fr 76px; }
	.hx-win__badge { display: none; }
	.hx-grid-people { grid-template-columns: repeat(8, 1fr); }
	.hx-grid-people i:nth-child(n+33) { display: none; }
	.hx-signal { font-size: 11px; }
	.hx-footer__in { flex-direction: column; }
}

/* didascalia della fase attiva (solo schermi stretti, dove l'elenco delle fasi è nascosto alla vista) */
.hx-method__caption { display: none; text-align: left; }
@media (max-width: 1068px) {
	.hx-method__caption { display: block; }
}
.hx-method__caption small { display: block; font-size: 13px; font-weight: 600; color: var(--blue-h); margin-bottom: 6px; }
.hx-method__caption strong { display: block; font-size: 24px; letter-spacing: -0.03em; }
.hx-method__caption p { font-size: 16px; color: var(--ink2); margin-top: 6px; }
.hx-method__bar { height: 3px; border-radius: 3px; background: var(--hair); margin-top: 16px; overflow: hidden; }
.hx-method__bar i { display: block; height: 100%; background: var(--grad); width: calc(var(--prog, 0) * 100%); }

/* ==========================================================================
   Movimento ridotto: niente animazioni, stati finali visibili
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.skalio-home *, .skalio-home *::before, .skalio-home *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
	html:has(.skalio-home) { scroll-behavior: auto; }
	.hx-in, .hx-reveal, .hx-case { opacity: 1 !important; transform: none !important; filter: none !important; }
	.hx-film-frame__inner, .hx-app { transform: none !important; }
	.hx-marquee__track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; }
	.hx-marquee { -webkit-mask-image: none; mask-image: none; }
	.hx-marquee__track li[aria-hidden="true"] { display: none; }
	.hx-motion-toggle { display: none; }
}

/* stampa: tutto visibile, niente animazioni */
@media print {
	.js .hx-reveal, .js .hx-gallery:not(.is-in) .hx-case { opacity: 1 !important; transform: none !important; }
	.hx-nav, .hx-film, .hx-motion-toggle, .hx-film-frame__play { display: none !important; }
	.hx-method__track { height: auto; }
	.hx-method__sticky { position: static; height: auto; }
}
