@charset "UTF-8";
/* ==========================================================================
   StoreGentic — Design System
   --------------------------------------------------------------------------
   00. Font face
   01. Design tokens
   02. Reset & base
   03. Tipografia
   04. Layout primitives
   05. Componenti
   06. Header / navigazione
   07. Hero + demo prodotto
   08. Sezioni marketing
   09. Metriche & grafici
   10. Prezzi
   11. FAQ / accordion
   12. Form
   13. Blog & prose
   14. Footer
   15. Utility & motion
   ========================================================================== */

/* ==========================================================================
   00. FONT FACE — Geist / Geist Mono (SIL OFL 1.1) self-hosted
   ========================================================================== */
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
		U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
		U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist-mono-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
		U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
		U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   01. DESIGN TOKENS
   Palette campionata direttamente dal logo ufficiale StoreGentic.
   ========================================================================== */
:root {
	/* --- Brand: stop del gradiente del logo (da sinistra a destra) --- */
	--sg-cyan: #5bc0fb;
	--sg-blue: #4a8cf2;
	--sg-indigo: #6562e4;
	--sg-violet: #8b54d4;
	--sg-magenta: #c155bb;
	--sg-pink: #e45f97;

	/* Gradiente firma — l'orientamento replica quello del wordmark */
	--grad-brand: linear-gradient(
		100deg,
		var(--sg-cyan) 0%,
		var(--sg-blue) 20%,
		var(--sg-indigo) 42%,
		var(--sg-violet) 63%,
		var(--sg-magenta) 83%,
		var(--sg-pink) 100%
	);
	--grad-brand-soft: linear-gradient(100deg, #5bc0fb26 0%, #6562e426 45%, #e45f9726 100%);

	/* Variante per le superfici piene che portano testo bianco (bottoni,
	   schede attive, badge). Gli stop del gradiente di marca vanno da 2,02:1
	   a 4,86:1 con il bianco: cyan, blu, magenta e rosa non reggono il testo
	   da 15px. Questi quattro stop restano tutti sopra 4,5:1 e mantengono
	   la stessa famiglia cromatica. */
	--grad-action: linear-gradient(100deg, #3d74c9 0%, #6562e4 34%, #8b54d4 66%, #b24eac 100%);
	--grad-cool: linear-gradient(135deg, var(--sg-cyan), var(--sg-indigo));
	--grad-warm: linear-gradient(135deg, var(--sg-violet), var(--sg-pink));

	/* --- Neutrali: scala scura con tinta viola coerente col cruscotto prodotto --- */
	--ink-1000: #07060c;
	--ink-950: #0a0912;
	--ink-900: #0e0d18;
	--ink-850: #131120;
	--ink-800: #191728;
	--ink-750: #201d33;
	--ink-700: #29253e;
	--ink-600: #383253;
	--ink-500: #4d466e;
	--ink-400: #6d6690;
	--ink-350: #8b84ac;
	--ink-300: #a49ec2;
	--ink-200: #c5c0da;
	--ink-150: #d9d5e8;
	--ink-100: #ebe9f3;
	--ink-50: #f6f5fa;
	--white: #ffffff;

	/* --- Ruoli semantici --- */
	--bg: var(--ink-950);
	--bg-alt: var(--ink-900);
	--surface: #12101d;
	--surface-2: #17152512;
	--surface-raised: #1a1729;
	--text: #e7e4f2;
	--text-muted: var(--ink-300);
	--text-dim: var(--ink-400);
	--heading: #ffffff;

	--line: rgba(255, 255, 255, 0.09);
	--line-strong: rgba(255, 255, 255, 0.16);
	--line-brand: rgba(139, 84, 212, 0.42);

	--success: #34d99b;
	--success-dim: rgba(52, 217, 155, 0.14);
	--warning: #f4b942;
	--danger: #f2648a;

	/* --- Tipografia --- */
	--font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	--font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--fs-display-1: clamp(2.4rem, 1.3rem + 4.6vw, 4.75rem);
	--fs-display-2: clamp(2.1rem, 1.35rem + 3.3vw, 3.6rem);
	--fs-h1: clamp(2.1rem, 1.4rem + 3.1vw, 3.5rem);
	--fs-h2: clamp(1.85rem, 1.2rem + 2.7vw, 3.05rem);
	--fs-h3: clamp(1.28rem, 1.12rem + 0.72vw, 1.6rem);
	--fs-h4: clamp(1.09rem, 1.03rem + 0.3vw, 1.22rem);
	--fs-lead: clamp(1.06rem, 0.99rem + 0.42vw, 1.28rem);
	--fs-body: 1.0625rem;
	--fs-sm: 0.9375rem;
	--fs-xs: 0.8125rem;
	--fs-eyebrow: 0.7188rem;

	--lh-tight: 1.06;
	--lh-snug: 1.18;
	--lh-heading: 1.24;
	--lh-body: 1.66;
	--lh-loose: 1.78;

	--tr-display: -0.038em;
	--tr-heading: -0.024em;
	--tr-body: -0.008em;
	--tr-eyebrow: 0.1em;

	/* --- Spaziature --- */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.25rem;
	--sp-6: 1.5rem;
	--sp-8: 2rem;
	--sp-10: 2.5rem;
	--sp-12: 3rem;
	--sp-16: 4rem;
	--sp-20: 5rem;
	--sp-24: 6rem;
	--sp-32: 8rem;

	--section-y: clamp(2.85rem, 7.5vw, 8.75rem);
	--section-y-sm: clamp(2.25rem, 5.5vw, 5.5rem);

	/* --- Layout --- */
	--container: 1200px;
	--container-wide: 1340px;
	--container-narrow: 760px;
	--container-prose: 46rem;
	--gutter: clamp(1.25rem, 4.4vw, 2.5rem);

	/* --- Forma --- */
	--r-xs: 6px;
	--r-sm: 10px;
	--r-md: 14px;
	--r-lg: 20px;
	--r-xl: 28px;
	--r-2xl: 36px;
	--r-pill: 999px;

	/* --- Ombre --- */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
	--shadow-xl: 0 40px 100px -30px rgba(0, 0, 0, 0.85);
	--glow-brand: 0 20px 70px -24px rgba(101, 98, 228, 0.75);

	/* --- Motion --- */
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-fast: 140ms;
	--dur: 240ms;
	--dur-slow: 480ms;

	--header-h: 72px;
	--z-header: 100;
	--z-drawer: 200;
	--z-top: 300;

	color-scheme: dark;
}

/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* [hidden] deve vincere su qualsiasi display dichiarato dai componenti
   (i pannelli dei risultati sono griglie: senza questo restano visibili). */
[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1.5rem);
	-moz-tab-size: 4;
	tab-size: 4;
}

body {
	margin: 0;
	min-height: 100svh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	letter-spacing: var(--tr-body);
	font-weight: 400;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.is-locked {
	overflow: hidden;
}

/* I contenitori principali non devono mai poter allargare la pagina. */
.container,
.section,
.hero,
.split,
.grid,
.card,
.plan {
	min-width: 0;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
	border-style: none;
}

/* Le icone del tema sono disegnate a tratto e portano fill="none" come
   attributo: una regola CSS `fill: currentColor` lo sovrascriverebbe
   (il CSS batte gli attributi di presentazione) trasformandole in macchie. */
svg {
	flex-shrink: 0;
}

input, button, textarea, select {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

button {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration: none;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: var(--sp-10) 0;
}

table {
	border-collapse: collapse;
	width: 100%;
}

::selection {
	background: rgba(101, 98, 228, 0.42);
	color: #fff;
}

:focus-visible {
	outline: 2px solid var(--sg-cyan);
	outline-offset: 3px;
	border-radius: 4px;
}

:where(a, button, input, textarea, select, summary):focus:not(:focus-visible) {
	outline: none;
}

/* Scrollbar discreta */
@supports selector(::-webkit-scrollbar) {
	::-webkit-scrollbar { width: 12px; height: 12px; }
	::-webkit-scrollbar-track { background: var(--ink-1000); }
	::-webkit-scrollbar-thumb {
		background: var(--ink-700);
		border: 3px solid var(--ink-1000);
		border-radius: 999px;
	}
	::-webkit-scrollbar-thumb:hover { background: var(--ink-600); }
}

/* Accessibilità: skip link */
.skip-link {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, -140%);
	z-index: var(--z-top);
	background: var(--sg-indigo);
	color: #fff;
	padding: 0.7rem 1.25rem;
	border-radius: 0 0 var(--r-sm) var(--r-sm);
	font-size: var(--fs-sm);
	font-weight: 600;
	transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus {
	transform: translate(-50%, 0);
}

.screen-reader-text,
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   03. TIPOGRAFIA
   ========================================================================== */
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
	color: var(--heading);
	font-weight: 640;
	line-height: var(--lh-heading);
	letter-spacing: var(--tr-heading);
	text-wrap: balance;
}

h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-snug); letter-spacing: var(--tr-display); }
h2, .h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: var(--fs-h4); }

.display-1 {
	font-size: var(--fs-display-1);
	line-height: 1.02;
	letter-spacing: -0.045em;
	font-weight: 640;
	color: var(--heading);
	text-wrap: balance;
}
.display-2 {
	font-size: var(--fs-display-2);
	line-height: 1.1;
	letter-spacing: -0.04em;
	font-weight: 640;
	color: var(--heading);
	text-wrap: balance;
}

.lead {
	font-size: var(--fs-lead);
	line-height: var(--lh-loose);
	color: var(--text-muted);
	font-weight: 400;
	text-wrap: pretty;
}

.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-white { color: #fff; }

/* Gradiente sul testo — riservato a poche parole chiave */
.grad-text {
	background: var(--grad-brand);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	/* fallback per motori che non compongono il clip */
	-webkit-text-fill-color: transparent;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--tr-eyebrow);
	text-transform: uppercase;
	color: var(--sg-cyan);
	margin-bottom: var(--sp-4);
}
.eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--grad-brand);
}
.eyebrow--plain::before { display: none; }
.eyebrow--violet { color: var(--sg-violet); }
.eyebrow--pink { color: var(--sg-pink); }

.mono {
	font-family: var(--font-mono);
	font-feature-settings: "tnum" 1;
}

.num {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1, "ss01" 1;
}

/* ==========================================================================
   04. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section {
	position: relative;
	padding-block: var(--section-y);
}
.section--sm { padding-block: var(--section-y-sm); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }
.section--alt { background: var(--bg-alt); }

/* Righe di separazione a tutta larghezza, sottilissime */
.section--edge-top { border-top: 1px solid var(--line); }
.section--edge-bottom { border-bottom: 1px solid var(--line); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-6 > * + * { margin-top: var(--sp-6); }
.stack-8 > * + * { margin-top: var(--sp-8); }

.grid { display: grid; gap: var(--sp-6); }

/* ------------------------------------------------------------------
   Griglie senza orfani.

   Il numero di colonne dipende da quanti elementi ci sono, non da una
   scelta fissa: tre card in una griglia da due colonne lasciano un
   orfano sulla seconda riga, e su desktop si vede subito.

   La classe giusta la sceglie sg_grid() in inc/template-tags.php.

     .grid-2   2 elementi   1 → 2
     .grid-3   3 elementi   1 → 3      (nessuno stadio a 2 colonne)
     .grid-4   4 elementi   1 → 2 → 4
     .grid-6   6 elementi   1 → 2 → 3
     .grid-auto            si adatta, per numeri irregolari
   ------------------------------------------------------------------ */
.grid-2,
.grid-3,
.grid-4,
.grid-6 { grid-template-columns: minmax(0, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

.cluster {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	align-items: center;
}

.section-head {
	max-width: 56ch;
	margin-bottom: clamp(2.25rem, 4vw, 3.75rem);
}
/* La misura del titolo è in ch, non in rem: cresce col corpo del carattere
   e tiene le due-tre righe che vogliamo. L'italiano ha parole più lunghe
   dell'inglese — 18ch, che sui riferimenti funziona, qui spezzava i titoli
   in colonne di una parola. */
.section-head h2,
.section-head .display-2 { max-width: 26ch; }
.section-head--center h2,
.section-head--center .display-2 { max-width: 28ch; margin-inline: auto; }
.section-head > p.lead { max-width: 52ch; }
.section-head--center > p.lead { margin-inline: auto; }
.section-head--center {
	margin-inline: auto;
	text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head > p.lead { margin-top: var(--sp-5); }

/* Sfondo decorativo: alone del gradiente, sempre dietro al contenuto */
.aura {
	/* Rimosso: gli aloni sfocati erano decorazione di riempimento.
	   La classe resta perché i template la stampano, ma non disegna nulla. */
	display: none;
}
.aura--legacy {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}
.aura::before,
.aura::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
}
.aura::before {
	width: min(720px, 82vw);
	aspect-ratio: 1;
	top: -34%;
	left: -14%;
	background: radial-gradient(circle, rgba(74, 140, 242, 0.5) 0%, transparent 68%);
}
.aura::after {
	width: min(640px, 76vw);
	aspect-ratio: 1;
	bottom: -38%;
	right: -12%;
	background: radial-gradient(circle, rgba(193, 85, 187, 0.42) 0%, transparent 68%);
}
.aura--soft::before, .aura--soft::after { opacity: 0.28; }
.section > .container { position: relative; z-index: 1; }

/* Reticolo tecnico appena percettibile */
.mesh {
	/* Reticolo tecnico rimosso per la stessa ragione degli aloni. */
	display: none;
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

/* ==========================================================================
   05. COMPONENTI
   ========================================================================== */

/* --- Bottoni ------------------------------------------------------------ */
.btn {
	--btn-bg: transparent;
	--btn-fg: var(--text);
	--btn-bd: var(--line-strong);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 0.78rem 1.35rem;
	background: var(--btn-bg);
	color: var(--btn-fg);
	border: 1px solid var(--btn-bd);
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	font-weight: 550;
	letter-spacing: -0.01em;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: transform var(--dur-fast) var(--ease-out),
		box-shadow var(--dur) var(--ease-out),
		background-color var(--dur) var(--ease-out),
		border-color var(--dur) var(--ease-out),
		color var(--dur) var(--ease-out);
	will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn--primary {
	--btn-fg: #fff;
	--btn-bd: transparent;
	position: relative;
	background: var(--grad-action);
	background-size: 190% 100%;
	background-position: 18% 0;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset;
	transition: background-position var(--dur-slow) var(--ease-out),
		transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.btn--primary:hover {
	background-position: 82% 0;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
}

.btn--secondary {
	--btn-bg: rgba(255, 255, 255, 0.045);
	--btn-fg: var(--text);
	--btn-bd: var(--line-strong);
	backdrop-filter: blur(8px);
}
.btn--secondary:hover {
	--btn-bg: rgba(255, 255, 255, 0.09);
	--btn-bd: rgba(255, 255, 255, 0.26);
}

.btn--ghost {
	--btn-bd: transparent;
	--btn-fg: var(--text-muted);
	padding-inline: 0.75rem;
}
.btn--ghost:hover { --btn-fg: #fff; }

.btn--lg { padding: 0.95rem 1.75rem; font-size: 1rem; }
.btn--sm { padding: 0.55rem 1rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* Link con freccia animata */
.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--sg-cyan);
	font-weight: 500;
	font-size: var(--fs-sm);
	transition: gap var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { gap: 0.65rem; color: #fff; }
.link-arrow:hover svg { transform: translateX(2px); }

/* --- Pill / badge -------------------------------------------------------- */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.3rem 0.75rem 0.3rem 0.6rem;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, 0.035);
	font-size: var(--fs-xs);
	color: var(--text-muted);
	line-height: 1.4;
}
.pill__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sg-cyan);
	box-shadow: 0 0 0 3px rgba(91, 192, 251, 0.18);
	flex: none;
}
.pill--success { color: var(--success); border-color: rgba(52, 217, 155, 0.28); background: var(--success-dim); }
.pill--success .pill__dot { background: var(--success); box-shadow: 0 0 0 3px rgba(52, 217, 155, 0.16); }

/* --- Card ---------------------------------------------------------------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.4rem, 2.4vw, 2rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
	transition: border-color var(--dur) var(--ease-out);
}
.card:hover { border-color: var(--line-strong); }

.card--flat { background: var(--surface); }

/* Card di chiusura di una griglia: stessa forma delle altre, ma il filo
   in gradiente la stacca senza aggiungere rumore. */
.card--accent {
	border-color: transparent;
	background:
		linear-gradient(var(--surface), var(--surface)) padding-box,
		var(--grad-brand) border-box;
	border: 1px solid transparent;
}
.card--accent .icon-box { color: var(--sg-pink); }
.card--plain:hover { transform: none; box-shadow: none; }
.card__title { font-size: var(--fs-h4); font-weight: 600; color: #fff; margin-bottom: 0.55rem; letter-spacing: -0.018em; }
.card__text { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-loose); }
.card__foot { margin-top: auto; padding-top: var(--sp-5); }

/* Card cliccabile: tutta l'area è il target */
.card--link .card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

/* --- Icona in riquadro --------------------------------------------------- */
.icon-box {
	/* Niente riquadro: l'icona resta, la scatola colorata no. Con sei card
	   affiancate erano sei macchie di colore che competevano coi titoli. */
	display: block;
	margin-bottom: var(--sp-4);
	color: var(--sg-cyan);
	flex: none;
}
.icon-box svg { width: 20px; height: 20px; }
.icon-box--cyan,
.icon-box--violet,
.icon-box--pink { color: var(--sg-cyan); }
.icon-box--lg svg { width: 24px; height: 24px; }

/* --- Bordo gradiente (per elementi in evidenza) -------------------------- */
.bordered-grad {
	position: relative;
	border-radius: var(--r-xl);
	background: var(--surface);
	border: 1px solid transparent;
	background-clip: padding-box;
}
.bordered-grad::after {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	background: var(--grad-brand);
	opacity: 0.55;
}

/* --- Tabella dati -------------------------------------------------------- */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	-webkit-overflow-scrolling: touch;
}
.table {
	min-width: 620px;
	font-size: var(--fs-sm);
}
.table th,
.table td {
	padding: 0.95rem 1.15rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}
.table thead th {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--tr-eyebrow);
	text-transform: uppercase;
	color: var(--text-dim);
	background: rgba(255, 255, 255, 0.028);
	white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.018); }
.table td strong { color: #fff; font-weight: 550; }

/* Tabella problema → soluzione */
.table--ps td:first-child { color: var(--text-muted); width: 46%; }
.table--ps td:last-child { color: var(--text); }
.table--ps td:last-child strong { color: var(--sg-cyan); }

/* Tabella problema → soluzione su schermi stretti.
   Una tabella a due colonne larga 620px su un telefono da 390 obbliga a
   scorrere in orizzontale per leggere la metà che conta. Sotto i 768px la
   scomponiamo in schede impilate, con l'intestazione ripetuta su ogni
   blocco tramite data-label. */
@media (max-width: 767.98px) {
	.table-wrap:has(.table--ps) {
		border: 0;
		background: none;
		overflow: visible;
	}
	.table--ps {
		min-width: 0;
		display: block;
	}
	.table--ps thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
	.table--ps tbody {
		display: flex;
		gap: 0.85rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-left: var(--gutter);
		margin-inline: calc(var(--gutter) * -1);
		padding: 0.25rem var(--gutter) 1rem;
		scrollbar-width: none;
	}
	.table--ps tbody::-webkit-scrollbar { display: none; }
	.table--ps tr {
		display: flex;
		flex-direction: column;
		flex: 0 0 82%;
		scroll-snap-align: start;
		border: 1px solid var(--line);
		border-radius: var(--r-lg);
		background: var(--surface);
		overflow: hidden;
	}
	.table--ps td {
		display: block;
		width: 100%;
		border-bottom: 0;
		padding: 0.9rem 1.05rem;
	}
	.table--ps td:last-child { flex: 1; }
	.table--ps td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 0.4rem;
		font-family: var(--font-mono);
		font-size: var(--fs-eyebrow);
		letter-spacing: var(--tr-eyebrow);
		text-transform: uppercase;
		color: var(--text-dim);
	}
	.table--ps td:first-child {
		/* La regola desktop impone width:46% ed è più specifica della
		   dichiarazione generica qui sopra: va riscritta esplicitamente. */
		width: 100%;
		background: rgba(255, 255, 255, 0.022);
		border-bottom: 1px solid var(--line);
	}
	.table--ps td:last-child::before { color: var(--sg-cyan); }
	.table--ps tbody tr:hover td { background: none; }
	.table--ps tbody tr:hover td:first-child { background: rgba(255, 255, 255, 0.022); }
}

/* --- Griglie che diventano caroselli sui telefoni ------------------------
   Sei card impilate su un telefono sono duemila pixel di scroll verticale
   per contenuti che si leggono uno alla volta. Sotto i 768px le stesse
   card scorrono in orizzontale con aggancio: il contenuto resta tutto nel
   documento (conta per l'indicizzazione) ma occupa l'altezza di una sola. */
@media (max-width: 767.98px) {
	.plans.grid--rail,
	.grid--rail {
		grid-auto-flow: column;
		grid-auto-columns: 82%;
		align-items: stretch;
		grid-template-columns: none;
		gap: 0.85rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-left: var(--gutter);
		/* esce dal contenitore per arrivare a filo schermo */
		margin-inline: calc(var(--gutter) * -1);
		padding: 0.25rem var(--gutter) 1rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.grid--rail::-webkit-scrollbar { display: none; }
	.grid--rail > * {
		scroll-snap-align: start;
		min-width: 0;
	}
	/* le card dentro un carosello hanno tutte la stessa altezza */
	.grid--rail .card,
	.grid--rail .plan,
	.grid--rail .post-card { height: 100%; }
	.grid--rail .sector { min-height: 230px; }

	/* Passi numerati: in fila orizzontale invece che in colonna. */
	.steps--rail {
		grid-auto-flow: column;
		grid-auto-columns: 78%;
		grid-template-columns: none;
		gap: 0.85rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-left: var(--gutter);
		margin-inline: calc(var(--gutter) * -1);
		padding: 0.25rem var(--gutter) 1rem;
		scrollbar-width: none;
	}
	.steps--rail::-webkit-scrollbar { display: none; }
	.steps--rail .step {
		scroll-snap-align: start;
		padding: 1.1rem 1.2rem 1.2rem;
		border: 1px solid var(--line);
		border-radius: var(--r-lg);
		background: var(--surface);
	}
	.steps--rail .step::before {
		position: static;
		margin-bottom: 0.7rem;
		width: 2rem;
		height: 2rem;
		font-size: 0.66rem;
	}
	.steps--rail .step::after { display: none; }

	/* Footer da 600 a 999 px: due colonne. Marchio ed elenco pagine
	   occupano l'intera riga, così non resta mai una colonna spaiata;
	   l'elenco, che è lungo, si dispone su due incolonnati. */
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
	.footer-brand,
	nav.footer-col { grid-column: 1 / -1; }
	nav.footer-col ul { columns: 2; column-gap: 1.5rem; display: block; }
	nav.footer-col li { margin-bottom: 0.45rem; break-inside: avoid; }
	.footer-col ul { gap: 0.45rem; }
	.footer-col a { font-size: var(--fs-xs); }

	/* Indicazione che si scorre: una riga sottile con la traccia. */
	.rail-hint {
		display: flex;
		align-items: center;
		gap: 0.45rem;
		margin-top: -0.35rem;
		font-family: var(--font-mono);
		font-size: 0.66rem;
		letter-spacing: 0.07em;
		text-transform: uppercase;
		color: var(--ink-500);
	}
	.rail-hint::after {
		content: "";
		flex: 1;
		height: 1px;
		background: linear-gradient(90deg, var(--line-strong), transparent);
	}
	.rail-hint svg { width: 13px; height: 13px; }
}
@media (min-width: 768px) {
	.rail-hint { display: none; }
}

/* ==========================================================================
   06. HEADER / NAVIGAZIONE
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	height: var(--header-h);
	display: flex;
	align-items: center;
	background: rgba(10, 9, 18, 0.72);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	border-bottom: 1px solid transparent;
	transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.site-header.is-stuck {
	border-bottom-color: var(--line);
	background: rgba(10, 9, 18, 0.9);
}

.header-inner {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: var(--sp-8);
	width: 100%;
}

.brand {
	display: inline-flex;
	align-items: center;
	flex: none;
	margin-right: auto;
}
.brand img,
.brand svg {
	height: 30px;
	width: auto;
}
.brand:hover { opacity: 0.88; }

/* Menu desktop */
.nav-main { display: none; }
.nav-main ul {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.nav-main a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.5rem 0.8rem;
	border-radius: var(--r-sm);
	font-size: var(--fs-sm);
	font-weight: 450;
	color: var(--text-muted);
	transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav-main a:hover,
.nav-main .current-menu-item > a,
.nav-main .current-menu-ancestor > a,
.nav-main .current_page_item > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

/* Sottomenu */
.nav-main li { position: relative; }
.nav-main .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 260px;
	display: block;
	padding: 0.4rem;
	background: var(--surface-raised);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
		visibility var(--dur);
}
.nav-main li:hover > .sub-menu,
.nav-main li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav-main .sub-menu a {
	display: block;
	padding: 0.6rem 0.75rem;
	border-radius: var(--r-xs);
}
.nav-main .menu-item-has-children > a::after {
	content: "";
	width: 5px;
	height: 5px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	opacity: 0.6;
	margin-left: 0.15rem;
}

.header-actions {
	display: none;
	align-items: center;
	gap: 0.5rem;
	flex: none;
}

/* Hamburger */
.nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-right: -8px;
	border-radius: var(--r-sm);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.04);
	flex: none;
}
.nav-toggle span {
	position: relative;
	display: block;
	width: 17px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) linear;
}
.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 17px;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--dur) var(--ease-out);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* Drawer mobile */
.nav-drawer {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	z-index: var(--z-drawer);
	display: flex;
	flex-direction: column;
	padding: var(--sp-6) var(--gutter) var(--sp-10);
	background: var(--bg);
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	/* visibility cambia in un istante, ma ritardata alla fine dell'uscita:
	   così in apertura il pannello è subito focalizzabile (un elemento
	   invisibile non prende il focus) e in chiusura la dissolvenza si
	   completa prima di uscire dall'albero di accessibilità. */
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
		visibility 0s linear var(--dur);
}
.nav-drawer.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out),
		visibility 0s linear 0s;
}
.nav-drawer ul { display: flex; flex-direction: column; }
.nav-drawer > ul > li { border-bottom: 1px solid var(--line); }
.nav-drawer a {
	display: block;
	padding: 0.95rem 0;
	font-size: 1.08rem;
	font-weight: 500;
	color: var(--text);
	letter-spacing: -0.02em;
}
.nav-drawer a:hover { color: var(--sg-cyan); }
.nav-drawer .sub-menu { padding: 0 0 0.7rem 0.9rem; }
.nav-drawer .sub-menu a {
	padding: 0.5rem 0;
	font-size: var(--fs-sm);
	font-weight: 400;
	color: var(--text-muted);
}
.nav-drawer .sub-menu li { border: 0; }
.drawer-cta {
	display: grid;
	gap: 0.65rem;
	margin-top: var(--sp-8);
}

/* ==========================================================================
   07. HERO + DEMO PRODOTTO
   ========================================================================== */
.hero {
	position: relative;
	padding-top: clamp(3.25rem, 6.5vw, 6rem);
	padding-bottom: clamp(3rem, 6vw, 5.5rem);
	overflow: hidden;
}
.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2.5rem, 5vw, 4rem);
	align-items: center;
}
.hero__copy { max-width: 40rem; }
.hero__title { margin-bottom: var(--sp-6); }
.hero__lead { margin-bottom: var(--sp-8); max-width: 34rem; }
.hero__cta { gap: 0.75rem; margin-bottom: var(--sp-6); }
.hero__note {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	font-size: var(--fs-xs);
	color: var(--text-dim);
}
.hero__note span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__note svg { width: 13px; height: 13px; color: var(--success); }

/* --- Mock del widget di ricerca ----------------------------------------- */
.mock {
	position: relative;
	border-radius: var(--r-xl);
	background: linear-gradient(170deg, #16142a 0%, #0f0d1b 100%);
	border: 1px solid var(--line-strong);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.mock__bar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 0.95rem;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.02);
}
.mock__dots { display: flex; gap: 5px; }
.mock__dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ink-700);
	display: block;
}
.mock__url {
	flex: 1;
	min-width: 0;
	margin-left: 0.4rem;
	padding: 0.28rem 0.7rem;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, 0.045);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--text-dim);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mock__body { padding: clamp(0.9rem, 2vw, 1.4rem); }

/* Barra di ricerca finta con effetto digitazione */
.searchbox {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.8rem 0.95rem;
	border-radius: var(--r-md);
	border: 1px solid var(--line-strong);
	background: rgba(255, 255, 255, 0.04);
}
.searchbox__icon { width: 17px; height: 17px; color: var(--sg-cyan); flex: none; }
.searchbox__text {
	flex: 1;
	min-width: 0;
	font-size: var(--fs-sm);
	color: #fff;
	min-height: 1.35em;
	white-space: nowrap;
	overflow: hidden;
	letter-spacing: -0.01em;
}
.searchbox__caret {
	display: inline-block;
	width: 1.5px;
	height: 1.05em;
	background: var(--sg-cyan);
	vertical-align: -0.16em;
	margin-left: 1px;
	animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.searchbox__cam {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: var(--r-sm);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-muted);
	flex: none;
}
.searchbox__cam svg { width: 15px; height: 15px; }

.mock__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0.85rem 0.15rem 0.7rem;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.04em;
	color: var(--text-dim);
	text-transform: uppercase;
}
.mock__meta b { color: var(--sg-cyan); font-weight: 500; }

/* Palcoscenico della demo: tutti gli stati nella stessa cella di griglia.
   L'altezza della riga è quella dello stato più alto e non cambia mai,
   quindi il passaggio digitazione → attesa → risultati non sposta nulla
   di quello che sta sotto nella pagina. */
.mock__stage {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}
.mock__stage > * {
	grid-area: 1 / 1;
}

/* Griglia risultati */
.results {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
	transition: opacity 260ms var(--ease-out);
}

/* Stato nascosto: resta nel flusso (occupa la cella) ma sparisce alla
   vista e all'albero di accessibilità. Non si usa `hidden`/display:none
   proprio per non far collassare la cella. */
.results.is-off {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Stato di riposo — mentre si scrive.
   Caselle vuote, appena accennate: devono leggersi come «qui compariranno
   i risultati», mai come risultati veri. Nessun prodotto può essere a video
   prima che la ricerca sia partita. */
.results--skeleton.is-idle .skel {
	background: none;
	border: 1px solid var(--line);
	animation: none;
}
.results--skeleton.is-idle .skel--line,
.results--skeleton.is-idle .skel--short,
.results--skeleton.is-idle .skel--price {
	border: 0;
	background: rgba(255, 255, 255, 0.045);
}
.results--skeleton.is-idle {
	opacity: 0.55;
}
.result {
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.028);
	padding: 0.5rem;
	opacity: 0;
	transform: translateY(8px) scale(0.985);
	animation: pop var(--dur-slow) var(--ease-out) forwards;
}
.result:nth-child(1) { animation-delay: 0.05s; }
.result:nth-child(2) { animation-delay: 0.12s; }
.result:nth-child(3) { animation-delay: 0.19s; }
.result:nth-child(4) { animation-delay: 0.26s; }
.result:nth-child(5) { animation-delay: 0.33s; }
.result:nth-child(6) { animation-delay: 0.4s; }
@keyframes pop { to { opacity: 1; transform: none; } }

.result__img {
	aspect-ratio: 1 / 1;
	border-radius: var(--r-xs);
	margin-bottom: 0.5rem;
	background: var(--ink-800);
	position: relative;
	overflow: hidden;
}
.result__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Nessun velo sopra le foto prodotto: l'uniformità è già nel file,
   applicata in fase di preparazione delle immagini. */
.result__name {
	font-size: 0.72rem;
	line-height: 1.35;
	color: var(--text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2em;
}
.result__sku {
	font-family: var(--font-mono);
	font-size: 0.6rem;
	letter-spacing: 0.06em;
	color: var(--ink-500);
	margin-top: 0.2rem;
}
.result__price {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: #fff;
	margin-top: 0.3rem;
	font-variant-numeric: tabular-nums;
}
.result__badge {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 1;
	padding: 0.12rem 0.4rem;
	border-radius: 3px;
	background: var(--ink-1000);
	font-family: var(--font-mono);
	font-size: 0.55rem;
	letter-spacing: 0.05em;
	color: var(--sg-cyan);
	text-transform: uppercase;
}

/* Scheletro di caricamento: quello che si vede fra la fine della
   digitazione e la comparsa dei risultati. Serve a raccontare che una
   ricerca è un'operazione, non un taglio di montaggio. */
.results--skeleton .result {
	opacity: 1;
	transform: none;
	animation: none;
}
.skel {
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.045) 0%,
		rgba(255, 255, 255, 0.1) 45%,
		rgba(255, 255, 255, 0.045) 90%
	);
	background-size: 240% 100%;
	border-radius: var(--r-xs);
	animation: shimmer 1.25s linear infinite;
}
.skel--img { aspect-ratio: 1 / 1; margin-bottom: 0.5rem; }
.skel--line { height: 0.58rem; margin-bottom: 0.32rem; border-radius: 3px; }
.skel--short { width: 45%; }
.skel--price { width: 32%; margin-bottom: 0; }
.results--skeleton .result:nth-child(2) .skel { animation-delay: 0.1s; }
.results--skeleton .result:nth-child(3) .skel { animation-delay: 0.2s; }
.results--skeleton .result:nth-child(4) .skel { animation-delay: 0.3s; }
.results--skeleton .result:nth-child(5) .skel { animation-delay: 0.4s; }
.results--skeleton .result:nth-child(6) .skel { animation-delay: 0.5s; }
@keyframes shimmer {
	from { background-position: 140% 0; }
	to { background-position: -100% 0; }
}

/* Indicatore di attività nella riga dei metadati */
.mock__meta .spin {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 0.4rem;
	vertical-align: -1px;
	border: 1.5px solid rgba(255, 255, 255, 0.18);
	border-top-color: var(--sg-cyan);
	border-radius: 50%;
	animation: spin 0.68s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Bolle chat */
.chat { display: grid; gap: 0.55rem; }
.bubble {
	max-width: 86%;
	padding: 0.65rem 0.9rem;
	border-radius: var(--r-md);
	font-size: var(--fs-xs);
	line-height: 1.55;
}
.bubble--user {
	justify-self: end;
	background: rgba(101, 98, 228, 0.26);
	border: 1px solid rgba(139, 84, 212, 0.36);
	color: #fff;
	border-bottom-right-radius: 5px;
}
.bubble--bot {
	justify-self: start;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid var(--line);
	color: var(--text-muted);
	border-bottom-left-radius: 5px;
}
.bubble strong { color: #fff; font-weight: 550; }
.typing { display: inline-flex; gap: 3px; align-items: center; height: 1em; }
.typing i {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--text-dim);
	animation: typing 1.25s var(--ease-in-out) infinite;
}
.typing i:nth-child(2) { animation-delay: 0.16s; }
.typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.28; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2.5px); } }

/* Barra prove sotto l'hero */
.proofbar {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.proofbar__item {
	padding: clamp(1.25rem, 2.4vw, 2rem);
	background: var(--bg);
	text-align: center;
}
.proofbar__val {
	display: block;
	font-size: clamp(1.7rem, 1.05rem + 2.6vw, 2.75rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	color: #fff;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.proofbar__lab {
	display: block;
	margin-top: 0.35rem;
	font-size: var(--fs-xs);
	color: var(--text-dim);
	line-height: 1.4;
	text-wrap: balance;
}

/* ==========================================================================
   08. SEZIONI MARKETING
   ========================================================================== */

/* --- Split contenuto/visual --------------------------------------------- */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2.25rem, 5vw, 4.5rem);
	align-items: center;
}
.split__media { position: relative; }
.split--reverse .split__media { order: -1; }

/* --- Passi numerati ------------------------------------------------------ */
.steps {
	display: grid;
	gap: var(--sp-6);
	counter-reset: step;
}
.step {
	position: relative;
	padding-left: 3.4rem;
}
.step::before {
	counter-increment: step;
	content: "0" counter(step);
	position: absolute;
	left: 0;
	top: -0.1rem;
	display: grid;
	place-items: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	border: 1px solid var(--line-brand);
	background: rgba(101, 98, 228, 0.12);
	font-family: var(--font-mono);
	font-size: 0.72rem;
	color: var(--sg-cyan);
	letter-spacing: 0.02em;
}
.step__title { font-size: var(--fs-h4); font-weight: 600; color: #fff; margin-bottom: 0.4rem; letter-spacing: -0.018em; }
.step__text { color: var(--text-muted); font-size: var(--fs-sm); line-height: var(--lh-loose); }
/* filo verticale che collega i passi */
.steps--connected .step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 1.17rem;
	top: 2.55rem;
	bottom: -1.6rem;
	width: 1px;
	background: linear-gradient(180deg, var(--line-brand), transparent);
}

/* --- Elenco con spunte --------------------------------------------------- */
.checks { display: grid; gap: 0.8rem; }
.checks li {
	display: grid;
	grid-template-columns: 1.2rem 1fr;
	gap: 0.7rem;
	align-items: start;
	font-size: var(--fs-sm);
	color: var(--text-muted);
	line-height: 1.6;
}
.checks svg { width: 1.05rem; height: 1.05rem; color: var(--sg-cyan); margin-top: 0.22rem; }
/* Rete di sicurezza: se una voce finisce per avere più di due figli, quelli
   in eccesso restano nella colonna del testo invece di incastrarsi nella
   colonna dell'icona (1,2rem) e andare a capo a ogni parola. */
.checks li > *:nth-child(n + 3) { grid-column: 2; }
.checks li .text-dim { display: block; margin-top: 0.15rem; font-size: var(--fs-xs); }
.checks strong { color: #fff; font-weight: 550; }

/* --- Card settore con foto ---------------------------------------------- */
.sector {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 320px;
	padding: var(--sp-5);
	border-radius: var(--r-lg);
	border: 1px solid var(--line);
	overflow: hidden;
	isolation: isolate;
}
.sector__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.75) contrast(1.06) brightness(0.78);
	transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.sector::after {
	/* trattamento duotone col gradiente di marca */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(10, 9, 18, 0.1) 0%, rgba(10, 9, 18, 0.6) 46%, rgba(10, 9, 18, 0.95) 84%, rgba(10, 9, 18, 0.98) 100%);
}
.sector:hover .sector__img { transform: scale(1.045); filter: grayscale(0.25) contrast(1.04) brightness(0.9); }
.sector__title { font-size: var(--fs-h4); font-weight: 600; color: #fff; margin-bottom: 0.35rem; letter-spacing: -0.018em; }
.sector__text { font-size: var(--fs-xs); color: var(--ink-200); line-height: 1.6; }

/* --- Media trattato -----------------------------------------------------
   Le foto di corredo vengono desaturate e velate col gradiente di marca:
   una fotografia satura, su una tavolozza scura come questa, sembra
   incollata sopra il layout invece che farne parte. */
.media-treat {
	position: relative;
	border-radius: var(--r-xl);
	overflow: hidden;
	border: 1px solid var(--line);
	isolation: isolate;
}
.media-treat img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: grayscale(0.72) contrast(1.06) brightness(0.72);
}
.media-treat::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(128deg, rgba(74, 140, 242, 0.34), rgba(139, 84, 212, 0.24) 55%, rgba(228, 95, 151, 0.26));
	mix-blend-mode: screen;
	opacity: 0.55;
	pointer-events: none;
}
.media-treat--tall { aspect-ratio: 4 / 3; }

/* --- Citazione ----------------------------------------------------------- */
.quote {
	position: relative;
	padding: clamp(1.75rem, 3.4vw, 2.75rem);
	border-radius: var(--r-xl);
	background: linear-gradient(160deg, rgba(101, 98, 228, 0.12), rgba(228, 95, 151, 0.07));
	border: 1px solid var(--line-brand);
}
.quote__text {
	font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
	line-height: 1.55;
	color: #fff;
	letter-spacing: -0.02em;
	text-wrap: pretty;
}
.quote__by {
	margin-top: var(--sp-5);
	font-size: var(--fs-sm);
	color: var(--text-muted);
}
.quote__by strong { color: #fff; font-weight: 550; display: block; }

/* --- CTA finale ---------------------------------------------------------- */
.cta-final {
	position: relative;
	padding: clamp(2.5rem, 5.5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
	border-radius: var(--r-2xl);
	background: var(--surface);
	border: 1px solid var(--line);
	overflow: hidden;
	text-align: center;
}
.cta-final__inner { position: relative; z-index: 1; max-width: 46rem; margin-inline: auto; }
.cta-final .cluster { justify-content: center; margin-top: var(--sp-8); }

/* --- Logo strip / lingue ------------------------------------------------- */
.langs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	justify-content: center;
}
.lang-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.85rem;
	border-radius: var(--r-pill);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.05em;
	color: var(--text-muted);
	text-transform: uppercase;
}

/* ==========================================================================
   09. METRICHE & GRAFICI
   ========================================================================== */
.kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
	gap: var(--sp-4);
}
.kpi {
	position: relative;
	padding: clamp(1.15rem, 2.1vw, 1.5rem);
	border-radius: var(--r-lg);
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
	overflow: hidden;
}
.kpi__head {
	display: flex;
	min-width: 0;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.6rem;
	margin-bottom: 0.85rem;
}
.kpi__label {
	min-width: 0;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.075em;
	text-transform: uppercase;
	color: var(--text-dim);
	line-height: 1.4;
}
.kpi__delta {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.16rem 0.45rem;
	border-radius: var(--r-pill);
	font-family: var(--font-mono);
	font-size: 0.66rem;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	flex: none;
}
.kpi__delta--up { color: var(--success); background: var(--success-dim); }
.kpi__delta--down { color: var(--danger); background: rgba(242, 100, 138, 0.13); }
.kpi__value {
	font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.1rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	color: #fff;
	line-height: 1.06;
	font-variant-numeric: tabular-nums;
}
.kpi__hint { margin-top: 0.45rem; font-size: var(--fs-xs); color: var(--text-dim); line-height: 1.45; }

/* --- Imbuto -------------------------------------------------------------- */
.funnel { display: grid; gap: 0.55rem; }
.funnel__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem;
	padding: 0.9rem 1.05rem;
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	background: var(--surface);
	position: relative;
	overflow: hidden;
}
.funnel__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: var(--w, 100%);
	background: var(--grad-brand);
	opacity: 0.16;
	transition: width 900ms var(--ease-out);
}
.funnel__top {
	position: relative;
	min-width: 0;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}
.funnel__label { font-size: var(--fs-sm); color: var(--text); font-weight: 500; min-width: 0; }
.funnel__val {
	font-family: var(--font-mono);
	font-size: var(--fs-sm);
	color: #fff;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.funnel__sub {
	position: relative;
	font-size: var(--fs-xs);
	color: var(--text-dim);
	font-variant-numeric: tabular-nums;
}

/* --- Grafico SVG --------------------------------------------------------- */
.chart {
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	padding: clamp(1rem, 2.2vw, 1.6rem);
	overflow: hidden;
}
.chart__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: var(--sp-5);
}
.chart__title { font-size: var(--fs-h4); color: #fff; font-weight: 600; letter-spacing: -0.018em; }
.chart__sub { font-size: var(--fs-xs); color: var(--text-dim); }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.15rem;
	margin-top: var(--sp-4);
	font-size: var(--fs-xs);
	color: var(--text-muted);
}
.chart__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.chart__legend i { width: 9px; height: 9px; border-radius: 50%; display: block; flex: none; }

/* --- Nota fonte dati ----------------------------------------------------- */
.datanote {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	padding: 0.9rem 1.1rem;
	border-radius: var(--r-md);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.022);
	font-size: var(--fs-xs);
	color: var(--text-dim);
	line-height: 1.6;
}
.datanote svg { width: 15px; height: 15px; margin-top: 0.15rem; color: var(--text-dim); flex: none; }

/* ==========================================================================
   10. PREZZI
   ========================================================================== */
.plans {
	display: grid;
	gap: var(--sp-5);
	align-items: stretch;
}
.plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 2.6vw, 2rem);
	border-radius: var(--r-xl);
	border: 1px solid var(--line);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
	transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.plan:hover { border-color: var(--line-strong); }
.plan--featured {
	border-color: transparent;
	background:
		linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
		var(--grad-brand) border-box;
	border: 1px solid transparent;
}
.plan__flag {
	position: absolute;
	top: -0.72rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.24rem 0.8rem;
	border-radius: var(--r-pill);
	background: var(--grad-action);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	white-space: nowrap;
}
.plan__name { font-size: var(--fs-h3); font-weight: 600; color: #fff; letter-spacing: -0.025em; }
.plan__for { margin-top: 0.4rem; font-size: var(--fs-xs); color: var(--sg-cyan); font-family: var(--font-mono); letter-spacing: 0.03em; }
.plan__desc { margin-top: 0.85rem; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.plan__meta {
	display: grid;
	gap: 0.55rem;
	margin: var(--sp-6) 0;
	padding: var(--sp-5) 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.plan__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: var(--fs-sm);
}
.plan__row dt { color: var(--text-dim); }
.plan__row dd { margin: 0; color: #fff; font-family: var(--font-mono); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; text-align: right; }
.plan__feats { display: grid; gap: 0.6rem; margin-bottom: var(--sp-6); }
.plan__feats li {
	display: grid;
	grid-template-columns: 1.05rem 1fr;
	gap: 0.6rem;
	align-items: start;
	font-size: var(--fs-sm);
	color: var(--text-muted);
	line-height: 1.55;
}
.plan__feats svg { width: 0.95rem; height: 0.95rem; color: var(--sg-cyan); margin-top: 0.25rem; }
.plan__cta { margin-top: auto; }

/* --- Schede (tab) -------------------------------------------------------- */
[role="tablist"] {
	gap: 0.4rem;
}
[role="tab"] {
	position: relative;
}
[role="tab"].is-active,
[role="tab"][aria-selected="true"] {
	background: rgba(255, 255, 255, 0.07);
	border-color: var(--line-strong);
	color: #fff;
}
[role="tabpanel"]:focus-visible {
	outline-offset: 8px;
}

/* ==========================================================================
   11. FAQ / ACCORDION
   ========================================================================== */
.faq { display: grid; gap: 0.6rem; }
.faq-item {
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	overflow: hidden;
	transition: border-color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.faq-item[open] { border-color: var(--line-brand); background: rgba(101, 98, 228, 0.05); }
.faq-item > summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 1.25rem;
	cursor: pointer;
	list-style: none;
	font-size: var(--fs-body);
	font-weight: 500;
	color: #fff;
	letter-spacing: -0.018em;
	line-height: 1.45;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
	content: "";
	flex: none;
	width: 11px;
	height: 11px;
	margin-top: 0.4rem;
	border-right: 1.6px solid var(--text-dim);
	border-bottom: 1.6px solid var(--text-dim);
	transform: rotate(45deg);
	transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.faq-item[open] > summary::after {
	transform: rotate(-135deg) translate(-2px, -2px);
	border-color: var(--sg-cyan);
}
.faq-item > summary:hover { color: var(--sg-cyan); }
.faq-item__body {
	padding: 0 1.25rem 1.25rem;
	font-size: var(--fs-sm);
	color: var(--text-muted);
	line-height: var(--lh-loose);
	max-width: 68ch;
}
.faq-item__body > * + * { margin-top: 0.85rem; }
.faq-item__body strong { color: #fff; font-weight: 550; }
.faq-item__body a { color: var(--sg-cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   12. FORM
   ========================================================================== */
.form { display: grid; gap: var(--sp-5); }
.form__row { display: grid; gap: var(--sp-5); }
.field { display: grid; gap: 0.45rem; }
.field label {
	font-size: var(--fs-xs);
	font-weight: 500;
	color: var(--text-muted);
	letter-spacing: 0.005em;
}
.field .req { color: var(--sg-pink); }
.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 0.78rem 0.95rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	color: #fff;
	font-size: var(--fs-sm);
	transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out),
		box-shadow var(--dur-fast) var(--ease-out);
	-webkit-appearance: none;
	appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a49ec2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	background-size: 15px;
	padding-right: 2.4rem;
}
.field select option { background: var(--ink-850); color: #fff; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-500); }
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: rgba(139, 84, 212, 0.75);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 3px rgba(101, 98, 228, 0.18);
}
.field--error input,
.field--error select,
.field--error textarea { border-color: var(--danger); }
.field__err { font-size: var(--fs-xs); color: var(--danger); }

.consent {
	display: grid;
	grid-template-columns: 1.15rem 1fr;
	gap: 0.7rem;
	align-items: start;
	font-size: var(--fs-xs);
	color: var(--text-dim);
	line-height: 1.6;
}
.consent input[type="checkbox"] {
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.18rem;
	accent-color: var(--sg-indigo);
	-webkit-appearance: auto;
	appearance: auto;
}
.consent a { color: var(--sg-cyan); text-decoration: underline; text-underline-offset: 2px; }

/* Trappola anti-spam: invisibile ma non display:none (i bot la compilano) */
.hp-field {
	position: absolute !important;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	padding: 0.95rem 1.15rem;
	border-radius: var(--r-md);
	font-size: var(--fs-sm);
	line-height: 1.6;
	border: 1px solid;
}
.form-notice--ok { border-color: rgba(52, 217, 155, 0.4); background: var(--success-dim); color: #b6f4da; }
.form-notice--err { border-color: rgba(242, 100, 138, 0.4); background: rgba(242, 100, 138, 0.1); color: #ffc2d3; }

/* --- Modulo a passaggi --------------------------------------------------- */
.form--steps { gap: var(--sp-6); }

/* Avanzamento */
.stepper {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 0.5rem;
	list-style: none;
	margin-bottom: var(--sp-2);
	counter-reset: none;
}
.stepper__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-top: 0.7rem;
	border-top: 2px solid var(--line);
	font-size: var(--fs-xs);
	color: var(--ink-500);
	transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
	min-width: 0;
}
.stepper__num {
	display: grid;
	place-items: center;
	width: 1.4rem;
	height: 1.4rem;
	flex: none;
	border-radius: 50%;
	border: 1px solid currentColor;
	font-family: var(--font-mono);
	font-size: 0.66rem;
	line-height: 1;
}
.stepper__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.stepper__item.is-current {
	border-top-color: var(--sg-cyan);
	color: #fff;
}
.stepper__item.is-current .stepper__num {
	background: var(--grad-action);
	border-color: transparent;
	color: #fff;
}
.stepper__item.is-done {
	border-top-color: var(--sg-indigo);
	color: var(--text-muted);
}
.stepper__item.is-done .stepper__num {
	border-color: var(--sg-indigo);
	color: var(--sg-cyan);
}

/* Un passaggio */
.form-step {
	display: grid;
	gap: var(--sp-5);
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.form-step[hidden] { display: none; }
.form-step__legend {
	padding: 0;
	margin-bottom: 0.25rem;
	font-size: var(--fs-h4);
	font-weight: 600;
	color: #fff;
	letter-spacing: -0.02em;
}
/* Con JavaScript attivo la didascalia è ridondante: il passo è già
   nominato nell'indicatore di avanzamento. */
.form--steps.is-enhanced .form-step__legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.field__hint {
	font-size: var(--fs-xs);
	color: var(--text-dim);
	line-height: 1.5;
}

/* Verifica */
.captcha {
	display: grid;
	gap: 0.6rem;
	padding: 1rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, 0.022);
}
.captcha__input { max-width: 7rem; }
.captcha__note {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-size: var(--fs-xs);
	color: var(--text-dim);
	line-height: 1.5;
}
.captcha__note svg { margin-top: 0.15rem; color: var(--success); flex: none; }
.captcha.field--error { border-color: var(--danger); }

/* Comandi */
.form-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-top: var(--sp-2);
}
.form-nav [data-sg-next],
.form-nav [data-sg-submit] { margin-left: auto; }
.form-nav .flip { transform: rotate(180deg); }
@media (max-width: 479.98px) {
	.form-nav { flex-direction: column-reverse; align-items: stretch; }
	.form-nav [data-sg-next],
	.form-nav [data-sg-submit],
	.form-nav [data-sg-prev] { margin-left: 0; width: 100%; }
}

/* Conferma di invio */
.form-done {
	text-align: center;
	padding: var(--sp-6) 0;
}
.form-done__mark {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	margin: 0 auto var(--sp-6);
	border-radius: 50%;
	background: var(--success-dim);
	border: 1px solid rgba(52, 217, 155, 0.35);
	color: var(--success);
}
.form-done .card__text { max-width: 34rem; margin-inline: auto; }

/* ==========================================================================
   13. BLOG & PROSE
   ========================================================================== */
.post-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	overflow: hidden;
	transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
	position: relative;
}
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-card__media {
	aspect-ratio: 16 / 9;
	background: var(--ink-800);
	overflow: hidden;
}
.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.55) brightness(0.82) contrast(1.05);
	transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
}
.post-card:hover .post-card__media img { transform: scale(1.04); filter: grayscale(0.15) brightness(0.95); }
.post-card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.85rem;
	font-family: var(--font-mono);
	font-size: 0.66rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 0.7rem;
}
.post-card__title {
	font-size: var(--fs-h4);
	font-weight: 600;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1.35;
	margin-bottom: 0.55rem;
}
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__excerpt { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.65; }
.post-card__foot { margin-top: auto; padding-top: var(--sp-4); }

/* --- Prose (contenuto redazionale) -------------------------------------- */
.prose {
	max-width: var(--container-prose);
	font-size: 1.09rem;
	line-height: 1.78;
	color: var(--ink-200);
}
.prose > * + * { margin-top: 1.35em; }
.prose h2 {
	font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.9rem);
	margin-top: 2.4em;
	margin-bottom: -0.35em;
	letter-spacing: -0.028em;
	scroll-margin-top: calc(var(--header-h) + 2rem);
}
.prose h3 {
	font-size: clamp(1.16rem, 1.06rem + 0.45vw, 1.35rem);
	margin-top: 2em;
	margin-bottom: -0.4em;
	scroll-margin-top: calc(var(--header-h) + 2rem);
}
.prose h2 + *, .prose h3 + * { margin-top: 1em; }
.prose p { text-wrap: pretty; }
.prose a {
	color: var(--sg-cyan);
	text-decoration: underline;
	text-decoration-color: rgba(91, 192, 251, 0.42);
	text-underline-offset: 3px;
	transition: text-decoration-color var(--dur) var(--ease-out);
}
.prose a:hover { text-decoration-color: var(--sg-cyan); }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { display: grid; gap: 0.6em; padding-left: 1.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--sg-violet); }
.prose li > ul, .prose li > ol { margin-top: 0.6em; }
.prose blockquote {
	border-left: 2px solid var(--sg-violet);
	padding: 0.3em 0 0.3em 1.25em;
	color: #fff;
	font-size: 1.12em;
	line-height: 1.6;
	letter-spacing: -0.015em;
}
.prose figure { margin: 2.2em 0; }
.prose figure img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.prose figcaption { margin-top: 0.7em; font-size: var(--fs-xs); color: var(--text-dim); text-align: center; }
.prose code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	padding: 0.14em 0.38em;
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.07);
	color: #d8cffa;
}
.prose pre {
	padding: 1.15rem 1.3rem;
	border-radius: var(--r-md);
	background: var(--ink-1000);
	border: 1px solid var(--line);
	overflow-x: auto;
	font-size: 0.85rem;
	line-height: 1.6;
}
.prose pre code { background: none; padding: 0; color: var(--ink-150); }
.prose hr { margin: 2.6em 0; }
.prose table { font-size: var(--fs-sm); }
.prose :is(h2, h3) + .table-wrap { margin-top: 1.3em; }

/* Indice dei contenuti */
.toc {
	padding: var(--sp-5);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: rgba(255, 255, 255, 0.022);
}
.toc__title {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--tr-eyebrow);
	text-transform: uppercase;
	color: var(--text-dim);
	margin-bottom: 0.85rem;
}
.toc ol { display: grid; gap: 0.5rem; list-style: none; padding: 0; counter-reset: toc; }
.toc a { font-size: var(--fs-sm); color: var(--text-muted); }
.toc a:hover { color: var(--sg-cyan); }

/* Briciole di pane */
.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--fs-xs);
	color: var(--text-dim);
	margin-bottom: var(--sp-6);
}
.crumbs a:hover { color: var(--sg-cyan); }
.crumbs svg { width: 12px; height: 12px; opacity: 0.5; }

/* Paginazione */
.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	justify-content: center;
	margin-top: var(--sp-12);
}
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding-inline: 0.65rem;
	border-radius: var(--r-sm);
	border: 1px solid var(--line);
	font-size: var(--fs-sm);
	color: var(--text-muted);
	transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.pagination .page-numbers:hover { color: #fff; border-color: var(--line-strong); }
.pagination .current {
	background: var(--grad-action);
	border-color: transparent;
	color: #fff;
	font-weight: 550;
}

/* --- Documenti generati da WPSimpleCompliance ---------------------------
   Il plugin resta intatto: qui ci sono solo regole nostre sulle sue classi,
   così un suo aggiornamento non perde niente.

   Nota importante. Il foglio di stile del plugin è scritto per un documento
   su fondo bianco e fissa a codice colori chiari (#172033 per il testo,
   #f5f7fb per le intestazioni di tabella, #d8deea per i bordi). Su fondo
   scuro quel testo sparisce. Tutto ciò che segue serve a riportare quei
   valori dentro la tavolozza del tema.

   Le regole sono limitate a `.prose`, cioè al documento in pagina: dentro
   la finestra delle preferenze cookie il plugin usa le proprie variabili
   `--spcp-*`, che sono già impostate sui colori del tema dal pannello di
   configurazione. Lì non tocchiamo niente. */
.prose .simple-policy {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	font-size: 1.06rem;
	line-height: 1.75;
	color: var(--ink-200);
}
.prose .simple-policy > * + * { margin-top: 1.3em; }

/* Il plugin ripete il titolo del documento come primo <h2>: sopra c'è già
   l'<h1> della pagina, che dice la stessa cosa. Si toglie del tutto, così
   sparisce anche dall'indice delle intestazioni letto dagli screen reader
   e non resta un doppione annunciato due volte. */
.prose .simple-policy > h2:first-child { display: none; }

.prose .simple-policy :is(h2, h3, h4) {
	color: #fff;
	letter-spacing: -0.028em;
	scroll-margin-top: calc(var(--header-h) + 2rem);
}
/* Le distanze si danno tutte con `margin-bottom`: i capoversi non sono
   figli diretti di `.simple-policy` (stanno dentro l'articolo di lingua),
   quindi le regole di fratellanza non li raggiungerebbero. */
.prose .simple-policy h2 {
	margin: 2.2em 0 0.75em;
	font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
}
.prose .simple-policy h3 {
	margin: 2em 0 0.6em;
	font-size: clamp(1.12rem, 1.05rem + 0.4vw, 1.3rem);
}
.prose .simple-policy h4 { margin: 1.7em 0 0.5em; }
.prose .simple-policy > :first-child,
.prose .simple-policy__language > :first-child { margin-top: 0; }
.prose .simple-policy :is(p, li) {
	color: var(--ink-200);
	text-wrap: pretty;
}
.prose .simple-policy :is(p, ul, ol) { margin-block: 0 1.15em; }
.prose .simple-policy :is(p, ul, ol):last-child { margin-bottom: 0; }
.prose .simple-policy strong { color: #fff; font-weight: 600; }
.prose .simple-policy a {
	color: var(--sg-cyan);
	text-decoration: underline;
	text-decoration-color: rgba(91, 192, 251, 0.42);
	text-underline-offset: 3px;
}
.prose .simple-policy a:hover { text-decoration-color: var(--sg-cyan); }
.prose .simple-policy :is(ul, ol) { display: grid; gap: 0.6em; padding-left: 1.35em; }
.prose .simple-policy ul { list-style: disc; }
.prose .simple-policy ol { list-style: decimal; }
.prose .simple-policy li::marker { color: var(--sg-violet); }

/* Solo la riga della data è in carattere monospaziato.
   Attenzione: `.simple-policy__language` NON è un'etichetta, è l'articolo
   che contiene l'intera informativa in una lingua. Applicarci uno stile da
   didascalia renderebbe illeggibile tutto il documento. */
.prose .spcp-policy__updated {
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	letter-spacing: 0.03em;
	color: var(--text-dim);
}
.prose .simple-policy__language + .simple-policy__language {
	margin-top: 3.5rem;
	padding-top: 3rem;
	border-top: 1px solid var(--line);
}

/* Tabelle. Quelle delle informative hanno quattro colonne e non stanno
   nella colonna di lettura: le si lascia uscire fino alla larghezza del
   contenitore, restando centrate. Sotto quella soglia scorrono in
   orizzontale dentro la propria cornice, senza trascinare la pagina. */
.prose .spcp-policy-table-wrapper {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(62rem, calc(100vw - var(--gutter) * 2 - 1rem));
	max-width: none;
	margin: 2em 0;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
	-webkit-overflow-scrolling: touch;
}
.prose .spcp-policy-table {
	width: 100%;
	min-width: 38rem;
	border-collapse: separate;
	border-spacing: 0;
	color: var(--ink-200);
	font-size: var(--fs-sm);
	line-height: 1.55;
}
.prose .spcp-policy-table caption {
	padding: 0.9rem 1.1rem 0;
	color: var(--text-dim);
	font-size: var(--fs-xs);
	font-weight: 500;
	text-align: left;
}
.prose .spcp-policy-table :is(th, td) {
	padding: 0.85rem 1.1rem;
	border: 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}
.prose .spcp-policy-table thead th {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: var(--tr-eyebrow);
	text-transform: uppercase;
	color: var(--text-dim);
	background: rgba(255, 255, 255, 0.03);
	white-space: nowrap;
}
.prose .spcp-policy-table tbody th { color: #fff; font-weight: 600; }
.prose .spcp-policy-table tbody tr:last-child :is(th, td) { border-bottom: 0; }

/* Il banner e la finestra delle preferenze arrivano con Arial: qui
   prendono il carattere del sito. I colori restano quelli impostati dal
   pannello del plugin. */
.spcp-cookie,
.spcp-cookie button,
.spcp-cookie input,
.spcp-cookie select {
	font-family: var(--font-sans);
}

/* Link «gestisci i cookie» */
.spcp-cookie-settings-link,
.spcp-accessibility-footer-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--sg-cyan);
	font-size: var(--fs-sm);
}

/* --- Piano gratuito e commutatore del listino ---------------------------
   Il commutatore mensile/annuale è fatto con due radio veri e il selettore
   `:checked ~`: niente JavaScript, funziona da tastiera, e se lo script del
   sito non parte i prezzi restano comunque leggibili. */

.freeplan {
	display: grid;
	gap: var(--sp-8);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--sg-cyan-dim, var(--line-strong));
	border-radius: var(--r-xl);
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(91, 192, 251, 0.09), transparent 60%),
		var(--surface);
}
.freeplan__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); letter-spacing: -0.03em; }
.freeplan__desc {
	margin-top: var(--sp-4);
	max-width: 46ch;
	color: var(--text-muted);
	text-wrap: pretty;
}
.freeplan__feats {
	display: grid;
	gap: 0.55rem;
	margin-top: var(--sp-6);
	font-size: var(--fs-sm);
}
.freeplan__feats li { display: grid; grid-template-columns: 1.2rem 1fr; gap: 0.5rem; align-items: start; }
.freeplan__feats svg { color: var(--success); margin-top: 0.2em; }
.freeplan__buy {
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
	padding: var(--sp-6);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--ink-900);
}
.freeplan__price {
	font-family: var(--font-mono);
	font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem);
	line-height: 1;
	letter-spacing: -0.04em;
	color: #fff;
}
.freeplan__price span {
	display: block;
	margin-top: 0.45rem;
	font-size: var(--fs-sm);
	letter-spacing: normal;
	color: var(--text-dim);
}
.freeplan__note { font-size: var(--fs-xs); line-height: 1.6; color: var(--text-dim); text-wrap: pretty; }

.billing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.6rem 1rem;
	margin-bottom: var(--sp-8);
	text-align: center;
}
.billing__label {
	width: 100%;
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--tr-eyebrow);
	text-transform: uppercase;
	color: var(--ink-400);
}
.billing__switch {
	display: inline-flex;
	padding: 0.25rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--ink-900);
}
.billing__switch label {
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--text-dim);
	cursor: pointer;
	transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.billing__switch label:hover { color: #fff; }
.billing__save {
	font-size: var(--fs-xs);
	color: var(--sg-cyan);
}

/* Lo stato acceso del commutatore e lo scambio dei prezzi. */
#sg-bill-m:checked ~ .billing .billing__switch label[for="sg-bill-m"],
#sg-bill-y:checked ~ .billing .billing__switch label[for="sg-bill-y"] {
	background: var(--ink-700);
	color: #fff;
}
#sg-bill-m:focus-visible ~ .billing .billing__switch label[for="sg-bill-m"],
#sg-bill-y:focus-visible ~ .billing .billing__switch label[for="sg-bill-y"] {
	outline: 2px solid var(--sg-cyan);
	outline-offset: 2px;
}
.price--y { display: none; }
#sg-bill-y:checked ~ .plans .price--m { display: none; }
#sg-bill-y:checked ~ .plans .price--y { display: block; }

.plan__price { margin-top: var(--sp-6); }
.plan__setup {
	margin-top: 0.6rem;
	font-size: var(--fs-xs);
	color: var(--text-dim);
}

.extras {
	margin-top: var(--sp-10);
	padding: var(--sp-6) clamp(1.1rem, 3vw, 1.75rem);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--surface);
}
.extras__title {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--tr-eyebrow);
	text-transform: uppercase;
	color: var(--ink-400);
	margin-bottom: var(--sp-5);
}
.extras__list { display: grid; gap: var(--sp-5); }
.extras__row { display: grid; gap: 0.35rem; }
.extras__row dt { font-weight: 550; color: #fff; font-size: var(--fs-sm); }
.extras__row dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.8rem; }
.extras__row strong { font-family: var(--font-mono); font-size: 1.15rem; color: var(--sg-cyan); }
.extras__row span { font-size: var(--fs-sm); color: var(--text-dim); }

@media (min-width: 768px) {
	.extras__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
}
@media (min-width: 1000px) {
	.freeplan { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr); align-items: center; gap: var(--sp-12); }
}

/* --- Selettore di lingua ------------------------------------------------
   Codici, non bandiere: una bandiera è un paese, non una lingua. Il nome
   esteso resta nel markup per chi naviga con un lettore di schermo. */
.langswitch {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--ink-900);
}
.langswitch__item {
	display: block;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: var(--fs-xs);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--text-dim);
	transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.langswitch__item:hover { color: #fff; }
.langswitch__item.is-current {
	background: var(--ink-700);
	color: #fff;
}
.langswitch--drawer {
	margin-top: var(--sp-6);
	align-self: flex-start;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
	position: relative;
	margin-top: var(--section-y);
	border-top: 1px solid var(--line);
	background: var(--ink-1000);
	padding-block: clamp(3rem, 6vw, 4.5rem) var(--sp-8);
}
.footer-grid {
	display: grid;
	gap: var(--sp-10);
	margin-bottom: var(--sp-12);
}

/* Colonna del marchio: logo, riga di posizionamento, descrizione breve,
   dati societari. Stesso ordine del piè di pagina di CodyCloud. */
.footer-brand { max-width: 30rem; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand__eyebrow {
	margin-top: var(--sp-5);
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--tr-eyebrow);
	text-transform: uppercase;
	color: var(--sg-cyan);
}
.footer-brand__blurb {
	margin-top: var(--sp-4);
	max-width: 30rem;
	font-size: var(--fs-sm);
	line-height: 1.7;
	color: var(--text-muted);
	text-wrap: pretty;
}
.footer-brand__legal {
	margin-top: var(--sp-6);
	font-size: var(--fs-xs);
	line-height: 1.9;
	color: var(--ink-400);
}

.footer-col__title {
	font-family: var(--font-mono);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--tr-eyebrow);
	text-transform: uppercase;
	color: var(--ink-400);
	margin-bottom: var(--sp-4);
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a {
	font-size: var(--fs-sm);
	color: var(--text-muted);
	transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: #fff; }

/* Sedi e orari: tre blocchi staccati, non un paragrafo unico. */
.footer-places {
	display: grid;
	gap: var(--sp-5);
	font-style: normal;
	font-size: var(--fs-sm);
	line-height: 1.65;
	color: var(--text-muted);
}

/* Cofinanziamento: targa centrata sopra la dicitura, come nel modello.
   L'immagine istituzionale non si può alterare — né invertire, né
   ritagliare, né adattare al fondo scuro — e ha i marchi in blu scuro:
   le si dà quindi il fondo bianco per cui è stata disegnata. */
.footer-funding {
	display: grid;
	justify-items: center;
	gap: var(--sp-5);
	padding-block: var(--sp-8);
	border-top: 1px solid var(--line);
	text-align: center;
}
.funding-plate {
	padding: 0.9rem 1.35rem;
	background: #fff;
	border-radius: var(--r-sm);
	max-width: 100%;
}
.funding-plate img {
	display: block;
	width: 100%;
	max-width: 480px;
	height: auto;
}
.footer-funding__note {
	max-width: 46rem;
	font-size: var(--fs-xs);
	line-height: 1.7;
	color: var(--ink-400);
	text-wrap: pretty;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4) var(--sp-6);
	align-items: center;
	justify-content: space-between;
	padding-top: var(--sp-6);
	border-top: 1px solid var(--line);
	font-size: var(--fs-xs);
	color: var(--ink-400);
	line-height: 1.6;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.footer-legal a:hover { color: var(--text-muted); }

/* ==========================================================================
   15. UTILITY & MOTION
   ========================================================================== */
.mt-0 { margin-top: 0 !important; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 62ch; }
.maxw-sm { max-width: 34rem; }
.relative { position: relative; }
.full-w { width: 100%; }
.hide { display: none !important; }

/* La rivelazione allo scroll è stata rimossa.
   Era l'ultimo elemento decorativo rimasto e portava con sé un difetto
   concreto: il contenuto parte invisibile e dipende da JavaScript per
   comparire. Su una pagina che deve essere letta, il testo c'è e basta.
   Le classi restano inerti perché i template le stampano ancora. */
.reveal,
.reveal-d1, .reveal-d2, .reveal-d3, .reveal-d4, .reveal-d5 {
	opacity: 1;
	transform: none;
}

/* ==========================================================================
   BREAKPOINT — mobile first, poi tablet, poi desktop
   ========================================================================== */
@media (min-width: 600px) {
	/* Si adatta al numero di voci: quattro in homepage, tre sulle pagine
	   di prodotto. `auto-fit` eviterebbe colonne vuote ma perde
	   l'allineamento, quindi si dichiarano i due casi. */
	.proofbar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.proofbar:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero__cta .btn { min-width: auto; }
	.grid-2,
	.grid-4,
	.grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599.98px) {
	.btn { white-space: normal; text-align: center; }
	.card { padding: 1.15rem 1.25rem; }
	.section-head { margin-bottom: 1.6rem; }
	.section-head > p.lead { margin-top: 0.9rem; }
	.lead { line-height: 1.62; }
	.cta-final { padding: 2rem 1.35rem; }
	.site-footer { padding-block: 2.5rem 1.75rem; }
	.footer-grid { gap: 2rem; margin-bottom: 2rem; }
	.hero__cta { flex-direction: column; align-items: stretch; }
	.hero__cta .btn { width: 100%; }
	.results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.result:nth-child(5), .result:nth-child(6) { display: none; }
	.results--skeleton .result:nth-child(5),
	.results--skeleton .result:nth-child(6) { display: none; }
}

@media (min-width: 768px) {
	:root { --header-h: 76px; }
	/* Tre elementi non passano mai da due colonne: salterebbero a 2+1. */
	.grid-2, .grid-4, .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8); }
	.steps--connected .step:not(:last-child)::after { display: none; }
	.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.chart__head { flex-wrap: nowrap; }
}

@media (min-width: 1000px) {
	.nav-main { display: block; }
	.header-actions { display: flex; }
	.nav-toggle { display: none; }
	.nav-drawer { display: none; }
	.grid-3, .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr); }
	.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.split--wide-media { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr); }
	.split--reverse .split__media { order: 0; }
	.split--reverse .split__copy { order: 1; }
	.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* Da 1000 px in su le quattro colonne del modello. */
	.footer-grid { grid-template-columns: 1.6fr 1fr 1.05fr 1fr; gap: var(--sp-8); }
	.plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.proofbar--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1240px) {
	.plan--featured { transform: scale(1.028); }
	.plan--featured:hover { transform: scale(1.028) translateY(-2px); }
}

/* Puntatore grossolano: niente hover-lift, target più generosi */
@media (hover: none) {
	.card:hover, .post-card:hover, .btn:hover, .plan--featured:hover { transform: none; }
	.btn { padding-block: 0.85rem; }
}

/* Rispetto delle preferenze di movimento ridotto */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.reveal { opacity: 1; transform: none; }
	.searchbox__caret { animation: none; opacity: 1; }
	.skel { animation: none; }
	.mock__meta .spin { animation: none; border-top-color: var(--sg-cyan); }
}

/* Contrasto elevato */
@media (prefers-contrast: more) {
	:root {
		--text: #ffffff;
		--text-muted: #dedaf0;
		--text-dim: #b9b3d2;
		--line: rgba(255, 255, 255, 0.22);
		--line-strong: rgba(255, 255, 255, 0.4);
	}
}

/* Stampa */
@media print {
	.site-header, .site-footer, .nav-drawer, .cta-final, .aura, .mesh { display: none !important; }
	body { background: #fff; color: #000; }
	.prose, .container { max-width: 100%; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
