/*! CF - ARES Asset · mappa v1.0.2 · Cloudfactory S.r.l. */
.ares-map {
	--am-blue: var(--ares-blue, #05466c);
	--am-navy: var(--ares-navy, #203543);
	--am-gold: var(--ares-gold, #c0a86c);
	--am-greige: var(--ares-greige, #b8aeaa);
	--am-ivory: var(--ares-ivory, #f5f3f1);
	--am-mist: #c6d6df;
	--am-line: rgba(5, 70, 108, .14);
	font-family: inherit;
}

.ares-map__filters { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.ares-map__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ares-chip {
	font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
	padding: .5rem 1rem; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--am-line); background: #fff; color: var(--am-blue);
	transition: background .2s, color .2s, border-color .2s;
}
.ares-chip:hover { border-color: var(--am-blue); }
.ares-chip.is-active { background: var(--am-blue); border-color: var(--am-blue); color: #fff; }
.ares-map__select { display: inline-flex; gap: .75rem; align-items: center; font-size: .8125rem; font-weight: 600; color: var(--am-navy); }
.ares-map__select select { font: inherit; font-weight: 500; padding: .5rem 2rem .5rem .75rem; border: 1px solid var(--am-line); border-radius: 4px; background: #fff; color: var(--am-blue); }

.ares-map__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (min-width: 960px) {
	.ares-map__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
	.ares-map__list { max-height: 72vh; overflow-y: auto; padding-right: .5rem; scrollbar-width: thin; }
}

.ares-map__figure { margin: 0; }
@media (min-width: 960px) { .ares-map__figure { position: sticky; top: 6rem; } } /* sticky solo con mappa ed elenco affiancati */
.ares-italia { width: 100%; height: auto; display: block; max-height: 78vh; }
.ares-reg { fill: #efebe8; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; transition: fill .2s; }
.ares-reg.is-covered { fill: var(--am-mist); }
.ares-reg.has-assets { fill: var(--am-blue); cursor: pointer; outline: none; }
.ares-reg.has-assets:hover, .ares-reg.has-assets:focus-visible { fill: #0a5a8a; }
.ares-reg.is-selected { fill: var(--am-navy); }

.ares-pin { cursor: pointer; }
.ares-pin__halo { fill: var(--am-gold); opacity: .28; transition: opacity .2s, r .2s; }
.ares-pin__dot { fill: var(--am-gold); stroke: #fff; stroke-width: 2.5; }
.ares-pin:hover .ares-pin__halo, .ares-pin.is-hover .ares-pin__halo { opacity: .55; r: 18; }
.ares-pin.is-dim { opacity: .15; pointer-events: none; }

.ares-map__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; font-size: .75rem; color: var(--am-navy); }
.ares-map__legend span { display: inline-flex; align-items: center; gap: .5rem; }
.ares-legend { width: .875rem; height: .875rem; border-radius: 2px; display: inline-block; }
.ares-legend--assets { background: var(--am-blue); }
.ares-legend--covered { background: var(--am-mist); }
.ares-legend--uncovered { background: #efebe8; border: 1px solid #ddd6d1; }

.ares-map__panel-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--am-line); padding-bottom: .75rem; margin-bottom: 1rem; }
.ares-map__count { margin: 0; font-size: .875rem; color: var(--am-navy); }
.ares-map__count strong { font-size: 1.5rem; color: var(--am-blue); }
.ares-map__reset { font: inherit; font-size: .8125rem; font-weight: 600; background: none; border: 0; color: var(--am-blue); text-decoration: underline; cursor: pointer; }

.ares-map__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.ares-card { background: #fff; border: 1px solid var(--am-line); border-top: 3px solid var(--am-gold); padding: 1.25rem 1.25rem 1rem; transition: box-shadow .2s, transform .2s; }
.ares-card.is-hover { box-shadow: 0 12px 30px -18px rgba(5, 70, 108, .55); transform: translateY(-2px); }
.ares-card[hidden] { display: none; }
.ares-card__meta { margin: 0 0 .5rem; font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--am-gold); }
.ares-card__title { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.3; color: var(--am-blue); }
.ares-card__place { margin: 0 0 .75rem; font-size: .8125rem; color: #5b6870; }
.ares-card__facts { margin: 0; display: grid; gap: .25rem; font-size: .8125rem; }
.ares-card__facts div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px dashed var(--am-line); padding-top: .25rem; }
.ares-card__facts dt { color: #5b6870; }
.ares-card__facts dd { margin: 0; font-weight: 600; color: var(--am-navy); text-align: right; }

/* Mobile/tablet: le schede scorrono in orizzontale sotto la mappa, invece di un elenco lunghissimo. */
@media (max-width: 959px) {
	.ares-italia { max-height: 60vh; margin: 0 auto; }
	.ares-map__list { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(85%, 20rem); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: .75rem; scrollbar-width: thin; }
	.ares-map__list > * { scroll-snap-align: start; }
}

