/**
 * Card evento - Pirene
 * Sostituisce lo stile inline del blocco Greenshift 105866 rimosso.
 * Additivo: lo stile di .event-container/.title/.time/.project-info/.location-icon
 * resta nel CSS esistente; qui solo layout della nuova card e bottone CTA.
 */

.event-card {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.event-card .title {
	margin: 0;
}

.event-card .time {
	display: flex;
	align-items: center;
	column-gap: .5rem;
	margin: 0;
}

.event-card .event-place {
	display: flex;
	align-items: center;
	column-gap: 5px;
	margin: 0;
}

/* Riga luogo + bottone "Scheda evento" (bottone in alto a destra come nel vecchio blocco) */
.event-card .event-place-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.event-card .event-place-row .btn-scheda {
	margin-left: auto;
}

.event-card .project-info .anno-row,
.event-card .project-info .project-row,
.event-card .project-info .istituto-row,
.event-card .project-info .partner-row,
.event-card .project-info .link-esterno-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	row-gap: 2px;
}

.event-card .project-info h6 {
	margin: 0;
}

/* Link piu' evidenti nella card: sottolineati, colore marcato, peso maggiore.
   Esclude il bottone .btn-scheda (che sta fuori da .project-info/.event-place). */
.event-card .event-place a,
.event-card .project-info a {
	color: #064B94;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.event-card .event-place a:hover,
.event-card .project-info a:hover,
.event-card .event-place a:focus-visible,
.event-card .project-info a:focus-visible {
	color: #053a72;
	text-decoration-thickness: 2px;
}

.event-card .allegati-list {
	list-style: none;
	margin: .25rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.event-card .allegati-list li {
	display: flex;
	align-items: center;
	column-gap: 5px;
}

/* CTA "Scheda evento": ricrea il bottone che prima era stilato inline da Greenshift */
.event-card .btn-scheda {
	display: inline-block;
	white-space: nowrap;
	padding: 5px 15px;
	background: #fff;
	color: #064B94;
	border: 1px solid #064B94;
	border-radius: .25rem;
	text-decoration: none;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .05);
	transition: .25s;
}

.event-card .btn-scheda:hover,
.event-card .btn-scheda:focus {
	background: #064B94;
	color: #fff;
	box-shadow: 0 4px 12px 0 rgba(0, 0, 0, .1);
	transform: translateY(-1px);
}

.event-card .btn-scheda:focus-visible {
	outline: 2px solid #064B94;
	outline-offset: 2px;
}

/* ===== Scheda singolo evento ===== */
/* Selettore piu' specifico per battere la regola WPCode ".single-event .event-container" (width:100%;margin:0) */
.single-event .event-container.single-event-card {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.single-event-card .se-row {
	display: flex;
	flex-direction: row;
	gap: 20px;
	align-items: flex-start;
}

.single-event-card .se-main {
	flex: 1 1 50%;
	position: sticky;
	top: 120px;
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.single-event-card .se-media {
	flex: 1 1 50%;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.single-event-card .se-thumb img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.single-event-card .project-info {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.single-event-card .project-info .anno-row,
.single-event-card .project-info .project-row,
.single-event-card .project-info .partner-row,
.single-event-card .project-info .istituto-row,
.single-event-card .project-info .link-esterno-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 8px;
	row-gap: 2px;
}

.single-event-card .project-info h6 {
	margin: 0;
}

/* Link piu' evidenti nel singolo: coerenti con la card (.event-place + .project-info). */
.single-event-card .event-place a,
.single-event-card .project-info a {
	color: #064B94;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.single-event-card .event-place a:hover,
.single-event-card .project-info a:hover,
.single-event-card .event-place a:focus-visible,
.single-event-card .project-info a:focus-visible {
	color: #053a72;
	text-decoration-thickness: 2px;
}

.single-event-card .allegati-list {
	list-style: none;
	margin: .25rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.single-event-card .allegati-list li {
	display: flex;
	align-items: center;
	column-gap: 5px;
}

.single-event-card .se-map {
	margin-top: 2rem;
	/* Confina i z-index interni di Leaflet (pane 400, controlli 1000): senza
	   stacking context isolato la mappa scavalca l'header sticky durante lo scroll. */
	position: relative;
	z-index: 0;
	isolation: isolate;
}

@media (max-width: 991.98px) {
	.single-event-card .se-row {
		flex-direction: column;
	}
	.single-event-card .se-main {
		position: static;
		width: 100%;
	}
}
