.box-testa { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.box-testa h1 { margin: 0; }
.data-agg { margin: 0; }
.mappa { position: relative; width: 100%; margin: 0 auto; aspect-ratio: 600 / 779; }
.mappa-grande { max-width: 620px; }
.mappa-piccola { max-width: 360px; }
.mappa-it { position: absolute; inset: 0; width: 100%; height: 100%; }
.mappa-it use { fill: var(--mappa); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.mappa-piccola .mappa-it use { stroke-width: 2; }
.mappa .pt {
	position: absolute; transform: translate(-50%, -50%); display: block; line-height: 0;
	border-radius: 50%; text-decoration: none;
}
.mappa .pt:hover, .mappa .pt:focus-visible { background: rgba(255,255,255,.7); }
.mappa .pt::before { content: ""; position: absolute; inset: -3px; }
.mappa .pt .ic { display: block; }
.mappa-grande .ic { width: 20px; height: 20px; }
.mappa-piccola .ic { width: 15px; height: 15px; }
@media (min-width: 560px) {
	.mappa-grande .ic { width: 26px; height: 26px; }
	.mappa-piccola .ic { width: 18px; height: 18px; }
}
.breve { margin: 14px 0 4px; }
.breve-piccolo { margin: 8px 0 0; font-size: 15px; }
.tab-titolo { margin-top: 18px; }
.tab-due { display: flex; flex-wrap: wrap; gap: 0 24px; }
.tab-due .tab-meteo { flex: 1 1 260px; }
.tab-meteo th[scope="row"] { text-align: left; font-weight: 600; }
.tab-meteo th[scope="row"] a { text-decoration: none; }
.tab-meteo td { width: 1%; white-space: nowrap; }
.tab-meteo .ic { width: 22px; height: 22px; display: block; }
.giorni { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.allerte { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.allerte li { display: flex; gap: 10px; align-items: baseline; }
.liv { flex: 0 0 auto; min-width: 88px; text-align: center; padding: 2px 8px; border-radius: 6px; font-size: 14px; font-weight: 700; }
.liv-gialla { background: #FFD84D; color: var(--testo); }
.liv-arancione { background: var(--arancio); color: var(--testo); }
.liv-rossa { background: #C62828; color: #fff; }
.allerte .zone { font-size: 14px; color: var(--testo-3); }
.allerta-nessuna { margin: 0 0 8px; }
.regioni { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.regioni a {
	display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--bordo-chiaro);
	border-radius: 10px; text-decoration: none; font-weight: 600;
}
.regioni a:hover { border-color: var(--blu); }
.viaggio { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; max-width: 520px; margin-bottom: 12px; }
.viaggio label { font-weight: 600; }
.viaggio input { height: 44px; border: 1px solid var(--bordo); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; min-width: 0; }
.viaggio .btn-cerca { grid-column: 2; justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { color: var(--blu-scuro); }
.cercate { list-style: none; margin: 0; padding: 0; }
.cercate li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1px solid var(--bordo-chiaro); }
.cercate li:last-child { border-bottom: 0; }
.cercate a { font-weight: 600; text-decoration: none; }
.cerc-dato { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cerc-dato .ic { width: 24px; height: 24px; }
.ic { max-width: none; flex: 0 0 auto; }
.tab-meteo thead th:first-child { text-align: left; }
.mappa-reg { max-width: 640px; }
.mappa .pt-capo .ic { filter: drop-shadow(0 0 1px rgba(19,68,104,.5)); }
.scorri { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab-ore { min-width: 520px; }
.tab-ore thead th { text-align: center; font-variant-numeric: tabular-nums; }
.tab-ore thead th:first-child { text-align: left; }
.tab-ore td { text-align: center; width: auto; }
.ora-cella { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; font-variant-numeric: tabular-nums; }
.giorni-reg { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.giorno h3 { margin-bottom: 8px; }
.tend { margin: 8px 0 0; font-weight: 700; font-size: 15px; }
.tend-su { color: #B45309; }
.tend-giu { color: var(--blu-scuro); }
.tend-stabili { color: var(--testo-3); }
.altre-regioni { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.altre-regioni a { display: flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 600; }
.mappa-reg { container-type: inline-size; }
.pt-nome {
	position: absolute; white-space: nowrap; pointer-events: none;
	font: 700 clamp(10.5px, 2.1cqw, 13px)/1.2 var(--font-testo); color: var(--testo);
	text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff;
}
.pt-nome-b { top: 100%; left: 50%; transform: translateX(-50%); }
.pt-nome-t { bottom: 100%; left: 50%; transform: translateX(-50%); }
.pt-nome-r { left: 100%; top: 50%; transform: translateY(-50%); margin-left: 2px; }
.pt-nome-l { right: 100%; top: 50%; transform: translateY(-50%); margin-right: 2px; }
.mappa .pt-capo { z-index: 2; }
.pt-nome-br { top: 80%; left: 80%; }
.pt-nome-bl { top: 80%; right: 80%; }
.pt-nome-tr { bottom: 80%; left: 80%; }
.pt-nome-tl { bottom: 80%; right: 80%; }
.mappa-stretta .mappa-testo .breve { margin-top: 0; }
@media (min-width: 700px) {
	.mappa-stretta { display: grid; grid-template-columns: auto minmax(200px, 1fr); gap: 24px; align-items: start; margin-top: 12px; }
	.mappa-stretta .mappa-grande { margin: 0; width: calc(min(640px, 74vh) * var(--r)); }
}
@media (min-width: 700px) {
	.mappa-stretta { grid-template-columns: minmax(0, calc(min(640px, 74vh) * var(--r))) minmax(220px, 1fr); }
	.mappa-stretta .mappa-grande { width: 100%; }
}
.search { position: relative; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 4px 0;
	background: var(--bianco); border: 1px solid var(--bordo); border-radius: 10px; box-shadow: 0 8px 24px rgba(19, 68, 104, .18); }
.sugg[hidden] { display: none; }
.sugg a { display: flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 10px 14px; text-decoration: none; color: var(--testo); }
.sugg a span { font-size: 14px; color: var(--testo-3); }
.sugg li[aria-selected="true"] a, .sugg a:hover { background: var(--sfondo); }
.risultati { list-style: none; margin: 0; padding: 0; }
.risultati li { padding: 10px 0; border-bottom: 1px solid var(--bordo-chiaro); }
.risultati a { text-decoration: none; }
.ris-dove { display: block; font-size: 14px; color: var(--testo-3); }
.box-404 { text-align: center; padding-top: 28px; padding-bottom: 28px; }
.ill-404 { color: var(--blu); }
.breve-testa { margin: 10px 0 0; font-size: 17px; line-height: 1.45; }
.tab-sub { display: block; font-weight: 400; font-size: 12px; }
.vg-strip { margin: 0; }
.vg-strip a {
	display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--raggio); background: var(--blu-scuro); color: var(--bianco);
	text-decoration: none; font-size: 16px;
}
.vg-strip a span { flex: 1 1 auto; }
.vg-strip a:hover { background: var(--blu-notte); color: var(--bianco); }
.localita-testa { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: start; }
.localita-testa h1 { grid-column: 1; }
.localita-testa .btn-pref { grid-column: 2; grid-row: 1; margin-top: 8px; }
.localita-testa .localita-info { grid-column: 1 / -1; }
.btn-pref {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--bordo); border-radius: 22px;
	background: var(--bianco); color: var(--blu-scuro); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.btn-pref[hidden] { display: none; }
.btn-pref[aria-pressed="true"] svg path { fill: var(--arancio); stroke: var(--arancio); }
.btn-pref-testo { display: none; }
@media (min-width: 640px) { .btn-pref-testo { display: inline; } }
