/* Madonie Sci App — stile della webapp */

:root {
	--ms-notte: #0d1b2a;
	--ms-notte-2: #1b2e44;
	--ms-neve: #f2f5f8;
	--ms-bianco: #fff;
	--ms-pino: #2ea03c;
	--ms-rosso: #e42e24;
	--ms-ghiaccio: #3fa9df;
	--ms-ardesia: #5b6b7c;
	--ms-bordo: #dfe6ed;
	--ms-radius: 18px;
	--ms-shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .08);
	--ms-tabbar-h: 64px;
	--ms-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

html { -webkit-tap-highlight-color: transparent; scroll-padding-top: 76px; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.ms-main { padding-bottom: 2.5rem; }
.ms-wrap { box-sizing: border-box; width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.ms-muted { color: var(--ms-ardesia); }
.ms-btn { display: inline-block; background: var(--ms-pino); color: #fff !important; text-decoration: none; font-family: var(--ms-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .6rem 1.4rem; border-radius: 999px; }

/* ------------------------------------------------ Barra superiore */
.ms-appbar { position: sticky; top: 0; z-index: 50; background: var(--ms-notte); color: #fff; padding-top: env(safe-area-inset-top); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.ms-appbar-in { max-width: 1180px; margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: 1rem; }
.ms-brand { display: flex; align-items: center; gap: .65rem; color: #fff !important; text-decoration: none; margin-right: auto; min-width: 0; }
.ms-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; flex: none; }
.ms-brand-txt { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.ms-brand-txt strong { font-family: var(--ms-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.ms-brand-txt small { font-size: .72rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-topnav { display: none; gap: .25rem; }
.ms-topnav a { color: rgba(255,255,255,.75) !important; text-decoration: none; font-family: var(--ms-display); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; padding: .45rem .8rem; border-radius: 999px; }
.ms-topnav a:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.ms-topnav a.is-active { color: #fff !important; background: rgba(255,255,255,.14); }
.ms-cta { display: none; background: var(--ms-pino); color: #fff !important; text-decoration: none; font-family: var(--ms-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .45rem 1rem; border-radius: 999px; }
.ms-menu-btn { appearance: none; border: 0; background: rgba(255,255,255,.08); color: #fff; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; flex: none; }
.ms-menu-btn svg, .ms-drawer-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ------------------------------------------------ Menu laterale */
.ms-drawer { position: fixed; inset: 0; z-index: 100; background: rgba(13,27,42,.5); }
.ms-drawer[hidden] { display: none; }
.ms-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--ms-bianco); padding: calc(1rem + env(safe-area-inset-top)) 1.25rem 1.5rem; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); animation: ms-slide .22s ease-out; }
@keyframes ms-slide { from { transform: translateX(100%); } to { transform: none; } }
.ms-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.ms-drawer-head strong { font-family: var(--ms-display); font-size: 1.5rem; text-transform: uppercase; }
.ms-drawer-close { appearance: none; border: 0; background: var(--ms-neve); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--ms-notte); }
.ms-drawer-nav { display: flex; flex-direction: column; }
.ms-drawer-nav a { padding: .75rem .25rem; border-bottom: 1px solid var(--ms-bordo); text-decoration: none; font-weight: 600; color: var(--ms-notte) !important; }
.ms-drawer-nav hr { border: 0; height: 1rem; margin: 0; }
.ms-drawer-social { display: flex; gap: 1rem; margin-top: 1.25rem; }
.ms-drawer-social a { font-weight: 600; color: var(--ms-pino) !important; }
body.ms-lock { overflow: hidden; }

/* ------------------------------------------------ Barra in basso (app) */
.ms-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--ms-bordo); padding-bottom: env(safe-area-inset-bottom); }
.ms-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--ms-tabbar-h); color: var(--ms-ardesia) !important; text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .02em; }
.ms-tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ms-tabbar a.is-active { color: var(--ms-pino) !important; }
.ms-tabbar a.is-active svg { stroke-width: 2.3; }
body { padding-bottom: calc(var(--ms-tabbar-h) + env(safe-area-inset-bottom)); }

/* ------------------------------------------------ Hero di "Oggi" */
.ms-oggi { padding-top: 0; }
.ms-hero { position: relative; color: #fff; background: linear-gradient(180deg, rgba(13,27,42,.25) 0%, rgba(13,27,42,.55) 55%, var(--ms-neve) 100%), var(--ms-hero) center 35% / cover no-repeat, var(--ms-notte); padding: 2.25rem 0 5.5rem; margin: 0 !important; }
.ms-hero-in { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.ms-hero h1 { color: #fff; font-size: clamp(2.6rem, 11vw, 5rem); margin: .1rem 0 0; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.ms-eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0; background: rgba(13,27,42,.55); padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ms-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: ms-pulse 2s infinite; }
@keyframes ms-pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.ms-hero-sub { margin: .2rem 0 0; font-weight: 500; opacity: .92; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* ------------------------------------------------ Pannelli */
.ms-stato-card, .ms-panel, .ms-news-box { background: var(--ms-bianco); border-radius: var(--ms-radius); box-shadow: var(--ms-shadow); padding: 1.1rem 1rem 1.2rem !important; }
.ms-stato-card { position: relative; margin-top: -4.25rem !important; z-index: 2; max-width: calc(1180px - 2rem) !important; width: calc(100% - 2rem) !important; }
.ms-oggi > * + * { margin-top: 1rem !important; }
.ms-news-box { max-width: calc(1180px - 2rem) !important; width: calc(100% - 2rem) !important; }
.ms-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin-bottom: .9rem; }
.ms-card-head h2 { font-size: 1.35rem !important; margin: 0; }
.ms-link-more { font-size: .85rem; font-weight: 600; color: var(--ms-pino) !important; text-decoration: none; white-space: nowrap; }
.ms-grid-2 { display: grid; gap: 1rem; padding: 0 !important; max-width: calc(1180px - 2rem); width: calc(100% - 2rem); }

/* Stato impianti (plugin) dentro la card */
.ms-stato-card .msi-wrap { margin: 0; max-width: none; }
.ms-stato-card .msi-grid { grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.ms-stato-card .msi-ico { width: 72%; max-width: 76px; }
.ms-stato-card .msi-card .msi-tit { font-family: var(--ms-display); font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; margin: .45rem 0 .1rem; }
.ms-stato-card .msi-val { font-size: .7rem; }
.ms-stato-card .msi-agg { font-size: .75rem; color: var(--ms-ardesia); margin-top: .9rem; }
.ms-stato-card .msi-nota { background: var(--ms-neve); border-radius: 12px; padding: .6rem .8rem; font-size: .92rem; }

/* ------------------------------------------------ Meteo */
.ms-meteo-now { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .25rem 1rem; min-height: 88px; }
.ms-meteo-icon { width: 64px; height: 64px; grid-row: span 2; color: var(--ms-ghiaccio); }
.ms-meteo-icon svg { width: 100%; height: 100%; }
.ms-meteo-temp { font-family: var(--ms-display); font-weight: 700; font-size: 3rem; line-height: 1; }
.ms-meteo-temp small { font-size: 1rem; font-weight: 600; color: var(--ms-ardesia); margin-left: .4rem; text-transform: uppercase; }
.ms-meteo-facts { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .88rem; color: var(--ms-ardesia); }
.ms-meteo-facts b { color: var(--ms-notte); font-weight: 600; }
.ms-meteo-days { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.ms-meteo-days li { background: var(--ms-neve); border-radius: 12px; padding: .5rem .2rem; text-align: center; font-size: .78rem; }
.ms-meteo-days .d { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; display: block; }
.ms-meteo-days svg { width: 28px; height: 28px; display: block; margin: .2rem auto; color: var(--ms-ghiaccio); }
.ms-meteo-days .t { display: block; font-weight: 600; }
.ms-meteo-days .s { display: block; color: var(--ms-ghiaccio); font-weight: 600; min-height: 1.2em; }
.ms-meteo-upd { font-size: .75rem; }
.ms-credit { font-size: .72rem; color: var(--ms-ardesia); margin: .8rem 0 0; }
.ms-credit a { color: inherit; }

.ms-stations { display: grid; gap: .5rem; margin-top: 1rem; }
.ms-stations a { display: flex; flex-direction: column; padding: .7rem .9rem; border: 1px solid var(--ms-bordo); border-radius: 14px; text-decoration: none; color: var(--ms-notte) !important; transition: border-color .15s, background .15s; }
.ms-stations a:hover { border-color: var(--ms-ghiaccio); background: #f7fbfe; }
.ms-stations span { font-weight: 600; }
.ms-stations small { color: var(--ms-ardesia); }

/* ------------------------------------------------ Webcam */
.ms-cam { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ms-notte-2) center / cover no-repeat; cursor: pointer; }
.ms-cam iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ms-cam-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(13,27,42,0) 40%, rgba(13,27,42,.6)); border: 0; width: 100%; cursor: pointer; color: #fff; }
.ms-cam-play span { width: 62px; height: 62px; border-radius: 50%; background: rgba(228,46,36,.92); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .15s; }
.ms-cam-play:hover span { transform: scale(1.06); }
.ms-cam-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.ms-cam-badge { position: absolute; top: .6rem; left: .6rem; background: var(--ms-rosso); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; }
.ms-cam-cap { margin: .6rem 0 0; font-size: .9rem; font-weight: 600; }
.ms-cam-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ms-cam-grid figure { margin: 0; background: var(--ms-bianco); border-radius: var(--ms-radius); box-shadow: var(--ms-shadow); padding: .6rem; }
.ms-cam-grid figcaption { padding: .6rem .3rem .2rem; font-weight: 600; font-size: .95rem; }
.ms-ext-cams { margin-top: 1.5rem; }
.ms-ext-cams h2 { font-size: 1.35rem; margin: 0; }

/* ------------------------------------------------ News e card */
.ms-cards { gap: 1rem !important; }
.ms-card { background: var(--ms-bianco); border-radius: var(--ms-radius); overflow: hidden; box-shadow: var(--ms-shadow); height: 100%; display: flex; flex-direction: column; margin: 0 !important; }
.ms-news-box .ms-card { box-shadow: none; border: 1px solid var(--ms-bordo); }
.ms-card .wp-block-post-featured-image { margin: 0; }
.ms-card .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.ms-card-body { padding: .9rem 1rem 1.1rem; }
.ms-card-body > * { margin: 0 !important; }
.ms-card-body > * + * { margin-top: .35rem !important; }
.ms-card .wp-block-post-title a { text-decoration: none; color: var(--ms-notte); }
.ms-card .wp-block-post-title a:hover { color: var(--ms-pino); }
.ms-card .wp-block-post-excerpt__excerpt { font-size: .92rem; color: var(--ms-ardesia); margin: 0; }

/* ------------------------------------------------ Collegamenti rapidi */
.ms-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.ms-tiles a { background: var(--ms-notte); color: #fff !important; text-decoration: none; border-radius: var(--ms-radius); padding: 1rem; display: flex; flex-direction: column; gap: .15rem; min-height: 88px; justify-content: flex-end; position: relative; overflow: hidden; }
.ms-tiles a::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: rgba(46,160,60,.35); }
.ms-tiles a:nth-child(2)::after { background: rgba(228,46,36,.35); }
.ms-tiles a:nth-child(3)::after { background: rgba(63,169,223,.35); }
.ms-tiles strong { font-family: var(--ms-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; position: relative; }
.ms-tiles span { font-size: .82rem; opacity: .75; position: relative; }

/* ------------------------------------------------ Pagine, articoli, archivi */
.ms-page-head { padding-top: 1.75rem; padding-bottom: .75rem; }
.ms-page-head h1, .ms-page-head .wp-block-post-title, .ms-page-head .wp-block-query-title { margin: 0; font-size: var(--wp--preset--font-size--xl); }
.ms-page-head p { margin: .4rem 0 0; }
.ms-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.ms-chips a { background: var(--ms-bianco); border: 1px solid var(--ms-bordo); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .88rem; text-decoration: none; color: var(--ms-notte) !important; }
.ms-chips a.is-active { background: var(--ms-notte); border-color: var(--ms-notte); color: #fff !important; }
.ms-article-head { padding-top: 1.75rem; }
.ms-article-head > * { margin: 0 !important; }
.ms-article-head > * + * { margin-top: .5rem !important; }
.ms-cat a { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ms-pino) !important; text-decoration: none; }
.ms-article-img img { border-radius: var(--ms-radius); }
.ms-article .wp-block-post-content img { border-radius: 12px; }
.ms-article-nav { margin-top: 2.5rem !important; padding-top: 1rem; border-top: 1px solid var(--ms-bordo); font-size: .92rem; }
.ms-article-nav a { color: var(--ms-pino); font-weight: 600; text-decoration: none; }
.wp-block-query-pagination { margin-top: 2rem; font-weight: 600; }
.ms-404 { text-align: center; padding-top: 3rem; }

/* Pagine Elementor dentro il tema */
.ms-page-body .elementor-section.elementor-section-boxed > .elementor-container { max-width: 100%; }

/* ------------------------------------------------ Footer */
.ms-footer { background: var(--ms-notte); color: rgba(255,255,255,.8); margin-top: 2rem; padding: 2rem 1rem 1.5rem; }
.ms-footer-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 1.5rem; }
.ms-footer-brand { display: flex; gap: .9rem; align-items: center; }
.ms-footer-brand img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 2px; }
.ms-footer-brand p { margin: 0; font-size: .92rem; }
.ms-footer-brand strong { color: #fff; }
.ms-footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem 1rem; }
.ms-footer a { color: rgba(255,255,255,.85) !important; text-decoration: none; font-size: .92rem; }
.ms-footer a:hover { color: #fff !important; }
.ms-footer-social { display: flex; gap: 1rem; }
.ms-footer-legal { max-width: 1180px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; color: rgba(255,255,255,.55); }
.ms-footer-legal a { font-size: .75rem; text-decoration: underline; }

/* ------------------------------------------------ Rifiniture */
.wp-site-blocks > * { margin-block-start: 0; }
.ms-footer-legal a { font-size: .75rem !important; }
.ms-card .wp-block-post-title { font-size: 1.2rem !important; line-height: 1.15; }
.ms-stato-card .msi-grid { align-items: start; }
.ms-stato-card .msi-card .msi-tit { overflow-wrap: anywhere; hyphens: auto; }

@media (max-width: 699px) {
	.ms-stato-card .msi-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
	.ms-stato-card .msi-card .msi-tit { font-size: .85rem; }
	.ms-tiles strong { font-size: 1.1rem; }
	/* News come carosello da scorrere */
	.ms-news-box .ms-cards { display: grid !important; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; margin: 0 -1rem !important; padding-left: 1rem; padding-right: 1rem; scrollbar-width: none; }
	.ms-news-box .ms-cards::-webkit-scrollbar { display: none; }
	.ms-news-box .ms-cards > li { scroll-snap-align: start; }
	.ms-news-box { overflow: hidden; }
}

/* ------------------------------------------------ Widget impianti e condizioni */
.msw-wrap { margin: 0; }
.msw-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; align-items: start; }
.msw-card { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.msw-ico { position: relative; width: 100%; max-width: 92px; aspect-ratio: 1; border-radius: 26px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent); transition: color .4s, background-color .4s; }
.msw-ico > svg { width: 66%; height: 66%; }

/* Mappa piste */
.ms-sec-tit { margin: 0 0 14px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(1.3rem, 3.5vw, 1.7rem); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.ms-mappa-sez { margin: 28px 0 32px; }
.msa-mappa { margin: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(13,27,42,.12); }
.msa-mappa-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.msa-mappa-svg { display: block; width: 100%; min-width: 680px; height: auto; }
.msa-legenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; padding: 20px 22px 24px; border-top: 1px solid #e3eaf0; color: #0d1b2a; }
.msa-legenda h3 { margin: 0 0 10px; font-family: "Barlow Condensed", sans-serif; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: #5b6b7c; }
.msa-legenda ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.msa-legenda li { display: flex; align-items: center; gap: 10px; font-size: .95rem; line-height: 1.25; }
.msa-l-pista, .msa-l-imp, .msa-l-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; font-weight: 700; font-size: .85rem; }
.msa-l-pista { border-radius: 50%; border: 3px solid var(--c); color: var(--c); background: #fff; }
.msa-l-imp { border-radius: 50%; background: var(--c); color: #fff; }
.msa-l-num { border-radius: 6px; background: #0d1b2a; color: #fff; }
.msa-l-p { background: #1e88e5; }
.msa-l-cr { background: #fff; color: #e42e24; border: 1px solid #e3eaf0; font-size: 1.2rem; }
.msa-l-stato { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: var(--c); color: #fff; }
.msa-mappa-fonte { margin: 0; padding: 0 22px 14px; font-size: .72rem; color: #7b8a99; }
/* Icone del widget: piastrella piena nel colore dello stato, simbolo bianco. */
.msw-ico { background: var(--c); color: #fff; --k: var(--c); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 35%, transparent); }
.msw-badge { background: #fff; color: var(--c); box-shadow: 0 0 0 3px var(--c); }

/* Plastico 3D piste */
.msa3d { margin: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(13,27,42,.12); }
.msa3d-stage { position: relative; height: min(72vh, 620px); min-height: 360px; background: radial-gradient(120% 90% at 50% 30%, #e9f1f8 0%, #c9dae9 60%, #aac2d8 100%); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.msa3d-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.msa3d.is-attivo canvas { cursor: grabbing; }
.msa3d-tags { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.msa3d.is-pronto .msa3d-tags { opacity: 1; }
.msa3d-tag { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .2s; }
.msa3d-tag > * { pointer-events: none; }
.msa3d-tag.is-dietro { opacity: .28; }
.msa3d-tag.is-lontano { opacity: 0; }
.msa3d-pista { width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; border: 3.5px solid var(--c); color: var(--c); font: 700 13px/19px Barlow, Arial, sans-serif; text-align: center; box-shadow: 0 2px 6px rgba(13,27,42,.3); }
.msa3d-imp { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(13,27,42,.35); display: grid; place-items: center; color: #fff; --k: var(--c); transition: background .4s; }
.msa3d-imp .msa3d-ico { width: 26px; height: 26px; display: block; }
.msa3d-imp .msa3d-ico svg { width: 100%; height: 100%; display: block; }
.msa3d-imp i { position: absolute; right: -7px; top: -7px; width: 20px; height: 20px; border-radius: 50%; background: #0d1b2a; border: 2px solid #fff; color: #fff; font: 700 11px/16px Barlow, Arial, sans-serif; font-style: normal; text-align: center; }
.msa3d-poi { width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 5px; background: #0d1b2a; color: #fff; font: 700 12px/20px Barlow, Arial, sans-serif; text-align: center; box-shadow: 0 2px 5px rgba(13,27,42,.35); }
.msa3d-cima { white-space: nowrap; margin: -14px 0 0 0; translate: -50% 0; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.92); color: #0d1b2a; font: 600 12px/1.2 Barlow, Arial, sans-serif; box-shadow: 0 2px 8px rgba(13,27,42,.2); }
.msa3d-cima b { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.msa3d-ctrl { position: absolute; right: 12px; top: 12px; display: grid; gap: 8px; }
.msa3d-ctrl button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.94); color: #0d1b2a; font: 600 20px/1 Barlow, Arial, sans-serif; box-shadow: 0 2px 8px rgba(13,27,42,.2); cursor: pointer; }
.msa3d-ctrl button:active { transform: scale(.94); }
.msa3d-hint { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; margin: 0; padding: 5px 12px; border-radius: 99px; background: rgba(13,27,42,.62); color: #fff; font-size: .75rem; white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.msa3d.is-attivo .msa3d-hint { opacity: 0; }
.msa3d-err { display: none; position: absolute; inset: 0; margin: 0; place-items: center; padding: 24px; text-align: center; color: #0d1b2a; }
.msa3d.msa3d-nogl .msa3d-err { display: grid; }
.msa3d.msa3d-nogl .msa3d-ctrl, .msa3d.msa3d-nogl .msa3d-hint, .msa3d.msa3d-nogl .msa3d-tags { display: none; }
.msa3d .msa-l-imp { background: var(--c); }
.msa3d .msa-l-stato { background: var(--c); }
.msa3d .msa-l-stato:empty { display: none; }
@media (max-width: 600px) { .msa3d-stage { height: 68vh; } .msa3d-hint { font-size: .68rem; } }
.msa3d-stag { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 76px); }
.msa3d-stag button { border: 0; border-radius: 99px; padding: 7px 12px; background: rgba(255,255,255,.9); color: #0d1b2a; font: 600 12px/1 Barlow, Arial, sans-serif; box-shadow: 0 2px 6px rgba(13,27,42,.18); cursor: pointer; }
.msa3d-stag button[aria-pressed="true"] { background: #0d1b2a; color: #fff; }
.msa3d[data-stagione="primavera"] .msa3d-stage { background: radial-gradient(120% 90% at 50% 30%, #f1f8ec 0%, #cfe6d6 60%, #a9cde0 100%); }
.msa3d[data-stagione="estate"] .msa3d-stage { background: radial-gradient(120% 90% at 50% 30%, #fbf6e6 0%, #d8e8f0 60%, #9fc6e3 100%); }
.msa3d[data-stagione="autunno"] .msa3d-stage { background: radial-gradient(120% 90% at 50% 30%, #f6efe6 0%, #dcd9d2 60%, #b8c3cc 100%); }
.msa3d.msa3d-nogl .msa3d-stag { display: none; }
.msa3d-park { background: #1e88e5; }
.msa3d-ing { margin: -12px 0 0 0; translate: -50% 0; padding: 4px 9px; border-radius: 99px; background: #6b4423; color: #fff; font: 700 11px/1.2 Barlow, Arial, sans-serif; white-space: nowrap; box-shadow: 0 2px 6px rgba(13,27,42,.3); }
.msa3d-med { background: #fff; color: #e42e24; font-size: 17px; line-height: 19px; box-shadow: 0 0 0 2px #e42e24, 0 2px 5px rgba(13,27,42,.35); }
.msa3d .msa-l-cr { background: #fff; color: #e42e24; box-shadow: inset 0 0 0 2px #e42e24; font-size: 1.1rem; }
.msa3d-poi { min-width: 20px; width: auto; padding: 0 4px; }
.ms-mappa-hint { display: none; margin: 8px 4px 0; font-size: .85rem; color: #5b6b7c; }
@media (max-width: 700px) { .ms-mappa-hint { display: block; } }
.page-id-1087 .elementor-element-d288e14, .page-id-1087 .elementor-element-c5ab940 { display: none !important; }
.msw-badge { position: absolute; right: -4px; bottom: -4px; width: 30%; aspect-ratio: 1; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; }
.msw-badge svg { width: 62%; height: 62%; }
.msw-tit { margin-top: .55rem; font-family: var(--ms-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; color: var(--ms-notte); }
.msw-val { margin-top: .3rem; display: inline-block; max-width: 100%; background: var(--c); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; line-height: 1.25; padding: .25rem .55rem; border-radius: 999px; }
.msw-gauge { width: 70%; height: 5px; background: var(--ms-bordo); border-radius: 99px; margin-top: .45rem; overflow: hidden; }
.msw-gauge i { display: block; height: 100%; background: var(--c); border-radius: 99px; }
.msw-nota { margin: 1rem 0 0; background: var(--ms-neve); border-radius: 12px; padding: .65rem .9rem; font-size: .95rem; }
.msw-agg { margin: .9rem 0 0; font-size: .78rem; color: var(--ms-ardesia); text-align: center; }
@media (max-width: 699px) {
	.msw-grid { grid-template-columns: repeat(3, 1fr); row-gap: 1.1rem; }
	.msw-ico { max-width: 76px; border-radius: 22px; }
	.msw-tit { font-size: .9rem; }
	.msw-val { font-size: .64rem; }
}

/* ------------------------------------------------ Schermi grandi */
@media (min-width: 700px) {
	.ms-cam-grid { grid-template-columns: repeat(2, 1fr); }
	.ms-stato-card { padding: 1.4rem 1.5rem 1.5rem !important; }
	.ms-panel, .ms-news-box { padding: 1.4rem 1.5rem !important; }
	.ms-stato-card .msi-card .msi-tit { font-size: 1.1rem; }
	.ms-stato-card .msi-val { font-size: .8rem; }
	.ms-tiles { grid-template-columns: repeat(4, 1fr); }
	.ms-footer-in { grid-template-columns: 1.3fr 1.5fr auto; align-items: start; }
	.ms-stations { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
	body { padding-bottom: 0; }
	.ms-tabbar { display: none; }
	.ms-topnav { display: flex; }
	.ms-cta { display: inline-block; }
	.ms-menu-btn { display: none; }
	.ms-hero { padding: 3.5rem 0 7rem; }
	.ms-grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
	.ms-cam-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
