/* VivaVoce 0.4 "classico": home.
 * Hero come l'originale: l'illustrazione a tutta larghezza e il pulsante giallo al centro.
 * Occhiello e testo dell'hero non si vedono; il titolo resta per screen reader e motori di ricerca. */

.vv-hero {
	position: relative;
	background: #f9fef8; /* fondo dell'illustrazione */
	overflow: hidden;
}
.vv-hero__inner {
	position: relative;
	display: block;
	max-width: none;
	min-height: 0;
	margin: 0;
	padding: 0;
}
.vv-hero__art {
	margin: 0;
}
.vv-hero__art img {
	display: block;
	width: 100%;
	height: calc(100vh - 130px);
	min-height: 420px;
	max-height: 860px;
	object-fit: contain;
	object-position: center;
}
.vv-hero__text {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	padding: 0 15px;
	text-align: center;
}
.vv-hero__kicker,
.vv-hero__lead,
.vv-hero__stroke {
	display: none !important;
}
.vv-hero .vv-hero__title {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.vv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	margin: 0;
}
@media (max-width: 767px) {
	.vv-hero__art img {
		height: 60vh;
		min-height: 300px;
	}
	.vv-hero__text {
		top: auto;
		bottom: 20px;
		transform: none;
	}
}

/* L'h1 della pagina home è nascosto come nell'originale */
.vv-has-hero .page-wrap .entry-header {
	display: none;
}
.vv-has-hero .page-wrap {
	padding-top: var(--vv-spazio);
}

/* Titoli delle sezioni: maiuscolo, centrati, con la barretta gialla (come i widget originali).
 * Valgono sia per l'istantanea SiteOrigin (h3.widget-title) sia per la home a blocchi. */
.home .so-panel .widget-title,
.home .panel-grid .widget-title,
.vv-has-hero .entry-content > .vv-section-title {
	position: relative;
	display: block;
	margin: 0 0 40px !important;
	padding-bottom: 20px;
	font-size: 32px !important;
	font-weight: 600 !important;
	line-height: 1.2;
	text-align: center !important;
	text-transform: uppercase !important;
	color: var(--vv-titoli-sezione) !important;
}
.home .so-panel .widget-title::after,
.home .panel-grid .widget-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 50px;
	height: 3px;
	margin-left: -25px;
	background: var(--vv-giallo);
}
.home .panel-grid + .panel-grid {
	margin-top: var(--vv-spazio);
}
.vv-has-hero .entry-content > .vv-section-title:not(:first-child) {
	margin-top: var(--vv-spazio) !important;
}
#appuntamenti {
	scroll-margin-top: 140px;
}

/* "Da non perdere": card con immagine piena e testo su fondo scuro, come il vecchio "Featured Post" */
.home .vv-grid--evento:not(.vv-grid--carosello) .vv-card {
	min-height: 420px;
	background: var(--vv-placeholder);
}
.home .vv-grid--evento:not(.vv-grid--carosello) .vv-card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	margin: 0;
}
.home .vv-grid--evento:not(.vv-grid--carosello) .vv-card__body {
	position: relative;
	z-index: 1;
	justify-content: flex-end;
	padding: 60px 20px 20px;
	background: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.75) 100%);
}
.home .vv-grid--evento:not(.vv-grid--carosello) .vv-card__body {
	margin-top: auto;
	flex: none;
}
.home .vv-grid--evento:not(.vv-grid--carosello) .vv-card__link,
.home .vv-grid--evento:not(.vv-grid--carosello) .vv-card__meta {
	color: var(--vv-bianco) !important;
}
.home .vv-grid--evento:not(.vv-grid--carosello) .vv-card__text {
	display: none;
}
.home .vv-grid--evento:not(.vv-grid--carosello) .vv-badge {
	top: 15px;
	bottom: auto;
	left: 15px;
	background: var(--vv-badge-3);
}
.home .vv-grid--evento:not(.vv-grid--carosello) .vv-card:nth-child(2) .vv-badge {
	background: var(--vv-badge-4);
}
