/* [federcori-regioni] — hardcoded Associazioni Regionali map + sidebar list.
** Variables are scoped to .fc-map-block rather than :root, so they don't leak into the
** rest of the site. Google Fonts (Sora/Inter) are already loaded sitewide by
** fed_enqueue_common_assets(); only Font Awesome is enqueued specifically for this shortcode.
**/
.fc-map-block {
	--brand: #0258CF;
	--brand-dark: #00357D;
	--land: #dfe6ef;
	--land-dim: #eceff3;
	--ink: #111827;
	--muted: #6b7280;
	--line: rgba(0, 0, 0, .09);

	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 36px;
	align-items: start;
	margin: 0 auto;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	color: var(--ink);
}

.fc-map-wrap {
	position: relative;
}

#fcMap {
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
}

#fcMap .rg path {
	fill: var(--land);
	stroke: #fff;
	stroke-width: 1.4;
	cursor: pointer;
	transition: fill .16s ease;
}

#fcMap .rg:hover path,
#fcMap .rg:focus-visible path,
#fcMap .rg.is-on path {
	fill: var(--brand);
}

#fcMap .rg.is-sel path {
	fill: var(--brand-dark);
}

#fcMap .rg:focus-visible path {
	outline: none;
	stroke: var(--brand-dark);
	stroke-width: 2.4;
}

#fcMap.is-filtering .rg path {
	fill: var(--land-dim);
}

#fcMap.is-filtering .rg.is-match path {
	fill: var(--brand);
}

.fc-tip {
	position: absolute;
	pointer-events: none;
	z-index: 5;
	background: #0f172a;
	color: #fff;
	font-size: .8rem;
	font-weight: 600;
	padding: 6px 11px;
	border-radius: 7px;
	white-space: nowrap;
	transform: translate(-50%, -140%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.fc-tip::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	margin-left: -5px;
	border: 5px solid transparent;
	border-top-color: #0f172a;
}

.fc-side {
	position: sticky;
	top: 24px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
}

.fc-side header {
	padding: 22px 22px 16px;
	border-bottom: 1px solid rgba(0, 0, 0, .07);
}

.fc-side h2 {
	font-family: "Sora", sans-serif;
	font-size: 1.15rem;
	margin: 0 0 4px;
}

.fc-side header p {
	margin: 0 0 14px;
	font-size: .85rem;
	color: var(--muted);
}

.fc-search {
	position: relative;
}

.fc-search i {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #9aa3af;
	font-size: .85rem;
}

.fc-search input {
	width: 100%;
	padding: 10px 12px 10px 34px;
	font: inherit;
	font-size: .9rem;
	border: 1px solid rgba(0, 0, 0, .14);
	border-radius: 9px;
	background: #f8f9fb;
	color: inherit;
}

.fc-search input:focus {
	outline: none;
	border-color: var(--brand);
	background: #fff;
}

.fc-list {
	max-height: 560px;
	overflow-y: auto;
	padding: 10px 12px 16px;
}

.fc-list h3 {
	font-size: .7rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #9aa3af;
	margin: 16px 10px 6px;
	font-weight: 700;
}

.fc-list h3:first-child {
	margin-top: 6px;
}

.fc-list h3[hidden] {
	display: none;
}

.rw {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 9px;
	text-decoration: none;
	color: var(--ink);
	font-size: .92rem;
	font-weight: 500;
	transition: background .14s, color .14s;
}

.rw b {
	font-weight: 500;
}

.rw small {
	display: block;
	font-size: .75rem;
	color: var(--muted);
	font-weight: 400;
	margin-top: 1px;
}

.rw i {
	font-size: .72rem;
	opacity: 0;
	transform: translateX(-4px);
	transition: .14s;
	flex: none;
}

.rw:hover,
.rw:focus-visible,
.rw.is-on {
	background: var(--brand);
	color: #fff;
	outline: none;
}

.rw:hover small,
.rw:focus-visible small,
.rw.is-on small,
.rw.is-sel small {
	color: rgba(255, 255, 255, .75);
}

.rw:hover i,
.rw:focus-visible i,
.rw.is-on i {
	opacity: 1;
	transform: none;
}

.rw.is-sel {
	background: var(--brand-dark);
	color: #fff;
}

.rw[hidden] {
	display: none;
}

.fc-empty {
	padding: 18px 12px;
	color: #9aa3af;
	font-size: .88rem;
	margin: 0;
}

@media (max-width: 900px) {
	.fc-map-block {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.fc-side {
		position: static;
	}
	#fcMap {
		max-width: 420px;
		margin: 0 auto;
	}
	.fc-list {
		max-height: none;
	}
}

@media (hover: none) {
	.fc-tip {
		display: none;
	}
}
