/* Teknet Bergamo — homepage (bozza).
 * Colori invertiti rispetto al portfolio: le sezioni sono chiare (carta) di default,
 * quelle con classe .is-dark sono nere. Ogni sezione espone i propri token
 * (--bg, --fg, --line, --mut, --surface) e i componenti usano solo quelli. */

:root {
	--ink: var(--wp--preset--color--ink);
	--ink-2: var(--wp--preset--color--ink-2);
	--ink-3: var(--wp--preset--color--ink-3);
	--paper: var(--wp--preset--color--paper);
	--paper-2: var(--wp--preset--color--paper-2);
	--accent: var(--wp--preset--color--accent);
	--muted: var(--wp--preset--color--muted);
	--muted-d: var(--wp--preset--color--muted-dark);
	--display: var(--wp--preset--font-family--display);
	--mono: var(--wp--preset--font-family--mono);
	--pad: clamp(20px, 4.2vw, 72px);
	--sec: clamp(96px, 12vw, 184px);
	--max: 1520px;
	--ease: cubic-bezier(.2, .75, .1, 1);
}

/* Fondo di base nero come il footer: dietro gli angoli arrotondati dell'ultima sezione, a fine pagina, si vede lui.
 * Ogni sezione ha comunque il proprio sfondo. */
html, body { background: var(--ink); }
body { color: var(--ink); }

/* Reset del contenitore: le sezioni sono a tutta larghezza e senza gap. */
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
main.hp > * { margin-block: 0 !important; max-width: none !important; }
main.hp { margin: 0 !important; }

/* ---------- Token per sezione ---------- */
.hp-sec, .hp-footer {
	--bg: var(--paper); --fg: var(--ink); --line: rgba(11, 11, 12, .14); --mut: var(--muted-d);
	--surface: var(--paper-2); --card: var(--ink); --card-fg: #fff;
}
.hp-sec.is-dark {
	--bg: var(--ink); --fg: #fff; --line: rgba(255, 255, 255, .14); --mut: var(--muted);
	--surface: var(--ink-2); --card: var(--paper); --card-fg: var(--ink);
}

/* ---------- Elementi comuni ---------- */
.hp-sec { position: relative; padding: var(--sec) var(--pad); background: var(--bg); color: var(--fg); }
.hp-sec > * { max-width: var(--max); margin-inline: auto; }

.hp-eyebrow, .hp-mono {
	font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--mut); margin: 0 0 28px;
}
.hp-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 12px; vertical-align: 1px; box-shadow: 0 0 0 1px rgba(11, 11, 12, .25); animation: hp-pulse 2.4s infinite; }
@keyframes hp-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 46, .9); } 70% { box-shadow: 0 0 0 10px rgba(200, 255, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0); } }

.hp-h2 {
	font-family: var(--display); font-weight: 400; text-transform: uppercase;
	font-size: clamp(2.1rem, 5.6vw, 6.25rem); line-height: 1.16; letter-spacing: -.015em;
	margin: 0; max-width: 16ch; text-wrap: balance;
}
.hp-sec__head { margin-bottom: clamp(48px, 6vw, 96px); }
.hp-sec__head--split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.hp-sec__lead { font-size: clamp(1.05rem, 1.4vw, 1.375rem); line-height: 1.55; color: var(--mut); max-width: 46ch; margin: 28px 0 0; }

/* Accento: sul nero è testo verde, sulla carta diventa un evidenziatore (il verde sul chiaro non si legge). */
.hp-sec.is-dark .tk-accent { color: var(--accent); }
.hp-sec:not(.is-dark) .tk-accent, .hp-mark {
	color: var(--ink);
	background: linear-gradient(var(--accent), var(--accent)) 0 88% / 100% .42em no-repeat;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.hp-pill {
	display: inline-flex; align-items: center; gap: .6em; padding: .8em 1.4em; border-radius: 999px;
	border: 1px solid currentColor; font-weight: 600; font-size: .95rem; text-decoration: none; color: inherit;
	transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.hp-pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hp-pill--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hp-pill--accent:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.hp-pill--xl { font-size: clamp(1rem, 1.6vw, 1.35rem); padding: 1.1em 2em; }

.hp-link { position: relative; display: inline-flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; font-weight: 600; padding: 6px 0; }
.hp-link__line { width: 44px; border-top: 1px dashed currentColor; opacity: .5; transition: width .5s var(--ease), opacity .5s; }
.hp-link:hover .hp-link__line { width: 72px; opacity: 1; }

.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.hp-chips li { border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: .45em 1em; font-size: .85rem; }

/* ---------- Header ---------- */
.hp-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; align-items: center; gap: 32px;
	padding: 22px var(--pad); color: var(--ink); font-size: .85rem;
	transition: background-color .4s var(--ease), padding .4s var(--ease), transform .5s var(--ease);
}
.hp-header.is-scrolled, .hp-header.is-covered { background: rgba(242, 240, 235, .96); box-shadow: 0 1px 0 rgba(11, 11, 12, .08); }
/* Solo durante lo scroll la barra si compatta; quando passa una card cambia solo lo sfondo (niente salti). */
.hp-header.is-scrolled { padding-block: 14px; }
.hp-header.is-hidden { transform: translateY(-100%); }
.hp-logo { font-family: var(--display); font-size: 1.15rem; text-transform: lowercase; color: var(--ink); text-decoration: none; line-height: 1; }
/* Evidenziatore verde solo su ".it" (regole del logo a due righe più sotto). */
.hp-nav { display: flex; gap: 26px; }
.hp-nav a, .hp-header__portfolio { color: rgba(11, 11, 12, .62); text-decoration: none; transition: color .3s; }
.hp-nav a:hover, .hp-header__portfolio:hover { color: var(--ink); }
/* Numeri dei capitoli: disegnati dal CSS (data-n), non fanno parte del testo del link (ancore pulite per Google e lettori di schermo). */
.hp-nav a[data-n]::after { content: attr(data-n); margin-left: .3em; font-family: var(--mono); font-size: .65rem; color: var(--muted-d); vertical-align: super; line-height: 0; }
.hp-header__right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.hp-header .hp-pill { padding: .6em 1.15em; font-size: .85rem; }

/* ---------- 01 Hero ---------- */
.tk-anim .hp-hero__main, .tk-anim .hp-wheel { visibility: hidden; }
.hp-hero {
	min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-rows: 1fr auto;
	gap: 32px 40px; padding-top: calc(var(--sec) * .8); padding-bottom: 72px; overflow: hidden;
}
.hp-hero > * { max-width: none; margin: 0; }
.hp-hero__main { align-self: center; position: relative; z-index: 2; }
.hp-hero__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; margin: 0; line-height: 1.2; letter-spacing: -.02em; font-size: clamp(2.3rem, 5.2vw, 6.6rem); }
.hp-hero__title > span { display: block; }
.hp-hero__l2 .hp-line { display: block; }
.hp-hero__l2 .hp-mark { background-size: 100% .38em; }
.hp-hero__foot { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-end; margin-top: clamp(28px, 3.4vw, 48px); }
.hp-hero__lead { max-width: 50ch; color: var(--mut); font-size: clamp(1rem, 1.2vw, 1.15rem); margin: 0; }
.hp-hero__ctas { display: flex; gap: 32px; flex-wrap: wrap; }
.hp-hero__where { grid-column: 1; margin: 0; }
.hp-hero__scroll { grid-column: 2; margin: 0; text-align: right; }
.hp-hero__scroll span { display: inline-block; animation: hp-bob 1.8s infinite var(--ease); }
@keyframes hp-bob { 50% { transform: translateY(6px); } }

/* Ruota del percorso: card disposte su un grande arco, posizionate da home.js. */
.hp-wheel { position: relative; z-index: 1; grid-column: 2; grid-row: 1; min-height: 560px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.hp-wheel:active { cursor: grabbing; }
.hp-wheel__arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hp-wheel__arc circle { fill: none; stroke: rgba(11, 11, 12, .38); stroke-width: 1.2; stroke-dasharray: 1 7; stroke-linecap: round; }
.hp-wheel__list { list-style: none; padding: 0; margin: 0; position: absolute; inset: 0; }
.hp-wheel__item { position: absolute; left: 0; top: 0; width: clamp(280px, 31vw, 540px); will-change: transform, opacity; }
.hp-wheel__card { display: block; color: inherit; text-decoration: none; }
.hp-wheel__visual {
	position: relative; display: block; aspect-ratio: 16 / 10.5; border-radius: 16px; overflow: hidden;
	background: var(--ink); color: #fff; padding: 7%; box-shadow: 0 30px 50px -28px rgba(11, 11, 12, .55);
	transition: transform .5s var(--ease);
}
.hp-wheel__item.is-active .hp-wheel__card:hover .hp-wheel__visual { transform: scale(1.02); }
.hp-wheel__label { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 12px 2px 0; }
.hp-wheel__n { font-family: var(--mono); font-size: .7rem; color: var(--muted-d); padding-top: 3px; grid-row: span 2; }
.hp-wheel__label b { font-size: 1rem; font-weight: 600; }
.hp-wheel__label em { font-style: normal; font-size: .82rem; color: var(--muted-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Mini illustrazioni delle tappe (solo CSS). */
.v-listen { display: flex; flex-direction: column; justify-content: center; gap: 8%; }
.v-bub { max-width: 78%; padding: .6em .9em; border-radius: 14px; font-size: clamp(.62rem, .82vw, .85rem); line-height: 1.35; }
.v-bub--in { background: var(--ink-3); color: #d9d9dd; border-bottom-left-radius: 4px; }
.v-bub--out { align-self: flex-end; background: var(--accent); color: var(--ink); font-weight: 600; border-bottom-right-radius: 4px; }
.v-typing { display: flex; gap: 4px; padding: .5em .8em; background: var(--ink-3); border-radius: 12px; width: max-content; }
.v-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: v-type 1.2s infinite; }
.v-typing i:nth-child(2) { animation-delay: .15s; } .v-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes v-type { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .4; } }

.v-map { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr .6fr 1fr; gap: 0 8%; align-items: center; text-align: center; }
.v-node { border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; padding: .55em 0; font-size: clamp(.58rem, .75vw, .78rem); color: #d9d9dd; }
.v-node--root { grid-column: 2; background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 600; }
.v-links { grid-column: 1 / -1; align-self: stretch; margin: 0 16.5%; border: 1px dashed rgba(255, 255, 255, .3); border-bottom: 0; border-radius: 8px 8px 0 0; position: relative; }
.v-links::before { content: ""; position: absolute; left: 50%; top: -60%; height: 160%; border-left: 1px dashed rgba(255, 255, 255, .3); }

.v-design { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 8%; background: var(--paper); color: var(--ink); }
.v-aa { font-family: var(--display); font-size: clamp(2rem, 4vw, 4rem); line-height: 1; align-self: center; }
.v-sw { display: flex; gap: 8%; align-self: center; }
.v-sw i { flex: 1; aspect-ratio: 1; border-radius: 50%; background: var(--ink); }
.v-sw i:nth-child(2) { background: var(--accent); box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .2); }
.v-sw i:nth-child(3) { background: var(--muted); }
.v-lay { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6%; height: 28px; }
.v-lay i { border-radius: 6px; background: var(--paper-2); }
.v-lay i:first-child { background: var(--ink); }

.v-code { display: flex; align-items: center; font-family: var(--mono); font-size: clamp(.6rem, .85vw, .85rem); line-height: 1.75; color: #d6d6da; background: #0f0f11; }
.v-code b { color: #ff7ab8; font-weight: 400; } .v-code em { color: #8fd3ff; font-style: normal; }
.v-caret { display: inline-block; width: .55em; height: 1.1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: v-blink 1s steps(1) infinite; }
@keyframes v-blink { 50% { opacity: 0; } }

.v-launch { display: flex; flex-direction: column; justify-content: space-between; }
.v-online { display: inline-flex; align-items: center; gap: 8px; width: max-content; background: var(--ink-3); border-radius: 999px; padding: .4em .9em; font-size: .78rem; font-weight: 600; }
.v-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.v-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.v-scores i { font-style: normal; font-size: clamp(.5rem, .62vw, .66rem); color: var(--muted); }
.v-scores b { display: block; font-family: var(--display); font-weight: 400; color: var(--accent); font-size: clamp(1rem, 1.8vw, 1.8rem); line-height: 1.25; }

.v-after { display: flex; flex-direction: column; justify-content: space-between; background: var(--accent); color: var(--ink); }
.v-bars { display: flex; align-items: flex-end; gap: 6%; height: 55%; }
.v-bars i { flex: 1; background: var(--ink); border-radius: 4px 4px 0 0; }
.v-bars i:nth-child(1) { height: 25%; } .v-bars i:nth-child(2) { height: 38%; } .v-bars i:nth-child(3) { height: 34%; }
.v-bars i:nth-child(4) { height: 55%; } .v-bars i:nth-child(5) { height: 72%; } .v-bars i:nth-child(6) { height: 100%; }
.v-checks { display: flex; gap: 8px; }
.v-checks i { font-style: normal; font-size: clamp(.55rem, .7vw, .75rem); font-weight: 600; border: 1px solid rgba(11, 11, 12, .3); border-radius: 999px; padding: .3em .8em; }

/* ---------- 02 Punto di partenza (nero) ---------- */
.hp-start__ui { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.hp-start__choices { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.hp-start__choices button {
	all: unset; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
	padding: 22px 4px; border-bottom: 1px solid var(--line); font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 600; color: var(--mut);
	transition: padding .4s var(--ease), color .3s;
}
.hp-start__choices button::after { content: "→"; opacity: .25; transition: opacity .3s, transform .4s var(--ease); }
.hp-start__choices button:hover, .hp-start__choices button[aria-selected="true"] { padding-left: 14px; color: var(--fg); }
.hp-start__choices button[aria-selected="true"]::after { opacity: 1; transform: translateX(6px); color: var(--accent); }
.hp-start__choices button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp-start__panel { background: var(--card); color: var(--card-fg); border-radius: 28px; padding: clamp(28px, 4vw, 56px); align-self: stretch; } /* Niente min-height: 100%: Safari la calcolava in un ciclo e il pannello diventava altissimo. */
.hp-start__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 2.8vw, 3rem); line-height: 1.2; margin: 0 0 18px; }
.hp-start__text { color: var(--muted-d); max-width: 52ch; margin: 0 0 40px; font-size: 1.05rem; }
.hp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hp-steps li {
	border: 1px solid rgba(11, 11, 12, .16); border-radius: 14px; padding: 14px; font-size: .9rem; font-weight: 600;
	opacity: .32; transition: opacity .5s var(--ease), background-color .5s var(--ease), color .5s var(--ease), border-color .5s;
}
.hp-steps li span { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 400; margin-bottom: 18px; }
.hp-steps li.is-on { opacity: 1; background: var(--ink); color: var(--accent); border-color: var(--ink); }

/* ---------- 03 Percorso orizzontale (carta) ---------- */
.hp-path { padding: 0; overflow: hidden; }
.hp-path > * { max-width: none; }
.hp-path__bar { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--sec) * .5); height: 1px; background: var(--line); z-index: 2; }
.hp-path__bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.hp-path__track { display: flex; align-items: stretch; gap: clamp(32px, 5vw, 96px); padding: var(--sec) var(--pad); width: max-content; }
.hp-path__intro { width: min(44vw, 820px); flex: none; align-self: center; padding-right: clamp(24px, 4vw, 80px); }
.hp-path__intro .hp-h2 { font-size: clamp(2rem, 4.3vw, 5.4rem); max-width: none; }
.hp-path__panel {
	flex: none; width: min(78vw, 620px); background: var(--ink); border-radius: 28px;
	padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; color: var(--muted);
}
.hp-path__n { font-family: var(--display); font-size: clamp(3rem, 7vw, 7.5rem); line-height: 1; color: var(--accent); margin: 0 0 auto; padding-bottom: 48px; }
.hp-path__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: #fff; font-size: clamp(1.4rem, 2.4vw, 2.5rem); line-height: 1.2; margin: 0 0 14px; }
.hp-path__claim { color: #fff; font-size: 1.15rem; font-weight: 600; margin: 0 0 14px; }
.hp-path__panel p { margin-block: 0; }
.hp-path__panel .hp-chips li { color: #fff; }

/* ---------- 04 Cantiere (nero) ---------- */
.hp-build__pin { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 96px); align-items: center; min-height: calc(100svh - 2 * var(--sec) + 120px); }
.hp-build__stages { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.hp-build__stages li { display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; opacity: .32; transition: opacity .4s var(--ease); }
.hp-build__stages li span { font-family: var(--mono); font-size: .75rem; font-weight: 400; padding-top: 4px; }
.hp-build__stages li em { grid-column: 2; font-style: normal; font-weight: 400; font-size: .9rem; color: var(--mut); }
.hp-build__stages li.is-on { opacity: 1; }
.hp-build__stages li.is-on span { color: var(--ink); background: var(--accent); border-radius: 4px; width: max-content; padding: 2px 5px; height: max-content; }

.hp-browser { background: var(--ink-2); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .6); }
.hp-browser__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; background: var(--ink-3); }
.hp-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3f; }
.hp-browser__bar span { margin-left: 14px; font-family: var(--mono); font-size: .72rem; color: var(--muted); background: var(--ink); padding: 4px 14px; border-radius: 999px; }
.hp-browser__view { position: relative; aspect-ratio: 16 / 10.5; }
.hp-layer { position: absolute; inset: 0; padding: 7%; }
.hp-layer--wire { background: #1a1a1d; }
.hp-layer--wire > div { border: 1.5px dashed #4a4a50; border-radius: 6px; margin-bottom: 4%; }
.hp-layer--wire .w-nav { height: 6%; }
.hp-layer--wire .w-h1 { height: 9%; width: 70%; }
.hp-layer--wire .w-short { width: 45%; }
.hp-layer--wire .w-p { height: 5%; width: 55%; }
.hp-layer--wire .w-btn { height: 7%; width: 20%; border-radius: 999px; }
.hp-layer--wire .w-grid { border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; height: 22%; }
.hp-layer--wire .w-grid div { border: 1.5px dashed #4a4a50; border-radius: 6px; }
.hp-layer--design { background: var(--paper); color: var(--ink); clip-path: inset(0 100% 0 0); }
.hp-layer--design .d-nav { display: flex; align-items: center; gap: 4%; margin-bottom: 7%; font-size: .8rem; }
.hp-layer--design .d-nav span { width: 9%; height: 6px; background: var(--paper-2); border-radius: 3px; }
.hp-layer--design .d-nav b { margin-right: auto; font-family: var(--display); font-weight: 400; }
.hp-layer--design .d-h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(.9rem, 2.1vw, 2rem); line-height: 1.15; margin: 0 0 5%; }
.hp-layer--design .d-btn { display: inline-block; background: var(--ink); color: var(--accent); border-radius: 999px; padding: .5em 1.2em; font-size: .75rem; font-weight: 600; }
.hp-layer--design .d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; height: 22%; margin-top: 6%; }
.hp-layer--design .d-grid div { border-radius: 10px; background: var(--ink); }
.hp-layer--design .d-grid div:nth-child(2) { background: var(--accent); }
.hp-layer--design .d-grid div:nth-child(3) { background: var(--paper-2); }
.hp-layer--code { background: #0f0f11; clip-path: inset(0 100% 0 0); }
.hp-layer--code pre { margin: 0; font-family: var(--mono); font-size: clamp(.6rem, 1vw, .95rem); line-height: 1.7; color: #d6d6da; white-space: pre-wrap; }
.c-k { color: #ff7ab8; } .c-a { color: var(--accent); } .c-s { color: #8fd3ff; } .c-c { color: #6b6b72; } .c-n { color: #ffb86b; }
.hp-layer--live { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; background: transparent; opacity: 0; pointer-events: none; }
.hp-layer--live .l-badge { background: var(--ink); color: #fff; border-radius: 999px; padding: .5em 1em; font-size: .8rem; font-weight: 600; display: flex; align-items: center; }
.hp-layer--live .l-scores { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; align-self: stretch; }
.hp-layer--live .l-scores li { flex: 1; background: var(--ink); color: var(--muted); border-radius: 12px; padding: 12px; font-size: .72rem; }
.hp-layer--live .l-scores b { display: block; font-family: var(--display); font-weight: 400; color: var(--accent); font-size: clamp(1.2rem, 2.4vw, 2.2rem); line-height: 1.2; }

/* ---------- 05 Unico interlocutore (carta) ---------- */
/* Su desktop la scena è alta esattamente quanto lo schermo e centrata su di esso:
 * le etichette dei fornitori (posizionate in % dello schermo) restano tutte visibili. */
.hp-one { box-sizing: border-box; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hp-one__stage { position: relative; width: 100%; min-height: 70svh; display: grid; place-items: center; }
@media (min-width: 901px) {
	.hp-one { height: 100svh; padding-block: 0; }
	.hp-one__stage { height: 100svh; min-height: 0; }
}
.hp-one__copy { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hp-one__copy .hp-h2 { max-width: 14ch; }
.hp-one__chips { list-style: none; padding: 0; margin: 0; position: absolute; inset: 0; }
.hp-one__chips li {
	position: absolute; left: 50%; top: 50%; translate: -50% -50%; white-space: nowrap;
	border-radius: 999px; padding: .6em 1.2em; font-size: .95rem; color: #fff; background: var(--ink);
}
.hp-one__chips li:nth-child(3n) { background: var(--accent); color: var(--ink); }
.hp-one__core {
	position: absolute; left: 50%; top: 50%; translate: -50% -50%; margin: 0; z-index: 1;
	font-family: var(--display); text-transform: lowercase; font-size: clamp(3.6rem, 14vw, 14rem); line-height: 1; color: var(--paper-2);
	pointer-events: none;
}

/* ---------- 06 Il dopo (nero) ---------- */
.hp-rows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.hp-rows li {
	display: grid; grid-template-columns: 80px 1.2fr 1fr 60px; gap: 24px; align-items: center;
	padding: clamp(22px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line); position: relative;
}
.hp-rows li::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); z-index: 0; border-radius: 4px; }
.hp-rows li > * { position: relative; z-index: 1; transition: color .4s var(--ease), padding .55s var(--ease); }
.hp-rows li:hover::before { transform: scaleY(1); }
.hp-rows li:hover > * { color: var(--ink); }
.hp-rows li:hover h3 { padding-left: 16px; }
.hp-rows__n { font-family: var(--mono); font-size: .75rem; color: var(--mut); padding-left: 12px; }
.hp-rows h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.15rem, 2.2vw, 2.25rem); line-height: 1.25; margin: 0; }
.hp-rows p { margin: 0; color: var(--mut); }
.hp-rows__go { justify-self: end; padding-right: 12px; font-size: 1.4rem; }

/* ---------- 07 Card dei vantaggi in 3D (carta) ---------- */
.hp-orbit { padding-block: 0; overflow: hidden; }
.hp-orbit__pin { box-sizing: border-box; height: 100svh; min-height: 640px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding-block: calc(var(--sec) * .55) 28px; }
.hp-orbit__copy { text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.hp-orbit__copy .hp-h2 { max-width: 18ch; font-size: clamp(1.9rem, 4.4vw, 4.75rem); }
.hp-orbit__scene { position: relative; perspective: 2400px; perspective-origin: 50% 30%; min-height: 0; }
.hp-orbit__ring { list-style: none; padding: 0; margin: 0; position: absolute; left: 50%; top: 44%; width: 0; height: 0; transform-style: preserve-3d; }
.hp-card {
	position: absolute; width: clamp(230px, 20vw, 300px); height: clamp(290px, 25vw, 370px); left: 0; top: 0;
	backface-visibility: hidden; -webkit-backface-visibility: hidden;
	background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(22px, 2vw, 30px);
	display: flex; flex-direction: column; box-shadow: 0 30px 60px -24px rgba(11, 11, 12, .45);
}
.hp-card:nth-child(4n+2) { background: var(--accent); color: var(--ink); }
.hp-card:nth-child(4n+3) { background: #fff; color: var(--ink); }
.hp-card__n { font-family: var(--mono); font-size: .75rem; opacity: .6; }
.hp-card b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.05rem, 1.55vw, 1.5rem); line-height: 1.3; margin: auto 0 14px; }
.hp-card p { margin: 0; font-size: .95rem; line-height: 1.5; opacity: .75; }
.hp-card__mark { font-family: var(--display); font-size: .7rem; text-transform: lowercase; margin-top: 22px; opacity: .45; }
.hp-card__mark i { font-style: normal; }
.hp-orbit__hint { text-align: center; margin: 0; }
.hp-orbit.is-flat .hp-orbit__pin { height: auto; min-height: 0; padding-block: var(--sec); }
.hp-orbit.is-flat .hp-orbit__scene { perspective: none; min-height: 0; margin-top: 48px; }
.hp-orbit.is-flat .hp-orbit__ring { position: static; width: auto; height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
.hp-orbit.is-flat .hp-card { position: relative; flex: none; scroll-snap-align: start; width: min(78vw, 320px); height: auto; min-height: 320px; transform: none !important; opacity: 1 !important; filter: none !important; }
.hp-orbit.is-flat .hp-orbit__hint { display: none; }

/* ---------- 08 Garanzie (carta) ---------- */
.hp-trust { border-top: 1px solid var(--line); }
.hp-trust__top { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.hp-trust__top .hp-h2 { max-width: 22ch; }
.hp-years { justify-self: end; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); font-family: var(--display); font-size: clamp(2.6rem, 6vw, 6.5rem); line-height: 1; }
.hp-years__y { display: flex; color: var(--ink); }
.hp-years__y:first-child { color: #b9b7b0; }
.hp-years__fix { display: inline-block; height: 1.4em; line-height: 1.4em; }
.hp-reel { position: relative; display: inline-block; height: 1.4em; overflow: hidden; text-align: center; }
.hp-reel > span { display: block; }
.hp-reel > span > span { display: block; height: 1.4em; line-height: 1.4em; text-align: center; }
.hp-years__to { margin: 0; font-size: 1.4rem; }
.hp-stats { list-style: none; padding: 0; margin: 0 0 clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hp-stats li { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.hp-stats li + li { padding-left: 24px; }
.hp-stats li:last-child { border-right: 0; }
.hp-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4.2vw, 4.25rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.hp-stats b::after { content: "+"; font-size: .45em; vertical-align: .95em; margin-left: .08em; color: var(--ink); }
.hp-stats li:last-child b::after { content: ""; }
.hp-stats span { color: var(--mut); font-size: .95rem; }

/* ---------- FAQ (nero) ---------- */
.hp-faq__list { border-top: 1px solid var(--line); }
.hp-faq details { border-bottom: 1px solid var(--line); }
.hp-faq summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
	padding: 26px 0; font-size: clamp(1.05rem, 1.6vw, 1.5rem); font-weight: 600; transition: color .3s;
}
.hp-faq summary:hover { color: var(--accent); }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: "+"; font-family: var(--display); color: var(--accent); transition: transform .4s var(--ease); flex: none; }
.hp-faq details[open] summary::after { transform: rotate(45deg); }
.hp-faq details p { margin: 0 0 28px; max-width: 70ch; color: var(--mut); font-size: 1.05rem; }

/* ---------- 09 Primo passo (carta) ---------- */
.hp-cta__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.6rem, 8.4vw, 10.5rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 clamp(48px, 6vw, 96px); text-wrap: balance; }
.hp-cta__next { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.hp-cta__next li { padding-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.hp-cta__next span { font-family: var(--mono); font-size: .72rem; background: var(--accent); color: var(--ink); width: max-content; padding: 2px 6px; border-radius: 4px; margin-bottom: 12px; }
.hp-cta__next b { font-size: 1.25rem; }
.hp-cta__next em { font-style: normal; color: var(--mut); }

/* ---------- Footer (nero, chiude la pagina) ---------- */
.hp-footer { --line: rgba(255, 255, 255, .14); background: var(--ink); color: var(--muted); padding: clamp(48px, 6vw, 96px) var(--pad) 84px; overflow: hidden; }
.hp-footer__big { font-family: var(--display); text-transform: lowercase; color: var(--ink-3); font-size: clamp(3.4rem, 19.5vw, 24rem); line-height: 1.1; text-align: center; margin-bottom: 24px; white-space: nowrap; }
.hp-footer__big span { color: var(--accent); }
.hp-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; font-size: .85rem; max-width: var(--max); margin: 0 auto; }
.hp-footer__row p { margin: 0; }
.hp-footer a { color: #fff; text-decoration: none; }
.hp-footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.hp-nav { display: none; }
	.hp-hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
	.hp-wheel { grid-column: 1; grid-row: 2; min-height: 460px; overflow: hidden; margin-inline: calc(var(--pad) * -1); }
	.hp-hero__where, .hp-hero__scroll { grid-row: 3; }
	.hp-hero__scroll { grid-column: 1; text-align: right; }
}
@media (max-width: 900px) {
	.hp-header__portfolio { display: none; }
	.hp-sec__head--split, .hp-trust__top, .hp-start__ui, .hp-build__pin { grid-template-columns: 1fr; }
	.hp-steps { grid-template-columns: repeat(2, 1fr); }
	.hp-path__track { flex-direction: column; width: auto; }
	.hp-path__intro, .hp-path__panel { width: auto; }
	.hp-path__bar { display: none; }
	.hp-rows li { grid-template-columns: 48px 1fr; }
	.hp-rows p { grid-column: 2; }
	.hp-rows__go { display: none; }
	.hp-stats { grid-template-columns: repeat(2, 1fr); }
	.hp-stats li { padding: 24px 12px 24px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
	.hp-cta__next { grid-template-columns: 1fr; }
	.hp-one__chips { display: none; }
	.hp-layer--design { clip-path: none; }
	.hp-years { justify-self: start; font-size: clamp(1.8rem, 9vw, 3rem); }
	.hp-wheel__item { width: min(64vw, 300px); }
}
@media (max-width: 560px) {
	.hp-header .hp-pill { font-size: .78rem; padding: .55em .9em; }
	.hp-header .hp-pill span { display: none; }
	.hp-wheel { min-height: 400px; }
}

/* ---------- Interlinea dei titoli Boldonse ----------
 * Boldonse ha lettere molto alte: sotto 1.3 le righe si sovrappongono e sembrano tagliate. */
.hp-h2, .hp-hero__title, .hp-cta__title, .hp-start__title, .hp-path__title,
.hp-rows h3, .hp-card b, .hp-layer--design .d-h1 { line-height: 1.3; }


/* ---------- Rimandi al portfolio ---------- */
/* Sezione verde: l'unico blocco pieno di accento della pagina. */
.hp-sec.is-accent {
	--bg: var(--accent); --fg: var(--ink); --line: rgba(11, 11, 12, .22); --mut: rgba(11, 11, 12, .68);
}
.hp-works__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.hp-works__head .hp-eyebrow { grid-column: 1 / -1; margin: 0; }
.hp-works__head .hp-h2 { max-width: 18ch; }
.hp-works__side .hp-sec__lead { margin: 0 0 28px; }
.hp-pill--ink { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.hp-pill--ink:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.hp-works__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.hp-works__list a {
	position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr) 48px; gap: 24px; align-items: center;
	padding: clamp(18px, 2.2vw, 30px) 12px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.hp-works__list a::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); border-radius: 4px; }
.hp-works__list a > * { position: relative; transition: color .35s var(--ease), transform .5s var(--ease); }
html:not(.lenis-scrolling) .hp-works__list a:hover::before, .hp-works__list a:focus-visible::before { transform: scaleY(1); }
html:not(.lenis-scrolling) .hp-works__list a:hover > *, .hp-works__list a:focus-visible > * { color: var(--accent); }
html:not(.lenis-scrolling) .hp-works__list a:hover b { transform: translateX(12px); }
.hp-works__n { font-family: var(--mono); font-size: .75rem; }
.hp-works__list b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 2rem); line-height: 1.3; }
.hp-works__list em { font-style: normal; font-size: .95rem; color: var(--mut); }
.hp-works__go { justify-self: end; font-size: 1.5rem; }
html:not(.lenis-scrolling) .hp-works__list a:hover .hp-works__go { transform: translate(4px, -4px); }

/* Link "esterno" nell'apertura. */
.hp-link--out { background: var(--ink); color: var(--accent); border-radius: 999px; padding: .55em 1.1em; }
.hp-link--out:hover { background: var(--accent); color: var(--ink); }

/* Prova concreta dentro le sezioni. */
.hp-proof {
	display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 36px;
	padding: 14px 20px; border: 1px dashed currentColor; border-radius: 14px; color: inherit; text-decoration: none;
	font-weight: 600; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.hp-proof span { font-family: var(--mono); font-size: .7rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--ink); padding: 3px 7px; border-radius: 4px; }
.hp-proof:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hp-proof:hover span { background: var(--ink); color: var(--accent); }

/* Menu: "Guarda i lavori" come pulsante bordato. */
.hp-header .hp-header__portfolio { color: var(--ink); border-color: rgba(11, 11, 12, .55); }
.hp-header .hp-header__portfolio:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }

/* Footer: grande rimando al portfolio. */
.hp-footer__works {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; max-width: var(--max); margin: 0 auto clamp(32px, 4vw, 64px);
	padding-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line);
	font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 3.6vw, 3.6rem); line-height: 1.3; color: #fff; text-decoration: none;
}
.hp-footer__works span { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--muted); }
.hp-footer__works:hover { color: var(--accent); }

@media (max-width: 900px) {
	.hp-works__head { grid-template-columns: 1fr; }
	.hp-works__list a { grid-template-columns: 40px minmax(0, 1fr); }
	.hp-works__list em { grid-column: 2; }
	.hp-works__go { display: none; }
}


/* ---------- Footer a "saracinesca" ----------
 * Il footer è sticky in fondo e sta DIETRO al contenuto (z-index 0 contro 1):
 * è sempre lì, coperto dalla pagina, che scorrendo si solleva e lo scopre. */
main.hp { position: relative; z-index: 1; }
.hp-footer-wrap { position: sticky; bottom: 0; z-index: 0; will-change: transform; } /* Livello proprio: su Safari il footer fermo dietro la pagina che scorre non sfarfalla. */
/* Bordo inferiore della saracinesca: angoli arrotondati e ombra sul footer. */
main.hp > .hp-sec:last-child {
	border-radius: 0 0 clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px);
	box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .55);
}

/* ---------- Motivo delle sezioni chiare ----------
 * Grana della carta + granelli sparsi finissimi (niente puntini grandi: sembrano sporco sullo schermo).
 * Piastrelle di misura diversa (613px e 240px): sovrapposte non mostrano ripetizioni. Solo sulle sezioni carta. */
.hp-sec:not(.is-dark):not(.is-accent) {
	background-color: var(--bg);
	background-image: url(../img/paper-dots-a.png?v=4), url(../img/paper-grain.png?v=4);
	background-size: 613px 613px, 240px 240px;
	background-position: 0 0, 0 0;
}

/* main.hp resta trasparente: dietro gli angoli arrotondati dell'ultima sezione deve vedersi il footer, non la carta.
 * Gli spazi delle scene bloccate sono già coperti (pinBackgrounds in home.js). */

/* "teknet." del footer è solo decorativo: non intercetta clic né selezione,
 * e la riga dei link resta sempre sopra anche quando la scritta si sposta con l'animazione. */
.hp-footer__big { position: relative; z-index: 0; pointer-events: none; user-select: none; -webkit-user-select: none; }
.hp-footer__works, .hp-footer__row { position: relative; z-index: 1; }


/* ---------- Pagine interne ---------- */
.tk-anim .hp-phero__main { visibility: visible; }
.hp-phero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .5fr); gap: 40px 64px; align-items: end; padding-top: clamp(130px, 12vw, 200px); padding-bottom: clamp(56px, 7vw, 110px); }
.hp-phero > * { max-width: none; margin: 0; }
.hp-crumbs { margin-bottom: 36px; }
.hp-crumbs a { color: inherit; text-decoration: none; }
.hp-crumbs a:hover { color: var(--ink); }
.hp-crumbs [aria-current] { color: var(--ink); }
.hp-phero__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.3rem, 5.6vw, 7rem); line-height: 1.3; letter-spacing: -.02em; margin: 0; max-width: 15ch; text-wrap: balance; }
.hp-phero__lead { max-width: 56ch; color: var(--mut); font-size: clamp(1.05rem, 1.35vw, 1.3rem); margin: clamp(28px, 3vw, 44px) 0 0; }
.hp-phero__index ol { list-style: none; padding: 0; margin: 0; counter-reset: i; }
.hp-phero__index a { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 600; transition: padding .4s var(--ease); }
.hp-phero__index a::before { counter-increment: i; content: "0" counter(i); font-family: var(--mono); font-size: .7rem; font-weight: 400; color: var(--mut); padding-top: 4px; }
.hp-phero__index a:hover { padding-left: 8px; }

/* Griglia di domande. */
.hp-qgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hp-qgrid li { background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(22px, 2.4vw, 32px); min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.hp-qgrid li:nth-child(3n+2) { background: var(--accent); color: var(--ink); }
.hp-qgrid span { font-family: var(--mono); font-size: .75rem; opacity: .7; }
.hp-qgrid b { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.35; }

/* Compreso / dopo. */
.hp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-compare__col { border-radius: 26px; padding: clamp(26px, 3vw, 44px); }
.hp-compare__col.is-in { background: var(--ink); color: #fff; }
.hp-compare__col.is-after { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.hp-compare h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.2rem, 2vw, 1.9rem); line-height: 1.3; margin: 0 0 22px; }
.hp-compare ul { list-style: none; padding: 0; margin: 0; }
.hp-compare li { padding: 12px 0 12px 28px; border-top: 1px solid currentColor; border-color: rgba(128, 128, 128, .25); position: relative; }
.hp-compare li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.hp-compare .is-after li::before { content: "+"; color: var(--ink); }

/* Prossima tappa. */
.hp-next { padding-block: clamp(64px, 8vw, 120px); }
.hp-next__link { display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; align-items: end; color: #fff; text-decoration: none; }
.hp-next__link .hp-mono { grid-column: 1 / -1; margin: 0; }
.hp-next__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(2rem, 6vw, 7rem); line-height: 1.3; transition: color .35s var(--ease); }
.hp-next__go { font-family: var(--display); font-size: clamp(2rem, 6vw, 7rem); line-height: 1.3; color: var(--accent); transition: transform .5s var(--ease); }
.hp-next__link:hover .hp-next__title { color: var(--accent); }
.hp-next__link:hover .hp-next__go { transform: translateX(16px); }

/* "Scopri di più" nelle sezioni della home. */
.hp-more {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: .6em 1.2em; border-radius: 999px;
	border: 1px solid currentColor; color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem;
	transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.hp-more span { transition: transform .4s var(--ease); }
.hp-more:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hp-more:hover span { transform: translateX(4px); }

/* Menu: voce della pagina corrente. */
.hp-nav a[aria-current="page"] { color: var(--ink); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 3px no-repeat; }

/* Footer: elenco pagine. */
.hp-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; max-width: var(--max); margin: 0 auto 28px; position: relative; z-index: 1; }
.hp-footer__nav a { color: #fff; text-decoration: none; font-weight: 600; }
.hp-footer__nav a:hover { color: var(--accent); }

@media (max-width: 900px) {
	.hp-phero { grid-template-columns: 1fr; min-height: 0; }
	.hp-qgrid, .hp-compare { grid-template-columns: 1fr; }
	.hp-qgrid li { min-height: 0; }
}

/* Logo su due righe: "teknet.it" + "agenzia siti web bergamo". */
.hp-logo { display: inline-flex; flex-direction: column; gap: 5px; }
.hp-logo__name { font-family: var(--display); font-size: 1.15rem; line-height: 1; }
.hp-logo .hp-logo__name span { color: var(--ink); background: var(--accent); border-radius: 2px; padding: 0 .08em; }
.hp-logo__tag { font-family: var(--wp--preset--font-family--sans); font-size: .68rem; font-weight: 600; letter-spacing: .02em; line-height: 1; text-transform: lowercase; color: var(--muted-d); }

/* ---------- 04 Cantiere: la scena bloccata sta tutta in uno schermo (desktop) ---------- */
@media (min-width: 901px) {
	.hp-build { box-sizing: border-box; height: 100svh; padding-block: clamp(84px, 9vh, 120px) clamp(48px, 6vh, 72px); }
	.hp-build__pin { height: 100%; min-height: 0; }
	.hp-build__copy .hp-h2 { font-size: clamp(1.9rem, min(3.8vw, 6.4vh), 4.6rem); max-width: 14ch; }
	.hp-build__copy .hp-sec__lead { margin-top: clamp(14px, 2vh, 24px); font-size: clamp(1rem, 1.1vw, 1.2rem); }
	.hp-build__copy .hp-eyebrow { margin-bottom: clamp(14px, 2vh, 24px); }
	.hp-build__stages { margin-top: clamp(18px, 3vh, 36px); }
	.hp-build__stages li { padding-block: clamp(7px, 1.2vh, 14px); font-size: 1rem; }
	.hp-build__stages li em { font-size: .85rem; }
	.hp-build .hp-proof { margin-top: clamp(14px, 2.4vh, 28px); padding: 10px 16px; font-size: .9rem; }
	.hp-build__screen { max-height: calc(100svh - 200px); display: flex; align-items: center; }
	.hp-build__screen .hp-browser { width: 100%; max-height: 100%; }
}

/* Card 3D e cantiere su schermi bassi: le misure seguono anche l'altezza dello schermo. */
@media (min-width: 901px) {
	.hp-orbit .hp-card { height: min(clamp(290px, 25vw, 370px), 34svh); width: min(clamp(230px, 20vw, 300px), 28svh); }
	.hp-orbit__ring { top: 40%; }
	.hp-orbit__pin { padding-bottom: 64px; }
	.hp-orbit__copy .hp-h2 { font-size: clamp(1.7rem, min(4.4vw, 6.4vh), 4.75rem); }
}
@media (min-width: 901px) and (max-height: 780px) {
	.hp-build .hp-proof { display: none; }
}

/* "Scorri per girare le carte": sotto il titolo, come etichetta ben visibile (prima era sopra il tratteggio e si perdeva). */
.hp-orbit__pin { grid-template-rows: auto auto 1fr; }
.hp-orbit__scene { grid-row: 3; }
.hp-orbit__hint {
	grid-row: 2; justify-self: center; display: inline-flex; align-items: center; gap: 10px;
	margin: clamp(14px, 2vh, 24px) 0 0; padding: .55em 1.1em; border: 1px dashed var(--ink); border-radius: 999px;
	color: var(--ink); font-size: .72rem; position: relative; z-index: 2;
}
.hp-orbit__hint span { display: inline-block; color: var(--ink); background: var(--accent); border-radius: 50%; width: 1.6em; height: 1.6em; line-height: 1.6em; text-align: center; animation: hp-bob 1.6s infinite var(--ease); }

/* Titolo principale: nascosto finché parte lo scramble (main.js lo rende visibile). */
.tk-anim .hp-hero__title, .tk-anim .hp-phero__title { visibility: hidden; }
.tk-scr { white-space: pre-wrap; }

/* ---------- Navigazione: voce Home e menu mobile ---------- */
.hp-nav__home { display: inline-flex; align-items: center; gap: 6px; }
.hp-nav__home svg { margin-top: -2px; }
.hp-nav__home[aria-current="page"] { color: var(--ink); }

.hp-burger {
	display: none; align-items: center; gap: 10px; padding: .55em 1em .55em .8em; border-radius: 999px;
	border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 .85rem/1 var(--wp--preset--font-family--sans); cursor: pointer;
}
.hp-burger__lines { position: relative; width: 18px; height: 12px; }
.hp-burger__lines i { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.hp-burger__lines i:first-child { top: 2px; }
.hp-burger__lines i:last-child { top: 8px; }
.hp-burger[aria-expanded="true"] .hp-burger__lines i:first-child { top: 5px; transform: rotate(45deg); }
.hp-burger[aria-expanded="true"] .hp-burger__lines i:last-child { top: 5px; transform: rotate(-45deg); }

.hp-mnav {
	position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	padding: 110px var(--pad) 40px; background: var(--paper); overflow-y: auto;
	clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease);
}
.hp-mnav.is-open { clip-path: inset(0 0 0 0); }
.hp-mnav__links { display: flex; flex-direction: column; border-top: 1px solid rgba(11, 11, 12, .14); }
.hp-mnav__links a {
	display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(11, 11, 12, .14);
	font-family: var(--display); text-transform: uppercase; font-size: clamp(1.25rem, 5.4vw, 2.2rem); line-height: 1.3; color: var(--ink); text-decoration: none;
	opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease), padding .4s var(--ease);
}
.hp-mnav.is-open .hp-mnav__links a { opacity: 1; transform: none; }
.hp-mnav.is-open .hp-mnav__links a:nth-child(2) { transition-delay: .04s; } .hp-mnav.is-open .hp-mnav__links a:nth-child(3) { transition-delay: .08s; }
.hp-mnav.is-open .hp-mnav__links a:nth-child(4) { transition-delay: .12s; } .hp-mnav.is-open .hp-mnav__links a:nth-child(5) { transition-delay: .16s; }
.hp-mnav.is-open .hp-mnav__links a:nth-child(6) { transition-delay: .2s; } .hp-mnav.is-open .hp-mnav__links a:nth-child(7) { transition-delay: .24s; }
.hp-mnav__links a[data-n]::before { content: attr(data-n); font-family: var(--mono); font-size: .75rem; color: var(--muted-d); }
.hp-mnav__links a[aria-current="page"] { padding-left: 10px; background: linear-gradient(var(--accent), var(--accent)) 0 50% / 4px 60% no-repeat; }
.hp-mnav__foot { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-menu-open .hp-header { background: var(--paper) !important; }

@media (max-width: 1100px) {
	.hp-burger { display: inline-flex; }
}
@media (max-width: 620px) {
	.hp-header__cta { display: none !important; }
	.hp-logo__name { font-size: 1rem; }
}
@media (min-width: 1101px) {
	.hp-mnav { display: none !important; }
}

/* Barra in alto sempre su una riga: sotto 1420px il menu completo lascia il posto al pulsante "Menu". */
.hp-header .hp-pill { white-space: nowrap; }
@media (max-width: 1420px) {
	.hp-nav { display: none; }
	.hp-burger { display: inline-flex; }
}
@media (min-width: 1421px) {
	.hp-mnav { display: none !important; }
}
@media (min-width: 1101px) and (max-width: 1420px) {
	.hp-mnav { display: flex !important; }
	.hp-mnav[hidden] { display: none !important; }
}
.hp-mnav__links:focus { outline: none; }

/* ---------- Griglia di pallini delle sezioni nere (assets/js/dots.js) ---------- */
.tk-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; max-width: none !important; margin: 0 !important; }
.hp-sec.is-dark > :not(.tk-dots) { position: relative; z-index: 1; }

/* ---------- Card stese sul filo: gli strumenti (assets/js/line.js) ---------- */
.hp-line { overflow: hidden; }
.hp-line__hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: .5em 1em; border: 1px dashed currentColor; border-radius: 999px; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.hp-line__hint span { color: var(--ink); background: var(--accent); border-radius: 50%; width: 1.7em; height: 1.7em; display: grid; place-items: center; }
.hp-line__stage {
	position: relative; height: clamp(440px, 34vw, 540px); max-width: none !important; margin-inline: calc(var(--pad) * -1) !important;
	cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.hp-line__stage.is-dragging { cursor: grabbing; }
.hp-line__back {
	position: absolute; left: 0; top: 46%; translate: 0 -50%; display: flex; white-space: nowrap; pointer-events: none;
	font-family: var(--display); text-transform: uppercase; font-size: clamp(5rem, 14vw, 15rem); line-height: 1.3;
	color: transparent; -webkit-text-stroke: 1.5px var(--line); will-change: transform;
}
.hp-line__back span { padding-right: .4em; }
.hp-line__rope { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; visibility: hidden; z-index: 1; }
.hp-line__rope path { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; }
.hp-line__track { list-style: none; padding: 0; margin: 0; position: absolute; inset: 0; z-index: 2; }
.hp-tool {
	--len: 20px; position: absolute; left: 0; top: calc(26px + var(--len)); width: clamp(210px, 17vw, 262px);
	transform-origin: 50% calc(var(--len) * -1); will-change: transform;
}
/* Spago e molletta. */
.hp-tool::before { content: ""; position: absolute; left: 50%; top: calc(var(--len) * -1); height: var(--len); border-left: 1.5px solid var(--fg); }
.hp-tool__peg {
	position: absolute; left: 50%; top: calc(var(--len) * -1 - 12px); width: 12px; height: 26px; translate: -50% 0; border-radius: 4px;
	background: var(--ink); box-shadow: inset 0 9px 0 0 var(--accent), 0 0 0 1.5px var(--bg);
}
.hp-tool__card {
	position: relative; display: flex; flex-direction: column; gap: 10px; min-height: clamp(250px, 19vw, 300px); padding: 22px 22px 20px;
	border-radius: 18px; background: var(--ink); color: #fff; overflow: hidden; box-shadow: 0 26px 40px -24px rgba(11, 11, 12, .6);
}
.hp-tool:nth-child(4n+2) .hp-tool__card { background: var(--accent); color: var(--ink); }
.hp-tool:nth-child(4n+3) .hp-tool__card { background: #fff; color: var(--ink); }
.hp-tool:nth-child(4n+4) .hp-tool__card { background: var(--ink-3); color: #fff; }
.hp-tool__cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.hp-tool__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.3; margin-top: auto; }
.hp-tool__card p { margin: 0; font-size: .88rem; line-height: 1.45; opacity: .8; }
.hp-tool__mono { position: absolute; right: 14px; top: 8px; font-family: var(--display); font-size: 3.4rem; line-height: 1.3; opacity: .12; text-transform: uppercase; pointer-events: none; }
@media (max-width: 600px) {
	.hp-line__stage { height: 420px; }
}
/* Nomi lunghi più contenuti; versione scura con card chiare dove il nero si confonderebbe. */
.hp-tool__name { font-size: clamp(1.05rem, 1.25vw, 1.3rem); overflow-wrap: anywhere; }
.hp-line.is-dark .hp-tool:nth-child(4n+1) .hp-tool__card { background: var(--paper); color: var(--ink); }
.hp-line.is-dark .hp-tool:nth-child(4n+4) .hp-tool__card { background: var(--ink-2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 26px 40px -24px rgba(0, 0, 0, .8); }
.hp-line.is-dark .hp-tool__peg { box-shadow: inset 0 9px 0 0 var(--accent), 0 0 0 1.5px rgba(255, 255, 255, .6); }

/* ---------- Home: capitoli impilati (anteprime delle pagine) ---------- */
.hp-chapters__list { list-style: none; padding: 0; margin: 0; }
.hp-chap {
	position: sticky; top: calc(96px + var(--i) * 18px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px);
	align-items: center; min-height: min(68svh, 620px); margin-bottom: 8svh; padding: clamp(28px, 4vw, 60px); border-radius: 32px;
	background: var(--ink); color: #fff; box-shadow: 0 -18px 50px -30px rgba(11, 11, 12, .5); transform-origin: 50% 0; will-change: transform;
}
.hp-chap:last-child { margin-bottom: 0; }
.hp-chap:nth-child(5n+2), .hp-chap:nth-child(5n+5) { background: var(--accent); color: var(--ink); }
.hp-chap:nth-child(5n+3) { background: #fff; color: var(--ink); }
.hp-chap:nth-child(5n+4) { background: var(--ink-3); }
.hp-chap__tag { margin: 0 0 18px; color: inherit; opacity: .75; display: flex; gap: 12px; align-items: center; }
.hp-chap__tag span { background: var(--accent); color: var(--ink); border-radius: 4px; padding: 2px 6px; opacity: 1; }
.hp-chap:nth-child(5n+2) .hp-chap__tag span, .hp-chap:nth-child(5n+5) .hp-chap__tag span { background: var(--ink); color: var(--accent); }
.hp-chap__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 5rem); line-height: 1.3; margin: 0 0 18px; }
.hp-chap__hook { font-size: clamp(1.05rem, 1.4vw, 1.35rem); line-height: 1.5; margin: 0 0 22px; max-width: 42ch; opacity: .85; }
.hp-chap__items { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.hp-chap__items li { border: 1px solid currentColor; border-radius: 999px; padding: .4em .95em; font-size: .85rem; opacity: .8; }
.hp-chap__go {
	display: inline-flex; align-items: center; gap: 12px; padding: .85em 1.5em; border-radius: 999px; font-weight: 600; text-decoration: none;
	background: var(--accent); color: var(--ink); transition: background-color .35s var(--ease), color .35s var(--ease);
}
.hp-chap__go span { transition: transform .4s var(--ease); }
.hp-chap__go:hover span { transform: translateX(6px); }
.hp-chap:nth-child(5n+2) .hp-chap__go, .hp-chap:nth-child(5n+5) .hp-chap__go, .hp-chap:nth-child(5n+3) .hp-chap__go { background: var(--ink); color: var(--accent); }
.hp-chap__go:hover { background: #fff; color: var(--ink); }
.hp-chap__media { display: block; text-decoration: none; }
.hp-chap__visual {
	position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; padding: 8%;
	background: var(--ink-2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .6s var(--ease);
}
.hp-chap__media:hover .hp-chap__visual { transform: rotate(-1.5deg) scale(1.02); }
.hp-chap:nth-child(5n+4) .hp-chap__visual { background: var(--ink); }
.hp-chap__visual .v-bub { font-size: clamp(.8rem, 1.1vw, 1.05rem); }
.hp-chap__visual.v-design { background: var(--paper); }
.hp-chap__visual .v-lay { height: 44px; }
/* Anteprima "Chi siamo": i numeri. */
.v-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.v-stats span { display: flex; flex-direction: column; justify-content: flex-end; border-radius: 14px; background: var(--ink-3); padding: 14px 16px; color: var(--muted); font-size: .85rem; }
.v-stats b { font-family: var(--display); font-weight: 400; color: var(--accent); font-size: clamp(1.4rem, 2.6vw, 2.6rem); line-height: 1.3; }
/* Anteprima "Domande": fumetti di domande. */
.v-faq { display: flex !important; flex-direction: column; justify-content: center; gap: 12px; background: var(--ink) !important; }
.v-faq span { align-self: flex-start; background: var(--paper); color: var(--ink); border-radius: 14px 14px 14px 4px; padding: .7em 1em; font-weight: 600; font-size: clamp(.85rem, 1.15vw, 1.05rem); }
.v-faq span:nth-child(2) { align-self: center; background: var(--accent); }
.v-faq span:nth-child(3) { align-self: flex-end; border-radius: 14px 14px 4px 14px; }
@media (max-width: 900px) {
	.hp-chap { position: relative; top: auto; grid-template-columns: 1fr; min-height: 0; margin-bottom: 18px; }
	.hp-chap__media { order: -1; }
}

/* Anteprime dei capitoli: lo stile della singola illustrazione prevale su quello generico del riquadro. */
.hp-chap__visual.v-listen { display: flex; flex-direction: column; justify-content: center; gap: 8%; }
.hp-chap__visual.v-design { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; gap: 8%; background: var(--paper); color: var(--ink); }
.hp-chap__visual.v-after { display: flex; flex-direction: column; justify-content: space-between; background: var(--accent); color: var(--ink); }
.hp-chap__visual .v-checks i { font-size: clamp(.7rem, .9vw, .9rem); }
.hp-chap__visual .v-bub { max-width: 82%; }

/* ---------- Footer: motivo nascosto nella scritta "teknet." ----------
 * Copia della scritta sovrapposta, riempita con linee irregolari (background-clip: text)
 * e visibile solo dentro un cerchio che segue il cursore (mask). Posizione e raggio da ui.js. */
.hp-footer__big .hp-footer__reveal {
	--r: 0px; --mx: 50%; --my: 50%;
	position: absolute; inset: 0; color: transparent;
	background-image: url(../img/footer-lines.svg); background-size: 720px 432px;
	-webkit-background-clip: text; background-clip: text;
	-webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 55%, transparent 100%);
	mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 55%, transparent 100%);
	visibility: hidden;
}
/* Il motivo si muove solo mentre il cursore lo scopre: un'animazione sempre attiva costringerebbe
 * Safari e Firefox a ridisegnare la scritta a ogni frame, anche col footer nascosto. */
.hp-footer__big.is-revealing .hp-footer__reveal { visibility: visible; animation: tk-lines 40s linear infinite; }
.hp-footer__big .hp-footer__reveal span { color: transparent; }
@keyframes tk-lines { to { background-position: 720px 432px; } }
@media (prefers-reduced-motion: reduce) { .hp-footer__big .hp-footer__reveal { animation: none; } }

/* Velo scuro delle card dei capitoli impilate (al posto di filter: brightness, che lampeggiava). */
/* Variabile registrata e non ereditata: cambiarla a ogni frame non fa ricalcolare tutto il contenuto della card. */
@property --dim { syntax: '<number>'; inherits: false; initial-value: 0; }
.hp-chap { --dim: 0; }
.hp-chap::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #0B0B0C; opacity: var(--dim); pointer-events: none; }

/* ---------- Ruota in apertura: card appese all'arco (versione 2) ----------
 * L'elemento parte dalla molletta (sull'arco): sotto ci sono lo spago e la card.
 * home.js lo posiziona con l'origine in alto al centro e lo fa oscillare. */
.hp-wheel__item {
	--len: 26px; width: clamp(240px, 20vw, 370px); padding-top: calc(var(--len) + 10px);
	transform-origin: 50% 12px; will-change: transform, opacity;
}
.hp-wheel__item::before { content: ""; position: absolute; left: 50%; top: 12px; height: calc(var(--len) - 2px); border-left: 1.5px solid var(--ink); }
.hp-wheel__peg {
	position: absolute; left: 50%; top: 0; width: 12px; height: 26px; translate: -50% 0; border-radius: 4px;
	background: var(--ink); box-shadow: inset 0 9px 0 0 var(--accent), 0 0 0 1.5px var(--paper); z-index: 1;
}
.hp-wheel__card {
	display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 20px; background: #fff; color: var(--ink);
	text-decoration: none; box-shadow: 0 1px 0 rgba(11, 11, 12, .06), 0 30px 50px -28px rgba(11, 11, 12, .55);
	transition: box-shadow .4s var(--ease);
}
.hp-wheel__item.is-active .hp-wheel__card:hover { box-shadow: 0 0 0 2px var(--accent), 0 30px 50px -24px rgba(11, 11, 12, .6); }
.hp-wheel__top { display: flex; align-items: center; gap: 10px; padding: 2px 4px 0; }
.hp-wheel__top .hp-wheel__n { font-family: var(--mono); font-size: .7rem; background: var(--ink); color: var(--accent); border-radius: 4px; padding: 2px 6px; grid-row: auto; }
.hp-wheel__step { font-weight: 700; font-size: .95rem; }
.hp-wheel__arrow { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: .85rem; transition: background-color .3s, transform .4s var(--ease); }
.hp-wheel__card:hover .hp-wheel__arrow { background: var(--accent); transform: rotate(45deg); }
.hp-wheel__body { display: flex; flex-direction: column; gap: 4px; padding: 2px 4px 4px; }
.hp-wheel__body b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(.95rem, 1.15vw, 1.2rem); line-height: 1.3; }
.hp-wheel__body em { font-style: normal; font-size: .82rem; color: var(--muted-d); line-height: 1.4; }
.hp-wheel__body em span { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--accent); border-radius: 3px; padding: 1px 5px; margin-right: 4px; }

/* Riquadro illustrazione (sostituisce lo stile precedente). */
.hp-wheel__card .hp-wheel__visual {
	position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; aspect-ratio: 16 / 9.5;
	border-radius: 14px; padding: 6%; background: var(--ink); color: #fff; box-shadow: none; overflow: hidden;
}
.hp-wheel__card .hp-wheel__visual { font-size: clamp(.62rem, .78vw, .82rem); }

/* Ascolto: chat con avatar. */
.w-chat { display: flex; align-items: flex-end; gap: 8px; }
.w-chat--out { justify-content: flex-end; }
.w-av { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); color: var(--muted); font-weight: 700; font-size: .85em; }
.w-av--t { background: var(--accent); color: var(--ink); font-family: var(--display); }
.w-listen .v-bub { font-size: 1em; max-width: 75%; }

/* Strategia: mappa del sito. */
.w-map { background: var(--ink-2) !important; }
.w-tree { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.w-node { border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; padding: .45em .9em; color: #d9d9dd; background: var(--ink); }
.w-node--root { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 700; }
.w-branch { display: flex; gap: 10px; position: relative; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .35); }
.w-leaves { display: flex; gap: 8px; }
.w-leaves i { width: 2.4em; height: 1.1em; border-radius: 4px; background: rgba(255, 255, 255, .12); }

/* Design: tipografia, palette con codici, pulsante. */
.w-design { background: var(--paper) !important; color: var(--ink) !important; display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; align-items: center; column-gap: 14px; }
.w-type { display: flex; align-items: center; gap: 10px; }
.w-type b { font-family: var(--display); font-weight: 400; font-size: 3.2em; line-height: 1.3; }
.w-type em { font-style: normal; font-size: .9em; color: var(--muted-d); line-height: 1.35; }
.w-swatches { display: flex; flex-direction: column; gap: 6px; }
.w-swatches i { display: flex; align-items: center; gap: 8px; font-style: normal; font-family: var(--mono); font-size: .85em; }
.w-swatches i::before { content: ""; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(11, 11, 12, .2); }
.w-btn { grid-column: 1 / -1; justify-self: start; background: var(--ink); color: var(--accent); border-radius: 999px; padding: .45em 1.1em; font-weight: 700; }

/* Sviluppo: editor con schede e numeri di riga (blocco, non flex: gli spazi restano). */
.w-code { background: #0f0f11 !important; justify-content: flex-start !important; padding-top: 0 !important; }
.w-tab { align-self: flex-start; margin-left: -6%; padding: .55em 1.1em; background: var(--ink-3); color: #d9d9dd; font-family: var(--mono); border-radius: 0 0 8px 0; }
.w-lines { display: block; font-family: var(--mono); font-size: 1.05em; line-height: 1.85; color: #d6d6da; white-space: nowrap; }
.w-lines > span { display: block; }
.w-lines i { display: inline-block; width: 1.8em; font-style: normal; color: #55555a; }
.w-lines b { color: #ff7ab8; font-weight: 400; }
.w-lines u { color: var(--accent); text-decoration: none; }
.w-lines em { color: #8fd3ff; font-style: normal; }
.w-lines s { display: inline-block; width: .55em; height: 1.1em; background: var(--accent); vertical-align: -2px; margin-left: 4px; animation: v-blink 1s steps(1) infinite; text-decoration: none; }

/* Lancio: stato online e indicatori circolari. */
.w-launch { justify-content: space-between !important; }
.w-online { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--ink-3); border-radius: 999px; padding: .4em .9em; font-weight: 700; }
.w-online i { width: .6em; height: .6em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200, 255, 46, .7); animation: hp-pulse 2.4s infinite; }
.w-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w-gauges > span { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: .85em; }
.w-gauges b {
	width: 3.8em; height: 3.8em; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 400; color: var(--accent); font-size: 1.05em;
	background: radial-gradient(closest-side, var(--ink) 78%, transparent 80%), conic-gradient(var(--accent) calc(var(--v) * 1%), rgba(255, 255, 255, .12) 0);
}

/* Dopo: crescita e controlli. */
.w-after { background: var(--accent) !important; color: var(--ink) !important; justify-content: space-between !important; }
.w-bars { display: flex; align-items: flex-end; gap: 7%; height: 60%; }
.w-bars i { flex: 1; height: var(--h); background: var(--ink); border-radius: 4px 4px 0 0; }
.w-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.w-checks i { font-style: normal; font-weight: 700; border: 1px solid rgba(11, 11, 12, .35); border-radius: 999px; padding: .3em .8em; }

@media (max-width: 900px) {
	.hp-wheel__item { width: min(78vw, 340px); }
}

/* Card della ruota un po' più basse: illustrazione più schiacciata. */
.hp-wheel__card .hp-wheel__visual { aspect-ratio: 16 / 8.2; }
.hp-wheel__card { gap: 8px; }

@media (max-width: 1100px) { .hp-wheel { min-height: 620px; } }
@media (max-width: 560px) { .hp-wheel { min-height: 600px; } .hp-wheel__item { width: min(74vw, 300px); } }

/* ---------- Card "Animazioni": curva di accelerazione + timeline (solo CSS) ----------
 * Il pallino somma due movimenti: orizzontale lineare e verticale con curva "expo.out",
 * quindi percorre la stessa forma della linea, che si disegna in sincrono. Ciclo di 2,6s. */
.w-motion { background: var(--ink-2) !important; justify-content: space-between !important; gap: 8px !important; }
.w-curve { position: relative; display: block; height: 58%; container-type: size; }
.w-curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.w-curve__grid { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; }
.w-curve__line {
	fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke;
	stroke-dasharray: 100; stroke-dashoffset: 100; animation: w-draw 2.6s cubic-bezier(.16, 1, .3, 1) infinite;
}
.w-curve__dot {
	position: absolute; left: 2%; top: 95.5%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
	background: #fff; box-shadow: 0 0 0 4px rgba(200, 255, 46, .35);
	animation: w-dot-x 2.6s linear infinite, w-dot-y 2.6s cubic-bezier(.16, 1, .3, 1) infinite;
}
.w-curve em { position: absolute; right: 0; bottom: 0; font-family: var(--mono); font-style: normal; font-size: .9em; color: var(--muted); }
.w-timeline { position: relative; display: flex; flex-direction: column; gap: 6px; container-type: inline-size; }
.w-track { position: relative; display: block; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .08); }
.w-track b { position: absolute; left: var(--x); top: 50%; width: 9px; height: 9px; translate: -50% -50%; rotate: 45deg; background: var(--accent); border-radius: 2px; }
.w-playhead { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; background: #fff; border-radius: 2px; animation: w-play 2.6s linear infinite; }
@keyframes w-draw { 0% { stroke-dashoffset: 100; } 80%, 100% { stroke-dashoffset: 0; } }
/* Movimenti con translate/transform (unità del contenitore), non left/top: niente ricalcolo della pagina a ogni frame. */
@keyframes w-dot-x { 0% { translate: 0 0; } 80%, 100% { translate: 96cqw 0; } }
@keyframes w-dot-y { 0% { transform: translateY(0); } 80%, 100% { transform: translateY(-91cqh); } }
@keyframes w-play { from { translate: 0 0; } to { translate: 100cqw 0; } }
@media (prefers-reduced-motion: reduce) {
	.w-curve__line { animation: none; stroke-dashoffset: 0; }
	.w-curve__dot { animation: none; translate: 96cqw 0; transform: translateY(-91cqh); }
	.w-playhead { animation: none; translate: 60cqw 0; }
}

/* Nomi degli strumenti: mai spezzare una parola a metà ("WOOCOMMER/CE");
 * la dimensione segue la larghezza della card (unità cqi), così le parole lunghe ci stanno. */
.hp-tool__card { container-type: inline-size; }
.hp-tool__name { overflow-wrap: normal; word-break: keep-all; hyphens: none; font-size: min(1.3rem, 9.4cqi); }

/* ---------- Titoli ridimensionati (circa -25%) ----------
 * Regole in fondo al file: prevalgono sulle dimensioni definite sopra, sezione per sezione. */
.hp-hero__title { font-size: clamp(2.1rem, 4vw, 5rem); }
.hp-phero__title { font-size: clamp(2rem, 4.2vw, 5.2rem); }
.hp-h2 { font-size: clamp(1.8rem, 4vw, 4.6rem); }
.hp-path__intro .hp-h2 { font-size: clamp(1.7rem, 3.3vw, 4rem); }
.hp-orbit__copy .hp-h2 { font-size: clamp(1.5rem, min(3.4vw, 5vh), 3.6rem); }
.hp-chap__title { font-size: clamp(1.7rem, 3.4vw, 3.8rem); }
.hp-cta__title { font-size: clamp(2.2rem, 6vw, 7.5rem); }
.hp-next__title, .hp-next__go { font-size: clamp(1.7rem, 4.4vw, 5.2rem); }
@media (min-width: 901px) {
	.hp-build__copy .hp-h2 { font-size: clamp(1.7rem, min(3vw, 5.2vh), 3.6rem); }
}

/* Parallasse (home.js > parallax): spostamento verticale separato dalle altre trasformazioni. */
.tk-px { will-change: translate; }

/* ---------- Cantiere: editor con schede e numeri di riga ---------- */
.hp-layer--code { padding: 0 !important; display: flex; flex-direction: column; overflow: hidden; }
.c-tabs { display: flex; flex: none; background: #151517; font-family: var(--mono); font-size: clamp(.55rem, .7vw, .78rem); }
.c-tabs b, .c-tabs i { padding: .7em 1.2em; font-weight: 400; font-style: normal; color: #6b6b72; border-right: 1px solid rgba(255, 255, 255, .06); }
.c-tabs b { color: #e6e6ea; background: #0f0f11; box-shadow: inset 0 2px 0 var(--accent); }
.hp-layer--code pre { padding: 4% 5% 4% 0; overflow: hidden; font-size: clamp(.5rem, .66vw, .76rem) !important; line-height: 1.75 !important; white-space: pre !important; counter-reset: ln; }
.hp-layer--code .c-l { display: block; }
.hp-layer--code .c-l::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 3.2em; padding-right: 1.2em; text-align: right; color: #45454b; }

/* ---------- Cantiere: stato "Online" senza sovrapposizioni ----------
 * Il badge prende il posto della barra di navigazione e i punteggi quello delle tre card,
 * che sfumano via quando compare il layer (home.js). */
.hp-layer--live { padding: 7%; }
.hp-layer--live .l-scores { height: 22%; align-items: stretch; }
.hp-layer--live .l-scores li { display: flex; flex-direction: column; justify-content: center; }
.hp-layer--live .l-scores b { font-size: clamp(1rem, 1.8vw, 1.9rem); line-height: 1.3; }
.hp-layer--code pre { font-size: clamp(.55rem, .68vw, .78rem) !important; }

/* Righe informative (non sono link): nessun effetto al passaggio del mouse. */
.hp-rows li { grid-template-columns: 80px 1.2fr 1fr; cursor: default; }
.hp-rows li::before { display: none; }
.hp-rows li:hover > * { color: inherit; }
.hp-rows li:hover h3 { padding-left: 0; }
.hp-rows li:hover .hp-rows__n, .hp-rows li:hover p { color: var(--mut); }
@media (max-width: 900px) { .hp-rows li { grid-template-columns: 48px 1fr; } }

/* Ruota in apertura: sullo sfondo il dito scorre la pagina; sulle card le trascina. */
.hp-wheel { touch-action: auto; cursor: default; }
.hp-wheel__card { touch-action: none; cursor: grab; }
.hp-wheel__card:active { cursor: grabbing; }

/* ---------- Cantiere su telefono: fasi toccabili e link sotto la grafica ---------- */
@media (max-width: 900px) {
	/* I figli del testo diventano elementi della griglia: il link può andare dopo la grafica. */
	.hp-build__copy { display: contents; }
	.hp-build__pin { gap: 0; }
	.hp-build__screen { margin-top: 28px; }
	.hp-build .hp-proof { order: 10; margin-top: 24px; justify-self: start; }
	.hp-build.is-tabs .hp-build__stages li { cursor: pointer; transition: opacity .3s, padding .4s var(--ease); }
	.hp-build.is-tabs .hp-build__stages li.is-on { padding-left: 10px; box-shadow: inset 3px 0 0 var(--accent); }
	.hp-build.is-tabs .hp-build__stages::before {
		content: "Tocca una fase per vederla"; display: block; padding: 10px 0; font-family: var(--mono); font-size: .7rem;
		letter-spacing: .12em; text-transform: uppercase; color: var(--mut);
	}
	/* Livelli della grafica in base alla fase scelta. */
	.hp-build.is-tabs .hp-layer { transition: opacity .35s; }
	.hp-build.is-tabs .hp-layer--design, .hp-build.is-tabs .hp-layer--code { clip-path: none !important; opacity: 0; }
	.hp-build.is-tabs .hp-layer--live { opacity: 0 !important; visibility: visible !important; }
	.hp-build[data-stage="1"] .hp-layer--design, .hp-build[data-stage="3"] .hp-layer--design { opacity: 1; }
	.hp-build[data-stage="2"] .hp-layer--code { opacity: 1; }
	.hp-build[data-stage="3"] .hp-layer--live { opacity: 1 !important; }
	.hp-build[data-stage="3"] .hp-layer--design .d-nav, .hp-build[data-stage="3"] .hp-layer--design .d-grid { opacity: 0; }
}

/* Contorno di focus solo da tastiera, non al tocco. */
.hp-build.is-tabs .hp-build__stages li:focus:not(:focus-visible) { outline: none; }
.hp-build.is-tabs .hp-build__stages li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Card degli strumenti nei colori dei marchi (come un mazzo di carte colorate) ----------
 * Colori passati come variabili da ogni card; prevalgono sui colori alternati precedenti. */
.hp-tool .hp-tool__card.is-brand {
	background: var(--b-bg); color: var(--b-fg); justify-content: center; gap: 12px; text-align: left;
	box-shadow: 0 26px 40px -24px rgba(11, 11, 12, .6), inset 0 0 0 1px rgba(11, 11, 12, .06);
}
.hp-tool__card.is-brand .hp-tool__name {
	order: 0; margin: 0; font-size: min(2rem, 13.5cqi); line-height: 1.1; letter-spacing: -.01em; text-transform: none;
	color: var(--b-name); background: var(--b-name); -webkit-background-clip: text; background-clip: text;
}
/* Nomi in tinta unita: il colore resta pieno; con i gradienti si vede il riempimento. */
.hp-tool__card.is-brand .hp-tool__name { -webkit-text-fill-color: transparent; }
.hp-tool__card.is-brand .hp-tool__cat {
	order: 1; align-self: flex-start; opacity: 1; padding: .45em 1em; border-radius: 999px; letter-spacing: .08em;
	background: var(--b-pill); color: var(--b-pill-fg); rotate: -3deg;
}
.hp-tool__card.is-brand p { order: 2; color: var(--b-fg); opacity: .9; }
.hp-line.is-dark .hp-tool .hp-tool__card.is-brand { box-shadow: 0 26px 40px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .1); }

/* Loghi monocromatici nel colore d'accento della card. */
.hp-tool__logo { order: -1; display: flex; gap: 10px; margin-bottom: 6px; color: var(--b-logo); }
.hp-tool__logo svg { width: min(2.6rem, 18cqi); height: min(2.6rem, 18cqi); fill: currentColor; }
.hp-footer__tm { flex-basis: 100%; order: 5; font-size: .75rem; opacity: .6; }

/* Card del marchio: colori sempre del marchio, anche nella versione scura della sezione. */
.hp-line .hp-tool .hp-tool__card.is-brand { background: var(--b-bg) !important; color: var(--b-fg) !important; }
/* Nomi: dimensione legata alla larghezza della card, così anche "WooCommerce" e "JavaScript" ci stanno. */
.hp-tool__card.is-brand .hp-tool__name { font-size: min(1.7rem, 9.6cqi); }
/* Loghi più presenti. */
.hp-tool__logo svg { width: min(3.2rem, 22cqi); height: min(3.2rem, 22cqi); }

/* Nomi colorati: il riempimento (background-clip: text) arriva solo al bordo della riga e Boldonse sborda.
 * Si allarga l'area colorata con padding e la si compensa con margini negativi: il testo non si sposta. */
.hp-tool__card.is-brand .hp-tool__name { line-height: 1.25; padding: .28em .1em .18em 0; margin: -.28em -.1em -.18em 0; }

/* ---------- Card "Cosa cambia lavorando con noi" (versione 2) ---------- */
.hp-orbit .hp-card {
	overflow: hidden; justify-content: flex-start; gap: 0; isolation: isolate;
	--c-bg: var(--ink); --c-fg: #fff; --c-mut: rgba(255, 255, 255, .62); --c-icon-bg: var(--accent); --c-icon-fg: var(--ink); --c-line: rgba(255, 255, 255, .16); --c-big: rgba(255, 255, 255, .06);
	background: var(--c-bg); color: var(--c-fg);
}
.hp-orbit .hp-card--v1 { --c-bg: var(--accent); --c-fg: var(--ink); --c-mut: rgba(11, 11, 12, .7); --c-icon-bg: var(--ink); --c-icon-fg: var(--accent); --c-line: rgba(11, 11, 12, .2); --c-big: rgba(11, 11, 12, .08); }
.hp-orbit .hp-card--v2 { --c-bg: #fff; --c-fg: var(--ink); --c-mut: var(--muted-d); --c-icon-bg: var(--ink); --c-icon-fg: var(--accent); --c-line: rgba(11, 11, 12, .12); --c-big: rgba(11, 11, 12, .05); }
.hp-orbit .hp-card--v3 { --c-bg: var(--ink-3); --c-fg: #fff; --c-mut: rgba(255, 255, 255, .62); --c-icon-bg: #fff; --c-icon-fg: var(--ink); --c-line: rgba(255, 255, 255, .14); --c-big: rgba(200, 255, 46, .1); }
/* Trama leggera a puntini sulle card scure. */
.hp-orbit .hp-card--v0, .hp-orbit .hp-card--v3 {
	background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 14px 14px;
}
.hp-card__big {
	position: absolute; right: -.06em; bottom: -.32em; z-index: -1; font-family: var(--display); font-size: 7rem; line-height: 1.3;
	color: var(--c-big); pointer-events: none;
}
.hp-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: auto; }
.hp-card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c-icon-bg); color: var(--c-icon-fg); rotate: -4deg; }
.hp-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-card__tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-mut); }
.hp-orbit .hp-card b { margin: 22px 0 10px; }
.hp-orbit .hp-card p { color: var(--c-mut); opacity: 1; }
.hp-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--c-line); }
.hp-card__foot .hp-card__mark { margin: 0; opacity: .7; }
.hp-card__foot .hp-card__mark i { color: inherit; }
.hp-orbit .hp-card--v0 .hp-card__mark i, .hp-orbit .hp-card--v3 .hp-card__mark i { color: var(--accent); }
.hp-card__foot .hp-card__n { font-family: var(--mono); font-size: .68rem; opacity: .6; }

/* Menu su telefono: a menu aperto nulla gli sta sopra (banner e pulsante cookie, "torna su", tratteggio);
 * tornano visibili alla chiusura. Voci compatte, così tutto sta in uno schermo (e se serve scorre). */
.hp-menu-open .cookieadmin_law_container, .hp-menu-open .cookieadmin_re_consent, .hp-menu-open .cookieadmin_cookie_modal,
.hp-menu-open .tk-totop, .hp-menu-open .tk-arrowbar { visibility: hidden !important; }
.hp-mnav { padding: 92px var(--pad) 28px; gap: 24px; overscroll-behavior: contain; }
.hp-mnav__links a { padding: 10px 0; font-size: clamp(1.1rem, min(5.4vw, 3.9svh), 2.2rem); }

/* ---------- Verde morbido sulle superfici grandi ----------
 * Il verde acido (#C8FF2E) resta su pulsanti, evidenziatore e piccoli dettagli.
 * Su sezioni e card intere si usa una versione chiara e meno satura, più riposante. */
:root { --accent-soft: #BBE82B; }
.hp-sec.is-accent { --bg: var(--accent-soft); }
.hp-chap:nth-child(5n+2), .hp-chap:nth-child(5n+5) { background: var(--accent-soft); }
.hp-orbit .hp-card--v1 { --c-bg: var(--accent-soft); }
.hp-qgrid li:nth-child(3n+2) { background: var(--accent-soft); }
.hp-chap__visual.v-after, .v-after { background: var(--accent-soft); }
.hp-wheel__card .w-after { background: var(--accent-soft) !important; }
.hp-tool:nth-child(4n+2) .hp-tool__card:not(.is-brand) { background: var(--accent-soft); }
/* Sul verde morbido i dettagli verdi pieni non si distinguerebbero: diventano neri. */
.hp-sec.is-accent .hp-pill--accent, .hp-chap:nth-child(5n+2) .hp-chap__go, .hp-chap:nth-child(5n+5) .hp-chap__go { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.hp-sec.is-accent ::selection { background: var(--ink); color: var(--accent); }

/* ---------- Footer: colonne pagine + contatti, riga legale ---------- */
.hp-footer__cols { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 28px 64px; max-width: var(--max); margin: 0 auto 28px; }
.hp-footer__cols .hp-footer__nav { margin: 0; align-content: start; }
.hp-footer__contact { display: flex; flex-direction: column; gap: 6px; font-style: normal; color: var(--muted); }
.hp-footer__contact .hp-mono { margin: 0 0 4px; }
.hp-footer__contact a { color: #fff; text-decoration: none; font-weight: 600; }
.hp-footer__contact a:hover { color: var(--accent); }
.hp-footer__legal a { color: #fff; }
@media (max-width: 700px) { .hp-footer__cols { grid-template-columns: 1fr; } }

/* ---------- Pagine legali: testo lungo, leggibile ---------- */
.hp-phero--legal { min-height: 0; grid-template-columns: 1fr; padding-bottom: clamp(32px, 4vw, 56px); }
.hp-phero--legal .hp-mono { margin: 18px 0 0; }
.hp-legal { padding-top: clamp(32px, 4vw, 56px); }
.hp-legal__body { max-width: 780px !important; margin: 0 !important; font-size: 1.05rem; line-height: 1.7; color: var(--ink); }
.hp-legal__body h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.3; margin: 2.4em 0 .6em; }
.hp-legal__body h3 { font-family: var(--wp--preset--font-family--sans); text-transform: none; font-weight: 700; font-size: 1.1rem; margin: 1.6em 0 .4em; line-height: 1.4; }
.hp-legal__body p, .hp-legal__body ul { margin: 0 0 1em; }
.hp-legal__body a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hp-legal__body .wp-block-table { margin: 1.2em 0 1.6em; overflow-x: auto; }
.hp-legal__body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hp-legal__body th, .hp-legal__body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(11, 11, 12, .12); }
.hp-legal__body th { font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); }

/* ---------- Pagina 404 ---------- */
.hp-404 { min-height: 80svh; padding-top: clamp(130px, 12vw, 200px); }
.hp-404__title { max-width: 14ch; }
.hp-404__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; margin: 48px 0 40px; border-top: 1px solid var(--line); }
.hp-404__links a { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-weight: 600; font-size: 1.1rem; transition: padding .4s var(--ease); }
.hp-404__links a span { font-family: var(--mono); font-size: .72rem; font-weight: 400; color: var(--mut); }
.hp-404__links a:hover { padding-left: 10px; }
/* Tabelle legali: solo linee orizzontali leggere (via i bordi predefiniti del blocco Tabella). */
.hp-legal__body .wp-block-table th, .hp-legal__body .wp-block-table td { border: 0; border-bottom: 1px solid rgba(11, 11, 12, .12); }
.hp-legal__body .wp-block-table thead { border-bottom: 1px solid rgba(11, 11, 12, .35); }

/* ---------- Blocchi nativi (Gruppo, Dettagli): stessa resa delle sezioni originali ----------
 * Il blocco Gruppo usa box-sizing: border-box; le sezioni del sito misurano l'altezza senza padding. */
main.hp .wp-block-group { box-sizing: content-box; }
main.hp .wp-block-group.hp-one { box-sizing: border-box; }
@media (min-width: 901px) { main.hp .wp-block-group.hp-build { box-sizing: border-box; } }
/* Il blocco Dettagli toglie il margine all'ultimo elemento: lo si rimette come nell'originale. */
main.hp .hp-faq details.wp-block-details > p { margin: 0 0 28px; }

/* Domande frequenti: contorno di focus solo da tastiera, discreto. */
.hp-faq summary:focus:not(:focus-visible) { outline: none; }
.hp-faq summary:focus-visible { outline: 1px dashed var(--accent); outline-offset: 6px; border-radius: 4px; }

/* Domande frequenti: durante la chiusura il "+" torna subito al suo posto. */
.hp-faq details.is-closing summary::after { transform: none; }

/* ---------- Menu: sottolineatura che scorre ---------- */
.hp-nav { position: relative; }
.hp-nav a { transition: color .3s, background-size .45s cubic-bezier(.22,1,.36,1), background-image .3s; }
.hp-nav.has-ind a[aria-current="page"] { background-size: 100% 0; }
/* Mentre il cursore è su un'altra voce, la pagina corrente resta segnata: più sottile e più scura. */
.hp-nav.has-ind.is-pointing a[aria-current="page"] { background-image: linear-gradient(#6f8f10, #6f8f10); background-size: 100% 2px; color: rgba(11, 11, 12, .78); }
.hp-nav__ind {
	position: absolute; left: 0; top: 0; height: 3px; width: 0; border-radius: 3px;
	background: var(--accent); pointer-events: none; opacity: 0;
	transition: transform .55s cubic-bezier(.22,1,.36,1), width .55s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1), opacity .3s;
}
.hp-nav__ind.is-on { opacity: 1; }
.hp-nav__ind.is-big { height: 6px; }
@media (prefers-reduced-motion: reduce) { .hp-nav__ind { transition: opacity .2s; } }

/* Ruota fuori schermo: si fermano anche le piccole animazioni dentro le card. */
.hp-wheel.is-paused *, .hp-wheel.is-paused *::before, .hp-wheel.is-paused *::after { animation-play-state: paused !important; }

/* Menu: le voci con il numero del capitolo non vanno mai a capo; sotto i 1480px le voci si avvicinano. */
.hp-nav a { white-space: nowrap; }
@media (max-width: 1480px) { .hp-nav { gap: 18px; } }
.hp-logo { flex-shrink: 0; }
.hp-logo__tag { white-space: nowrap; }
@media (max-width: 1400px) { .hp-nav { gap: 15px; } }

/* Animazioni continue che Safari non affida alla scheda grafica (ombra che pulsa, linea che si disegna):
 * ognuna sul suo livello, così Safari ridisegna solo quei pochi pixel e non l'intera card o l'apertura. */
.hp-dot, .w-online i, .w-curve svg { will-change: transform; }

/* Due sezioni dello stesso colore una dopo l'altra: la seconda ha un margine superiore ridotto,
 * altrimenti i due margini pieni si sommano in un vuoto enorme. */
/* Le classi sono messe una volta sola al caricamento (main.js, joinSections): un selettore "sezione successiva"
 * cambiava risultato quando GSAP avvolge le sezioni bloccate nel suo contenitore, e la pagina ricalcolava all'infinito. */
.hp-sec.is-join-top { padding-top: clamp(32px, 4vw, 72px); }
.hp-sec.is-join-bottom { padding-bottom: clamp(32px, 4vw, 72px); }

/* Mentre la pagina scorre, niente effetti al passaggio del mouse sul contenuto: con il puntatore fermo
 * le righe che gli scorrono sotto si accendevano una dopo l'altra (bande nere che lampeggiano). */
/* Righe del portfolio: mentre la pagina scorre non si accendono al passaggio del mouse (sopra, html:not(.lenis-scrolling)).
 * Tutto resta sempre cliccabile: niente pointer-events disattivati durante lo scroll. */

/* Versione a scorrimento (telefono): le impostazioni della ruota calcolata per Safari non devono nascondere card. */
.hp-orbit.is-flat .hp-card { visibility: visible !important; z-index: auto !important; }

/* ---------- Logo in SVG (parts/header.html, generato da make_logo.py con i font del sito) ----------
 * Ogni lettera è un tracciato a sé; l'evidenziazione di ".it" è un rettangolo alto quanto le lettere
 * (prima copriva la riga sotto). Animazioni solo con movimento e scala: leggere anche su Safari. */
.hp-logo__svg { display: block; width: 8.19rem; height: auto; overflow: visible; }
.hp-logo__svg .lg-name { fill: var(--ink); }
.hp-logo__svg .lg-hl { fill: var(--accent); transform-box: fill-box; transform-origin: 0 50%; }
.hp-logo__svg .lg-tag { fill: var(--muted-d); }
.hp-logo__svg .lg-l { transform-box: fill-box; transform-origin: 50% 100%; }
@media (max-width: 620px) { .hp-logo__svg { width: 7.12rem; } }
@media (prefers-reduced-motion: no-preference) {
	/* Entrata: lettere che salgono una dopo l'altra, poi l'evidenziazione si disegna, poi la riga sotto. */
	.hp-logo__svg .lg-l { animation: lg-up .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(.1s + var(--i) * .05s); }
	.hp-logo__svg .lg-hl { animation: lg-wipe .6s cubic-bezier(.65, 0, .35, 1) .55s both; }
	.hp-logo__svg .lg-tag { animation: lg-fade .6s ease .75s both; }
	/* Passaggio del mouse: l'evidenziazione si ridisegna e ".it" fa un saltello. */
	/* Finita l'entrata (classe is-in da ui.js) l'animazione d'ingresso si toglie: all'uscita del mouse non riparte. */
	.hp-logo.is-in .lg-l, .hp-logo.is-in .lg-hl, .hp-logo.is-in .lg-tag { animation: none; }
	.hp-logo.is-in:hover .lg-hl { animation: lg-wipe .5s cubic-bezier(.65, 0, .35, 1) both; }
	.hp-logo.is-in:hover .lg-it { animation: lg-hop .45s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc((var(--i) - 6) * .05s); }
}
@keyframes lg-up { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lg-fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes lg-hop { 40% { transform: translateY(-18%); } to { transform: none; } }

/* ---------- Servizi: titolo al centro, servizi come pulsanti che fluttuano intorno ----------
 * Movimento solo con translate (leggero anche su Safari); al passaggio del mouse il pulsante si ferma e si accende.
 * Telefono e "riduci animazioni": gruppo ordinato di pulsanti sotto il titolo. */
.hp-svcfloat { overflow: hidden; }
.hp-svcfloat__stage { position: relative; min-height: clamp(620px, 86vh, 920px); display: grid; place-items: center; }
.hp-svcfloat__center { position: relative; z-index: 2; text-align: center; max-width: 32ch; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.hp-svcfloat__center .hp-h2 { margin: 0; }
.hp-svcfloat__center .hp-sec__lead { margin: 22px 0 0; max-width: 40ch; }
.hp-svcfloat__list { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; }
.hp-svcfloat__list li { position: absolute; left: var(--x); top: var(--y); width: max-content; max-width: min(300px, 30vw); transform: translate(-50%, -50%); animation: svc-float var(--t, 6s) ease-in-out var(--d, 0s) infinite alternate; }
.hp-svcfloat__list li:hover, .hp-svcfloat__list li:focus-within { animation-play-state: paused; z-index: 4; }
@keyframes svc-float { from { translate: 0 0; } to { translate: var(--fx, 12px) var(--fy, -14px); } }
.hp-svcfloat__pill {
	display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 24px 15px; border-radius: 22px;
	background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
	transition: transform .45s var(--ease), background .3s, box-shadow .3s;
}
.hp-svcfloat__pill b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(.9rem, 1.1vw, 1.2rem); line-height: 1.3; }
.hp-svcfloat__pill b::after { content: " →"; font-family: var(--wp--preset--font-family--sans); }
.hp-svcfloat__pill span { font-size: .8rem; line-height: 1.4; color: var(--muted-d); }
.hp-svcfloat__pill:hover, .hp-svcfloat__pill:focus-visible { background: var(--accent); transform: scale(1.06) rotate(-1.5deg); box-shadow: 0 24px 50px -16px rgba(200, 255, 46, .35); }
@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
	.hp-svcfloat__stage { min-height: 0; display: block; }
	.hp-svcfloat__center { margin: 0 auto; }
	.hp-svcfloat__list { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
	.hp-svcfloat__list li { position: static; width: auto; max-width: none; transform: none; animation: none; }
	.hp-svcfloat__pill { max-width: none; }
}

/* ---------- Prezzi in card ---------- */
.hp-plans__group + .hp-plans__group { margin-top: clamp(40px, 5vw, 72px); }
.hp-plans__label { margin: 0 0 18px; color: var(--mut); }
.hp-plans__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hp-plan {
	display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 2.4vw, 36px); border-radius: 26px;
	background: #fff; color: var(--ink); border: 1px solid rgba(11, 11, 12, .08); box-shadow: 0 24px 50px -36px rgba(11, 11, 12, .35);
}
.hp-sec.is-dark .hp-plan { background: var(--ink-3); color: #fff; border-color: rgba(255, 255, 255, .08); }
.hp-plan.is-featured, .hp-sec.is-dark .hp-plan.is-featured { background: var(--accent-soft, var(--accent)); color: var(--ink); border-color: transparent; }
.hp-plan__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.05rem, 1.5vw, 1.5rem); line-height: 1.3; margin: 0; }
.hp-plan__price { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.6rem); line-height: 1.25; margin: 0 0 18px; }
.hp-plan__note { margin: 16px 0 2px; font-size: .85rem; opacity: .7; }
.hp-plan__list { list-style: none; padding: 16px 0 0; margin: 0 0 24px; border-top: 1px dashed currentColor; display: grid; gap: 8px; font-size: .92rem; }
.hp-plan__list li::before { content: "✓"; margin-right: 8px; font-weight: 700; color: var(--accent); }
.hp-plan.is-featured .hp-plan__list li::before, .hp-plan:not(.is-featured) .hp-plan__list li::before { color: inherit; }
.hp-plan__cta { margin-top: auto; align-self: flex-start; }
.hp-todo { background: #ffe94d; color: #0b0b0c; padding: 0 .3em; border-radius: 3px; font-family: var(--mono); font-size: .75em; letter-spacing: .04em; }

/* Footer: riga dei dati societari con etichetta piccola sopra. */
.hp-footer__label { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
/* Righe del portfolio: numero disegnato dal CSS (data-n), fuori dal testo del link. Prima colonna della griglia. */
.hp-works__list a[data-n]::after { content: attr(data-n); order: -1; position: relative; font-family: var(--mono); font-size: .75rem; transition: color .35s var(--ease); }
html:not(.lenis-scrolling) .hp-works__list a[data-n]:hover::after, .hp-works__list a[data-n]:focus-visible::after { color: var(--accent); }

/* ---------- Pagine di servizio (documento SEO): box "In breve", tabelle, casi ---------- */
.hp-brief { max-width: var(--max); margin: 0 auto; }
.hp-brief__box {
	border-radius: 26px; padding: clamp(24px, 3vw, 44px); background: var(--accent-soft, var(--accent)); color: var(--ink);
	font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.6;
}
.hp-brief__box p { margin: 0; max-width: 72ch; }
.hp-brief__box strong:first-child { font-family: var(--mono); font-size: .72em; letter-spacing: .14em; text-transform: uppercase; margin-right: .6em; }
.hp-brief__meta { margin: 16px 0 0; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; color: var(--mut); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.hp-brief__meta a { color: inherit; }
.hp-tablewrap { overflow-x: auto; margin-top: clamp(28px, 3vw, 48px); border-top: 1px solid var(--line); }
.hp-table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 620px; }
.hp-table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); padding: 16px 16px 12px 0; border-bottom: 1px solid var(--line); }
.hp-table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.hp-table td:first-child { font-weight: 600; }
.hp-tablenote { margin: 18px 0 0; color: var(--mut); font-size: .92rem; max-width: 80ch; }
.hp-bullets { list-style: none; padding: 0; margin: clamp(24px, 3vw, 40px) 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.hp-bullets li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line); position: relative; line-height: 1.55; max-width: 90ch; }
.hp-bullets li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.hp-sec:not(.is-dark) .hp-bullets li::before { color: var(--ink); }
.hp-cases { display: grid; gap: 20px; margin-top: clamp(28px, 3vw, 48px); }
.hp-case { border-radius: 24px; padding: clamp(22px, 2.6vw, 38px); background: #fff; color: var(--ink); border: 1px solid rgba(11, 11, 12, .08); }
.hp-sec.is-dark .hp-case { background: var(--ink-3); color: #fff; border-color: rgba(255, 255, 255, .08); }
.hp-case h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.05rem, 1.6vw, 1.5rem); line-height: 1.3; margin: 0 0 12px; }
.hp-case p { margin: 0; line-height: 1.65; max-width: 80ch; }
.hp-case__link { display: inline-block; margin-top: 14px; font-weight: 600; color: inherit; }
.hp-case--short { padding-block: 16px; }
.hp-case--short p { color: var(--mut); }
/* Dati da confermare prima della pubblicazione (legenda del documento: evidenziato in giallo). */
mark.hp-check { background: #ffe94d; color: #0b0b0c; padding: 0 .2em; border-radius: 3px; }

/* ---------- Sezione 3 del documento SEO ---------- */
/* Etichetta con le parole chiave in testa all'H1: fa parte del titolo, ma ha lo stile dell'occhiello. */
.hp-kick { display: block; font-family: var(--mono); font-weight: 400; font-size: .75rem; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin: 0 0 22px; max-width: none; }
.hp-phero__title .hp-kick { margin-bottom: 18px; }
.hp-start__go { margin: 28px 0 0; }
.hp-start__go a[hidden] { display: none; }
.hp-trust__note { max-width: 70ch; margin: -24px 0 clamp(40px, 5vw, 64px); color: var(--mut); font-size: .95rem; }
.hp-trust__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hp-footer__entity { max-width: 72ch; }
.hp-footer__company a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hp-brief-sec .hp-stats { margin-top: clamp(32px, 4vw, 56px); margin-bottom: 0; }

/* ---------- Tendina "Servizi" ---------- */
.hp-nav__drop { display: flex; align-items: center; }
.hp-nav__svc { display: inline-flex; align-items: center; gap: 5px; }
.hp-nav__chev { transition: transform .3s; }
.hp-nav__drop.is-open .hp-nav__chev { transform: rotate(180deg); }
.hp-nav__menu { position: absolute; top: 100%; right: -18px; padding-top: 22px; z-index: 30; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .35s cubic-bezier(.22,1,.36,1), visibility 0s .35s; }
.hp-nav__drop.is-open:not(.is-closed) .hp-nav__menu { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .35s cubic-bezier(.22,1,.36,1), visibility 0s; }
.hp-nav__panel { display: flex; flex-direction: column; min-width: 300px; padding: 10px; background: #F7F5F0; border: 1px solid rgba(11, 11, 12, .1); border-radius: 18px; box-shadow: 0 18px 50px rgba(11, 11, 12, .14); }
.hp-nav .hp-nav__panel a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ink); background: none; font-size: .95rem; }
.hp-nav .hp-nav__panel a:hover, .hp-nav .hp-nav__panel a:focus-visible { background: rgba(200, 255, 46, .55); }
.hp-nav .hp-nav__panel a[aria-current="page"] { background: rgba(200, 255, 46, .35); }
.hp-nav .hp-nav__panel .hp-nav__all { margin-top: 6px; border-top: 1px solid rgba(11, 11, 12, .1); border-radius: 0 0 10px 10px; padding-top: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(11, 11, 12, .62); }
/* Menu mobile: i servizi come piccole voci sotto "Servizi". */
.hp-mnav__sub { display: flex; flex-wrap: wrap; gap: 6px 8px; padding: 2px 0 12px 2.2em; border-bottom: 1px solid rgba(11, 11, 12, .14); }
.hp-mnav .hp-mnav__links .hp-mnav__sub a { padding: 6px 12px; border: 1px solid rgba(11, 11, 12, .16); border-radius: 999px; font-size: .9rem; line-height: 1.2; font-family: var(--wp--preset--font-family--sans); gap: 0; text-transform: none; display: inline-flex; }
.hp-mnav .hp-mnav__links .hp-mnav__sub a[aria-current="page"] { background: var(--accent); border-color: var(--accent); padding-left: 12px; }

/* FAQ su sfondo chiaro: al passaggio il verde da solo non si legge, quindi dietro la domanda compare una fascia nera sfumata. */
.hp-faq:not(.is-dark) summary {
	margin-inline: -18px; padding-inline: 18px; border-radius: 14px;
	background: linear-gradient(90deg, #0B0B0C 0%, #0B0B0C 55%, rgba(11, 11, 12, .78) 100%) no-repeat 0 0 / 0% 100%;
	transition: color .3s, background-size .45s cubic-bezier(.22, 1, .36, 1);
}
.hp-faq:not(.is-dark) summary::after { color: var(--ink); transition: transform .4s var(--ease), color .3s; }
html:not(.lenis-scrolling) .hp-faq:not(.is-dark) summary:hover { color: var(--accent); background-size: 100% 100%; }
html:not(.lenis-scrolling) .hp-faq:not(.is-dark) summary:hover::after { color: var(--accent); }
@media (hover: none) { .hp-faq:not(.is-dark) summary:hover { color: inherit; background-size: 0% 100%; } }

/* ---------- Liste a righe: impaginazioni alternative (meno "titolo + righe sotto") ---------- */
.hp-rows[class*="hp-rows--"] { border-top: 0; }
.hp-rows[class*="hp-rows--"] li { display: block; padding: 0; border-bottom: 0; }
.hp-rows[class*="hp-rows--"] li::before { display: none; }
.hp-rows[class*="hp-rows--"] .hp-rows__n { padding-left: 0; }
.hp-rows[class*="hp-rows--"] p { grid-column: auto; }

/* Percorso a tappe: una linea unisce i cerchi; scorrendo la linea avanza e le tappe compaiono una dopo l'altra (home.js). */
.hp-rows.hp-rows--path { --p: 1; position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.hp-rows.hp-rows--path::before, .hp-rows.hp-rows--path::after { content: ""; position: absolute; left: 28px; right: 28px; top: 26px; height: 2px; background: var(--line); }
.hp-rows.hp-rows--path::after { background: var(--accent); transform-origin: left center; transform: scaleX(var(--p)); }
.hp-rows.hp-rows--path li { position: relative; z-index: 1; margin-top: 28px; padding: 0 clamp(18px, 1.6vw, 26px) clamp(22px, 2vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.hp-rows.hp-rows--path .hp-rows__n { display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--fg); font-size: .85rem; }
.hp-rows.hp-rows--path h3 { font-size: clamp(1.05rem, 1.45vw, 1.45rem); margin-bottom: 10px; }
.hp-rows.hp-rows--path p { font-size: .98rem; }
@media (max-width: 900px) {
	.hp-rows.hp-rows--path { grid-template-columns: 1fr; gap: 14px; }
	.hp-rows.hp-rows--path::before, .hp-rows.hp-rows--path::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
	.hp-rows.hp-rows--path::after { transform-origin: center top; transform: scaleY(var(--p)); }
	.hp-rows.hp-rows--path li { margin: 0 0 0 72px; padding: 20px 20px 22px; }
	.hp-rows.hp-rows--path .hp-rows__n { position: absolute; left: -72px; top: 12px; margin: 0; }
}

/* Card numerate. */
.hp-rows.hp-rows--grid, .hp-rows.hp-rows--bento, .hp-rows.hp-rows--docs { display: grid; gap: 16px; }
.hp-rows.hp-rows--grid li, .hp-rows.hp-rows--bento li { display: flex; flex-direction: column; min-height: 250px; padding: 26px 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; transition: translate .45s var(--ease), border-color .4s; }
html:not(.lenis-scrolling) .hp-rows.hp-rows--grid li:hover, html:not(.lenis-scrolling) .hp-rows.hp-rows--bento li:hover { translate: 0 -6px; border-color: var(--accent); }
.hp-rows.hp-rows--grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.hp-rows.hp-rows--grid li { grid-column: span 3; }
.hp-rows.hp-rows--grid li:nth-child(n+5) { grid-column: span 4; }
.hp-rows.hp-rows--grid .hp-rows__n { margin-bottom: auto; padding-bottom: 32px; font-family: var(--display); font-size: clamp(2.6rem, 4vw, 4rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.hp-rows.hp-rows--grid h3, .hp-rows.hp-rows--bento h3 { font-size: clamp(1.1rem, 1.6vw, 1.55rem); margin-bottom: 10px; }

/* Bento: due riquadri grandi e tre piccoli; il primo in evidenza. */
.hp-rows.hp-rows--bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hp-rows.hp-rows--bento li { grid-column: span 2; }
.hp-rows.hp-rows--bento li:nth-child(-n+2) { grid-column: span 3; min-height: 280px; }
.hp-rows.hp-rows--bento .hp-rows__n { margin-bottom: auto; padding-bottom: 32px; }
.hp-rows.hp-rows--bento li:first-child { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hp-rows.hp-rows--bento li:first-child p, .hp-rows.hp-rows--bento li:first-child .hp-rows__n { color: rgba(11, 11, 12, .7); }

/* Documenti: fogli leggermente storti, con l'angolo piegato e qualche riga "scritta". */
.hp-rows.hp-rows--docs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding: 10px 0; }
.hp-rows.hp-rows--docs li { position: relative; min-height: 300px; padding: 28px 26px 96px; background: var(--card); color: var(--card-fg); border-radius: 6px 30px 6px 6px; box-shadow: 0 24px 50px rgba(0, 0, 0, .28); rotate: -1.4deg; transition: rotate .5s var(--ease), translate .5s var(--ease);
	background-image: repeating-linear-gradient(to bottom, transparent 0 13px, rgba(11, 11, 12, .1) 13px 15px); background-size: 62% 45px; background-position: 26px calc(100% - 28px); background-repeat: no-repeat; }
.hp-rows.hp-rows--docs li:nth-child(even) { rotate: 1.2deg; }
.hp-rows[class*="hp-rows--"].hp-rows--docs li::before { display: block; content: ""; position: absolute; inset: 0 0 auto auto; width: 30px; height: 30px; border-radius: 0 30px 0 6px; background: linear-gradient(225deg, var(--bg) 50%, rgba(11, 11, 12, .18) 50%); transform: none; }
html:not(.lenis-scrolling) .hp-rows.hp-rows--docs li:hover { rotate: 0deg; translate: 0 -8px; }
.hp-rows.hp-rows--docs .hp-rows__n { display: block; margin-bottom: 26px; color: rgba(11, 11, 12, .55); }
.hp-rows.hp-rows--docs .hp-rows__n::before { content: "Documento "; }
.hp-rows.hp-rows--docs h3 { font-size: clamp(1.05rem, 1.4vw, 1.35rem); margin-bottom: 12px; color: var(--card-fg); }
.hp-rows[class*="hp-rows--"].hp-rows--docs p { color: rgba(11, 11, 12, .68); }
.hp-rows.hp-rows--docs a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) {
	.hp-rows.hp-rows--grid li, .hp-rows.hp-rows--grid li:nth-child(n+5) { grid-column: span 6; }
	.hp-rows.hp-rows--grid li:last-child { grid-column: span 12; }
	.hp-rows.hp-rows--docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hp-rows.hp-rows--bento li, .hp-rows.hp-rows--bento li:nth-child(-n+2) { grid-column: span 3; }
	.hp-rows.hp-rows--bento li:last-child { grid-column: span 6; }
}
@media (max-width: 640px) {
	.hp-rows.hp-rows--grid li, .hp-rows.hp-rows--grid li:nth-child(n+5), .hp-rows.hp-rows--grid li:last-child,
	.hp-rows.hp-rows--bento li, .hp-rows.hp-rows--bento li:nth-child(-n+2), .hp-rows.hp-rows--bento li:last-child { grid-column: 1 / -1; min-height: 0; }
	.hp-rows.hp-rows--grid .hp-rows__n, .hp-rows.hp-rows--bento .hp-rows__n { padding-bottom: 18px; }
	.hp-rows.hp-rows--docs { grid-template-columns: 1fr; }
	.hp-rows.hp-rows--docs li { min-height: 0; }
}

.hp-rows[class*="hp-rows--"] li { align-items: stretch; text-align: left; }
.hp-rows.hp-rows--grid li, .hp-rows.hp-rows--bento li { align-items: flex-start; }

/* ---------- Elenchi cliccabili come card (home, chi siamo) ---------- */
.hp-works__list[class*="hp-works__list--"] { border-top: 0; display: grid; gap: 16px; }
.hp-works__list[class*="hp-works__list--"] a { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%; box-sizing: border-box; border-bottom: 0; border-radius: 24px; overflow: hidden; }
.hp-works__list[class*="hp-works__list--"] a::before { border-radius: 0; }
.hp-works__list[class*="hp-works__list--"] .hp-works__go { display: grid; place-items: center; width: 52px; height: 52px; margin-top: auto; align-self: flex-end; border-radius: 50%; border: 1px solid currentColor; font-size: 1.2rem; }
.hp-works__list[class*="hp-works__list--"] em { grid-column: auto; }

/* Servizi: card chiare 3x2. */
.hp-works__list.hp-works__list--svc { grid-template-columns: repeat(3, minmax(0, 1fr)); perspective: 1400px; }
.hp-works__list.hp-works__list--svc a { min-height: 300px; padding: 28px 28px 26px; background: var(--surface); border: 1px solid var(--line); }
.hp-works__list.hp-works__list--svc b { font-size: clamp(1.25rem, 1.9vw, 1.9rem); margin-top: 18px; }
.hp-works__list.hp-works__list--svc em { max-width: 34ch; }

/* Casi: card scure, nome del cliente in grande. */
.hp-works__list.hp-works__list--cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-works__list.hp-works__list--cases a { min-height: 320px; padding: 30px 32px 28px; background: var(--ink); color: #fff; }
.hp-works__list.hp-works__list--cases a::before { background: var(--accent); }
.hp-works__list.hp-works__list--cases b { font-size: clamp(1.7rem, 3.2vw, 3.1rem); line-height: 1.28; margin-top: 24px; }
.hp-works__list.hp-works__list--cases em { color: rgba(255, 255, 255, .62); font-size: 1.02rem; max-width: 42ch; }
.hp-works__list.hp-works__list--cases li:nth-child(odd):last-child { grid-column: 1 / -1; }
html:not(.lenis-scrolling) .hp-works__list.hp-works__list--cases a:hover > *, .hp-works__list.hp-works__list--cases a:focus-visible > *,
html:not(.lenis-scrolling) .hp-works__list.hp-works__list--cases a[data-n]:hover::after { color: var(--ink); }
.hp-works__list.hp-works__list--cases .hp-works__name { display: block; overflow: hidden; }

@media (max-width: 1100px) { .hp-works__list.hp-works__list--svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
	.hp-works__list.hp-works__list--svc, .hp-works__list.hp-works__list--cases { grid-template-columns: 1fr; }
	.hp-works__list[class*="hp-works__list--"] a { min-height: 0; padding: 24px 22px; }
	.hp-works__list[class*="hp-works__list--"] .hp-works__go { display: grid; width: 44px; height: 44px; }
}

/* ---------- Pagine dei servizi: checklist a card e casi in evidenza ---------- */
.hp-bullets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border-top: 0; }
.hp-bullets li { display: flex; gap: 16px; align-items: flex-start; max-width: none; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.hp-bullets li::before { content: "✓"; position: static; flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -1px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: .85rem; font-weight: 700; }
.hp-sec:not(.is-dark) .hp-bullets li::before { color: var(--ink); }
.hp-bullets li:nth-child(odd):last-child { grid-column: 1 / -1; }
@media (max-width: 760px) { .hp-bullets { grid-template-columns: 1fr; } }

.hp-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-case { position: relative; overflow: hidden; }
.hp-case:not(.hp-case--short) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px clamp(24px, 4vw, 64px); padding: clamp(26px, 3.4vw, 52px); }
.hp-case:not(.hp-case--short) h3 { grid-row: 1 / span 2; font-size: clamp(1.5rem, 2.8vw, 2.8rem); line-height: 1.2; margin: 0; }
.hp-case:not(.hp-case--short) .hp-case__link { justify-self: start; }
.hp-case::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(var(--bar, 1)); transform-origin: top; }
.hp-case__link { padding: 10px 18px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; transition: background .3s, color .3s, border-color .3s; }
html:not(.lenis-scrolling) .hp-case__link:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
@media (max-width: 760px) {
	.hp-cases { grid-template-columns: 1fr; }
	.hp-case:not(.hp-case--short) { grid-template-columns: 1fr; }
	.hp-case:not(.hp-case--short) h3 { grid-row: auto; }
}
/* Con il nome più lungo ("Servizi e costi") il pulsante "Guarda i lavori" lascia spazio al menu sugli schermi medi. */
@media (max-width: 1640px) { .hp-header .hp-header__portfolio { display: none; } }
.hp-bullets li::before { scale: var(--chk, 1); }
/* Checklist: testo in un blocco unico (con flex le parti evidenziate si staccavano dalla frase). */
.hp-bullets li { display: block; position: relative; padding: 20px 22px 20px 64px; }
.hp-bullets li::before { position: absolute; left: 20px; top: 18px; margin: 0; }
.hp-case:not(.hp-case--short) h3 { font-size: clamp(1.25rem, 2vw, 2rem); line-height: 1.3; }
.hp-works__list.hp-works__list--svc b { line-height: 1.22; }

/* ---------- "Servizi e costi" in evidenza ---------- */
.hp-nav { align-items: center; }
.hp-header .hp-nav a.hp-nav__svc, .hp-header .hp-nav a.hp-nav__svc[aria-current="page"] { position: relative; overflow: hidden; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--ink); color: var(--accent); font-weight: 600; transition: background-color .3s, color .3s, box-shadow .3s; }
.hp-header .hp-nav a.hp-nav__svc:hover, .hp-nav__drop.is-open .hp-nav__svc { color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 255, 46, .55); }
.hp-nav__eur { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: .78rem; font-weight: 700; }
.hp-header .hp-nav a.hp-nav__svc[aria-current="page"], .hp-nav__drop:has(.hp-nav__menu a[aria-current="page"]) .hp-nav__svc { box-shadow: 0 0 0 3px rgba(200, 255, 46, .55); }
/* Riflesso di luce che attraversa la pillola ogni tanto. */
.hp-header .hp-nav a.hp-nav__svc::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: hp-shine 7s ease-in-out 2.5s infinite; pointer-events: none; }
@keyframes hp-shine { 0% { left: -60%; } 14% { left: 130%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .hp-header .hp-nav a.hp-nav__svc::after { animation: none; display: none; } }
/* Menu mobile. */
.hp-mnav__links a.hp-mnav__svc { align-items: center; }
.hp-mnav__eur { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--accent); color: var(--ink); font-family: var(--wp--preset--font-family--sans); font-size: .6em; font-weight: 700; }

/* ---------- Servizi e costi: card prezzo per ogni servizio ---------- */
.hp-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.hp-price { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 28px 28px 26px; border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none; border: 1px solid rgba(11, 11, 12, .08); overflow: hidden; isolation: isolate; transition: translate .45s var(--ease), box-shadow .45s var(--ease); }
.hp-price::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.hp-price__name { margin: 0 0 auto; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.15rem, 1.6vw, 1.6rem); line-height: 1.25; transition: color .35s; }
.hp-price__value { margin: 34px 0 0; display: flex; align-items: baseline; gap: 10px; }
.hp-price__from { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); transition: color .35s; }
.hp-price__value mark { font-family: var(--display); font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: 1; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.hp-price__value b { font-weight: 400; }
.hp-price__go { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; font-size: 1.15rem; transition: transform .45s var(--ease), background .35s, color .35s, border-color .35s; }
html:not(.lenis-scrolling) .hp-price:hover, .hp-price:focus-visible { translate: 0 -6px; box-shadow: 0 24px 50px rgba(11, 11, 12, .18); }
html:not(.lenis-scrolling) .hp-price:hover::before, .hp-price:focus-visible::before { transform: scaleY(1); }
html:not(.lenis-scrolling) .hp-price:hover .hp-price__name, .hp-price:focus-visible .hp-price__name { color: var(--accent); }
html:not(.lenis-scrolling) .hp-price:hover .hp-price__from, .hp-price:focus-visible .hp-price__from { color: rgba(255, 255, 255, .6); }
html:not(.lenis-scrolling) .hp-price:hover .hp-price__go, .hp-price:focus-visible .hp-price__go { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: rotate(-45deg); }
.hp-price .hp-price__name { padding-right: 60px; }
@media (max-width: 1100px) { .hp-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .hp-prices { grid-template-columns: 1fr; } .hp-price { min-height: 0; } }

/* Prezzo in un box lucido (al posto dell'evidenziato giallo) e "Vedi dettagli" in fondo alla card. */
.hp-price__box { position: relative; overflow: hidden; display: inline-flex; align-items: baseline; gap: .18em; padding: 8px 16px 6px; border-radius: 14px; font-family: var(--display); font-size: clamp(2rem, 3.2vw, 3.2rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
	background: linear-gradient(115deg, #b8f000 0%, #C8FF2E 30%, #f2ffc4 48%, #C8FF2E 62%, #a9e000 100%); background-size: 220% 100%; animation: hp-gloss 5s ease-in-out infinite;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(11, 11, 12, .12), 0 10px 26px rgba(160, 210, 0, .35); }
.hp-price__box b { font-weight: 400; }
.hp-price__box::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-20deg); animation: hp-sweep 4.2s ease-in-out infinite; pointer-events: none; }
.hp-price:nth-child(2) .hp-price__box::after, .hp-price:nth-child(2) .hp-price__box { animation-delay: .5s; }
.hp-price:nth-child(3) .hp-price__box::after, .hp-price:nth-child(3) .hp-price__box { animation-delay: 1s; }
.hp-price:nth-child(4) .hp-price__box::after, .hp-price:nth-child(4) .hp-price__box { animation-delay: 1.5s; }
.hp-price:nth-child(5) .hp-price__box::after, .hp-price:nth-child(5) .hp-price__box { animation-delay: 2s; }
.hp-price:nth-child(6) .hp-price__box::after, .hp-price:nth-child(6) .hp-price__box { animation-delay: 2.5s; }
@keyframes hp-gloss { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes hp-sweep { 0% { left: -70%; } 35% { left: 140%; } 100% { left: 140%; } }
html:not(.lenis-scrolling) .hp-price:hover .hp-price__box { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 3px rgba(200, 255, 46, .35), 0 14px 34px rgba(200, 255, 46, .45); }
.hp-price__value { margin: 30px 0 0; }
.hp-price__more { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(11, 11, 12, .1); display: flex; justify-content: space-between; align-items: center; width: 100%; font-weight: 600; transition: color .35s, border-color .35s; }
.hp-price__more span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid currentColor; transition: transform .45s var(--ease), background .35s, color .35s, border-color .35s; }
html:not(.lenis-scrolling) .hp-price:hover .hp-price__more, .hp-price:focus-visible .hp-price__more { color: #fff; border-color: rgba(255, 255, 255, .18); }
html:not(.lenis-scrolling) .hp-price:hover .hp-price__more span, .hp-price:focus-visible .hp-price__more span { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateX(4px); }
.hp-price .hp-price__name { padding-right: 0; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .hp-price__box, .hp-price__box::after { animation: none; } .hp-price__box::after { display: none; } }
.hp-price__box::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); }
.hp-price .hp-price__value { margin-top: auto; padding-top: 30px; }

/* ---------- Evidenziazioni "a pastello" (al posto del giallo) ---------- */
mark.hp-check, .hp-todo {
	color: var(--ink); border-radius: 0; padding: .06em .38em .02em;
	background: url(../img/crayon.png) center / 100% 100% no-repeat;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Su sfondo scuro i "buchi" della cera lascerebbero passare il nero: sotto il tratto c'è un velo dello stesso verde. */
.is-dark mark.hp-check, .is-dark .hp-todo, .hp-footer mark.hp-check {
	background: url(../img/crayon.png) center / 100% 100% no-repeat, linear-gradient(rgba(150, 205, 30, .78), rgba(150, 205, 30, .78)) center / calc(100% - 8px) 64% no-repeat;
}
.hp-todo { font-family: var(--mono); font-size: .75em; letter-spacing: .04em; }
/* Su fondo verde (box "In breve", sezioni verdi) il pastello è di un verde più scuro, altrimenti sparisce. */
.hp-brief__box mark.hp-check, .is-accent mark.hp-check, .hp-brief__box .hp-todo, .is-accent .hp-todo { background: url(../img/crayon-dark.png) center / 100% 100% no-repeat; color: #fff; }
.hp-brief__box mark.hp-check, .is-accent mark.hp-check, .hp-brief__box .hp-todo, .is-accent .hp-todo { background: url(../img/crayon-dark.png) center / 100% 100% no-repeat, linear-gradient(rgba(80, 122, 6, .85), rgba(80, 122, 6, .85)) center / calc(100% - 8px) 64% no-repeat; }

/* ---------- Servizi e costi: box volanti, versione ricca ---------- */
.hp-svcfloat__stage { isolation: isolate; }
.hp-svcfloat__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.hp-svcfloat__lines line { stroke: rgba(200, 255, 46, .22); stroke-width: 1; stroke-dasharray: 3 7; transition: stroke .35s, stroke-width .35s; }
.hp-svcfloat__lines line.is-on { stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: none; }
.hp-svcfloat__lines circle { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(200, 255, 46, .9)); }
/* Alone e anelli che ruotano dietro il titolo. */
.hp-svcfloat__orb { position: absolute; left: 50%; top: 50%; width: min(560px, 52vw); aspect-ratio: 1; translate: -50% -50%; z-index: 0; pointer-events: none; }
.hp-svcfloat__orb::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(200, 255, 46, .16), rgba(200, 255, 46, 0) 68%); animation: svc-pulse 6s ease-in-out infinite; }
.hp-svcfloat__orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: svc-spin 60s linear infinite; }
.hp-svcfloat__orb i:nth-child(2) { inset: 12%; border-style: solid; border-color: rgba(200, 255, 46, .14); border-top-color: rgba(200, 255, 46, .6); animation-duration: 22s; animation-direction: reverse; }
.hp-svcfloat__orb i:nth-child(3) { inset: 26%; border-color: rgba(255, 255, 255, .08); border-left-color: rgba(200, 255, 46, .45); animation-duration: 14s; }
@keyframes svc-spin { to { rotate: 360deg; } }
@keyframes svc-pulse { 0%, 100% { scale: .9; opacity: .7; } 50% { scale: 1.08; opacity: 1; } }

/* Box: icona, numero, titolo, descrizione, prezzo. */
.hp-svcfloat__list li { max-width: min(290px, 26vw); }
.hp-svcfloat__pill { gap: 6px; padding: 18px 20px 18px; border: 1px solid rgba(11, 11, 12, .06); transition: scale .45s var(--ease), rotate .45s var(--ease), background .3s, box-shadow .3s, opacity .35s, filter .35s; }
.hp-svcfloat__pill:hover, .hp-svcfloat__pill:focus-visible { transform: none; scale: 1.06; rotate: -1.5deg; }
.hp-svcfloat__top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 6px; }
.hp-svcfloat__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--accent); transition: background .3s, color .3s, rotate .5s var(--ease); }
.hp-svcfloat__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hp-svcfloat__pill .hp-svcfloat__n { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--muted-d); }
.hp-svcfloat__pill .hp-svcfloat__desc { font-size: .8rem; line-height: 1.45; color: var(--muted-d); }
.hp-svcfloat__pill .hp-svcfloat__price { margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--accent); font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; font-weight: 600; }
.hp-svcfloat__pill:hover .hp-svcfloat__ico, .hp-svcfloat__pill:focus-visible .hp-svcfloat__ico { rotate: -8deg; }
.hp-svcfloat__list.is-dim .hp-svcfloat__pill:not(:hover):not(:focus-visible) { opacity: .45; filter: blur(1px); }

@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
	.hp-svcfloat__orb, .hp-svcfloat__lines { display: none; }
	.hp-svcfloat__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.hp-svcfloat__list li { max-width: none; }
	.hp-svcfloat__pill { height: 100%; box-sizing: border-box; }
}
@media (max-width: 600px) { .hp-svcfloat__list { grid-template-columns: 1fr; } }
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) { .hp-svcfloat__stage { min-height: clamp(820px, 108vh, 1080px); } }

/* ---------- Pagine dei servizi: prezzi come card (la tabella resta nel codice) ---------- */
#prezzi .hp-tablewrap { overflow: visible; border-top: 0; perspective: 1400px; }
#prezzi .hp-table, #prezzi .hp-table tbody, #prezzi .hp-table tr, #prezzi .hp-table td { display: block; min-width: 0; }
#prezzi .hp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#prezzi .hp-table tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
#prezzi .hp-table tr { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 24px; background: #fff; color: var(--ink); border: 1px solid rgba(11, 11, 12, .08); box-shadow: 0 18px 40px -26px rgba(11, 11, 12, .35); transition: translate .45s var(--ease), box-shadow .45s var(--ease), border-color .35s; }
#prezzi.is-dark .hp-table tr { background: var(--surface); color: #fff; border-color: rgba(255, 255, 255, .1); box-shadow: none; }
html:not(.lenis-scrolling) #prezzi .hp-table tr:hover { translate: 0 -6px; border-color: var(--accent); box-shadow: 0 26px 50px -24px rgba(11, 11, 12, .45); }
#prezzi .hp-table td { padding: 0; border: 0; }
/* Numero del livello in alto a destra. */
#prezzi .hp-table tbody { counter-reset: tier; }
#prezzi .hp-table tr { counter-increment: tier; }
#prezzi .hp-table tr::before { content: counter(tier, decimal-leading-zero); position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; opacity: .5; }
#prezzi .hp-table td:nth-child(1) { padding-right: 34px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.25; }
#prezzi .hp-table td:nth-child(2) { margin: 22px 0 18px; }
#prezzi .hp-table td:nth-child(2)::before { content: "Fascia indicativa"; display: block; margin-bottom: 8px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
#prezzi .hp-table td:nth-child(3) { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(11, 11, 12, .1); font-size: .93rem; line-height: 1.5; color: var(--muted-d); }
#prezzi.is-dark .hp-table td:nth-child(3) { border-top-color: rgba(255, 255, 255, .12); color: var(--muted); }
.page-id-129 #prezzi .hp-table td:nth-child(3)::before, .page-id-131 #prezzi .hp-table td:nth-child(3)::before { content: "Tempi: "; font-weight: 600; }
/* Prezzo nel box verde lucido (come nella pagina Servizi e costi). */
#prezzi .hp-table td:nth-child(2) mark.hp-check { position: relative; overflow: hidden; display: inline-block; padding: 8px 14px 6px; border-radius: 12px; color: var(--ink);
	font-family: var(--display); font-size: clamp(1.3rem, 1.9vw, 1.85rem); line-height: 1.1; font-variant-numeric: tabular-nums;
	background: linear-gradient(115deg, #b8f000 0%, #C8FF2E 30%, #f2ffc4 48%, #C8FF2E 62%, #a9e000 100%); background-size: 220% 100%; animation: hp-gloss 5s ease-in-out infinite;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(11, 11, 12, .12), 0 10px 26px rgba(160, 210, 0, .3); }
#prezzi .hp-table td:nth-child(2) mark.hp-check::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: hp-sweep 4.2s ease-in-out infinite; pointer-events: none; }
#prezzi .hp-table tr:nth-child(2) mark.hp-check, #prezzi .hp-table tr:nth-child(2) mark.hp-check::after { animation-delay: .6s; }
#prezzi .hp-table tr:nth-child(3) mark.hp-check, #prezzi .hp-table tr:nth-child(3) mark.hp-check::after { animation-delay: 1.2s; }
#prezzi .hp-table tr:nth-child(4) mark.hp-check, #prezzi .hp-table tr:nth-child(4) mark.hp-check::after { animation-delay: 1.8s; }
#prezzi .hp-table tr:nth-child(5) mark.hp-check, #prezzi .hp-table tr:nth-child(5) mark.hp-check::after { animation-delay: 2.4s; }
/* Prezzi secondari dentro la descrizione (es. "ogni lingua in più"): piccoli, verdi, senza box. */
#prezzi .hp-table td:nth-child(3) mark.hp-check { background: none; color: inherit; padding: 0; font-weight: 700; box-shadow: inset 0 -.45em 0 rgba(200, 255, 46, .55); }
#prezzi.is-dark .hp-table td:nth-child(3) mark.hp-check { color: var(--accent); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { #prezzi .hp-table mark.hp-check, #prezzi .hp-table mark.hp-check::after { animation: none; } }
/* Colonne in base al numero di livelli: 4 → 4 per riga, altrimenti 3 (6 → 3+3, niente card orfane). */
#prezzi .hp-table tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#prezzi .hp-table tbody:has(> tr:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#prezzi .hp-table td:nth-child(2) mark.hp-check { white-space: nowrap; font-size: clamp(1.15rem, 1.55vw, 1.6rem); line-height: 1.2; }
@media (max-width: 1100px) { #prezzi .hp-table tbody, #prezzi .hp-table tbody:has(> tr:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { #prezzi .hp-table tbody, #prezzi .hp-table tbody:has(> tr:nth-child(4):last-child) { grid-template-columns: 1fr; } }
#prezzi .hp-tablewrap + *, #prezzi .hp-tablenote { margin-top: clamp(28px, 3vw, 44px); }
/* Il prezzo si adatta alla larghezza della card (i prezzi lunghi, es. "800 – 3.000 €/anno", non escono più dal bordo). */
#prezzi .hp-table td:nth-child(2) { container-type: inline-size; }
#prezzi .hp-table td:nth-child(2) mark.hp-check { max-width: 100%; box-sizing: border-box; font-size: clamp(.9rem, 6.1cqi, 1.6rem); }
@media (min-width: 1101px) and (max-width: 1500px) { #prezzi .hp-table tbody:has(> tr:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#prezzi .hp-table tbody:has(> tr:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { #prezzi .hp-table tbody:has(> tr:nth-child(2):last-child) { grid-template-columns: 1fr; } }

/* ---------- Home, capitoli: cartelletta "Servizi e costi" ---------- */
.hp-chap__items--links li { padding: 0; opacity: 1; border-color: rgba(255, 255, 255, .35); transition: background .3s, border-color .3s; }
.hp-chap__items--links a { display: block; padding: .45em 1em; color: inherit; text-decoration: none; font-size: .88rem; }
.hp-chap__items--links a span { display: inline-block; transition: transform .35s var(--ease); }
html:not(.lenis-scrolling) .hp-chap__items--links li:hover { background: var(--accent); border-color: var(--accent); }
html:not(.lenis-scrolling) .hp-chap__items--links li:hover a { color: var(--ink); }
html:not(.lenis-scrolling) .hp-chap__items--links li:hover a span { transform: translate(2px, -2px); }
.hp-chap--svc .hp-chap__go { background: var(--accent); color: var(--ink); }
.v-prices { display: flex !important; flex-direction: column; justify-content: center; gap: 4px; background: var(--paper) !important; color: var(--ink) !important; padding: 7% 8% !important; }
.v-prices .v-head { margin-bottom: 10px; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.v-prices .v-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(11, 11, 12, .18); }
.v-prices .v-row:last-child { border-bottom: 0; }
.v-prices em { font-style: normal; font-weight: 600; font-size: clamp(.82rem, 1.1vw, 1.02rem); white-space: nowrap; }
.v-prices .v-row i { flex: 1; }
.v-prices b { font-family: var(--display); font-weight: 400; font-size: clamp(.9rem, 1.35vw, 1.3rem); white-space: nowrap; padding: 3px 9px 1px; border-radius: 8px;
	background: linear-gradient(115deg, #b8f000 0%, #C8FF2E 30%, #f2ffc4 48%, #C8FF2E 62%, #a9e000 100%); background-size: 220% 100%; animation: hp-gloss 5s ease-in-out infinite; }
.v-prices .v-row:nth-child(odd) b { animation-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) { .v-prices b { animation: none; } }
.hp-chap__visual.v-prices { aspect-ratio: auto; min-height: 0; }

/* ---------- Titoli meno grandi (si leggevano "muovendo la testa") ---------- */
.hp-hero__title { font-size: clamp(1.9rem, 3.3vw, 4rem); }
.hp-phero__title { font-size: clamp(1.8rem, 3.3vw, 4rem); }
.hp-h2 { font-size: clamp(1.6rem, 3vw, 3.4rem); }
.hp-path__intro .hp-h2, .hp-orbit__copy .hp-h2 { font-size: clamp(1.5rem, 2.8vw, 3.2rem); }
.hp-chap__title { font-size: clamp(1.5rem, 2.7vw, 3rem); }
.hp-cta__title { font-size: clamp(1.9rem, 4.4vw, 5.2rem); }
.hp-next__title, .hp-next__go { font-size: clamp(1.5rem, 3.4vw, 4rem); }
.hp-works__list.hp-works__list--cases b { font-size: clamp(1.5rem, 2.6vw, 2.6rem); }

/* ---------- Striscia scorrevole dei loghi clienti ---------- */
.hp-logos { padding-block: clamp(44px, 5vw, 80px); overflow: hidden; }
.hp-logos > * { max-width: none; }
.hp-logos__label { text-align: center; margin: 0 auto clamp(24px, 3vw, 40px); }
.hp-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.hp-marquee__track { display: flex; width: max-content; align-items: center; will-change: transform; }
.hp-marquee__set { display: flex; align-items: center; gap: clamp(56px, 7vw, 120px); padding-right: clamp(56px, 7vw, 120px); }
.hp-marquee figure { margin: 0; flex: none; }
.hp-marquee img { display: block; height: clamp(34px, 3.4vw, 50px); width: auto; filter: grayscale(1) brightness(0); opacity: .55; transition: opacity .35s, filter .35s, scale .45s var(--ease); }
.is-dark .hp-marquee img, .hp-logos.is-dark img { filter: grayscale(1) brightness(2.6); opacity: .7; }
html:not(.lenis-scrolling) .hp-marquee figure:hover img { opacity: 1; scale: 1.08; }
@media (prefers-reduced-motion: reduce) {
	.hp-marquee__track { width: auto; flex-wrap: wrap; justify-content: center; }
	.hp-marquee__set[aria-hidden] { display: none; }
	.hp-marquee__set { flex-wrap: wrap; justify-content: center; row-gap: 32px; padding: 0; }
}

/* ---------- Sezioni verdi: motivo leggerissimo a trattini "-" (sfalsati, quasi impercettibile) ---------- */
.hp-sec.is-accent, .hp-chap:nth-child(5n+2), .hp-chap:nth-child(5n+5) {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22'%3E%3Cpath d='M5 6h8M23 17h8' stroke='%230B0B0C' stroke-opacity='.075' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-size: 36px 22px;
}
/* FAQ su fondo chiaro: fondo nero e testo verde compaiono sempre insieme (anche subito dopo il clic, quando la pagina si ricalcola). */
.hp-faq:not(.is-dark) summary:hover, .hp-faq:not(.is-dark) summary:focus-visible { color: var(--accent); background-size: 100% 100%; }
.hp-faq:not(.is-dark) summary:hover::after, .hp-faq:not(.is-dark) summary:focus-visible::after { color: var(--accent); }
@media (hover: none) { .hp-faq:not(.is-dark) summary:hover { color: inherit; background-size: 0% 100%; } .hp-faq:not(.is-dark) summary:hover::after { color: var(--ink); } }
.hp-plan__price .hp-price__box { font-size: clamp(1.5rem, 2.4vw, 2.4rem); }
/* "e-commerce" protetto dall'a capo: prende sempre lo stile del titolo in cui si trova (nei box volanti una regola generica sugli span lo rendeva grigio). */
span.hp-nw, b span.hp-nw, .hp-svcfloat__pill b span.hp-nw { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; opacity: 1; margin: 0; padding: 0; background: none; }
/* Card prezzo: una sola card → larghezza contenuta; pacchetti di ore → etichetta "Prezzo del pacchetto". */
#prezzi .hp-table tbody:has(> tr:only-child) { grid-template-columns: minmax(0, 560px); }
.hp-prices--packages .hp-table td:nth-child(2)::before { content: "Prezzo del pacchetto"; }
.hp-prices--packages .hp-table tr:nth-child(2) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 26px 50px -24px rgba(11, 11, 12, .45); }
#prezzi.hp-prices--packages .hp-table td:nth-child(2)::before { content: "Prezzo del pacchetto"; }
#prezzi .hp-table tbody:has(> tr:only-child) td:nth-child(2)::before { content: "Prezzo di partenza"; }
/* "Altri servizi" (versione B): due gruppi, card di ciascun gruppo sulla stessa riga. */
.hp-works__list.hp-works__list--svc[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.hp-related__label { margin: 0 0 16px; }
.hp-works__list--svc + .hp-related__label { margin-top: clamp(32px, 4vw, 52px); }
@media (max-width: 1100px) { .hp-works__list.hp-works__list--svc[style*="--cols"] { grid-template-columns: repeat(min(var(--cols), 2), minmax(0, 1fr)); } }
@media (max-width: 700px) { .hp-works__list.hp-works__list--svc[style*="--cols"] { grid-template-columns: 1fr; } }
.hp-works__list--svc a[aria-current="page"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.hp-works__list--svc a[aria-current="page"] .hp-works__go { visibility: hidden; }
.hp-works__list--svc a[aria-current="page"]::after { content: "Sei qui" !important; order: 0 !important; position: absolute !important; right: 24px; top: 24px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--ink) !important; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
/* Box volanti: ognuno con la sua leggera inclinazione (disposizione meno regolare). */
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) { .hp-svcfloat__list li { rotate: var(--r, 0deg); } }
.hp-table td a[target="_blank"] { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hp-table td a[target="_blank"]::after { content: " ↗"; font-size: .85em; }

/* ---------- "Che tipo di sito ti serve": card che scorrono in direzioni opposte ---------- */
#tipi { overflow-x: clip; }
#tipi .hp-types { max-width: none; margin-top: clamp(28px, 3vw, 48px); }
.hp-marquee--cards .hp-marquee__set { gap: 20px; padding-right: 20px; align-items: stretch; }
.hp-marquee--cards { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); padding-block: 10px; }
.hp-type { flex: none; width: clamp(300px, 34vw, 540px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 24px; overflow: hidden; background: #fff; color: var(--ink); border: 1px solid rgba(11, 11, 12, .08); box-shadow: 0 18px 40px -28px rgba(11, 11, 12, .45); transition: translate .45s var(--ease), box-shadow .45s var(--ease); }
html:not(.lenis-scrolling) .hp-type:hover { translate: 0 -6px; box-shadow: 0 26px 50px -24px rgba(11, 11, 12, .5); }
.hp-type__art { display: grid; place-items: center; padding: 22px; background: var(--ink); color: rgba(255, 255, 255, .85); }
.hp-type__art svg { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 2; }
.hp-type__body { padding: 22px 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.hp-type__n { margin: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; opacity: .5; }
.hp-type__name { margin: 0 0 4px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.15rem, 1.5vw, 1.5rem); line-height: 1.2; }
.hp-type__name a { color: inherit; text-underline-offset: 4px; }
.hp-type__row, .hp-type__ex { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--muted-d); }
.hp-type__row span, .hp-type__ex span { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: .55; margin-bottom: 1px; }
.hp-type__ex { margin-top: auto; padding-top: 10px; border-top: 1px dashed rgba(11, 11, 12, .18); color: var(--ink); }
.hp-type__ex a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hp-types__label { text-align: center; margin: clamp(26px, 3vw, 40px) 0 6px; }
.hp-ex { position: relative; flex: none; display: flex; flex-direction: column; gap: 4px; min-width: 250px; padding: 18px 56px 18px 22px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; transition: background .3s, color .3s; }
.hp-ex__type { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.hp-ex__name { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.2rem; line-height: 1.2; white-space: nowrap; }
.hp-ex__place { font-size: .85rem; opacity: .65; }
.hp-ex__go { position: absolute; top: 50%; right: 18px; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; font-size: .85rem; transition: rotate .4s var(--ease); }
html:not(.lenis-scrolling) .hp-ex:hover, .hp-ex:focus-visible { background: var(--accent); color: var(--ink); }
html:not(.lenis-scrolling) .hp-ex:hover .hp-ex__type { color: var(--ink); }
html:not(.lenis-scrolling) .hp-ex:hover .hp-ex__go { rotate: 45deg; }
@media (max-width: 760px) {
	.hp-type { width: 290px; grid-template-columns: 1fr; }
	.hp-type__art { padding: 18px 26px; }
	.hp-type__art svg { max-height: 120px; }
}
@media (prefers-reduced-motion: reduce) { .hp-marquee--cards .hp-marquee__set { flex-wrap: wrap; justify-content: center; } }

/* Strisce scorrevoli più leggere: niente "mask-image" (costringeva a ridisegnare tutta la striscia a ogni fotogramma);
 * la sfumatura ai bordi è uno strato fermo sopra la striscia, dello stesso colore dello sfondo. */
.hp-marquee, .hp-marquee--cards { -webkit-mask-image: none; mask-image: none; position: relative; contain: paint; }
.hp-marquee::before, .hp-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7%; z-index: 2; pointer-events: none; }
.hp-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.hp-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.hp-marquee__track { backface-visibility: hidden; }
/* Titoli-link nelle card dei tipi di sito: niente sottolineatura (sul carattere grande toccava la riga sotto);
 * freccetta e evidenziatore verde al passaggio del mouse. */
.hp-type__name a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 88% / 0 .32em no-repeat; transition: background-size .4s var(--ease); }
.hp-type__name a::after { content: " →"; font-family: var(--wp--preset--font-family--sans); font-size: .7em; vertical-align: .12em; }
html:not(.lenis-scrolling) .hp-type__name a:hover, .hp-type__name a:focus-visible { background-size: 100% .32em; }

/* Strisce scorrevoli senza sfumature ai bordi: vanno da bordo a bordo dello schermo e le card entrano/escono dai lati. */
.hp-marquee::before, .hp-marquee::after { content: none; display: none; }
main .hp-sec .hp-marquee { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: 0; }
.hp-type__name { line-height: 1.3; }

/* FAQ: il testo di una domanda aperta è sempre visibile (vince su qualsiasi animazione rimasta a metà).
 * La dissolvenza resta solo in chiusura (classe is-closing). */
.hp-faq details[open]:not(.is-closing) > :not(summary) { opacity: 1 !important; visibility: visible !important; }

/* ---------- "Scoprici – Prossima tappa": barra di caricamento a punti ---------- */
.hp-tour { padding-block: clamp(64px, 8vw, 116px); }
.hp-tour__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(44px, 5vw, 76px); }
.hp-tour__head .hp-h2, .hp-tour__head .hp-eyebrow { margin-bottom: 0; }
.hp-tour__head .hp-eyebrow { margin-bottom: 18px; }
.hp-tour__head .hp-sec__lead { margin: 0; }
.hp-tour__head strong { color: var(--accent); font-weight: 600; }
.hp-tour__bar { --dot: 16px; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 12px; }
.hp-tour__line, .hp-tour__fill, .hp-tour__load { position: absolute; pointer-events: none; border-radius: 2px; }
.hp-tour__line { height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px); }
.hp-tour__fill { height: 2px; background: var(--accent); transform-origin: left center; box-shadow: 0 0 12px rgba(200, 255, 46, .55); }
.hp-tour__load { height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); background-size: 32px 2px; animation: hp-tour-load 1.1s linear infinite; opacity: .9; }
@keyframes hp-tour-load { to { background-position: 32px 0; } }
.hp-tour__step { position: relative; z-index: 1; min-width: 0; }
.hp-tour__step > a, .hp-tour__step { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: #fff; text-decoration: none; }
.hp-tour__dot { display: block; width: var(--dot); height: var(--dot); margin-bottom: 14px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(255, 255, 255, .4); transition: transform .4s var(--ease), background .3s, border-color .3s; }
.hp-tour__kicker { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hp-tour__label { font-size: .95rem; line-height: 1.35; color: rgba(255, 255, 255, .72); transition: color .3s; }
.hp-tour__step.is-done .hp-tour__dot { background: var(--accent); border-color: var(--accent); }
.hp-tour__step.is-current .hp-tour__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(200, 255, 46, .22); }
.hp-tour__step.is-current .hp-tour__kicker { color: var(--accent); }
.hp-tour__step.is-current .hp-tour__label { color: #fff; font-weight: 600; }
.hp-tour__step.is-next { z-index: 2; }
.hp-tour__step.is-next .hp-tour__dot { border-color: var(--accent); animation: hp-tour-pulse 1.6s ease-out infinite; }
@keyframes hp-tour-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 255, 46, .6); } 100% { box-shadow: 0 0 0 14px rgba(200, 255, 46, 0); } }
.hp-tour__step.is-next .hp-tour__kicker { color: var(--accent); }
.hp-tour__title { display: inline-flex; align-items: baseline; gap: .35em; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.35rem, 2.1vw, 2.3rem); line-height: 1.15; width: max-content; max-width: min(320px, 26vw); white-space: normal; transition: color .3s; }
.hp-tour__go { color: var(--accent); transition: transform .45s var(--ease); }
.hp-tour__desc { font-size: .9rem; color: var(--muted); max-width: 26ch; }
html:not(.lenis-scrolling) .hp-tour__step > a:hover .hp-tour__label { color: var(--accent); }
html:not(.lenis-scrolling) .hp-tour__step > a:hover .hp-tour__dot { transform: scale(1.3); border-color: var(--accent); }
html:not(.lenis-scrolling) .hp-tour__step.is-next > a:hover .hp-tour__title { color: var(--accent); }
html:not(.lenis-scrolling) .hp-tour__step.is-next > a:hover .hp-tour__go { transform: translateX(8px); }
/* Telefono e tablet: il percorso diventa verticale. */
@media (max-width: 900px) {
	.hp-tour__head { grid-template-columns: 1fr; }
	.hp-tour__bar { grid-template-columns: 1fr; gap: 22px; padding-left: 0; }
	.hp-tour__step > a, .hp-tour__step { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; }
	.hp-tour__dot { grid-row: 1 / span 3; margin: 2px 0 0; justify-self: center; }
	.hp-tour__step > a > *:not(.hp-tour__dot), .hp-tour__step > *:not(.hp-tour__dot) { grid-column: 2; }
	.hp-tour__line, .hp-tour__fill, .hp-tour__load { width: 2px; }
	.hp-tour__line { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .22) 0 6px, transparent 6px 12px); }
	.hp-tour__fill { transform-origin: center top; }
	.hp-tour__load { background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); background-size: 2px 32px; animation-name: hp-tour-load-v; }
	.hp-tour__title { max-width: none; width: auto; }
}
@keyframes hp-tour-load-v { to { background-position: 0 32px; } }
@media (prefers-reduced-motion: reduce) { .hp-tour__load, .hp-tour__step.is-next .hp-tour__dot { animation: none; } }
/* Barra "Prossima tappa": la prossima tappa ha una colonna più larga; ogni passo è un blocco con punto, etichette e testo. */
.hp-tour__bar { display: flex; gap: 0 18px; }
.hp-tour__step { flex: 1 1 0; display: block; }
.hp-tour__step.is-next { flex: 2.4 1 0; }
.hp-tour__step > a, .hp-tour__in { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: #fff; text-decoration: none; }
.hp-tour__title { display: block; width: auto; max-width: 15ch; }
.hp-tour__go { display: inline-block; margin-left: .3em; }
@media (max-width: 900px) {
	.hp-tour__bar { flex-direction: column; gap: 22px; }
	.hp-tour__step, .hp-tour__step.is-next { flex: none; }
	.hp-tour__step > a, .hp-tour__in { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; }
	.hp-tour__step > a > *:not(.hp-tour__dot), .hp-tour__in > *:not(.hp-tour__dot) { grid-column: 2; }
	.hp-tour__title { max-width: none; }
}
.hp-tour__title { line-height: 1.3; }
/* Barra "Prossima tappa": niente riquadro bianco al clic (contorno di focus del browser); da tastiera resta un contorno verde. */
.hp-tour a { -webkit-tap-highlight-color: transparent; outline: none; }
.hp-tour a:focus-visible { outline: 2px dashed var(--accent); outline-offset: 6px; border-radius: 6px; }
/* Contrasto (WCAG 1.4.3): passi non attivi del selettore e testi del finto editor di codice più leggibili. */
.hp-steps li { opacity: 1; color: #5f5e5a; }
.hp-steps li.is-on { color: var(--accent); }
.c-tabs b, .c-tabs i { color: #9a9aa3; }
.c-c { color: #9a9aa3; }
/* Contrasto: testo secondario delle card della ruota in home. */
.hp-wheel__body em { color: #5f5e5a; }
.hp-tablewrap:focus-visible, .wp-block-table:focus-visible, .hp-orbit__ring:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; border-radius: 6px; }

/* Link nel testo su sfondo chiaro: al passaggio il testo resta scuro e compare un tratto verde sotto (il verde acceso su chiaro non si leggeva). */
main :is(p, li, td, figcaption, .hp-tablenote) a:not([class]):not(:has(*)):not(.is-dark *) { transition: background-size .25s ease; background: linear-gradient(var(--accent-soft), var(--accent-soft)) 0 92% / 0 .42em no-repeat; }
main :is(p, li, td, figcaption, .hp-tablenote) a:not([class]):not(:has(*)):not(.is-dark *):is(:hover, :focus-visible) { color: var(--ink); background-size: 100% .42em; }

/* Finto browser "Dalle idee a qualcosa che funziona" su telefono: card un po' più alta e contenuti in proporzione alla sua larghezza, così nessun elemento si sovrappone o esce. */
@media (max-width: 900px) {
	.hp-browser__view { aspect-ratio: 16 / 12.5; container-type: inline-size; }
	.hp-layer, .hp-layer--live { padding: 6.5cqw; }
	.hp-layer--design .d-nav { font-size: 3.6cqw; margin-bottom: 6cqw; }
	.hp-layer--design .d-h1 { font-size: 5.4cqw; margin-bottom: 4cqw; }
	.hp-layer--design .d-btn { font-size: 3.2cqw; }
	.hp-layer--design .d-grid { height: 20%; margin-top: 5cqw; }
	.hp-layer--live .l-badge { font-size: 3.2cqw; padding: .45em .9em; }
	.hp-layer--live .l-badge::before { width: .5em; height: .5em; }
	.hp-layer--live .l-scores { height: auto; gap: 2.4cqw; }
	.hp-layer--live .l-scores li { padding: 2.6cqw 2.6cqw 2.2cqw; font-size: 2.7cqw; border-radius: 2.4cqw; }
	.hp-layer--live .l-scores b { font-size: 5.6cqw; line-height: 1.15; }
	.hp-layer--code pre { font-size: 2.5cqw !important; }
}


/* Carte "Cosa cambia" su telefono: la successiva si intravede, indicazione "Scorri di lato" e pallini di posizione. */
.hp-orbit__swipe, .hp-orbit__dots { display: none; }
.hp-orbit.is-flat .hp-card { box-sizing: border-box; width: min(76vw, 300px); }
.hp-orbit.is-flat .hp-orbit__ring { scrollbar-width: none; padding-bottom: 30px; margin-bottom: -18px; }
.hp-orbit.is-flat .hp-card { box-shadow: 0 18px 26px -18px rgba(11, 11, 12, .45); }
.hp-orbit.is-flat .hp-orbit__ring::-webkit-scrollbar { display: none; }
.hp-orbit.is-flat .hp-orbit__swipe {
	display: inline-flex; align-items: center; gap: 10px; justify-self: center; grid-row: 2; margin: 18px 0 0;
	padding: .55em 1.1em; border: 1px dashed var(--ink); border-radius: 999px; color: var(--ink); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
.hp-orbit.is-flat .hp-orbit__swipe span { display: inline-block; color: var(--ink); background: var(--accent); border-radius: 50%; width: 1.7em; height: 1.7em; line-height: 1.7em; text-align: center; animation: hp-nudge 1.4s infinite var(--ease); }
.hp-orbit.is-flat.is-swiped .hp-orbit__swipe span { animation: none; }
@keyframes hp-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.hp-orbit.is-flat .hp-orbit__dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.hp-orbit__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hp-orbit__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(11, 11, 12, .22); transition: width .3s var(--ease), background .3s; }
.hp-orbit__dots button.is-on::before { width: 22px; background: var(--ink); }
.hp-orbit__dots button:focus-visible { outline: 2px dashed var(--ink); outline-offset: 1px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .hp-orbit.is-flat .hp-orbit__swipe span { animation: none; } }


/* "Non devi coordinare cinque fornitori" su telefono: niente animazione a schermo intero, ma le pillole delle competenze
   restano visibili come una nuvola sotto il testo, leggermente inclinate, e compaiono una dopo l'altra. */
@media (max-width: 900px) {
	.hp-one { min-height: 0; }
	.hp-one__stage { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 36px; }
	.hp-one__core { display: none; }
	.hp-one__copy { order: 1; }
	.hp-one__chips { order: 2; display: flex !important; position: static; flex-wrap: wrap; justify-content: center; gap: 10px 8px; max-width: 520px; }
	.hp-one__chips li { position: static; translate: none; transform: none; font-size: .85rem; padding: .55em 1.05em; }
	.hp-one__chips li:nth-child(odd) { rotate: -1.5deg; }
	.hp-one__chips li:nth-child(4n) { rotate: 1.5deg; }
}

/* Privacy e cookie policy: l'indice "In questa pagina" sta a destra del titolo, come nelle altre pagine. */
@media (min-width: 901px) {
	.hp-phero--legal:has(.hp-phero__index) { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); align-items: start; }
	.hp-phero--legal .hp-phero__index { margin-top: 0; }
	.hp-phero--legal .hp-phero__index .hp-mono { margin: 0; }
}

/* Selettore di lingua IT/EN nell'header (su telefono è nel menu, in fondo). */
.hp-lang { display: inline-grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 999px; border: 1px solid currentColor; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink); text-decoration: none; transition: background .25s, color .25s; }
.hp-lang:hover, .hp-lang:focus-visible { background: var(--ink); color: var(--accent); }
.hp-lang--m { display: inline-flex; width: auto; height: auto; font-family: inherit; font-size: inherit; letter-spacing: 0; }
@media (max-width: 900px) { .hp-header .hp-lang { display: none; } }

/* Prezzi in inglese: "€2,000" senza spazio tra simbolo e numero. */
.tk-lang-en .hp-price__box { gap: 0; }

/* Selettore di lingua a due voci "IT | EN": la lingua attuale è evidenziata, un tocco porta all'altra. Visibile anche su telefono. */
.hp-header .hp-lang { display: inline-flex; align-items: center; gap: 2px; width: auto; height: auto; padding: 3px; border: 1px solid var(--ink); border-radius: 999px; background: rgba(255, 255, 255, .55); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink); }
.hp-lang__opt { display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.9rem; padding: 0 .55em; border-radius: 999px; transition: background .25s, color .25s; }
.hp-lang__opt.is-on { background: var(--ink); color: var(--accent); }
.hp-header .hp-lang:hover, .hp-header .hp-lang:focus-visible { background: rgba(255, 255, 255, .55); color: var(--ink); }
.hp-header .hp-lang:hover .hp-lang__opt:not(.is-on), .hp-header .hp-lang:focus-visible .hp-lang__opt:not(.is-on) { background: var(--accent); }
@media (max-width: 900px) { .hp-header .hp-lang { display: inline-flex; } .hp-header__right { gap: 10px; } }
@media (max-width: 360px) { .hp-lang__opt { min-width: 1.8rem; height: 1.7rem; padding: 0 .4em; } }

/* Menu del telefono: i servizi sono un elenco verticale sotto "Servizi" (non più pillole), legato da una linea verde. */
.hp-mnav__sub { display: flex; flex-direction: column; gap: 0; margin: 0 0 12px 2.2em; padding: 0 0 0 16px; border-bottom: 0; border-left: 0; }
.hp-mnav .hp-mnav__links .hp-mnav__sub a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; box-sizing: border-box;
	padding: 10px 2px 10px 0; border: 0; border-bottom: 1px dashed rgba(11, 11, 12, .16); border-radius: 0; background: none;
	font-family: var(--wp--preset--font-family--sans); font-size: 1rem; font-weight: 500; line-height: 1.25; text-transform: none; letter-spacing: 0;
}
.hp-mnav .hp-mnav__links .hp-mnav__sub a:last-child { border-bottom: 0; }
.hp-mnav .hp-mnav__links .hp-mnav__sub a::after { content: "→"; flex: none; font-size: .95rem; color: var(--muted-d); transition: transform .25s var(--ease), color .25s; }
.hp-mnav .hp-mnav__links .hp-mnav__sub a:active::after, .hp-mnav .hp-mnav__links .hp-mnav__sub a:hover::after { transform: translateX(4px); color: var(--ink); }
.hp-mnav .hp-mnav__links .hp-mnav__sub a[aria-current="page"] { background: none; padding-left: 0; font-weight: 700; border-color: rgba(11, 11, 12, .16); }
.hp-mnav .hp-mnav__links .hp-mnav__sub a[aria-current="page"]::before { content: ""; flex: none; width: 8px; height: 8px; margin-right: -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--ink); order: -1; }
.hp-mnav .hp-mnav__links .hp-mnav__sub a[aria-current="page"] { justify-content: flex-start; }
.hp-mnav .hp-mnav__links .hp-mnav__sub a[aria-current="page"]::after { margin-left: auto; }
