/*
 * Torre Natisone — aggiunte del nuovo tema.
 * Caricato dopo main.css: contiene solo ciò che il tema precedente non aveva
 * (filtri eventi, mappa con consenso, mappa nella scheda evento, accessibilità).
 */

:root {
	--tn-blue: #3965af;
	--tn-blue-dark: #27487f;
	--tn-border: #ebeff6;
	--tn-text-muted: #5f6b7a;
}

/* ---------------------------------------------------------------------------
 * Accessibilità
 * ------------------------------------------------------------------------ */
.skip-link:focus {
	background: #fff;
	color: var(--tn-blue-dark);
	display: block;
	font-size: 1.6rem;
	left: 6px;
	padding: 12px 20px;
	position: absolute;
	top: 6px;
	z-index: 100000;
}

.tog[role="button"]:focus-visible,
#btn-top:focus-visible,
.tn-events-filter a:focus-visible {
	outline: 2px solid var(--tn-blue);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
 * Pagina Eventi: filtri
 * ------------------------------------------------------------------------ */
.tn-events-filter {
	margin: 0 10px 20px;
	width: 100%;
}

.tn-events-filter__title {
	color: #000;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 25px;
	text-align: left;
}

.tn-events-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.tn-events-filter__list li {
	margin: 0;
}

.tn-events-filter__list a {
	border: 2px solid var(--tn-border);
	border-radius: 5px;
	color: var(--tn-blue-dark);
	display: inline-block;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	padding: 9px 16px;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}

.tn-events-filter__list a:hover {
	border-color: var(--tn-blue);
}

.tn-events-filter__list a.is-active {
	background: var(--tn-blue);
	border-color: var(--tn-blue);
	color: #fff;
}

.tn-events-filter__list--scope a {
	font-weight: 600;
	text-transform: uppercase;
}

.tn-events-empty {
	color: var(--tn-text-muted);
	font-size: 18px;
	margin: 30px 10px;
	width: 100%;
}

.tn-event-types {
	margin-top: 12px;
}

.tn-event-types:empty {
	display: none;
}

.tn-event-ended {
	color: var(--tn-text-muted);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	margin-top: 8px;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
 * Mappe
 * ------------------------------------------------------------------------ */

/* I marker sono solo dati per lo script: non vanno mostrati nella pagina. */
.acf-map > .marker {
	display: none;
}

.acf-map {
	background: #f2f2f2;
	position: relative;
}

.acf-map.tn-map--compact,
.acf-map.is-waiting-consent {
	min-height: 440px;
}

@media screen and (max-width: 768px) {
	.acf-map.tn-map--compact,
	.acf-map.is-waiting-consent {
		min-height: 340px;
	}
}

.tn-map-consent {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 18px;
	inset: 0;
	justify-content: center;
	padding: 30px;
	position: absolute;
	text-align: center;
}

.tn-map-consent p {
	color: #333;
	font-size: 17px;
	line-height: 1.4;
	margin: 0;
	max-width: 520px;
}

.tn-map-consent__button {
	cursor: pointer;
}

.tn-map-info {
	font-family: "Fira Sans", sans-serif;
	max-width: 300px;
}

.tn-map-info .container-img-evento {
	background-position: center;
	background-size: cover;
	border-radius: 4px;
	height: 140px;
	margin-bottom: 10px;
	min-height: 0;
}

.tn-map-info .location_directions {
	margin: 6px 0 0;
}

.tn-event-map {
	margin: 60px auto 0;
	width: 100%;
}

.tn-event-map .location_directions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 15px 0 25px;
}

.tn-event-map .address {
	color: #333;
	font-size: 17px;
}

/* ---------------------------------------------------------------------------
 * Accordion: transizione gestita dallo script del tema
 * ------------------------------------------------------------------------ */
.accordion-collapse.collapse:not(.show) {
	display: none;
}

/* Pulsante "torna su": nascosto finché non si scorre la pagina. */
#btn-top {
	display: none;
}
