/* ==========================================================================
   Blocco: Territori – Selettore città (csp-terr-citta)
   Cerchi bianchi con icona + nome.
   - .has-hover-icon → due immagini sovrapposte: al rollover / stato attivo
                       si mostra la seconda (icona a colori)
   - senza icona di rollover → l'icona è in scala di grigi e torna a colori
                       al rollover / stato attivo
   ========================================================================== */

.csp-terr-citta {
	--csp-terr-cerchio: 154px;

	margin: 0 0 2.75rem;
}

.csp-terr-citta__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 3.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.csp-terr-citta__item {
	margin: 0;
	padding: 0;
	list-style: none;
}
.csp-terr-citta__item::before {
	display: none;
}

/* --------------------------------------------------------------------------
   Cerchio
   -------------------------------------------------------------------------- */
.csp-terr-citta__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: var(--csp-terr-cerchio);
	height: var(--csp-terr-cerchio);
	margin: 0;
	padding: 18px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
	cursor: pointer;
	box-sizing: border-box;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.csp-terr-citta__btn:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}
.csp-terr-citta__btn:focus-visible {
	outline: 2px solid #0E693A;
	outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Icona
   -------------------------------------------------------------------------- */
.csp-terr-citta__icon {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 90px;
	height: 72px;
}

.csp-terr-citta__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Senza icona di rollover: grigio → colori */
.csp-terr-citta__btn:not(.has-hover-icon) .csp-terr-citta__img {
	filter: grayscale(1);
	opacity: 0.35;
}
.csp-terr-citta__btn:not(.has-hover-icon):hover .csp-terr-citta__img,
.csp-terr-citta__btn:not(.has-hover-icon).is-active .csp-terr-citta__img {
	filter: none;
	opacity: 1;
}

/* Con icona di rollover: le due immagini si sovrappongono */
.csp-terr-citta__img--hover {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0;
}
.csp-terr-citta__btn.has-hover-icon:hover .csp-terr-citta__img--hover,
.csp-terr-citta__btn.has-hover-icon.is-active .csp-terr-citta__img--hover {
	opacity: 1;
}
.csp-terr-citta__btn.has-hover-icon:hover .csp-terr-citta__img:not(.csp-terr-citta__img--hover),
.csp-terr-citta__btn.has-hover-icon.is-active .csp-terr-citta__img:not(.csp-terr-citta__img--hover) {
	opacity: 0;
}

/* --------------------------------------------------------------------------
   Nome
   -------------------------------------------------------------------------- */
.csp-terr-citta__nome {
	font-family: "futura-pt";
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #9B9B9B;
	transition: color 0.25s ease;
}
.csp-terr-citta__btn:hover .csp-terr-citta__nome,
.csp-terr-citta__btn.is-active .csp-terr-citta__nome {
	color: #000;
}

/* Editor: messaggio quando non ci sono città */
.csp-terr-citta__placeholder {
	margin: 0;
	padding: 1.5rem;
	background: #fff;
	border: 2px dashed #ccc;
	color: #777;
	font-size: 0.9rem;
	text-align: center;
}

@media (max-width: 900px) {
	.csp-terr-citta {
		--csp-terr-cerchio: 130px;
	}
	.csp-terr-citta__list {
		gap: 1.75rem;
	}
	.csp-terr-citta__icon {
		width: 76px;
		height: 60px;
	}
}

@media (max-width: 767px) {
	.csp-terr-citta {
		--csp-terr-cerchio: 116px;

		margin-bottom: 2rem;
	}
	.csp-terr-citta__list {
		gap: 1.25rem;
	}
	.csp-terr-citta__btn {
		padding: 14px;
		gap: 6px;
	}
	.csp-terr-citta__icon {
		width: 64px;
		height: 50px;
	}
	.csp-terr-citta__nome {
		font-size: 13px;
	}
}
