/**
 * Home hero — brief: 90vh, sfondo bianco, tipografia Poppins/Inter.
 */

.home-hero {
	position: relative;
	min-height: 90vh;
	min-height: 90dvh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	padding: calc(var(--cs-site-header-h, 4.75rem) + clamp(2rem, 6vh, 3.5rem)) clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vh, 4rem);
	overflow: hidden;
	background-color: var(--color-bg, #ffffff);
	color: var(--color-text, #111111);
}

.site-main--home .home-hero {
	margin-top: calc(-1 * var(--cs-site-header-h, 4.75rem));
	transition: margin-top 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

html.cs-header-bar-hidden .site-main--home .home-hero {
	margin-top: 0;
}

.home-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--color-bg, #ffffff);
}

.home-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-hero--has-video .home-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.78);
}

.home-hero__video--desktop {
	display: none;
}

.home-hero__video--mobile {
	display: block;
}

@media (min-width: 52rem) {
	.home-hero__video--desktop {
		display: block;
	}

	.home-hero__video--mobile {
		display: none;
	}
}

.home-hero--has-video:not(:has(.home-hero__video--mobile)) .home-hero__video--desktop {
	display: block;
}

.home-hero--has-video:not(:has(.home-hero__video--desktop)) .home-hero__video--mobile {
	display: block;
}

.home-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: min(96vw, 92rem);
	margin: 0 auto;
}

.home-hero__eyebrow {
	margin: 0 0 1rem;
	font-family: var(--font-body);
	font-size: clamp(0.6875rem, 1.1vw, 0.8125rem);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--color-text-muted, #555555);
}

.home-hero__title {
	margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
	font-family: var(--font-heading);
	font-size: clamp(2.75rem, 4vw + 1rem, 5.5rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-transform: none;
	color: var(--color-text, #111111);
	max-width: 14ch;
}

.home-hero__lead {
	margin: 0 0 2rem;
	font-family: var(--font-body);
	font-size: clamp(1.25rem, 1.5vw, 1.375rem);
	line-height: 1.5;
	font-weight: 400;
	color: var(--color-text-muted, #555555);
	max-width: 38rem;
}

.home-hero__lead p {
	margin: 0;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
	.home-hero__video {
		display: none;
	}
}
