/*
 * Schede dell'evento (dal 2026-11-18). Caricato solo nelle pagine evento che
 * hanno schede. Vedi includes/class-kb-schede-evento.php.
 */

.kb-schede {
	margin: 40px 0 0;
	font-family: "acumin-variable", sans-serif;
	color: var(--e-global-color-primary, #0C0C0C);
	text-transform: none;
	letter-spacing: normal;
}

.kb-schede__gruppo + .kb-schede__gruppo {
	margin-top: 56px;
}

.kb-schede .kb-schede__fascia {
	margin: 0 0 24px;
	padding: 0 0 10px;
	border-bottom: 1px solid #0C0C0C;
	font-family: inherit;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.2;
	color: inherit;
	text-transform: none;
	letter-spacing: normal;
}

.kb-schede__elenco {
	display: flex;
	flex-direction: column;
	gap: 38px;
}

.kb-scheda {
	display: flex;
	min-height: 176px;
	margin: 0;
	background: #F4F4F4;
	overflow: hidden;
}

.kb-scheda__foto {
	position: relative;
	flex: 0 0 35%;
	max-width: 35%;
	margin: 0;
}

.kb-schede .kb-scheda__foto .kb-schede__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center center;
}

.kb-scheda__testo {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: 24px 28px 24px 20px;
}

.kb-schede .kb-scheda__testo > * {
	margin: 0;
	font-family: inherit;
	color: inherit;
	letter-spacing: normal;
}

/*
 * Riga sopra il titolo (dal 2026-11-23): solo orario = p.kb-scheda__orario;
 * con la location = p.kb-scheda__riga con span orario, divisore e location.
 */
.kb-schede .kb-scheda__orario,
.kb-schede .kb-scheda__riga {
	margin-bottom: 10px;
	font-size: 15px;
	line-height: 1.3;
}

.kb-schede .kb-scheda__orario {
	font-weight: 700;
	text-transform: uppercase;
	color: #0C0C0C;
}

.kb-schede .kb-scheda__riga {
	display: flex;
	align-items: flex-start;
}

.kb-schede .kb-scheda__riga > .kb-scheda__orario {
	flex: 0 0 auto;
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

/* Divisore verticale centrato sulla prima riga di testo (line-height 1.3em). */
.kb-schede .kb-scheda__divisore {
	display: block;
	flex: 0 0 auto;
	width: 1px;
	height: 14px;
	margin: calc((1.3em - 14px) / 2) 10px 0;
	background: #5A5248;
}

.kb-schede .kb-scheda__location {
	min-width: 0;
	font-weight: 400;
	text-transform: uppercase;
	color: #5A5248;
	overflow-wrap: anywhere;
}

/* In inglese l'ora resta come nel resto del sito: "10:00 am". */
.kb-schede:lang(en) .kb-scheda__orario {
	text-transform: none;
}

.kb-schede .kb-scheda__titolo {
	font-size: 40px;
	font-weight: 400;
	line-height: 1.08;
	text-transform: none;
}

.kb-schede .kb-scheda__sottotitolo {
	margin-top: 6px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	color: #5A5248;
}

.kb-schede .kb-scheda__breve {
	display: -webkit-box;
	margin-top: 10px;
	overflow: hidden;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

@media (max-width: 767px) {
	.kb-schede .kb-schede__fascia {
		font-size: 24px;
	}

	.kb-schede__elenco {
		gap: 24px;
	}

	.kb-scheda {
		flex-direction: column;
		min-height: 0;
	}

	.kb-scheda__foto {
		flex: 0 0 auto;
		max-width: none;
		width: 100%;
		aspect-ratio: 16 / 10;
	}

	.kb-scheda__testo {
		padding: 20px;
	}

	.kb-schede .kb-scheda__orario,
	.kb-schede .kb-scheda__riga {
		margin-bottom: 8px;
		font-size: 14px;
	}

	.kb-schede .kb-scheda__riga > .kb-scheda__orario {
		margin: 0;
		font-size: inherit;
	}

	.kb-schede .kb-scheda__divisore {
		height: 13px;
		margin-top: calc((1.3em - 13px) / 2);
	}

	.kb-schede .kb-scheda__titolo {
		font-size: 28px;
	}

	.kb-schede .kb-scheda__sottotitolo {
		font-size: 16px;
	}

	.kb-schede .kb-scheda__breve {
		font-size: 15px;
	}
}
