/* Costellazioni UTET – landing */

.costellazioni-page {
	--cs-bg: #003050;
	--cs-bg-mid: #0c2744;
	--cs-text: #f5f7fa;
	--cs-muted: rgba(245, 247, 250, 0.88);
	--cs-accent: #fae548;
	--cs-ice: #e8edef;
	--cs-glow: rgba(160, 200, 255, 0.45);
	--color-giallo: #fae548;
	--color-bianco-ghiaccio: #e8edef;
	--color-blu-navy: #003050;
	--Blu-Navy-80: #335973;
	--cs-font-serif: "Newsreader", Georgia, serif;
	--cs-font-sans: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;

	min-height: 100vh;
	margin: 0;
	padding: 0;
	background: var(--cs-bg);
	color: var(--cs-text);
	font-family: var(--cs-font-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.costellazioni-page *,
.costellazioni-page *::before,
.costellazioni-page *::after {
	box-sizing: border-box;
}

.costellazioni-page a {
	color: inherit;
	text-decoration: none;
}

.costellazioni-page a:hover {
	color: var(--cs-accent);
}

/* Header: video + brand image */
.cs-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: clamp(280px, 42vw, 480px);
	overflow: hidden;
	background: transparent;
}

.cs-header__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 45%,
		rgba(0, 0, 0, .65) 70%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 45%,
		rgba(0, 0, 0, .65) 70%,
		transparent 100%
	);
}

.cs-header__video {
	position: absolute;
	top: 0;
	left: 50%;
	width: 100%;
	height: 100%;
	transform: translateX(-50%);
	object-fit: cover;
	object-position: top center;
	min-width: 100%;
	min-height: 100%;
}

.cs-header__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(0, 48, 80, .35) 0%,
		rgba(0, 48, 80, .2) 50%,
		transparent 100%
	);
}

.cs-header__brand {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 24px 16px;
	font-size: 0;
	line-height: 0;
	text-align: center;
}

.cs-header__brand img {
	display: block;
	width: auto;
	max-width: 651px;
	height: auto;
}

/* Header brand-only (scheda libro, no video) */
.cs-header--brand {
	min-height: auto;
	padding: 48px 24px 24px;
	background: transparent;
}

.cs-header--brand .cs-header__brand {
	padding: 0;
}

.cs-header--brand .cs-header__brand img {
	max-width: min(360px, 80vw);
}

/* Header single percorso / scheda libro: full-bleed banner (fade baked into image) */
.cs-header--single,
.cs-header--libro {
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
	padding: 56px 24px 32px;
	box-sizing: border-box;
}

.cs-header--single {
	height: 420px;
	min-height: 420px;
	max-height: 420px;
}

.cs-header--libro {
	height: 196px;
	min-height: 196px;
	max-height: 196px;
}

.cs-header--single .cs-header__bg,
.cs-header--libro .cs-header__bg {
	-webkit-mask-image: none;
	mask-image: none;
}

.cs-header--single .cs-header__img,
.cs-header--libro .cs-header__img {
	position: absolute;
	top: 0;
	left: 50%;
	width: 100%;
	height: 100%;
	transform: translateX(-50%);
	object-fit: cover;
	object-position: top center;
	min-width: 100%;
	min-height: 100%;
}

.cs-header--single .cs-header__brand,
.cs-header--libro .cs-header__brand {
	padding: 0;
}

.cs-header--single .cs-header__brand img,
.cs-header--libro .cs-header__brand img {
	max-width: min(280px, 70vw);
}

.cs-header--single .cs-covers {
	position: relative;
	z-index: 1;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-end;
	gap: 12px 14px;
	width: 100%;
	max-width: 1164px;
	margin: 0;
	padding: 0 8px;
	overflow: hidden;
}

.cs-header--single .cs-covers__item {
	flex: 0 0 auto;
	width: 72px;
}

.cs-header--single .cs-percorso-title {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0 16px;
}

.cs-header--single .cs-header__back,
.cs-header--libro .cs-header__back {
	position: absolute;
	top: 20px;
	/* Align with .cs-inner (max-width 1164, centered) + shell 24px padding */
	left: max(24px, calc(50% - 582px));
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 16px;
	border: 1px solid var(--color-bianco-ghiaccio);
	background: var(--color-blu-navy);
	color: var(--color-bianco-ghiaccio);
	font-family: var(--cs-font-sans);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .02em;
	line-height: 1.2;
	text-decoration: none;
}

.cs-header--single .cs-header__back:hover,
.cs-header--libro .cs-header__back:hover {
	color: var(--color-bianco-ghiaccio);
}

.cs-header--single .cs-header__back-text,
.cs-header--libro .cs-header__back-text {
	color: var(--color-bianco-ghiaccio);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	text-decoration-line: underline;
	text-decoration-style: solid;
	text-decoration-skip-ink: auto;
	text-decoration-color: var(--color-giallo);
	text-decoration-thickness: 6.5%;
	text-underline-offset: 17.5%;
	text-underline-position: from-font;
}

.cs-header--single .cs-header__back svg,
.cs-header--libro .cs-header__back svg {
	flex-shrink: 0;
	display: block;
}

.cs-shell {
	position: relative;
	padding: 48px 24px 72px;
}

/* Content column 1164 (Figma frame 1920); shell keeps 24px safety padding */
.cs-inner {
	position: relative;
	max-width: 1164px;
	margin: 0 auto;
}

/* Home only (markup solo in index.php) */
.cs-quote {
	margin: 24px auto 36px;
	max-width: 1020px;
	color: var(--color-bianco-ghiaccio);
	text-align: center;
	font-family: Newsreader, serif;
	font-size: 32px;
	font-style: italic;
	font-weight: 600;
	line-height: 42px;
}

.cs-quote p {
	margin: 0;
}

.cs-intro {
	margin: 0 auto 72px;
	max-width: 720px;
	padding: 28px 32px;
	text-align: center;
	background: hsl(0deg 0% 100% / 10%);
	border: 1px solid var(--cs-ice);
	border-radius: 32px;
	box-shadow: -6px -6px 32px 0 rgba(255, 255, 255, 0.48), 6px 6px 32px 0 rgba(255, 255, 255, 0.48);
	color: var(--cs-muted);
	font-size: 15px;
	line-height: 1.65;
}

/*
 * Home intro — tipografia mista su HTML CMS ($this->page->descrizione):
 * - lead: p:first-child | > strong:first-child | b:first-child → PJS 20/28 italic 700
 * - body: .cs-intro base → PJS 18/24 400
 * - emphasis: strong|b (non lead) → PJS 18/28 700
 * Single usa .cs-intro--inbreve (non toccato qui).
 */
.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro {
	max-width: 960px;
	padding: 40px 10px;
	color: var(--color-bianco-ghiaccio);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
}

.cs-intro p {
	margin: 0 0 1em;
}

.cs-intro p:last-child {
	margin-bottom: 0;
}

.cs-intro p:first-child,
.cs-intro > strong:first-child,
.cs-intro b:first-child {
	font-weight: 700;
	color: var(--cs-text);
}

.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro strong,
.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro b {
	color: var(--color-bianco-ghiaccio);
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: 28px;
}

.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro p:first-child,
.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro > strong:first-child,
.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro b:first-child {
	color: var(--color-bianco-ghiaccio);
	font-size: 20px;
	font-style: italic;
	font-weight: 700;
	line-height: 28px;
}

.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro p:first-child strong,
.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro p:first-child b {
	font-size: inherit;
	font-style: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.cs-section-label {
	margin: 0 0 36px;
	text-align: center;
	font-family: var(--cs-font-serif);
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 400;
	color: var(--cs-accent);
	letter-spacing: .01em;
}

/* Home only — single/libro hanno label proprie */
.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-section-label {
	color: var(--color-giallo);
	text-align: center;
	font-family: Newsreader, serif;
	font-size: 40px;
	font-style: normal;
	font-weight: 600;
	line-height: 48px;
	letter-spacing: normal;
}

/* Placeholder logo */
.cs-logo-ph {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 140px;
	min-height: 100px;
	padding: 16px 12px;
	border: 1px dashed rgba(255, 255, 255, .45);
	border-radius: 8px;
	background: rgba(255, 255, 255, .06);
	text-align: center;
}

.cs-logo-ph--costellazioni {
	margin: 0 auto 40px;
	width: 160px;
	min-height: 120px;
}

.cs-logo-ph__mark {
	width: 48px;
	height: 48px;
	border: 1px dashed rgba(255, 255, 255, .4);
	border-radius: 4px;
	background: rgba(255, 255, 255, .06);
}

.cs-logo-ph__brand {
	font-family: var(--cs-font-serif);
	font-size: 22px;
	letter-spacing: .18em;
	text-transform: uppercase;
}

.cs-logo-ph__sub {
	font-size: 11px;
	letter-spacing: .28em;
	text-transform: uppercase;
	opacity: .85;
}

.cs-percorso-logo {
	display: block;
	margin: 0 auto 40px;
	width: auto;
	max-width: min(381px, 80vw);
	height: auto;
}

.cs-covers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-end;
	gap: 14px 16px;
	margin: 0 auto 36px;
	padding: 0 8px;
	list-style: none;
}

.cs-covers__item {
	margin: 0;
	padding: 0;
	width: 96px;
}


.cs-covers__item a {
	display: block;
}

.cs-covers__item img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
	background: #1a1a1a;
}

.cs-percorso-title {
	margin: 0 auto;
	max-width: 720px;
	text-align: center;
	font-family: var(--cs-font-serif);
	font-size: clamp(26px, 3.6vw, 38px);
	font-weight: 400;
	line-height: 1.25;
	color: var(--cs-text);
}

/* Home featured only — non .cs-percorso-title--single */
.cs-percorso .cs-percorso-title {
	color: #FFF;
	text-align: center;
	font-family: Newsreader, serif;
	font-size: 32px;
	font-style: normal;
	font-weight: 700;
	line-height: 48px;
	letter-spacing: 6.58px;
}

.cs-percorso-title a:hover {
	color: var(--cs-accent);
}

.cs-percorso-cta {
	margin: 28px 0 0;
	text-align: center;
}

.costellazioni-page .cs-percorso-cta a.cs-btn--primary {
	min-height: 48px;
	padding: 16px 23px;
	border-radius: 16px;
	color: var(--color-blu-navy);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 800;
	line-height: 19px;
}

.cs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 48px;
	padding: 12px 28px;
	font-family: var(--cs-font-sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	border-radius: 999px;
	border: 1.5px solid transparent;
	transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cs-btn--primary {
	border-radius: 16px;
	background: var(--color-giallo);
	box-shadow: -6px -6px 32px 0 rgba(255, 255, 255, 0.48), 6px 6px 32px 0 rgba(255, 255, 255, 0.48);
	color: var(--color-blu-navy);
	border-color: var(--color-giallo);
}
.costellazioni-page a.cs-btn--primary {
	color: var(--color-blu-navy);
	font-size: 18px;
    line-height: 18px;
}

.costellazioni-page .cs-btn--primary:hover {
	background: #fff3a0;
	border-color: #fff3a0;
	color: var(--color-blu-navy);
	transform: translateY(-1px);
	box-shadow: -6px -6px 32px 0 rgba(255, 255, 255, 0.56), 6px 6px 32px 0 rgba(255, 255, 255, 0.56);
}

.cs-btn--ghost {
	background: transparent;
	color: var(--cs-accent);
	border-color: var(--cs-accent);
	box-shadow: none;
}

.costellazioni-page .cs-btn--ghost:hover {
	background: rgba(250, 229, 72, 0.12);
	color: var(--cs-accent);
	border-color: var(--cs-accent);
	transform: translateY(-1px);
}

/* Fascia full-bleed percorso in evidenza */
.cs-banner-bkg {
	margin: 0 -24px;
	padding: 48px 24px;
	background-image: url("/uploads/2026/08/utet-costellazioni-banner-bkg.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Griglia card percorsi */
.cs-grid {
	margin-top: 80px;
}

.cs-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-cards__item {
	margin: 0;
	padding: 0;
}

.cs-card-percorso {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	height: 100%;
	padding: 20px;
	background: hsl(0deg 0% 100% / 12%);
	border: 1px solid var(--cs-ice);
	border-radius: 24px;
	box-shadow: -6px -6px 32px 0 rgba(255, 255, 255, 0.48), 6px 6px 32px 0 rgba(255, 255, 255, 0.48);
	transition: border-color .2s ease;
}

.cs-card-percorso:hover {
	border-color: rgba(232, 237, 239, 0.85);
}

.cs-card-percorso__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	background: #d9d9d9;
}

.cs-card-percorso__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cs-card-percorso__title {
	display: block;
	color: var(--color-bianco-ghiaccio);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 22px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.cs-card-percorso .cs-btn--ghost {
	width: 100%;
	margin-top: auto;
	padding: 12px 16px;
	border-radius: 16px;
	border: 1px solid var(--color-bianco-ghiaccio);
	background: rgba(255, 255, 255, 0.12);
	color: var(--color-giallo);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 800;
	line-height: 19px;
	box-shadow: none;
}

.costellazioni-page .cs-card-percorso .cs-btn--ghost:hover {
	border: 1px solid var(--color-bianco-ghiaccio);
	background: rgba(255, 255, 255, 0.18);
	color: var(--color-giallo);
	transform: none;
}

.costellazioni-page .cs-card-percorso:hover .cs-card-percorso__title {
	color: var(--color-bianco-ghiaccio);
}

/* Single percorso */
.cs-shell--single {
	padding-top: 8px;
}

.cs-percorso-title.cs-percorso-title--single {
	margin-top: 0;
	margin-bottom: 0;
	color: #FFF;
	text-align: center;
	font-family: Newsreader, serif;
	font-size: 47px;
	font-style: normal;
	font-weight: 500;
	line-height: 48px;
	letter-spacing: 6.58px;
}

.cs-inbreve {
	margin: 28px auto 64px;
	max-width: 720px;
}

.cs-section-label--inbreve {
	margin-bottom: 20px;
}

.cs-shell--single .cs-inbreve-label {
	color: var(--color-giallo);
	text-align: center;
	font-family: Newsreader, serif;
	font-size: 40px;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
}

.cs-intro.cs-intro--inbreve {
	margin-bottom: 0;
	color: var(--color-bianco-ghiaccio);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 400;
	line-height: 24px;
}

.cs-libri {
	margin-top: 100px;
}

.cs-libri__list {
	display: flex;
	flex-direction: column;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-libri__item {
	margin: 0;
	padding: 0;
}

.cs-libro {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 28px 32px;
	align-items: start;
	padding: 28px 32px;
	background: #DDF0FF;
	border: 1px solid var(--cs-ice);
	border-radius: 24px;
}

.cs-libro__cover {
	width: 160px;
}

.cs-libro__cover a {
	display: block;
}

.cs-libro__cover img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
	background: #1a1a1a;
}

.cs-libro__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.cs-libro__author {
	margin: 0 0 8px;
	font-family: var(--cs-font-sans);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: .02em;
	color: var(--cs-bg);
}

.cs-shell--single .cs-libro__author {
	color: var(--Blu-Navy-80, #335973);
	text-align: left;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
	letter-spacing: normal;
}

.cs-libro__title {
	margin: 0 0 14px;
	font-family: var(--cs-font-serif);
	font-size: clamp(22px, 2.8vw, 28px);
	font-weight: 400;
	line-height: 1.25;
	color: var(--cs-bg);
}

.cs-shell--single .cs-libro__title {
	color: var(--color-blu-navy);
	text-align: left;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 22px;
	font-style: normal;
	font-weight: 800;
	line-height: 28px;
}

.cs-libro__title a:hover {
	color: var(--color-blu-navy);
}

.cs-libro__strillo {
	margin: 0 0 14px;
	font-family: var(--cs-font-serif);
	font-style: italic;
	font-size: clamp(17px, 2vw, 20px);
	line-height: 1.4;
	color: var(--cs-bg);
}

.cs-shell--single .cs-libro__strillo {
	color: var(--color-blu-navy);
	text-align: left;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 18px;
	font-style: italic;
	font-weight: 600;
	line-height: 28px;
}

.cs-libro__strillo p {
	margin: 0;
}

.cs-libro__sinossi {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--cs-bg);
}

.cs-shell--single .cs-libro__sinossi {
	overflow: hidden;
	color: var(--color-blu-navy);
	text-align: left;
	text-overflow: ellipsis;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 22px;
}

.cs-libro__sinossi p {
	margin: 0 0 1em;
}

.cs-libro__sinossi p:last-child {
	margin-bottom: 0;
}

.cs-libro__cta {
	margin: auto 0 0;
	padding-top: 4px;
}

.cs-libro__cta .cs-btn {
	font-size: 14px;
	min-height: 44px;
	padding: 10px 26px;
	color: var(--cs-bg);
	border-radius: 16px;
    line-height: 14px;
}

.cs-shell--single .cs-libro__cta {
	width: 100%;
	align-self: stretch;
}

.cs-shell--single .cs-libro .cs-btn--primary {
	width: auto;
	justify-content: center;
	color: var(--color-blu-navy);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 800;
	line-height: 15.833px;
}

/* Footer */
.cs-footer {
	padding: 40px 24px 56px;
}

.cs-footer__inner {
	max-width: 1164px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.cs-footer__ig {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--cs-text);
}

.cs-footer__ig:hover {
	color: var(--cs-accent);
}

.cs-footer__ig-icon {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.cs-footer__ig-label {
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cs-footer__copy {
	margin: 0;
	color: var(--color-bianco-ghiaccio);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 22px;
}

/* Desktop home — Figma 10:22 (~1920); non rompere MQ 640 */
@media (min-width: 641px) {
	.cs-percorso .cs-covers {
		gap: 30px;
	}

	.cs-percorso .cs-covers__item {
		width: 130px;
	}
}

@media (max-width: 640px) {
	.cs-shell {
		padding: 28px 16px 56px;
	}

	.cs-intro {
		padding: 22px 18px;
		margin-bottom: 56px;
	}

	.cs-covers__item {
		width: 72px;
	}

	.cs-covers {
		gap: 10px 12px;
	}

	.cs-header--single,
	.cs-header--libro {
		gap: 14px;
	}

	/* Single only — Figma 115:4646; non alzare libro */
	.cs-header--single {
		height: 512px;
		min-height: 512px;
		max-height: 512px;
		padding: 56px 16px 24px;
	}

	/* Libro only — back in flow sopra al brand (no overlap); non toccare single */
	.cs-header--libro {
		height: auto;
		min-height: 164px;
		max-height: none;
		justify-content: flex-start;
		padding: 16px 16px 24px;
		gap: 16px;
	}

	.cs-header--libro .cs-header__back {
		position: static;
		top: auto;
		left: auto;
		align-self: flex-start;
	}

	.cs-header--single .cs-covers__item {
		width: 56px;
	}

	.cs-header--single .cs-covers {
		gap: 8px 10px;
	}

	.cs-banner-bkg {
		margin: 0 -16px;
		padding: 36px 16px;
	}

	.cs-grid {
		margin-top: 56px;
	}

	.cs-cards {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.cs-libro {
		grid-template-columns: 1fr;
		padding: 22px 18px;
		gap: 20px;
	}

	.cs-libro__cover {
		width: 120px;
		margin: 0 auto;
	}

	.cs-libro__body {
		align-items: stretch;
		text-align: left;
	}

	.cs-libro__cta {
		text-align: center;
	}

	.cs-footer {
		padding: 32px 16px 48px;
	}

	/* —— Home mobile only — Figma 115:411 (390) —— */
	.cs-header:not(.cs-header--single):not(.cs-header--libro) {
		min-height: 488px;
	}

	.cs-header:not(.cs-header--single):not(.cs-header--libro) .cs-header__brand img {
		max-width: min(651px, 90vw);
	}

	.cs-quote {
		font-size: 24px;
		font-weight: 500;
		line-height: 24px;
	}

	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro {
		max-width: 100%;
		padding: 32px 10px;
		border-radius: 24px;
		font-size: 16px;
		font-weight: 400;
		line-height: 22px;
	}

	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro strong,
	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro b {
		font-size: 16px;
		line-height: 22px;
	}

	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro p:first-child,
	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro > strong:first-child,
	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-intro b:first-child {
		font-size: 16px;
		font-style: italic;
		font-weight: 700;
		line-height: 22px;
	}

	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-section-label {
		font-size: 32px;
		font-weight: 600;
		line-height: 38px;
	}

	.cs-percorso .cs-covers {
		gap: 16px;
	}

	.cs-percorso .cs-covers__item {
		width: 71px;
	}

	.cs-percorso .cs-percorso-title {
		font-size: 24px;
		font-weight: 500;
		line-height: 28px;
		letter-spacing: 2px;
	}

	.costellazioni-page .cs-percorso-cta a.cs-btn--primary {
		max-width: 337px;
		min-height: 48px;
		padding: 16px 23px;
		font-size: 16px;
		font-weight: 800;
		line-height: 19px;
	}

	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-cards {
		gap: 40px;
	}

	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-card-percorso__title {
		font-size: 18px;
		font-weight: 700;
	}

	.cs-shell:not(.cs-shell--single):not(.cs-shell--libro) .cs-card-percorso .cs-btn--ghost {
		min-height: 40px;
		height: 40px;
		padding: 12px 20px;
	}

	/* —— Single percorso mobile — Figma 115:4646 (390) —— */
	.cs-shell.cs-shell--single {
		padding-top: 8px;
	}

	.cs-shell--single .cs-intro.cs-intro--inbreve {
		font-size: 16px;
		line-height: 22px;
		text-align: left;
	}

	.cs-shell--single .cs-inbreve-label {
		font-size: 32px;
		font-weight: 600;
		line-height: 38px;
	}

	.cs-percorso-title.cs-percorso-title--single {
		font-size: 24px;
		font-weight: 500;
		line-height: 28px;
		letter-spacing: 2px;
	}

	.cs-shell--single .cs-libri {
		margin-top: 56px;
	}

	.cs-shell--single .cs-libro .cs-btn--primary {
		width: 100%;
		min-height: 44px;
		padding: 12px 24px;
		text-align: center;
	}
}

.cs-shell--libro {
	padding-top: 16px;
}

/* Scheda libro hero — Figma 30:283 (gap 67, col 284) */
.cs-scheda {
	display: grid;
	grid-template-columns: 284px minmax(0, 1fr);
	gap: 40px 67px;
	align-items: start;
	margin-bottom: 72px;
}

.cs-scheda__media {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 25px;
}

.cs-scheda__cover img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 12px 36px rgba(0, 0, 0, .5);
	background: #1a1a1a;
}

.cs-scheda__specs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cs-scheda__meta-title {
	margin: 0;
}

.cs-shell--libro .cs-scheda__meta-title {
	color: var(--color-bianco-ghiaccio);
	font-family: Newsreader, serif;
	font-size: 24px;
	font-style: normal;
	font-weight: 600;
	line-height: 36px;
}

.cs-scheda__meta {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cs-shell--libro .cs-scheda__meta {
	color: var(--color-bianco-ghiaccio);
	text-align: left;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 300;
	line-height: 24px;
}

.cs-scheda__meta strong {
	font-weight: 700;
	color: var(--cs-text);
}

.cs-scheda__prezzo {
	margin-top: 6px;
}

.cs-shell--libro .cs-scheda__prezzo {
	color: var(--color-bianco-ghiaccio);
	text-align: left;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 25px;
	font-style: normal;
	font-weight: 800;
	line-height: 29px;
}

.cs-scheda__prezzo-old {
	margin-right: 8px;
	opacity: .65;
	text-decoration: line-through;
	font-size: .85em;
}

.cs-scheda__buy {
	margin: 4px 0 0;
	position: relative;
}

.cs-scheda__buy .cs-btn {
	width: 100%;
	border-radius: 16px;
}

.cs-shell--libro .cs-scheda__buy .cs-btn,
.cs-shell--libro .cs-buy .cs-btn {
	color: var(--color-blu-navy);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 18px;
	font-style: normal;
	font-weight: 800;
	line-height: 19px;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.cs-buy__toggle {
	gap: 10px;
}

.cs-buy__caret {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
}

.cs-buy__menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	z-index: 5;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #0a2a42;
	border: 1px solid var(--cs-ice);
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.cs-buy__menu li {
	margin: 0;
}

.cs-buy__menu a {
	display: block;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--cs-text);
}

.cs-buy__menu a:hover {
	background: rgba(250, 229, 72, 0.12);
	color: var(--cs-accent);
}

.cs-scheda__body {
	min-width: 0;
}

.cs-scheda__author {
	margin: 0 0 10px;
}

.cs-shell--libro .cs-scheda__author {
	color: var(--color-bianco-ghiaccio);
	text-align: left;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 22px;
}

.cs-scheda__title {
	margin: 0 0 18px;
}

.cs-shell--libro .cs-scheda__title {
	color: var(--color-bianco-ghiaccio);
	text-align: left;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 28px;
	font-style: normal;
	font-weight: 800;
	line-height: 28px;
	margin-bottom: 10px;
}

.cs-scheda__strillo {
	margin: 0 0 20px;
}

.cs-shell--libro .cs-scheda__strillo {
	color: var(--color-bianco-ghiaccio);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 18px;
	font-style: italic;
	font-weight: 600;
	line-height: 28px;
}

.cs-scheda__strillo p {
	margin: 0;
}

.cs-scheda__sinossi {
	margin: 0 0 28px;
}

.cs-shell--libro .cs-scheda__sinossi {
	overflow: hidden;
	color: var(--color-bianco-ghiaccio);
	text-overflow: ellipsis;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 22px;
	margin-bottom: 40px;
}

.cs-scheda__sinossi p {
	margin: 0 0 1em;
}

.cs-scheda__sinossi p:last-child {
	margin-bottom: 0;
}

.cs-box {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 26px;
	border-radius: 32px;
	border: 1px solid var(--color-bianco-ghiaccio);
	background: rgba(255, 255, 255, 0.10);
	box-shadow: -6px -6px 13px 0 rgba(255, 255, 255, 0.24), 6px 6px 13px 0 rgba(255, 255, 255, 0.24);
}

.cs-box__section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cs-box__head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cs-box__icon {
	flex-shrink: 0;
	display: inline-flex;
	line-height: 0;
}

.cs-box__icon svg {
	display: block;
}

.cs-box__title {
	margin: 0;
}

.cs-shell--libro .cs-box__title {
	color: var(--color-bianco-ghiaccio);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 800;
	line-height: 24px;
}

.cs-box__text {
	font-size: 14px;
	line-height: 1.65;
	color: var(--cs-muted);
}

.cs-shell--libro .cs-box__text {
	color: var(--color-bianco-ghiaccio);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 22px;
}

.cs-box__text p {
	margin: 0 0 .75em;
}

.cs-box__text p:last-child {
	margin-bottom: 0;
}

/* Carousel altri titoli */
.cs-altri {
	margin-top: 24px;
}

.cs-shell--libro .cs-altri-title {
	color: var(--color-giallo);
	text-align: center;
	font-family: Newsreader, serif;
	font-size: 32px;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
}

.cs-carousel {
	position: relative;
	padding: 0 44px;
}

.cs-carousel__viewport {
	overflow: hidden;
}

.cs-carousel__list {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform .35s ease;
	will-change: transform;
}

.cs-carousel__item {
	flex: 0 0 calc((100% - 48px) / 3);
	min-width: 0;
	margin: 0;
	padding: 0;
}

.cs-carousel__nav {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 17.455px;
	border: 1.091px solid var(--color-bianco-ghiaccio);
	background: rgba(255, 255, 255, 0.10);
	box-shadow: -6.545px -6.545px 24px 0 rgba(255, 255, 255, 0.48), 6.545px 6.545px 24px 0 rgba(255, 255, 255, 0.48);
	line-height: 0;
	cursor: pointer;
}

.cs-carousel__nav svg {
	display: block;
}

.cs-carousel__nav:hover:not(:disabled) {
	border-color: var(--cs-accent);
}

.cs-carousel__nav:disabled {
	opacity: .35;
	cursor: default;
}

.cs-carousel__nav--prev {
	left: 0;
}

.cs-carousel__nav--next {
	right: 0;
}

.cs-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 22px;
}

.cs-carousel__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(245, 247, 250, .35);
	cursor: pointer;
}

.cs-carousel__dot.is-active {
	background: var(--cs-accent);
}

.cs-card-libro {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: 100%;
	padding: 22px 20px;
	background: #DDF0FF;
	border: 1px solid var(--cs-ice);
	border-radius: 24px;
}

.cs-card-libro__cover {
	width: 120px;
	margin: 0 auto 16px;
}

.cs-card-libro__cover img {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
	background: #1a1a1a;
}

.cs-card-libro__author {
	margin: 0 0 6px;
}

.cs-shell--libro .cs-card-libro__author {
	color: var(--Blu-Navy-80, #335973);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 600;
	line-height: 20px;
}

.cs-card-libro__title {
	margin: 0 0 16px;
}

.cs-shell--libro .cs-card-libro__title {
	color: var(--color-blu-navy);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 22px;
	font-style: normal;
	font-weight: 700;
	line-height: 28px;
}

.cs-card-libro__title a:hover {
	color: var(--color-blu-navy);
}

.cs-card-libro__cta {
	margin: auto 0 0;
	width: 100%;
}

.cs-shell--libro .cs-card-libro__cta {
	color: var(--color-blu-navy);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 800;
	line-height: 15.833px;
}

.cs-card-libro__cta .cs-btn {
	width: 100%;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 16px;
}

.cs-shell--libro .cs-card-libro__cta .cs-btn {
	color: var(--color-blu-navy);
	text-align: center;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 15px;
	font-style: normal;
	font-weight: 800;
	line-height: 15.833px;
}

@media (max-width: 860px) {
	.cs-scheda {
		grid-template-columns: 220px minmax(0, 1fr);
		/* column-gap 67 resta da base; solo row-gap più stretto */
		row-gap: 28px;
	}

	.cs-carousel__item {
		flex: 0 0 calc((100% - 24px) / 2);
	}
}

@media (max-width: 640px) {
	/* Libro mobile — Figma 115:8883 (390); scala ~0.85–0.875 vs desktop */
	.cs-shell--libro {
		padding-top: 32px;
	}

	.cs-scheda {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-bottom: 56px;
	}

	.cs-scheda__cover {
		max-width: 220px;
		margin: 0 auto;
	}

	.cs-scheda__media {
		gap: 20px;
	}

	.cs-shell--libro .cs-scheda__author {
		font-size: 14px;
		line-height: 20px;
	}

	.cs-shell--libro .cs-scheda__title {
		font-size: 24px;
		line-height: 24px;
		font-weight: 800;
	}

	.cs-shell--libro .cs-scheda__strillo {
		font-size: 16px;
		line-height: 24px;
	}

	.cs-shell--libro .cs-scheda__sinossi {
		font-size: 14px;
		line-height: 20px;
		margin-bottom: 32px;
	}

	.cs-shell--libro .cs-scheda__meta-title {
		font-size: 20px;
		line-height: 28px;
	}

	.cs-shell--libro .cs-scheda__meta {
		font-size: 14px;
		line-height: 20px;
	}

	.cs-shell--libro .cs-scheda__prezzo {
		font-size: 22px;
		line-height: 26px;
	}

	.cs-shell--libro .cs-scheda__buy .cs-btn,
	.cs-shell--libro .cs-buy .cs-btn {
		font-size: 16px;
		line-height: 17px;
	}

	.cs-shell--libro .cs-box__title {
		font-size: 14px;
		line-height: 20px;
	}

	.cs-shell--libro .cs-box__text {
		font-size: 14px;
		line-height: 20px;
	}

	.cs-shell--libro .cs-altri-title {
		font-size: 28px;
	}

	.cs-shell--libro .cs-card-libro__author {
		font-size: 13px;
		line-height: 18px;
	}

	.cs-shell--libro .cs-card-libro__title {
		font-size: 18px;
		line-height: 24px;
	}

	.cs-shell--libro .cs-card-libro__cta,
	.cs-shell--libro .cs-card-libro__cta .cs-btn {
		font-size: 14px;
		line-height: 15px;
	}

	.cs-carousel {
		padding: 0 36px;
	}

	.cs-carousel__item {
		flex: 0 0 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cs-header__video {
		display: none;
	}

	.cs-covers__item,
	.cs-btn,
	.cs-card-percorso,
	.cs-carousel__list {
		transition: none;
	}
}
