/* CLST Vetrina — movimento, banner, animazione "Come funziona", landing page
   Palette: navy #1A365D, navy scuro #0F2038, verde #2D7D46, cyan #00CFEF (mai testo bianco sul cyan). */

:root {
	--clstv-navy: #1A365D;
	--clstv-navy-deep: #0F2038;
	--clstv-ink: #0B2239;
	--clstv-green: #2D7D46;
	--clstv-green-lt: #4ADE80;
	--clstv-cyan: #00CFEF;
	--clstv-sky: #7DD3FC;
	--clstv-bg: #F5F8FA;
	--clstv-line: #D6E0E8;
	--clstv-muted: #55606B;
	--clstv-radius: 10px;
}

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

/* =====================================================================
   Header: rete di sicurezza (lo script aggiunge lo spazio se l'header copre)
   ================================================================== */
.clstv-header-fix { scroll-padding-top: var(--clstv-header-h, 0px); }
html:has(.clstv-header-fix) { scroll-padding-top: var(--clstv-header-h, 90px); }

/* =====================================================================
   Banner scorrevole
   ================================================================== */
.clstv-ticker {
	position: relative;
	z-index: 30;
	display: flex;
	align-items: center;
	background: var(--clstv-navy-deep);
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
	overflow: hidden;
}
.clstv-ticker::after {
	/* Filo di colore che scorre sotto il banner */
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--clstv-cyan), var(--clstv-green-lt), var(--clstv-sky), var(--clstv-cyan));
	background-size: 300% 100%;
	animation: clstv-flow 6s linear infinite;
}
.clstv-ticker__track {
	display: flex;
	flex: 1;
	min-width: 0;
	width: max-content;
	animation: clstv-marquee var(--clstv-ticker-speed, 40s) linear infinite;
}
.clstv-ticker:hover .clstv-ticker__track,
.clstv-ticker:focus-within .clstv-ticker__track,
.clstv-ticker.is-paused .clstv-ticker__track { animation-play-state: paused; }
.clstv-ticker__list {
	display: flex;
	flex: none;
	margin: 0;
	padding: 0;
	list-style: none;
}
.clstv-ticker__item {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 11px 26px 12px 0;
	white-space: nowrap;
}
.clstv-ticker__item::before {
	content: "";
	width: 7px; height: 7px;
	margin-right: 12px;
	border-radius: 50%;
	background: var(--clstv-cyan);
	box-shadow: 0 0 0 3px rgba(0, 207, 239, 0.18);
	flex: none;
}
.clstv-ticker__item:nth-child(3n+2)::before { background: var(--clstv-green-lt); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }
.clstv-ticker__item:nth-child(3n)::before { background: var(--clstv-sky); box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.18); }
.clstv-ticker a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.clstv-ticker a:hover { text-decoration-color: #fff; color: #fff; }
.clstv-ticker a:focus-visible,
.clstv-ticker__pause:focus-visible { outline: 3px solid var(--clstv-cyan); outline-offset: 2px; }
.clstv-ticker__pause {
	position: relative;
	z-index: 1;
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--clstv-navy-deep);
	box-shadow: -14px 0 14px var(--clstv-navy-deep);
	color: #fff;
	cursor: pointer;
}
.clstv-ticker__pause:hover { background: var(--clstv-navy); }

.clstv-i-pause { display: inline-block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.is-paused .clstv-i-pause,
[aria-pressed="true"] .clstv-i-pause {
	width: 0; height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
}

@keyframes clstv-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes clstv-flow { from { background-position: 0% 0; } to { background-position: 300% 0; } }

/* =====================================================================
   Movimento: colori che cambiano, pulsanti che respirano, entrate
   ================================================================== */
.clstv-motion .clstv-shimmer {
	background: linear-gradient(90deg, var(--clstv-cyan) 0%, var(--clstv-green-lt) 25%, var(--clstv-sky) 50%, var(--clstv-green-lt) 75%, var(--clstv-cyan) 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--clstv-cyan);
	animation: clstv-shimmer 7s linear infinite;
}
@keyframes clstv-shimmer { to { background-position: 200% center; } }

.clstv-motion .clstv-glow { position: relative; animation: clstv-breathe 3.2s ease-in-out infinite; }
@keyframes clstv-breathe {
	0%, 100% { box-shadow: 0 0 0 0 rgba(0, 207, 239, 0); }
	50% { box-shadow: 0 0 0 7px rgba(0, 207, 239, 0.28); }
}

.clstv-motion .clstv-hero-anim { position: relative; overflow: hidden; isolation: isolate; }
.clstv-motion .clstv-hero-anim::before {
	/* Aura che cambia colore lentamente dietro il titolo della home */
	content: "";
	position: absolute;
	z-index: -1;
	inset: -40%;
	background:
		radial-gradient(closest-side at 20% 30%, rgba(0, 207, 239, 0.28), transparent 70%),
		radial-gradient(closest-side at 80% 60%, rgba(74, 222, 128, 0.22), transparent 70%),
		radial-gradient(closest-side at 50% 90%, rgba(125, 211, 252, 0.2), transparent 70%);
	animation: clstv-aura 18s ease-in-out infinite alternate;
	pointer-events: none;
}
@keyframes clstv-aura {
	0% { transform: translate3d(-4%, -2%, 0) rotate(0deg); }
	50% { transform: translate3d(4%, 3%, 0) rotate(8deg); }
	100% { transform: translate3d(-2%, 4%, 0) rotate(-6deg); }
}

.clstv-js.clstv-motion-ready .clstv-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.clstv-js.clstv-motion-ready .clstv-reveal.is-in { opacity: 1; transform: none; }

/* =====================================================================
   Pulsanti del plugin
   ================================================================== */
.clstv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.65rem 1.4rem;
	border: 2px solid var(--clstv-navy);
	border-radius: 8px;
	background: #fff;
	color: var(--clstv-navy);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s, color .15s, transform .15s;
}
.clstv-btn:hover { background: #E8EFF5; color: var(--clstv-navy); transform: translateY(-1px); }
.clstv-btn--primary { background: var(--clstv-navy); color: #fff; }
.clstv-btn--primary:hover { background: #244876; color: #fff; }
.clstv-btn:focus-visible { outline: 3px solid var(--clstv-cyan); outline-offset: 2px; }

/* =====================================================================
   Animazione "Come funziona"
   ================================================================== */
.clstv-demo {
	background: linear-gradient(180deg, #fff 0%, var(--clstv-bg) 100%);
	padding: clamp(2.5rem, 6vw, 4.5rem) 0;
	color: var(--clstv-ink);
}
.clstv-demo__in { max-width: 1100px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); text-align: center; }
.clstv-demo__kicker { margin: 0 0 .3rem; color: var(--clstv-green); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.clstv-demo__title { margin: 0 0 1.5rem; color: var(--clstv-navy); font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.2; }
.clstv-demo__stage-wrap { position: relative; margin: 0 auto; max-width: 900px; overflow: hidden; }
.clstv-demo__stage {
	position: relative;
	width: 900px;
	height: 470px;
	transform-origin: 0 0;
	left: 50%;
	text-align: left;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.35;
}
.clstv-demo__caption {
	min-height: 3.2em;
	max-width: 640px;
	margin: 1.1rem auto .6rem;
	font-size: 1.12rem;
	font-weight: 600;
	color: var(--clstv-navy);
	transition: opacity .35s;
}
.clstv-demo__caption.is-fading { opacity: 0; }
.clstv-demo__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.clstv-demo__play {
	display: inline-flex; align-items: center; gap: .5rem;
	min-height: 40px; padding: .4rem 1rem;
	border: 1px solid var(--clstv-line); border-radius: 20px;
	background: #fff; color: var(--clstv-navy); font: inherit; font-weight: 600; cursor: pointer;
}
.clstv-demo__play .clstv-i-pause { color: var(--clstv-navy); }
.clstv-demo__dots { display: flex; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.clstv-demo__dots li { margin: 0; }
.clstv-demo__dots button {
	width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; cursor: pointer; position: relative;
}
.clstv-demo__dots button::before {
	content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #B8C4CF; transition: background .2s, inset .2s;
}
.clstv-demo__dots button[aria-current="step"]::before { background: var(--clstv-navy); inset: 7px; }
.clstv-demo__play:focus-visible,
.clstv-demo__dots button:focus-visible { outline: 3px solid var(--clstv-cyan); outline-offset: 2px; }
.clstv-demo__cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 1.6rem 0 0; }

/* Dispositivi */
.clstv-dev { position: absolute; top: 18px; transition: opacity .5s, transform .5s, filter .5s; }
.clstv-dev__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--clstv-muted); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.clstv-phone { left: 20px; width: 240px; }
.clstv-laptop { right: 10px; width: 560px; }
.clstv-demo[data-active="laptop"] .clstv-phone,
.clstv-demo[data-active="phone"] .clstv-laptop { opacity: .45; filter: saturate(.6); transform: scale(.97); }

.clstv-phone__body {
	position: relative;
	height: 420px;
	border: 10px solid #111827;
	border-radius: 34px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(15, 32, 56, .22);
	overflow: hidden;
}
.clstv-phone__notch { position: absolute; top: 0; left: 50%; width: 90px; height: 20px; margin-left: -45px; background: #111827; border-radius: 0 0 14px 14px; z-index: 3; }

.clstv-laptop__screen {
	height: 350px;
	border: 12px solid #1F2937;
	border-bottom-width: 16px;
	border-radius: 14px 14px 0 0;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(15, 32, 56, .2);
}
.clstv-laptop__base { height: 16px; margin: 0 -34px; background: linear-gradient(#D1D5DB, #9CA3AF); border-radius: 0 0 14px 14px; }
.clstv-laptop__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #F3F4F6; border-bottom: 1px solid #E5E7EB; }
.clstv-laptop__bar span { width: 10px; height: 10px; border-radius: 50%; background: #D1D5DB; }
.clstv-laptop__bar span:first-child { background: #F87171; }
.clstv-laptop__bar span:nth-child(2) { background: #FBBF24; }
.clstv-laptop__bar span:nth-child(3) { background: #34D399; }
.clstv-laptop__bar em { margin-left: 10px; padding: 2px 10px; border-radius: 10px; background: #fff; color: var(--clstv-muted); font-size: 12px; font-style: normal; }
.clstv-laptop__body { position: relative; height: calc(100% - 35px); padding: 14px 18px; }

/* Schermate: una alla volta, in dissolvenza */
.clstv-scr {
	position: absolute;
	left: 16px; right: 16px; top: 34px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .45s ease, transform .45s ease;
	pointer-events: none;
}
.clstv-laptop .clstv-scr { top: 54px; left: 18px; right: 18px; }
.clstv-demo[data-step="1"] .clstv-scr--code,
.clstv-demo[data-step="2"] .clstv-scr--code,
.clstv-demo[data-step="3"] .clstv-scr--code,
.clstv-demo[data-step="4"] .clstv-scr--code,
.clstv-demo[data-step="5"] .clstv-scr--request,
.clstv-demo[data-step="6"] .clstv-scr--done,
.clstv-demo[data-step="7"] .clstv-scr--done,
.clstv-demo[data-step="2"] .clstv-scr--offer,
.clstv-demo[data-step="3"] .clstv-scr--search,
.clstv-demo[data-step="4"] .clstv-scr--search,
.clstv-demo[data-step="5"] .clstv-scr--search,
.clstv-demo[data-step="6"] .clstv-scr--search,
.clstv-demo[data-step="7"] .clstv-scr--search { opacity: 1; transform: none; }
.clstv-scr--wait { text-align: center; padding-top: 40px; }
.clstv-demo[data-step="1"] .clstv-scr--wait { opacity: 1; transform: none; }
.clstv-spinner { width: 34px; height: 34px; margin: 0 auto 14px; border: 4px solid #E5E7EB; border-top-color: var(--clstv-cyan); border-radius: 50%; animation: clstv-spin 1s linear infinite; }
@keyframes clstv-spin { to { transform: rotate(360deg); } }

/* Contenuti delle schermate */
.clstv-small { margin: 0 0 6px; font-size: 12px; }
.clstv-muted { color: var(--clstv-muted); }
.clstv-ok { color: var(--clstv-green); font-weight: 700; }
.clstv-code { margin: 6px 0 12px; font-weight: 800; font-size: 17px; letter-spacing: .08em; color: var(--clstv-navy); font-variant-numeric: tabular-nums; }
.clstv-barcode {
	height: 54px;
	border-radius: 4px;
	background: repeating-linear-gradient(90deg, var(--clstv-navy) 0 2px, #fff 2px 4px, var(--clstv-navy) 4px 5px, #fff 5px 8px, var(--clstv-navy) 8px 11px, #fff 11px 12px, var(--clstv-navy) 12px 13px, #fff 13px 16px);
	box-shadow: inset 0 0 0 6px #fff, 0 0 0 1px var(--clstv-line);
}
.clstv-hidden-name { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--clstv-bg); font-weight: 700; }
.clstv-blur { filter: blur(5px); user-select: none; }
.clstv-lock { position: relative; flex: none; display: inline-block; width: 12px; height: 10px; margin-top: 5px; border-radius: 2px; background: var(--clstv-navy); }
.clstv-lock::before { content: ""; position: absolute; left: 2px; top: -6px; width: 8px; height: 8px; border: 2px solid var(--clstv-navy); border-bottom: 0; border-radius: 5px 5px 0 0; box-sizing: border-box; }
.clstv-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.clstv-pill--ok { background: #DCF3E3; color: #1E5E33; }
.clstv-check {
	position: relative; flex: none; display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px;
	border-radius: 50%; background: var(--clstv-green);
}
.clstv-check::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.clstv-company { margin: 0 0 4px; font-weight: 800; color: var(--clstv-ink); }
.clstv-company--head { position: absolute; left: 18px; right: 18px; top: 14px; display: flex; align-items: center; gap: 2px; font-size: 15px; }
.clstv-company--head .clstv-pill { margin-left: auto; }
.clstv-req-title { margin: 0 0 8px; font-weight: 800; font-size: 16px; color: var(--clstv-navy); }
.clstv-salary { margin: 10px 0 4px; padding: 8px 10px; border-radius: 8px; background: #FFF8E1; color: #7A4E00; font-weight: 800; }
.clstv-req-actions { display: flex; gap: 8px; margin-top: 16px; }
.clstv-btn-ghost, .clstv-btn-ok { position: relative; flex: 1; padding: 10px 0; border-radius: 8px; text-align: center; font-weight: 800; font-size: 13px; }
.clstv-btn-ghost { border: 1px solid var(--clstv-line); color: var(--clstv-muted); }
.clstv-btn-ok { background: var(--clstv-green); color: #fff; overflow: visible; }
.clstv-tap { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: rgba(255,255,255,.9); opacity: 0; }
.clstv-demo[data-step="5"] .clstv-tap { animation: clstv-tap 1.4s ease-out 1.8s 2; }
@keyframes clstv-tap { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(3.2); } }
.clstv-bigcheck { position: relative; width: 64px; height: 64px; margin: 20px auto 16px; border-radius: 50%; background: var(--clstv-green); }
.clstv-bigcheck::after { content: ""; position: absolute; left: 24px; top: 13px; width: 13px; height: 26px; border: solid #fff; border-width: 0 5px 5px 0; transform: rotate(45deg); }
.clstv-scr--done { text-align: center; }

.clstv-offer-title { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: var(--clstv-navy); }
.clstv-offer-facts { margin: 0; padding: 0; list-style: none; }
.clstv-offer-facts li { display: flex; gap: 12px; margin: 0; padding: 9px 0; border-top: 1px solid #EEF2F5; }
.clstv-offer-facts b { width: 110px; color: var(--clstv-muted); font-weight: 600; }
.clstv-offer-facts .clstv-hl { margin: 4px -8px 0; padding: 9px 8px; border-radius: 8px; background: #FFF8E1; font-weight: 800; color: #7A4E00; border-top-color: transparent; }
.clstv-demo[data-step="2"] .clstv-hl { animation: clstv-hl 1.6s ease 0.6s 2; }
@keyframes clstv-hl { 50% { box-shadow: 0 0 0 4px rgba(245, 184, 0, .45); } }

.clstv-search { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 12px; border: 1px solid var(--clstv-line); border-radius: 8px; color: var(--clstv-ink); font-weight: 600; }
.clstv-mag { position: relative; width: 12px; height: 12px; border: 2px solid var(--clstv-muted); border-radius: 50%; }
.clstv-mag::after { content: ""; position: absolute; right: -6px; bottom: -5px; width: 6px; height: 2px; background: var(--clstv-muted); transform: rotate(45deg); }
.clstv-cands { margin: 0; padding: 0; list-style: none; }
.clstv-cands li {
	position: relative;
	display: grid;
	grid-template-columns: 16px 1fr;
	column-gap: 8px;
	margin: 0 0 7px;
	padding: 9px 12px;
	border: 1px solid #EEF2F5;
	border-radius: 8px;
	background: #fff;
	transition: border-color .4s, box-shadow .4s, background .4s;
}
.clstv-cands b { font-variant-numeric: tabular-nums; color: var(--clstv-ink); }
.clstv-cands em { grid-column: 2; font-style: normal; font-size: 12px; color: var(--clstv-muted); }
.clstv-demo[data-step="3"] .clstv-cand--pick,
.clstv-demo[data-step="4"] .clstv-cand--pick,
.clstv-demo[data-step="5"] .clstv-cand--pick,
.clstv-demo[data-step="6"] .clstv-cand--pick,
.clstv-demo[data-step="7"] .clstv-cand--pick { border-color: var(--clstv-cyan); box-shadow: 0 0 0 3px rgba(0, 207, 239, .18); }
.clstv-cand-name { position: relative; display: block; }
.clstv-cand-real { display: none; }
.clstv-demo[data-step="6"] .clstv-cand-code,
.clstv-demo[data-step="7"] .clstv-cand-code { display: none; }
.clstv-demo[data-step="6"] .clstv-cand-real,
.clstv-demo[data-step="7"] .clstv-cand-real { display: inline; animation: clstv-unlock .8s ease; color: var(--clstv-green); }
.clstv-demo[data-step="6"] .clstv-cand--pick,
.clstv-demo[data-step="7"] .clstv-cand--pick { background: #F1F8F3; border-color: #9FD4AE; }
.clstv-demo[data-step="6"] .clstv-cand--pick .clstv-lock,
.clstv-demo[data-step="7"] .clstv-cand--pick .clstv-lock { background: var(--clstv-green); }
.clstv-demo[data-step="6"] .clstv-cand--pick .clstv-lock::before,
.clstv-demo[data-step="7"] .clstv-cand--pick .clstv-lock::before { border-color: var(--clstv-green); transform: translate(4px, -2px) rotate(20deg); }
@keyframes clstv-unlock { from { filter: blur(6px); opacity: 0; } to { filter: none; opacity: 1; } }
.clstv-propose {
	position: absolute; right: 12px; top: 50%;
	padding: 7px 12px; border-radius: 8px;
	background: var(--clstv-navy); color: #fff; font-size: 12px; font-weight: 800;
	transform: translateY(-50%);
	opacity: 0; transition: opacity .3s, transform .2s;
}
.clstv-demo[data-step="3"] .clstv-propose,
.clstv-demo[data-step="4"] .clstv-propose,
.clstv-demo[data-step="5"] .clstv-propose { opacity: 1; }
.clstv-demo[data-step="4"] .clstv-propose { animation: clstv-press .5s ease .9s 1 both; }
.clstv-demo[data-step="5"] .clstv-propose { background: #94A3B8; }
@keyframes clstv-press { 50% { transform: translateY(-50%) scale(.92); } }
.clstv-booked { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .4s; }
.clstv-demo[data-step="6"] .clstv-booked,
.clstv-demo[data-step="7"] .clstv-booked { opacity: 1; }
.clstv-cursor {
	position: absolute; right: -14px; bottom: -16px; width: 0; height: 0;
	border-style: solid; border-width: 0 0 16px 11px; border-color: transparent transparent #111827 transparent;
	transform: rotate(-28deg); opacity: 0;
}
.clstv-demo[data-step="4"] .clstv-cursor { animation: clstv-cursor 1.4s ease forwards; }
@keyframes clstv-cursor { 0% { opacity: 0; transform: translate(40px, 30px) rotate(-28deg); } 60%, 100% { opacity: 1; transform: rotate(-28deg); } }

/* Il collegamento: una richiesta che viaggia tra azienda e candidato */
.clstv-wire { position: absolute; left: 270px; top: 180px; width: 70px; height: 4px; }
.clstv-wire__line { position: absolute; inset: 0; border-top: 3px dashed #B8C4CF; }
.clstv-wire__dot {
	position: absolute; top: -7px; left: 0;
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--clstv-cyan); box-shadow: 0 0 0 5px rgba(0, 207, 239, .25);
	opacity: 0;
}
.clstv-demo[data-step="4"] .clstv-wire__dot { animation: clstv-to-phone 1.3s ease-in-out 1.4s forwards; }
.clstv-demo[data-step="6"] .clstv-wire__dot { background: var(--clstv-green-lt); box-shadow: 0 0 0 5px rgba(74, 222, 128, .3); animation: clstv-to-laptop 1.1s ease-in-out .2s forwards; }
@keyframes clstv-to-phone { 0% { opacity: 0; left: 60px; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; left: -10px; } }
@keyframes clstv-to-laptop { 0% { opacity: 0; left: -10px; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; left: 60px; } }

/* Chiusura */
.clstv-end {
	position: absolute; inset: 0; z-index: 5;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	border-radius: 18px;
	background: linear-gradient(160deg, var(--clstv-navy) 0%, var(--clstv-navy-deep) 100%);
	color: #fff; text-align: center;
	opacity: 0; transform: scale(.98); transition: opacity .6s, transform .6s;
	pointer-events: none;
}
.clstv-demo[data-step="7"] .clstv-end { opacity: 1; transform: none; }
.clstv-end__logo { margin: 0 0 10px; font-size: 64px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.clstv-end__claim {
	margin: 0; font-size: 26px; font-weight: 700;
	background: linear-gradient(90deg, var(--clstv-cyan), var(--clstv-green-lt), var(--clstv-sky), var(--clstv-cyan));
	background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--clstv-cyan);
	animation: clstv-shimmer 5s linear infinite;
}

/* Schermi stretti: un solo dispositivo alla volta, più grande */
.clstv-demo.is-narrow .clstv-demo__stage { width: 560px; height: 470px; }
.clstv-demo.is-narrow .clstv-wire { display: none; }
.clstv-demo.is-narrow .clstv-phone { left: 160px; }
.clstv-demo.is-narrow .clstv-laptop { right: 0; left: 0; margin: 0 auto; }
.clstv-demo.is-narrow[data-active="laptop"] .clstv-phone,
.clstv-demo.is-narrow[data-active="phone"] .clstv-laptop { opacity: 0; transform: scale(.9); }

/* =====================================================================
   Landing page
   ================================================================== */
.clstv-landing { color: var(--clstv-ink); font-size: 1.05rem; }
.clstv-landing p { line-height: 1.6; }
.clstv-landing h2, .clstv-landing h3 { color: var(--clstv-navy); line-height: 1.2; }
.clstv-l-kicker { margin: 0 0 .4rem; color: var(--clstv-green); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.clstv-l-h { margin: 0 0 .8rem; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
.clstv-l-h2 { margin: 0 0 1rem; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); }
.clstv-l-lead { font-size: 1.15rem; max-width: 60ch; }
.clstv-l-note { font-size: .92rem; color: var(--clstv-muted); }
.clstv-l-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.3rem 0 .6rem; }

.clstv-l-hero,
.clstv-l-split {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: center;
	margin: 0 0 clamp(2.5rem, 6vw, 4rem);
}
.clstv-l-split--rev > :first-child { order: 2; }
.clstv-l-hero--dark {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: 16px;
	background: linear-gradient(160deg, var(--clstv-navy) 0%, var(--clstv-navy-deep) 100%);
	color: #fff;
}
.clstv-l-hero--dark .clstv-l-h,
.clstv-l-hero--dark h2 { color: #fff; }
.clstv-l-hero--dark .clstv-l-kicker { color: var(--clstv-green-lt); }
.clstv-l-hero--dark .clstv-l-lead { color: #DCE5EF; }
.clstv-l-hero--dark .clstv-btn { border-color: #fff; }
.clstv-l-hero--dark .clstv-btn--primary { background: var(--clstv-cyan); border-color: var(--clstv-cyan); color: var(--clstv-ink); }
.clstv-l-hero--dark .clstv-btn--primary:hover { background: #5FE3F7; color: var(--clstv-ink); }

.clstv-l-img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 1px 2px rgba(16,32,56,.06), 0 10px 30px rgba(16,32,56,.12); background: #fff; }
.clstv-l-img--wide { max-width: 1100px; margin: 1.5rem auto 0; }
.clstv-landing--aziende .clstv-l-img--wide { max-width: 760px; }
.clstv-l-sec { margin: 0 0 clamp(2.5rem, 6vw, 4rem); }

.clstv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.clstv-steps li { position: relative; margin: 0; padding: 1.2rem 1.2rem 1.1rem 4rem; border: 1px solid var(--clstv-line); border-radius: var(--clstv-radius); background: #fff; }
.clstv-steps h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.clstv-steps p { margin: 0; font-size: .98rem; }
.clstv-steps__n {
	position: absolute; left: 1.1rem; top: 1.1rem;
	display: grid; place-items: center; width: 2rem; height: 2rem;
	border-radius: 50%; background: var(--clstv-navy); color: #fff; font-weight: 800;
}
.clstv-steps li:last-child .clstv-steps__n { background: var(--clstv-green); }
.clstv-steps--list { grid-template-columns: 1fr; }

.clstv-table { width: 100%; border-collapse: collapse; margin: 0 0 .6rem; font-size: .98rem; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--clstv-line); }
.clstv-table th, .clstv-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--clstv-line); text-align: left; vertical-align: top; }
.clstv-table thead th { background: var(--clstv-bg); color: var(--clstv-navy); font-size: .9rem; }
.clstv-table tbody th { font-weight: 600; }
.clstv-table tr:last-child th, .clstv-table tr:last-child td { border-bottom: 0; }
.clstv-table .yes, .clstv-table .no { white-space: nowrap; }
.clstv-table .yes { color: #1E5E33; font-weight: 700; }
.clstv-table .yes::before { content: "✓ "; }
.clstv-table .no { color: #8A2B2B; font-weight: 700; }
.clstv-table .no::before { content: "✕ "; }

.clstv-l-alert { padding: clamp(1.2rem, 3vw, 2rem); border-radius: 14px; border: 1px solid #F4C7C3; background: #FEF6F5; }
.clstv-l-alert .clstv-l-h2 { color: #8A2B2B; }
.clstv-flags { margin: 0; padding: 0; list-style: none; }
.clstv-flags li { position: relative; margin: 0 0 .55rem; padding-left: 2rem; }
.clstv-flags li::before { content: "!"; position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #B42318; color: #fff; font-weight: 800; font-size: .8rem; }
.clstv-ticks { margin: 0 0 1rem; padding: 0; list-style: none; }
.clstv-ticks li { position: relative; margin: 0 0 .5rem; padding-left: 1.9rem; }
.clstv-ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--clstv-green); }
.clstv-ticks li::after { content: ""; position: absolute; left: .42rem; top: .38rem; width: .3rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.clstv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.clstv-card { padding: 1.2rem; border: 1px solid var(--clstv-line); border-radius: var(--clstv-radius); background: #fff; border-top: 4px solid var(--clstv-cyan); }
.clstv-card:nth-child(2) { border-top-color: var(--clstv-green); }
.clstv-card:nth-child(3) { border-top-color: var(--clstv-navy); }
.clstv-card h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.clstv-card p { margin: 0; font-size: .98rem; }

.clstv-faq__item { border: 1px solid var(--clstv-line); border-radius: 8px; background: #fff; margin: 0 0 .6rem; }
.clstv-faq__item summary { cursor: pointer; list-style: none; padding: .9rem 2.6rem .9rem 1rem; font-weight: 700; color: var(--clstv-navy); position: relative; }
.clstv-faq__item summary::-webkit-details-marker { display: none; }
.clstv-faq__item summary::after { content: "+"; position: absolute; right: 1rem; top: .7rem; font-size: 1.4rem; font-weight: 400; color: var(--clstv-muted); }
.clstv-faq__item[open] summary::after { content: "–"; }
.clstv-faq__item summary:focus-visible { outline: 3px solid var(--clstv-cyan); outline-offset: 2px; border-radius: 8px; }
.clstv-faq__a { padding: 0 1rem 1rem; }
.clstv-faq__a p { margin: 0; }

.clstv-media { margin: 0 0 clamp(2.5rem, 6vw, 4rem); }
.clstv-media--video video { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; box-shadow: 0 10px 30px rgba(16,32,56,.15); }
.clstv-media--video figcaption { margin-top: .6rem; font-size: .92rem; color: var(--clstv-muted); text-align: center; }
.clstv-media--audio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 1.5rem; align-items: center; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 14px; background: var(--clstv-bg); border: 1px solid var(--clstv-line); }
.clstv-media--audio h3 { margin: 0 0 .3rem; font-size: 1.2rem; }
.clstv-media--audio p { margin: 0; }
.clstv-media--audio audio { width: 100%; }

@media (max-width: 800px) {
	.clstv-l-hero, .clstv-l-split, .clstv-media--audio { grid-template-columns: 1fr; }
	.clstv-l-split--rev > :first-child { order: 0; }
	.clstv-steps, .clstv-cards { grid-template-columns: 1fr; }
	.clstv-l-cta .clstv-btn, .clstv-demo__cta .clstv-btn { width: 100%; }
	.clstv-ticker { font-size: 13px; }
}

/* =====================================================================
   Chi preferisce meno movimento: tutto fermo e leggibile
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
	.clstv-ticker__track { animation: none; flex-wrap: wrap; width: auto; }
	.clstv-ticker__list[aria-hidden="true"], .clstv-ticker__pause { display: none; }
	.clstv-ticker__list { flex-wrap: wrap; padding: 0 12px; }
	.clstv-ticker::after,
	.clstv-motion .clstv-shimmer,
	.clstv-motion .clstv-glow,
	.clstv-motion .clstv-hero-anim::before,
	.clstv-end__claim { animation: none !important; }
	.clstv-js.clstv-motion-ready .clstv-reveal { opacity: 1; transform: none; transition: none; }
	.clstv-scr, .clstv-dev, .clstv-end, .clstv-demo__caption { transition: none; }
	.clstv-demo * { animation: none !important; }
}

/* Titolo della home: bianco sulla fascia scura, qualunque stile arrivi dal tema */
.clst-home .clst-hero .clst-hero__title,
.clst-hero h1.clst-hero__title { color: #fff; }
