/*
 * Carosello dei case study — shortcode [ll_case_studies].
 * Stessa impostazione della sezione Academy: etichetta, filo orizzontale,
 * schede con la copertina A4 del whitepaper.
 */

.ll-cs {
	--ll-cs-ink: #14161a;
	--ll-cs-muted: #6b7280;
	--ll-cs-line: #14161a;
	--ll-cs-card: #ffffff;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 48px 0 56px;
	max-width: 1180px;
	color: var(--ll-cs-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.ll-cs *,
.ll-cs *::before,
.ll-cs *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------ intestazione */

.ll-cs-head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 20px 34px;
}

.ll-cs-label {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.ll-cs-rule {
	flex: 1 1 auto;
	height: 1px;
	background: var(--ll-cs-line);
}

.ll-cs-nav {
	flex: 0 0 auto;
	display: flex;
	gap: 8px;
}

.ll-cs-nav button {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #cfd2d4;
	border-radius: 999px;
	background: transparent;
	color: var(--ll-cs-ink);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ll-cs-nav button:hover:not(:disabled) {
	border-color: var(--ll-cs-ink);
	background: var(--ll-cs-ink);
	color: #fff;
}

.ll-cs-nav button:disabled {
	opacity: 0.3;
	cursor: default;
}

/* ------------------------------------------------------------------ schede */

.ll-cs-track {
	display: flex;
	gap: 34px;
	padding: 4px 20px 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ll-cs-track::-webkit-scrollbar {
	display: none;
}

.ll-cs-track:focus-visible {
	outline: 2px solid var(--ll-cs-ink);
	outline-offset: 4px;
}

.ll-cs-card {
	flex: 0 0 clamp(240px, 27vw, 300px);
	scroll-snap-align: start;
}

.ll-cs-cover {
	display: block;
	margin-bottom: 26px;
	overflow: hidden;
	background: var(--ll-cs-card);
	box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
	aspect-ratio: 1 / 1.414;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ll-cs-cover:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgb(0 0 0 / 12%);
}

.ll-cs-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.ll-cs-cover-empty {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	color: #b9bfbd;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ll-cs-title {
	margin: 0 0 14px;
	font-size: 23px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.ll-cs-title a {
	color: inherit;
	text-decoration: none;
}

.ll-cs-title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ll-cs-lead {
	margin: 0 0 22px;
	color: var(--ll-cs-muted);
	font-size: 14px;
	line-height: 1.6;
}

.ll-cs-cta {
	display: inline-block;
	padding: 11px 18px;
	background: var(--ll-cs-ink);
	color: #fff !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.ll-cs-cta:hover {
	opacity: 0.82;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 640px) {
	.ll-cs {
		padding: 32px 0 40px;
	}

	.ll-cs-head {
		margin-bottom: 24px;
	}

	.ll-cs-card {
		flex-basis: 78vw;
	}

	.ll-cs-title {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ll-cs-track {
		scroll-behavior: auto;
	}

	.ll-cs-cover {
		transition: none;
	}
}

/* Pagina settore ancora senza case study: solo la riga scritta nello shortcode. */
.ll-cs-empty {
	margin: 0;
	color: #63736f;
	font-size: 15px;
}
