/* PA Hero: sostituto della slide Revolution Slider della homepage */
.pa-hero {
	--pa-offset: 0px; /* altezza header mobile da sottrarre, impostata da pa-hero.js */
	position: relative;
	width: 100%;
	height: calc(100vh - var(--pa-offset));
	height: calc(100svh - var(--pa-offset));
	min-height: 500px;
	overflow: hidden;
	background: #c2c0b1;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.pa-hero__bg {
	position: absolute;
	inset: -40px; /* margine per il parallasse col mouse */
	will-change: transform;
	transition: transform .4s cubic-bezier(.25, .46, .45, .94);
}

.pa-hero__bg-img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.pa-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 20px;
	transform: translateY(31px); /* stessa posizione verticale dell'originale */
}

.pa-hero__title {
	margin: 0;
	font-family: Georgia, serif;
	font-weight: 400;
	font-size: 75px;
	line-height: 90px;
	letter-spacing: .1em;
	color: #fff;
	white-space: nowrap;
	text-transform: none;
}

.pa-hero__sep {
	display: block;
	width: 115px;
	height: 12px;
	margin: 15px 0 24px;
}

.pa-hero__subtitle {
	margin: 0;
	max-width: 821px;
	font-family: Catamaran, sans-serif;
	font-weight: 300;
	font-size: 20px;
	line-height: 32px;
	letter-spacing: .08em;
	color: #fff;
}

.pa-hero__cta {
	margin-top: 45px;
}

.pa-hero .pa-hero__btn,
.pa-hero .pa-hero__btn:hover {
	color: #fff;
	border-color: #fff;
}

/* Animazione d'ingresso: dal basso di 50px con dissolvenza, come l'originale */
.pa-hero__anim {
	opacity: 0;
	transform: translateY(50px);
	transition: opacity .8s cubic-bezier(.25, .46, .45, .94) var(--pa-delay, 0ms),
		transform .8s cubic-bezier(.25, .46, .45, .94) var(--pa-delay, 0ms);
}

.pa-hero.is-ready .pa-hero__anim {
	opacity: 1;
	transform: none;
}

/* Senza JS il contenuto deve comunque vedersi */
.no-js .pa-hero__anim {
	opacity: 1;
	transform: none;
}

/* Livelli responsive dell'originale: 1240 / 1024 / 778 / 480 */
@media (max-width: 1239px) {
	.pa-hero__title { line-height: 85px; }
	.pa-hero__subtitle { max-width: 737px; }
	.pa-hero__sep { margin: 10px 0 22px; }
	.pa-hero__cta { margin-top: 30px; }
}

@media (max-width: 1023px) {
	.pa-hero__title {
		font-size: 45px;
		line-height: 75px;
		white-space: normal;
		max-width: 434px;
	}
	.pa-hero__subtitle { max-width: 592px; }
}

@media (max-width: 777px) {
	.pa-hero__title {
		font-size: 34px;
		line-height: 48px;
		max-width: 334px;
	}
	.pa-hero__subtitle {
		max-width: 355px;
		font-size: 17px;
		line-height: 27px;
	}
	.pa-hero__sep { margin: 12px 0 16px; }
	.pa-hero__cta { margin-top: 28px; }
	.pa-hero__content { transform: none; }
}

@media (max-width: 380px) {
	.pa-hero__title { font-size: 28px; line-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.pa-hero__anim,
	.pa-hero__bg {
		transition: none;
	}
	.pa-hero__anim {
		opacity: 1;
		transform: none;
	}
}
