/* ═══════════════════════════════════════
   Cavallerizza Hero — v3.2.1
═══════════════════════════════════════ */

.ech-hero {
	position: relative;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	margin-left: calc(50% - 50vw);
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	overflow: hidden;
	background: #000;
}

/* ── Immagine ── */
.ech-hero__image-wrap {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* L'immagine e' piu' alta del contenitore e sborda del 32% sopra e sotto:
   e' il margine entro cui il parallasse (assets/js/parallax.js) puo' farla
   scorrere senza mai scoprire un bordo. A riposo la finestra visibile resta
   centrata sull'immagine, quindi l'inquadratura non cambia rispetto a prima.
   Se alzi AMPLITUDE_RATIO nel JS, alza anche questi due valori. */
.ech-hero__image {
	position: absolute;
	top: -32%;
	left: 0;
	width: 100%;
	height: 164%;
	object-fit: cover;
	object-position: center;
	display: block;
	will-change: transform;
}

/* Senza JS, o con "riduci movimento" attivo, l'immagine resta ferma
   nella posizione centrata: nessun salto, nessun bordo scoperto. */
@media (prefers-reduced-motion: reduce) {
	.ech-hero__image {
		will-change: auto;
	}
}

/* ── Overlay colore principale ── */
.ech-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	opacity: 0.5;
	pointer-events: none;
}

/* ── Contenuto InnerBlocks ── */
.ech-hero__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	box-sizing: border-box;
}

/* Blocchi dentro l'hero: larghezza piena */
.ech-hero__content > * {
	width: 100%;
	max-width: 100%;
}

/* ── Mobile ── */
@media (max-width: 768px) {
	.ech-hero__content {
		padding: 25px;
	}
}

/* ── Reset stili tema per blocchi dentro l'hero ── */
.ech-hero__content h1,
.ech-hero__content h2,
.ech-hero__content h3,
.ech-hero__content h4,
.ech-hero__content h5,
.ech-hero__content h6 {
	font-style: normal;
}

/* ── Testo bianco ── */
.ech-hero__content,
.ech-hero__content h1,
.ech-hero__content h2,
.ech-hero__content h3,
.ech-hero__content h4,
.ech-hero__content h5,
.ech-hero__content h6,
.ech-hero__content p,
.ech-hero__content span,
.ech-hero__content a,
.ech-hero__content div,
.ech-hero__content .wp-block-ensoul-event-artists-list,
.ech-hero__content .wp-block-ensoul-event-artists-list * {
	color: #fff !important;
	border-color: #fff !important;
}

/* ── Titolo band: h6 troppo piccolo su mobile, override ── */
@media (max-width: 767px) {
	.ech-hero__content h6 {
		font-size: clamp(4rem, 15vw, 6rem) !important;
		line-height: 1.1 !important;
	}
}

/* ═══════════════════════════════════════
   Gallery a scorrimento (Swiper)
═══════════════════════════════════════ */
.ech-gallery {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3;
	padding: 20px 0 30px;
}

.ech-gallery__swiper {
	overflow: hidden;
}

.ech-gallery__swiper .swiper-wrapper {
	display: flex;
	align-items: flex-end;
}

.ech-gallery__slide {
	width: auto;
	flex-shrink: 0;
}

.ech-gallery__img {
	display: block;
	height: 180px;
	width: auto;
	object-fit: cover;
}

.ech-gallery__nav {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 12px;
}

.ech-gallery__prev,
.ech-gallery__next {
	background: rgba(255,255,255,0.85);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s;
	color: #111;
}

.ech-gallery__prev:hover,
.ech-gallery__next:hover {
	background: #fff;
}

/* ── Mobile ── */
@media (max-width: 768px) {
	.ech-gallery {
		padding: 15px 0 20px;
	}

	.ech-gallery__img {
		height: 120px;
	}

	.ech-gallery__prev,
	.ech-gallery__next {
		width: 34px;
		height: 34px;
	}
}
