/*
 * Componente: banda citazione.
 *
 * Foto a sinistra che sfuma nel fondo, citazione a destra: la velatura va nel
 * verso opposto a quella dell'hero, perché qui il testo sta dall'altra parte.
 */

.sh-quote-band {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(14rem, 18vw, 17rem);
	overflow: hidden;
	background-color: var(--sh-bg);
	color: var(--sh-ink);
}

/*
 * La foto occupa la parte sinistra, non tutta la banda: nel mockup la metà
 * destra è fondo pieno, e allargarla a tutta larghezza la sgranerebbe.
 */
.sh-quote-band__bg {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: 0;
	width: 64%;
}

.sh-quote-band__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
}

/* Nessun taglio netto: la foto si dissolve nel fondo della banda. */
.sh-quote-band__bg::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgb(0 0 0 / 0) 45%, var(--sh-bg) 100%);
	content: "";
}

.sh-quote-band__inner {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: flex-end;
	padding-block: var(--sh-space-xl);
}

.sh-quote-band__figure,
.sh-quote-band__blockquote,
.sh-quote-band__quote {
	margin: 0;
}

.sh-quote-band__quote .sh-title__line {
	display: block;
}

/* Il margine evita che l'ultima lettera inclinata venga tagliata. */
.sh-quote-band--italic .sh-quote-band__quote {
	padding-inline-end: 0.15em;
	font-style: italic;
}

.sh-quote-band__firma {
	margin-block-start: var(--sh-space-sm);
	font-family: var(--sh-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.32em;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.sh-quote-band__bg {
		width: 100%;
	}

	.sh-quote-band__bg::after {
		background: linear-gradient(180deg, rgb(0 0 0 / 0.3) 0%, var(--sh-bg) 100%);
	}

	.sh-quote-band__inner {
		justify-content: flex-start;
	}
}
