/* =========================================
   WEATHER SECTION (cards → /meteo/{province}/)
========================================= */

.ls-weather-section {
	margin: 48px 0 32px;
	padding-top: 8px;
}

.ls-lazio-weather,
.ls-single-weather {
	width: 100%;
}

.ls-weather-section-heading h3 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
}

.ls-weather-section-hint {
	margin: 0 0 20px;
	font-size: 14px;
	color: #6b7280;
}

.ls-weather-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
}

.ls-weather-card-wrap {
	min-width: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ls-weather-card-wrap:hover,
.ls-weather-card-wrap:focus-within {
	border-color: #cbd5e1;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ls-weather-card {
	display: block;
	width: 100%;
	text-align: left;
	font: inherit;
	color: inherit;
	text-decoration: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 20px;
	transition: background 0.15s ease;
}

.ls-weather-card:hover,
.ls-weather-card:focus-visible {
	background: #fafafa;
	outline: none;
	color: inherit;
}

.ls-weather-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-bottom: 12px;
}

.ls-weather-location {
	font-size: 16px;
	font-weight: 700;
}

.ls-weather-icon {
	font-size: 30px;
	line-height: 1;
}

.ls-weather-summary {
	margin-bottom: 12px;
}

.ls-weather-main {
	margin-bottom: 10px;
}

.ls-weather-temperature {
	font-size: 44px;
	line-height: 1;
	font-weight: 700;
	margin-bottom: 7px;
}

.ls-weather-condition {
	font-size: 14px;
	color: #6b7280;
}

.ls-weather-range {
	display: flex;
	gap: 15px;
	font-size: 13px;
	margin-bottom: 0;
}

.ls-weather-range strong {
	margin-left: 4px;
}

.ls-weather-details {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	border-top: 1px solid #ececec;
	padding: 15px 0 4px;
	margin-bottom: 8px;
}

.ls-weather-details div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ls-weather-details span {
	color: #777;
	font-size: 12px;
}

.ls-weather-details strong {
	font-size: 14px;
}

.ls-weather-card-compact {
	padding: 16px;
}

.ls-weather-card-compact .ls-weather-temperature {
	font-size: 34px;
}

.ls-weather-card-wrap--single .ls-weather-card-single {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas:
		"header header cta"
		"summary summary cta";
	align-items: center;
	gap: 8px 20px;
	padding: 18px 20px;
}

.ls-weather-card-wrap--single .ls-weather-card-header {
	grid-area: header;
	margin-bottom: 0;
}

.ls-weather-card-wrap--single .ls-weather-summary {
	grid-area: summary;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 12px 24px;
	margin-bottom: 0;
}

.ls-weather-card-wrap--single .ls-weather-main {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 0;
}

.ls-weather-card-wrap--single .ls-weather-temperature {
	font-size: 36px;
	margin-bottom: 0;
}

.ls-weather-card-wrap--single .ls-weather-card-cta {
	grid-area: cta;
	justify-self: end;
	align-self: center;
}

.ls-weather-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #2563eb;
	user-select: none;
}

.ls-weather-card-cta__chevron {
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	margin-top: 0;
}

.ls-weather-source {
	margin-top: 12px;
	font-size: 11px;
	color: #888;
}

.ls-weather-error {
	padding: 15px;
	background: #f7f7f7;
	border-radius: 6px;
	font-size: 13px;
}

.ls-weather-forecast {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #e5e7eb;
}

.ls-weather-forecast__day {
	display: grid;
	grid-template-columns: 6.5rem 1.75rem minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
	font-size: 13px;
}

.ls-weather-forecast__label {
	font-weight: 600;
}

.ls-weather-forecast__icon {
	font-size: 1.15rem;
	line-height: 1;
	text-align: center;
}

.ls-weather-forecast__condition {
	color: #6b7280;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ls-weather-forecast__temps {
	display: flex;
	gap: 6px;
	white-space: nowrap;
}

.ls-weather-forecast__temps span {
	color: #9ca3af;
}

.ls-weather-forecast__rain {
	color: #6b7280;
	white-space: nowrap;
	font-size: 12px;
}

/* =========================================
   FORECAST PAGES (/meteo/)
========================================= */

.ls-meteo {
	--ls-blue: #2563eb;
	--ls-navy: #12305e;
	--ls-ink: #111111;
	--ls-muted: #6b6b6b;
	--ls-line: #e8e8e8;
	--ls-serif: "Merriweather", Georgia, serif;
	--ls-sans: "Work Sans", system-ui, sans-serif;
	max-width: 1120px;
	margin: 0 auto;
	padding: 28px 20px 56px;
	box-sizing: border-box;
	color: var(--ls-ink);
	font-family: var(--ls-sans);
}

.ls-meteo *,
.ls-meteo *::before,
.ls-meteo *::after {
	box-sizing: border-box;
}

.ls-meteo-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 24px;
	color: var(--ls-muted);
	font-size: 13px;
}

.ls-meteo-nav a {
	color: var(--ls-blue);
	text-decoration: none;
	font-weight: 600;
}

.ls-meteo-nav a:hover,
.ls-meteo-nav a:focus-visible {
	text-decoration: underline;
}

.ls-meteo-header {
	margin: 0 0 28px;
}

.ls-meteo-kicker {
	margin: 0 0 6px;
	color: var(--ls-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ls-meteo-title {
	margin: 0 0 8px;
	font-family: var(--ls-sans);
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ls-navy);
}

.ls-meteo-lead {
	margin: 0;
	color: var(--ls-muted);
	font-size: 1rem;
}

.ls-meteo-now {
	padding: 22px;
	margin: 0 0 36px;
	border: 1px solid var(--ls-line);
	border-radius: 12px;
	background: #fff;
}

.ls-meteo-now__main {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 8px;
}

.ls-meteo-now__icon {
	font-size: 3.2rem;
	line-height: 1;
}

.ls-meteo-now__temp {
	font-size: 3.2rem;
	font-weight: 700;
	line-height: 1;
}

.ls-meteo-now__condition {
	margin-top: 6px;
	color: var(--ls-muted);
}

.ls-meteo-now__range {
	display: flex;
	gap: 16px;
	margin-top: 8px;
	font-size: 14px;
}

.ls-meteo-now__details {
	margin-top: 12px;
	margin-bottom: 0;
}

.ls-meteo-section-title {
	margin: 0 0 16px;
	font-family: var(--ls-sans);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ls-navy);
}

.ls-meteo-featured {
	margin: 0 0 36px;
}

.ls-meteo-featured__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ls-meteo-day {
	padding: 22px;
	border: 1px solid var(--ls-line);
	border-radius: 12px;
	background: #f7f9fc;
}

.ls-meteo-day__label {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 700;
}

.ls-meteo-day__date {
	margin: 0 0 12px;
	color: var(--ls-muted);
	font-size: 13px;
}

.ls-meteo-day__icon {
	font-size: 2.4rem;
	line-height: 1;
	margin-bottom: 10px;
}

.ls-meteo-day__condition {
	margin: 0 0 10px;
	color: #58657a;
}

.ls-meteo-day__temps {
	margin: 0 0 6px;
	font-size: 1.2rem;
}

.ls-meteo-day__temps span {
	margin-left: 8px;
	color: #9ca3af;
}

.ls-meteo-day__rain {
	margin: 0;
	color: var(--ls-muted);
	font-size: 13px;
}

.ls-meteo-week {
	margin: 0 0 36px;
}

.ls-meteo-week__list {
	border-top: 1px solid var(--ls-line);
}

.ls-meteo-switcher {
	margin: 0 0 16px;
}

.ls-meteo-switcher__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ls-meteo-switcher__list a,
.ls-meteo-switcher__current {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--ls-line);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--ls-ink);
	background: #fff;
}

.ls-meteo-switcher__list a:hover,
.ls-meteo-switcher__list a:focus-visible {
	border-color: var(--ls-blue);
	color: var(--ls-blue);
}

.ls-meteo-switcher__current {
	background: var(--ls-blue);
	border-color: var(--ls-blue);
	color: #fff;
}

@media (max-width: 1024px) {
	.ls-weather-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.ls-weather-section {
		margin: 36px 0 24px;
	}

	.ls-weather-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ls-weather-details {
		grid-template-columns: repeat(2, 1fr);
	}

	.ls-weather-card-wrap--single .ls-weather-card-single {
		grid-template-columns: 1fr;
		grid-template-areas:
			"header"
			"summary"
			"cta";
	}

	.ls-weather-card-wrap--single .ls-weather-card-cta {
		justify-self: start;
	}

	.ls-weather-forecast__day {
		grid-template-columns: 5rem 1.5rem minmax(0, 1fr) auto;
		grid-template-areas:
			"label icon condition temps"
			"label icon rain rain";
	}

	.ls-weather-forecast__label { grid-area: label; }
	.ls-weather-forecast__icon { grid-area: icon; }
	.ls-weather-forecast__condition { grid-area: condition; }
	.ls-weather-forecast__temps { grid-area: temps; }
	.ls-weather-forecast__rain {
		grid-area: rain;
		font-size: 11px;
	}

	.ls-meteo-featured__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.ls-weather-grid {
		grid-template-columns: 1fr;
	}

	.ls-weather-forecast__condition {
		white-space: normal;
	}
}

/* Municipality index, stories, and article bar. */

.ls-meteo-comuni,
.ls-meteo-stories {
	margin-top: 40px;
}

.ls-meteo-comuni [hidden] {
	display: none !important;
}

.ls-meteo-comuni__search {
	display: block;
	margin: 0 0 18px;
}

.ls-meteo-comuni__search input {
	width: 100%;
	max-width: 420px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--ls-line, #e6e6e6);
	border-radius: 8px;
	background: #fff;
	color: var(--ls-ink, #111111);
	font-family: var(--ls-sans, "Work Sans", system-ui, sans-serif);
	font-size: 15px;
}

.ls-meteo-comuni__search input:focus {
	outline: 2px solid var(--ls-blue, #2563eb);
	outline-offset: 2px;
}

.ls-meteo-comuni__empty {
	margin: 0 0 12px;
	color: var(--ls-muted, #6b6b6b);
	font-size: 14px;
}

.ls-meteo-comuni__group {
	margin: 0 0 18px;
}

.ls-meteo-comuni__letter {
	margin: 0 0 8px;
	color: var(--ls-navy, #12305e);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.ls-meteo-comuni__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ls-meteo-comuni__list a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--ls-ink, #111111);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.ls-meteo-comuni__list a:hover,
.ls-meteo-comuni__list a:focus-visible {
	color: var(--ls-blue, #2563eb);
}

.ls-meteo-stories__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ls-meteo-stories__link {
	display: block;
	padding: 14px 16px;
	border: 1px solid #dfe6f2;
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
}

.ls-meteo-stories__link:hover,
.ls-meteo-stories__link:focus-visible {
	border-color: var(--ls-blue, #2563eb);
}

.ls-meteo-stories__label {
	display: block;
	margin: 0 0 4px;
	color: var(--ls-blue, #2563eb);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ls-meteo-stories__title {
	display: block;
	color: var(--ls-navy, #12305e);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
}

.ls-meteo-stories__date {
	display: block;
	margin-top: 6px;
	color: var(--ls-muted, #6b6b6b);
	font-size: 13px;
}

.ls-weather-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	margin: 0 0 16px;
	padding: 7px 12px;
	border: 1px solid #dfe6f2;
	border-radius: 999px;
	background: #f7f9fc;
	color: #12305e;
	font-family: "Work Sans", system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.ls-single .ls-weather-bar {
	color: #12305e;
}

.ls-weather-bar:hover,
.ls-weather-bar:focus-visible {
	border-color: #2563eb;
	color: #1d4ed8;
}

.ls-weather-bar:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.ls-weather-bar__icon {
	font-size: 15px;
	line-height: 1;
}

@media (max-width: 640px) {
	.ls-meteo-comuni__list {
		grid-template-columns: 1fr;
	}

	.ls-meteo-comuni__search input {
		max-width: none;
	}
}

.ls-meteo-find {
	position: relative;
	margin: 0 0 28px;
	padding: 18px 18px 16px;
	border: 1px solid var(--ls-line, #e8e8e8);
	border-radius: 12px;
	background: #f7f9fc;
}

.ls-meteo-find__label {
	display: block;
	margin: 0 0 10px;
	color: var(--ls-navy, #12305e);
	font-size: 1.05rem;
	font-weight: 700;
}

.ls-meteo-find__row {
	display: flex;
	gap: 8px;
}

.ls-meteo-find__row input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--ls-line, #e6e6e6);
	border-radius: 8px;
	background: #fff;
	color: var(--ls-ink, #111);
	font-family: inherit;
	font-size: 16px;
}

.ls-meteo-find__row input:focus {
	outline: 2px solid var(--ls-blue, #2563eb);
	outline-offset: 2px;
}

.ls-meteo-find__row button {
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	border-radius: 8px;
	background: var(--ls-blue, #2563eb);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.ls-meteo-find__row button:hover,
.ls-meteo-find__row button:focus-visible {
	background: #1d4ed8;
}

.ls-meteo-find__results {
	position: absolute;
	z-index: 1000;
	left: 18px;
	right: 18px;
	top: calc(100% - 10px);
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid #dfe6f2;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(18, 48, 94, 0.12);
}

.ls-meteo-find__results a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	color: #12305e;
	font-weight: 600;
	text-decoration: none;
}

.ls-meteo-find__results a:hover,
.ls-meteo-find__results a:focus-visible {
	background: #f7f9fc;
	color: #1d4ed8;
}

.ls-meteo-map {
	margin: 0 0 36px;
}

.ls-meteo-map__lead {
	margin: 0 0 14px;
	color: var(--ls-muted, #6b6b6b);
}

.ls-meteo-map__days {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.ls-meteo-map__days button {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--ls-line, #e8e8e8);
	border-radius: 999px;
	background: #fff;
	color: var(--ls-ink, #111);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.ls-meteo-map__days button[aria-pressed="true"] {
	border-color: var(--ls-blue, #2563eb);
	background: var(--ls-blue, #2563eb);
	color: #fff;
}

.ls-meteo-map__canvas {
	height: 520px;
	border: 1px solid var(--ls-line, #e8e8e8);
	border-radius: 12px;
	overflow: hidden;
	background: #eef3f8;
}

.ls-meteo-map__canvas img,
.leaflet-container img {
	max-width: none !important;
	max-height: none !important;
}

.ls-meteo-map__status,
.ls-meteo-map__credit {
	margin: 10px 0 0;
	color: var(--ls-muted, #6b6b6b);
	font-size: 13px;
}

.ls-meteo-map__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	color: var(--ls-muted, #6b6b6b);
	font-size: 12px;
}

.ls-meteo-map__legend li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ls-meteo-map__swatch {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 1px solid #fff;
	box-shadow: 0 0 0 1px #dfe6f2;
}

.ls-meteo-map__swatch--cold { background: #3b82f6; }
.ls-meteo-map__swatch--cool { background: #38bdf8; }
.ls-meteo-map__swatch--mild { background: #84cc16; }
.ls-meteo-map__swatch--warm { background: #eab308; }
.ls-meteo-map__swatch--hot { background: #f97316; }
.ls-meteo-map__swatch--very-hot { background: #ef4444; }

.ls-meteo-map__popup strong {
	display: block;
	margin-bottom: 4px;
	color: #12305e;
}

.ls-meteo-map__popup p {
	margin: 0 0 4px;
}

.ls-meteo-map__popup a {
	color: #2563eb;
	font-weight: 700;
}

.leaflet-marker-icon.ls-meteo-map__symbol {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 92px !important;
	height: auto !important;
	margin-top: -8px;
	padding: 4px 6px 6px;
	border: 1px solid #dfe6f2;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 4px 14px rgba(18, 48, 94, 0.16);
	text-align: center;
	line-height: 1.1;
}

.ls-meteo-map__symbol-icon {
	font-size: 26px;
	line-height: 1;
}

.ls-meteo-map__symbol-temp {
	color: #12305e;
	font-family: "Work Sans", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
}

.ls-meteo-map__symbol-name {
	color: #5a6b8a;
	font-family: "Work Sans", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
}

.ls-meteo-hourly {
	margin: 0 0 36px;
}

.ls-meteo-hourly__day {
	display: grid;
	grid-template-columns: 7.5rem minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	margin: 0 0 14px;
}

.ls-meteo-hourly__label {
	margin: 0;
	color: var(--ls-navy, #12305e);
	font-size: 15px;
	font-weight: 700;
}

.ls-meteo-hourly__scroller {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ls-meteo-hourly__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0 2px 8px;
	list-style: none;
}

.ls-meteo-hourly__hour {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 0 0 64px;
	gap: 2px;
	min-height: 92px;
	padding: 8px 4px;
	border: 1px solid var(--ls-line, #e8e8e8);
	border-radius: 10px;
	background: #fff;
}

.ls-meteo-hourly__hour.is-wet {
	border-color: #93c5fd;
	background: #f0f7ff;
}

.ls-meteo-hourly__time,
.ls-meteo-hourly__rain {
	color: var(--ls-muted, #6b6b6b);
	font-size: 12px;
	font-weight: 600;
}

.ls-meteo-hourly__icon {
	font-size: 20px;
	line-height: 1;
}

.ls-meteo-hourly__temp {
	color: var(--ls-ink, #111);
	font-size: 15px;
}

.ls-meteo-hourly__hour.is-wet .ls-meteo-hourly__rain {
	color: #1d4ed8;
}

@media (max-width: 640px) {
	.ls-meteo-hourly__day {
		grid-template-columns: 1fr;
		gap: 8px;
	}
}

@media (max-width: 640px) {
	.ls-meteo-find__row {
		flex-direction: column;
	}

	.ls-meteo-find__row button {
		width: 100%;
	}

	.ls-meteo-map__canvas {
		height: 420px;
	}

	.ls-meteo-map__days button {
		flex: 1;
	}
}
