:root {
  --ink: #0d2638;
  --muted: #617789;
  --blue: #087eb8;
  --blue-dark: #075d8a;
  --sky: #e9f7ff;
  --card: rgba(255,255,255,.92);
  --line: #d8e7ef;
  --yellow: #ffc93d;
  --shadow: 0 20px 55px rgba(13, 71, 103, .12);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,201,61,.22), transparent 28rem),
    linear-gradient(180deg, #dff4ff 0, #f8fcff 34rem, #f5f8fa 100%);
}
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { padding: 22px 0 14px; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display:inline-flex; align-items:center; gap:14px; color:inherit; text-decoration:none; min-width:0; }
.brand-mark { display:block; width:84px; height:auto; flex:0 0 auto; }
.brand-wordmark { display:inline-flex; align-items:flex-end; gap:0; font-weight:860; letter-spacing:-.045em; line-height:.92; min-width:0; }
.brand-name { font-size: clamp(2rem, 4vw, 3.45rem); color:#0d3a59; white-space:nowrap; }
.brand-tld { font-size: clamp(1.18rem, 2.2vw, 2rem); color:#5caee3; margin-left:.12em; margin-bottom:.12em; white-space:nowrap; }
.updated { color: var(--muted); font-size: .88rem; text-align: right; }
.notice { margin: 8px 0 18px; padding: 13px 16px; border-radius: 14px; background: #fff2cf; border: 1px solid #f4d888; color: #664900; }
.hidden { display: none !important; }
.current-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 180px minmax(250px,1fr) minmax(240px,.7fr);
  gap: 30px;
  align-items: center;
  min-height: 310px;
  padding: 38px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,249,255,.9));
  box-shadow: var(--shadow);
}
.current-card::after { content:""; position:absolute; right:-90px; top:-130px; width:320px; height:320px; border-radius:50%; background:rgba(255,201,61,.16); pointer-events:none; }

.current-radar-link {
  display:inline-flex; align-items:center; justify-content:center; width:fit-content;
  min-height:38px; margin-top:10px; padding:7px 14px; border:1px solid #cfe3ed;
  border-radius:999px; background: rgba(255,255,255,.82); color: var(--blue-dark);
  font-size:.78rem; font-weight:850; line-height:1; text-decoration:none; white-space:nowrap;
  box-shadow:0 4px 14px rgba(13,71,103,.06);
}
.current-radar-link:hover { background:#fff; transform:translateY(-1px); }
@media (max-width:560px) {
  .current-radar-link { margin-top:8px; padding:6px 12px; font-size:.74rem; }
}
.current-icon { width: 170px; height: 170px; display: grid; place-items:center; }
.weather-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 15px 15px rgba(8,75,112,.12)); }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; font-size: .75rem; font-weight: 800; letter-spacing: .13em; color: var(--blue); }
.current-temp { font-size: clamp(4rem, 8vw, 6.8rem); font-weight: 760; line-height: .9; letter-spacing: -.07em; }
.current-temp sup { font-size: .34em; vertical-align: top; margin-left: 5px; letter-spacing: 0; }
h1 { margin: 14px 0 5px; font-size: clamp(1.35rem,3vw,2.1rem); letter-spacing: -.035em; }
.estimated { margin: 0; color: var(--muted); font-size: .84rem; }
.current-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.sun-badge { display:inline-flex; align-items:center; gap:6px; width:fit-content; padding:7px 11px; border-radius:999px; border:1px solid transparent; font-size:.78rem; font-weight:850; line-height:1; box-shadow:0 5px 14px rgba(13,71,103,.07); }
.sun-badge-moderate { background:#fff5d8; color:#866100; border-color:#f0d78f; }
.sun-badge-high { background:#ffe8c9; color:#9a5710; border-color:#efc482; }
.sun-badge-very-high { background:#ffd8cc; color:#9c3f12; border-color:#ecb2a0; }
.sun-badge-compact { padding:5px 9px; font-size:.69rem; box-shadow:none; }

.current-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; z-index:1; }
.detail, .stat { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.78); border:1px solid var(--line); }
.detail b, .stat b { display: block; font-size: 1.05rem; }
.detail span, .stat span { color: var(--muted); font-size: .78rem; }
.forecast-grid { display:grid; grid-template-columns:1fr; gap:22px; margin-top:24px; }
.day-card { min-width:0; overflow:hidden; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 35px rgba(13,71,103,.07); }
.day-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
h2 { margin:0; font-size: 2rem; letter-spacing: -.04em; }
.confidence { display:inline-flex; align-items:center; gap:6px; padding:8px 11px; border-radius:999px; background:#edf7ee; color:#247039; font-weight:750; font-size:.78rem; text-transform:capitalize; }
.confidence.medium { background:#fff4d7; color:#795800; }
.confidence.low { background:#ffe8e4; color:#9b3929; }
.day-summary { min-height: 72px; margin: 18px 0; color:#274557; font-size:1.04rem; line-height:1.55; }
.day-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:20px; }
.stat { padding:10px 11px; }
.stat b { font-size:.97rem; }
.timeline { display:grid; grid-template-columns:repeat(var(--timeline-columns, 8), minmax(0,1fr)); gap:9px; width:100%; max-width:100%; overflow:visible; padding:2px 0 4px; }
.hour { min-width:0; text-align:center; padding:13px 7px; border-radius:16px; background:#f3f9fc; }
.hour time { display:block; color:var(--muted); font-size:.79rem; font-weight:750; }
.hour .mini-icon { height:58px; display:grid; place-items:center; margin:6px auto; }
.hour .mini-icon .weather-svg { width:58px; height:58px; filter:none; }
.hour strong { display:block; font-size:1rem; }
.hour small { display:block; color:var(--blue-dark); font-size:.72rem; margin-top:3px; white-space:nowrap; }



.timeline-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:4px 0 10px; }
.timeline-label { color:var(--muted); font-size:.75rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.timeline-toggle { display:inline-flex; flex:0 0 auto; padding:3px; border:1px solid var(--line); border-radius:12px; background:#f2f8fb; }
.timeline-toggle-button { border:0; border-radius:9px; padding:7px 10px; background:transparent; color:var(--muted); font:inherit; font-size:.75rem; font-weight:800; cursor:pointer; }
.timeline-toggle-button.active { background:#fff; color:var(--blue-dark); box-shadow:0 3px 10px rgba(13,71,103,.10); }
.timeline-hourly { gap:6px; }
.timeline-hourly .hour { padding:8px 3px; border-radius:12px; }
.timeline-hourly .hour time { font-size:.68rem; }
.timeline-hourly .hour .mini-icon { height:32px; margin:3px auto; }
.timeline-hourly .hour .mini-icon .weather-svg { width:32px; height:32px; }
.timeline-hourly .hour strong { font-size:.82rem; }
.timeline-hourly .hour small { font-size:.61rem; letter-spacing:-.02em; }

.trend-section { margin:24px 0 0; padding:28px; border-radius:var(--radius); background:linear-gradient(145deg,#0d6d9f,#0b5d89); color:#fff; box-shadow:0 18px 40px rgba(8,82,122,.18); overflow:hidden; }
.trend-heading { display:grid; grid-template-columns:minmax(250px,.75fr) minmax(320px,1.25fr); gap:28px; align-items:end; }
.trend-heading .eyebrow { color:#bceaff; }
.trend-heading h2 { font-size:clamp(1.5rem,3vw,2rem); }
.trend-heading > p { margin:0; line-height:1.6; color:#e6f5fc; }
.trend-days { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-top:22px; }
.trend-day { min-width:0; padding:15px 13px; border-radius:18px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16); text-align:center; }
.trend-day-top { display:flex; flex-direction:column; align-items:center; gap:7px; }
.trend-day-top > strong { text-transform:capitalize; }
.trend-confidence { display:inline-flex; padding:5px 8px; border-radius:999px; font-size:.64rem; font-weight:850; white-space:nowrap; }
.trend-confidence.high { background:#dff3e3; color:#246638; }
.trend-confidence.medium { background:#fff0c7; color:#725400; }
.trend-confidence.low { background:#ffe2dc; color:#8c3326; }
.trend-weather-icon { width:72px; height:72px; margin:8px auto 1px; }
.trend-weather-icon .weather-svg { filter:none; }
.trend-temperatures { display:flex; justify-content:center; gap:4px; font-size:1rem; }
.trend-temperatures span { opacity:.7; }
.trend-day p { min-height:42px; margin:8px 0 5px; color:#e5f4fb; font-size:.75rem; line-height:1.35; }
.trend-day small { color:#c9eafa; font-size:.69rem; }

.trend-card { display:flex; align-items:center; gap:18px; margin:24px 0 0; padding:24px 26px; border-radius:var(--radius); background:#0d6d9f; color:#fff; box-shadow:0 18px 40px rgba(8,82,122,.18); }
.trend-card .eyebrow { color:#bceaff; }
.trend-card p:last-child { margin:3px 0 0; font-size:1.08rem; line-height:1.5; }
.trend-icon { flex:0 0 auto; display:grid; place-items:center; width:52px; height:52px; border-radius:17px; background:rgba(255,255,255,.14); font-size:1.8rem; }
.method-section { margin:24px 0 50px; padding:34px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(255,255,255,.84); box-shadow:0 12px 38px rgba(13,71,103,.07); }
.method-heading { max-width:760px; }
.method-heading h2 { font-size:clamp(1.65rem,3vw,2.25rem); }
.method-heading > p:last-child { margin:12px 0 0; color:#365568; font-size:1.02rem; line-height:1.65; }
.method-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:26px; }
.method-card { position:relative; min-height:220px; padding:24px 22px; overflow:hidden; border:1px solid #dceaf1; border-radius:20px; background:linear-gradient(145deg,#fff,#f4faff); }
.method-number { display:inline-grid; place-items:center; width:42px; height:32px; margin-bottom:30px; border-radius:999px; background:#e3f4fc; color:var(--blue-dark); font-size:.76rem; font-weight:850; letter-spacing:.08em; }
.method-card h3, .confidence-explainer h3 { margin:0; font-size:1.08rem; letter-spacing:-.02em; }
.method-card p { margin:10px 0 0; color:var(--muted); font-size:.89rem; line-height:1.62; }
.confidence-explainer { display:grid; grid-template-columns:54px 1fr; gap:17px; align-items:start; margin-top:16px; padding:22px; border-radius:20px; background:#edf7ee; border:1px solid #d7ead9; }
.confidence-mark { display:grid; place-items:center; width:50px; height:50px; border-radius:17px; background:#d9efdc; color:#247039; font-size:1.45rem; font-weight:900; }
.confidence-explainer p { margin:7px 0 0; color:#42624a; line-height:1.58; font-size:.91rem; }
.method-signature { margin:20px 2px 0; color:var(--muted); line-height:1.55; }
.method-signature strong { color:var(--ink); }
.site-footer { border-top:1px solid var(--line); padding:24px 0 34px; color:var(--muted); font-size:.82rem; }
.site-footer a { color:var(--blue-dark); }
@media (max-width: 850px) {
  .current-card { grid-template-columns:120px 1fr; padding:28px; }
  .current-icon { width:120px; height:120px; }
  .current-details { grid-column:1/-1; grid-template-columns:repeat(4,1fr); }
}
@media (max-width: 560px) {
  .shell { width:min(100% - 20px,1120px); }

  .site-header { padding-top:14px; }
  .updated { font-size:.72rem; max-width:130px; }
  .current-card { grid-template-columns:88px 1fr; gap:16px; padding:22px 18px; min-height:0; border-radius:24px; }
  .current-icon { width:88px; height:88px; }
  .current-temp { font-size:3.8rem; }
  h1 { font-size:1.25rem; }
  .current-badges { margin-top:10px; gap:6px; }
  .sun-badge { padding:6px 9px; font-size:.72rem; }
  .current-details { grid-template-columns:1fr 1fr; }
  .day-card { padding:21px 17px; }
  .day-summary { min-height:0; }
  .day-stats { grid-template-columns:repeat(3, minmax(0,1fr)); }

  .trend-card { align-items:flex-start; padding:20px 18px; }
  .footer-inner { align-items:flex-start; flex-direction:column; gap:6px; }
}

@media (max-width: 1080px) {
  .method-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 850px) {
  .method-grid { grid-template-columns:1fr; }
  .method-card { min-height:0; }
}
@media (max-width: 560px) {
  .method-section { padding:24px 18px; margin-bottom:36px; }
  .method-grid { margin-top:20px; }
  .method-card { padding:20px 18px; }
  .method-number { margin-bottom:20px; }
  .confidence-explainer { grid-template-columns:44px 1fr; padding:18px; gap:13px; }
  .confidence-mark { width:42px; height:42px; border-radius:14px; }
}

.official-card {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #cfe4ee;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,249,255,.94));
  box-shadow: 0 12px 38px rgba(13,71,103,.07);
}
.official-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.official-heading h2 { font-size:clamp(1.55rem,3vw,2rem); }
.official-link { flex:0 0 auto; color:var(--blue-dark); font-size:.84rem; font-weight:800; text-decoration:none; }
.official-link:hover { text-decoration:underline; }
.official-intro { max-width:850px; margin:12px 0 20px; color:#365568; line-height:1.6; }
.official-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.official-day { padding:20px; border:1px solid #dbeaf1; border-radius:19px; background:rgba(255,255,255,.86); }
.official-day h3 { margin:0 0 12px; font-size:1.08rem; }
.official-period { display:grid; gap:3px; padding:10px 0; border-top:1px solid #e7f0f4; }
.official-period:first-child { border-top:0; padding-top:0; }
.official-period strong { color:var(--blue-dark); font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; }
.official-period span { font-weight:750; }
.official-period small { color:var(--muted); line-height:1.45; }
.official-empty { margin:0; color:var(--muted); }
.agreement { margin-top:13px; padding:12px 14px; border-radius:14px; display:grid; gap:3px; }
.agreement b { font-size:.84rem; }
.agreement span { font-size:.8rem; line-height:1.45; }
.agreement.high { background:#edf7ee; color:#315f3b; }
.agreement.medium { background:#fff4d7; color:#6f570b; }
.agreement.low { background:#ffe8e4; color:#873d30; }
.agreement.unknown { background:#eef3f6; color:#536674; }
.official-meta { margin-top:14px; color:var(--muted); font-size:.78rem; }

@media (max-width: 700px) {
  .official-heading { flex-direction:column; gap:8px; }
  .official-grid { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .official-card { padding:22px 17px; }
}


.contact-section {
  margin: 24px 0 34px;
  padding: 24px 28px;
  border: 1px solid #cfe4ee;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(239,249,255,.96), rgba(255,255,255,.98));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 32px rgba(13,71,103,.06);
}
.contact-copy h2 { margin: 3px 0 7px; font-size: clamp(1.45rem,3vw,1.9rem); }
.contact-copy p:last-child { margin: 0; color: var(--muted); line-height: 1.55; }
.contact-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 15px;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(13,71,103,.18);
}
.contact-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
@media (max-width: 620px) {
  .contact-section { align-items: flex-start; flex-direction: column; padding: 22px 18px; }
  .contact-button { width: 100%; }
}

@media (max-width: 900px) {
  .trend-heading { grid-template-columns:1fr; gap:10px; }
  .trend-days { display:flex; overflow-x:auto; padding-bottom:5px; }
  .trend-day { flex:0 0 150px; }
}
@media (max-width: 560px) {
  .timeline-toolbar { align-items:flex-start; flex-direction:column; gap:8px; }
  .timeline-toggle { width:100%; }
  .timeline-toggle-button { flex:1; }
  .trend-section { padding:22px 17px; }
  .trend-day { flex-basis:138px; }
}

@media (max-width: 700px) {
  .timeline { gap:7px; }
  .hour { padding:10px 5px; }
  .hour .mini-icon { height:48px; }
  .hour .mini-icon .weather-svg { width:48px; height:48px; }
  .timeline-hourly { gap:5px; }
  .timeline-hourly .hour { padding:7px 2px; }
  .timeline-hourly .hour small { font-size:.58rem; }
}
@media (max-width: 430px) {
  .timeline { gap:5px; }
  .hour { padding:9px 3px; }
  .hour small { font-size:.64rem; }
  .timeline-hourly .hour time { font-size:.64rem; }
  .timeline-hourly .hour strong { font-size:.78rem; }
}

/* v0.4.0 — lingua e trasparenza */
.header-tools { display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.language-switcher { display:inline-flex; padding:3px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.68); box-shadow:0 4px 14px rgba(13,71,103,.05); }
.language-button { min-width:38px; border:0; border-radius:9px; padding:7px 8px; background:transparent; color:var(--muted); font:inherit; font-size:.72rem; font-weight:850; cursor:pointer; }
.language-button.active { background:#fff; color:var(--blue-dark); box-shadow:0 3px 10px rgba(13,71,103,.10); }
.method-footer-row { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-top:20px; }
.method-footer-row .method-signature { margin:0; }
.transparency-link { flex:0 0 auto; color:var(--blue-dark); font-weight:850; text-decoration:none; padding:10px 13px; border-radius:13px; background:#eef8fd; border:1px solid #d6eaf3; }
.transparency-link:hover { background:#e4f4fb; }
.method-links { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; }
.nerd-link { background:#0d6d9f; color:#fff; border-color:#0d6d9f; }
.nerd-link:hover { background:#075d8a; }
@media (max-width: 700px) {
  .header-inner { align-items:flex-start; }
  .header-tools { flex-direction:column; align-items:flex-end; gap:8px; }
  .method-footer-row { align-items:flex-start; flex-direction:column; }
  .method-links { width:100%; }
  .transparency-link { width:100%; text-align:center; }
}
@media (max-width: 430px) {
  .header-tools { gap:6px; }
  .language-button { min-width:34px; padding:6px; }
}

/* v0.5.0 — PWA e azioni rapide */
.header-action-row { display:flex; align-items:center; justify-content:flex-end; gap:7px; }
.header-action {
  min-height:34px;
  padding:7px 11px;
  border:1px solid var(--line);
  border-radius:11px;
  background:rgba(255,255,255,.78);
  color:var(--blue-dark);
  font:inherit;
  font-size:.75rem;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(13,71,103,.05);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-decoration:none;
}
.header-action:hover { background:#fff; transform:translateY(-1px); }
.header-action--store { background:var(--blue); border-color:var(--blue); color:#fff; box-shadow:0 8px 20px rgba(8,126,184,.20); }
.header-action--store:hover { background:var(--blue-dark); border-color:var(--blue-dark); color:#fff; }
.app-toast {
  position:fixed;
  z-index:1000;
  left:50%;
  bottom:max(20px, env(safe-area-inset-bottom));
  transform:translateX(-50%);
  width:min(520px, calc(100% - 28px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  background:rgba(13,38,56,.96);
  color:#fff;
  box-shadow:0 18px 50px rgba(13,38,56,.30);
  backdrop-filter:blur(12px);
}
.app-toast span { line-height:1.4; }
.app-toast button {
  flex:0 0 auto;
  border:0;
  border-radius:10px;
  padding:8px 12px;
  background:#fff;
  color:var(--blue-dark);
  font:inherit;
  font-size:.78rem;
  font-weight:850;
  cursor:pointer;
}
@media (display-mode: standalone) {
  #install-app { display:none !important; }
}
@media (max-width: 680px) {
  .header-action-row { order:3; width:100%; }
  .header-action { flex:1; }
}


/* Nowcast e avvisi locali */
.nowcast-banner {
  margin: 8px 0 18px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
  padding: 21px 23px;
  border-radius: 22px;
  border: 1px solid #e7c865;
  background: linear-gradient(135deg, #fff8dc, #fffdf4);
  box-shadow: 0 12px 32px rgba(92,66,0,.10);
}
.nowcast-banner.attention { border-color:#efad55; background:linear-gradient(135deg,#fff0d4,#fff9ef); }
.nowcast-banner.imminent, .nowcast-banner.ongoing { border-color:#ef8c79; background:linear-gradient(135deg,#ffe4de,#fff5f2); }
.nowcast-banner.ongoing { box-shadow:0 12px 34px rgba(150,44,28,.14); }
.nowcast-symbol {
  display:grid; place-items:center; width:54px; height:54px; border-radius:18px;
  background:#f4ca42; color:#563d00; font-size:1.7rem; font-weight:950;
}
.nowcast-banner.attention .nowcast-symbol { background:#ef9c36; color:#fff; }
.nowcast-banner.imminent .nowcast-symbol, .nowcast-banner.ongoing .nowcast-symbol { background:#d85643; color:#fff; }
.nowcast-kicker-row { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.nowcast-banner .eyebrow { margin:0; color:#795800; }
.nowcast-banner.imminent .eyebrow, .nowcast-banner.ongoing .eyebrow { color:#9b3929; }
.nowcast-banner h2 { margin:4px 0 6px; font-size:clamp(1.25rem,3vw,1.75rem); }
.nowcast-banner p { margin:0; line-height:1.55; color:#394f5d; }
.nowcast-meta { display:flex; gap:14px; flex-wrap:wrap; margin-top:10px; color:#6a7881; font-size:.78rem; font-weight:700; }
.nowcast-simulation { display:inline-flex; padding:4px 8px; border-radius:999px; background:#102b3b; color:#fff; font-size:.67rem; font-weight:850; text-transform:uppercase; letter-spacing:.05em; }
@media (max-width:560px) {
  .nowcast-banner { grid-template-columns:42px minmax(0,1fr); padding:17px 15px; gap:12px; border-radius:18px; }
  .nowcast-symbol { width:42px; height:42px; border-radius:14px; font-size:1.35rem; }
  .nowcast-meta { flex-direction:column; gap:3px; }
}

/* v0.7.0 — timeline verticale continua delle prossime 48 ore */
body { overflow-x: hidden; }
.forecast-48-section {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 38px rgba(13,71,103,.08);
  overflow: hidden;
}
.forecast-48-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.forecast-48-heading > div:first-child { min-width: 0; max-width: 760px; }
.forecast-48-heading h2 { font-size: clamp(1.8rem,4vw,2.55rem); }
.forecast-48-summary {
  margin: 12px 0 0;
  color: #365568;
  font-size: 1.02rem;
  line-height: 1.62;
}
.forecast-48-controls {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 12px;
}
.forecast-48-toggle { white-space: nowrap; }
.forecast-48-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 24px 0 18px;
}
.forecast-48-stats .stat { background: #f6fbfe; }
.forecast-48-list {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe9f0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.forecast-day-divider {
  scroll-margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-top: 1px solid #cfe2ec;
  border-bottom: 1px solid #cfe2ec;
  background: linear-gradient(135deg,#e9f7ff,#f7fcff);
}
.forecast-day-divider:first-child { border-top: 0; }
.forecast-day-divider > div:first-child { display: grid; gap: 2px; }
.forecast-day-name {
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 900;
  text-transform: capitalize;
}
.forecast-day-divider small { color: var(--muted); text-transform: capitalize; }
.forecast-day-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: .8rem;
  text-align: right;
}
.forecast-day-meta b { color: var(--ink); }
.forecast-48-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px 92px minmax(0,1fr) 104px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 112px;
  padding: 12px 18px;
  border-bottom: 1px solid #e5eef3;
  background: #fff;
}
.forecast-48-row:last-child { border-bottom: 0; }
.forecast-48-row.is-night { background: linear-gradient(90deg,#f2f7fb,#fbfdff); }
.forecast-48-row.has-precipitation::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #27a4d8;
}
.forecast-48-row.has-precipitation { background-image: linear-gradient(90deg,rgba(39,164,216,.055),transparent 42%); }
.forecast-48-time { text-align: center; }
.forecast-48-time time {
  display: block;
  color: var(--blue-dark);
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.forecast-48-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
}
.forecast-48-icon .weather-svg { width: 84px; height: 84px; filter: none; }
.forecast-48-main { min-width: 0; }
.forecast-48-condition {
  display: block;
  margin-bottom: 9px;
  font-size: 1.08rem;
  letter-spacing: -.015em;
}
.forecast-48-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  min-width: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.forecast-48-details span { white-space: nowrap; }
.forecast-48-details b { color: #456071; font-weight: 800; }
.forecast-48-badges { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.forecast-48-temperature { text-align: right; min-width: 0; }
.forecast-48-temperature strong {
  display: block;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.05em;
}
.forecast-48-temperature span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .72rem;
  white-space: nowrap;
}
.forecast-48-list.view-hourly .forecast-48-row {
  grid-template-columns: 66px 66px minmax(0,1fr) 94px;
  min-height: 88px;
  padding-block: 8px;
}
.forecast-48-list.view-hourly .forecast-48-icon,
.forecast-48-list.view-hourly .forecast-48-icon .weather-svg {
  width: 58px;
  height: 58px;
}
.forecast-48-list.view-hourly .forecast-48-condition { margin-bottom: 6px; font-size: .98rem; }
.forecast-48-list.view-hourly .forecast-48-details { font-size: .72rem; gap: 4px 11px; }
.forecast-48-list.view-hourly .forecast-48-temperature strong { font-size: 1.65rem; }

@media (max-width: 700px) {
  .forecast-48-section { padding: 22px 16px; }
  .forecast-48-heading { flex-direction: column; gap: 16px; }
  .forecast-48-controls { width: 100%; grid-template-columns: 1fr auto; align-items: center; justify-items: start; }
  .forecast-48-toggle { justify-self: end; }
  .forecast-48-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .forecast-48-stats .stat { padding: 10px 8px; }
  .forecast-day-divider { align-items: flex-start; padding: 13px 12px; }
  .forecast-day-meta { align-items: flex-end; flex-direction: column; gap: 6px; }
  .forecast-48-row,
  .forecast-48-list.view-hourly .forecast-48-row {
    grid-template-columns: 52px 64px minmax(0,1fr) 60px;
    gap: 8px;
    min-height: 90px;
    padding: 9px 10px;
  }
  .forecast-48-icon,
  .forecast-48-icon .weather-svg { width: 62px; height: 62px; }
  .forecast-48-list.view-hourly .forecast-48-icon,
  .forecast-48-list.view-hourly .forecast-48-icon .weather-svg { width: 50px; height: 50px; }
  .forecast-48-time time { font-size: .88rem; }
  .forecast-48-condition,
  .forecast-48-list.view-hourly .forecast-48-condition { font-size: .92rem; margin-bottom: 5px; }
  .forecast-48-details,
  .forecast-48-list.view-hourly .forecast-48-details { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; font-size: .66rem; }
  .forecast-48-details span { white-space: normal; }
  .forecast-48-temperature strong,
  .forecast-48-list.view-hourly .forecast-48-temperature strong { font-size: 1.45rem; }
  .forecast-48-temperature span { font-size: .62rem; white-space: normal; }
}
@media (max-width: 430px) {
  .forecast-48-section { padding: 20px 10px; }
  .forecast-48-controls { grid-template-columns: 1fr; justify-items: stretch; }
  .forecast-48-controls .confidence { justify-self: start; }
  .forecast-48-toggle { justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
  .forecast-48-stats { gap: 6px; }
  .forecast-48-stats .stat b { font-size: .84rem; }
  .forecast-48-stats .stat span { font-size: .65rem; }
  .forecast-day-divider { gap: 8px; }
  .forecast-day-name { font-size: .96rem; }
  .forecast-day-divider small { font-size: .69rem; }
  .forecast-day-meta { font-size: .68rem; }
  .forecast-48-row,
  .forecast-48-list.view-hourly .forecast-48-row {
    grid-template-columns: 45px 54px minmax(0,1fr) 52px;
    gap: 6px;
    padding-inline: 7px;
  }
  .forecast-48-icon,
  .forecast-48-icon .weather-svg { width: 52px; height: 52px; }
  .forecast-48-list.view-hourly .forecast-48-icon,
  .forecast-48-list.view-hourly .forecast-48-icon .weather-svg { width: 44px; height: 44px; }
  .forecast-48-details,
  .forecast-48-list.view-hourly .forecast-48-details { grid-template-columns: 1fr; }
  .forecast-48-details span:nth-child(4) { display: none; }
}
@media (max-width: 430px) {
  .forecast-48-list.view-three-hour .forecast-48-row {
    grid-template-columns: 44px 60px minmax(0,1fr) 52px;
  }
  .forecast-48-list.view-three-hour .forecast-48-icon,
  .forecast-48-list.view-three-hour .forecast-48-icon .weather-svg {
    width: 58px;
    height: 58px;
  }
}

/* v0.7.1 — tendenza verticale e consolidamento beta */
.trend-section {
  background: linear-gradient(145deg,#0d6d9f,#0b5d89);
}
.trend-heading {
  grid-template-columns: minmax(260px,.8fr) minmax(360px,1.2fr);
  align-items: start;
}
.trend-days {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
  overflow: visible;
}
.trend-day {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px,.75fr) 92px minmax(230px,1.25fr) minmax(300px,1.3fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 19px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  text-align: left;
}
.trend-day-date { display:grid; gap:8px; justify-items:start; }
.trend-day-date > strong { text-transform:capitalize; font-size:1rem; }
.trend-weather-icon { width:76px; height:76px; margin:0 auto; }
.trend-weather-icon .weather-svg { filter:none; }
.trend-day-copy h3 { margin:0; font-size:1.05rem; }
.trend-day-copy p { min-height:0; margin:6px 0 0; color:#e5f4fb; font-size:.84rem; line-height:1.48; }
.trend-day-values { display:grid; grid-template-columns:.75fr .75fr 1.5fr; gap:9px; }
.trend-day-values > div { min-width:0; padding:10px 11px; border-radius:13px; background:rgba(255,255,255,.10); }
.trend-day-values span { display:block; color:#c9eafa; font-size:.68rem; text-transform:uppercase; letter-spacing:.04em; font-weight:800; }
.trend-day-values b { display:block; margin-top:3px; font-size:.91rem; line-height:1.28; }
.trend-day-values small { display:block; margin-top:3px; color:#d9eff9; font-size:.68rem; line-height:1.35; }

.beta-note { color:var(--muted); font-size:.78rem; line-height:1.45; }

@media (max-width: 980px) {
  .trend-day { grid-template-columns:minmax(145px,.8fr) 82px minmax(220px,1.2fr); }
  .trend-day-values { grid-column:1/-1; grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .trend-heading { grid-template-columns:1fr; gap:10px; }
  .trend-days { display:grid; overflow:visible; padding-bottom:0; }
  .trend-day { grid-template-columns:72px minmax(0,1fr); gap:13px; padding:15px; }
  .trend-day-date { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .trend-weather-icon { width:66px; height:66px; }
  .trend-day-copy { min-width:0; }
  .trend-day-values { grid-column:1/-1; grid-template-columns:1fr 1fr; }
  .trend-day-values > div:last-child { grid-column:1/-1; }
}
@media (max-width: 430px) {
  .trend-section { padding:20px 14px; }
  .trend-day { padding:13px; }
  .trend-day-date { align-items:flex-start; flex-direction:column; }
  .trend-day-values { grid-template-columns:1fr; }
  .trend-day-values > div:last-child { grid-column:auto; }
}

/* v0.7.2 — etichette tendenza compatte e testi variati */
.trend-day {
  grid-template-columns: minmax(165px,.8fr) 92px minmax(250px,1.25fr) minmax(410px,1.55fr);
}
.trend-day-values {
  grid-template-columns: minmax(84px,.72fr) minmax(98px,.82fr) minmax(190px,1.55fr);
}
.trend-day-values span {
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 1120px) {
  .trend-day { grid-template-columns:minmax(150px,.78fr) 82px minmax(220px,1.15fr); }
  .trend-day-values { grid-column:1/-1; grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .trend-day { grid-template-columns:72px minmax(0,1fr); }
  .trend-day-values { grid-template-columns:1fr 1fr; }
  .trend-day-values > div:last-child { grid-column:1/-1; }
}
@media (max-width: 430px) {
  .trend-day-values { grid-template-columns:1fr; }
  .trend-day-values > div:last-child { grid-column:auto; }
}

/* v0.8.0 — timeline mobile compatta consolidata */
@media (max-width: 700px) {
  .forecast-48-list {
    border-radius: 16px;
  }

  .forecast-48-row,
  .forecast-48-list.view-hourly .forecast-48-row,
  .forecast-48-list.view-three-hour .forecast-48-row {
    grid-template-columns: 44px 52px minmax(0, 1fr) 48px;
    gap: 6px;
    min-height: 78px;
    padding: 8px 7px;
  }

  .forecast-48-time time {
    font-size: .82rem;
  }

  .forecast-48-icon,
  .forecast-48-icon .weather-svg,
  .forecast-48-list.view-hourly .forecast-48-icon,
  .forecast-48-list.view-hourly .forecast-48-icon .weather-svg,
  .forecast-48-list.view-three-hour .forecast-48-icon,
  .forecast-48-list.view-three-hour .forecast-48-icon .weather-svg {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
  }

  .forecast-48-condition,
  .forecast-48-list.view-hourly .forecast-48-condition {
    margin-bottom: 4px;
    font-size: .88rem;
    line-height: 1.16;
  }

  .forecast-48-details,
  .forecast-48-list.view-hourly .forecast-48-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 7px;
    font-size: .61rem;
    line-height: 1.25;
  }

  .forecast-48-details span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .forecast-48-temperature strong,
  .forecast-48-list.view-hourly .forecast-48-temperature strong {
    font-size: 1.28rem;
  }

  .forecast-48-temperature span {
    margin-top: 3px;
    font-size: .57rem;
    line-height: 1.15;
  }
}

@media (max-width: 374px) {
  .forecast-48-row,
  .forecast-48-list.view-hourly .forecast-48-row,
  .forecast-48-list.view-three-hour .forecast-48-row {
    grid-template-columns: 40px 44px minmax(0, 1fr) 43px;
    gap: 4px;
    padding-inline: 5px;
  }

  .forecast-48-icon,
  .forecast-48-icon .weather-svg,
  .forecast-48-list.view-hourly .forecast-48-icon,
  .forecast-48-list.view-hourly .forecast-48-icon .weather-svg,
  .forecast-48-list.view-three-hour .forecast-48-icon,
  .forecast-48-list.view-three-hour .forecast-48-icon .weather-svg {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
  }

  .forecast-48-details,
  .forecast-48-list.view-hourly .forecast-48-details {
    font-size: .57rem;
    gap: 2px 5px;
  }
}


/* MeteoCaorle 0.9.0 — radar secondario e nowcasting */

.radar-page { min-height: 100vh; background: #f3f9fc; color: #102b3b; }
.radar-page-shell { width: min(1180px, calc(100% - 30px)); margin: 0 auto; padding: 24px 0 54px; }
.radar-page-top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.radar-back { color:#075d8a; font-weight:800; text-decoration:none; }
.radar-language { display:flex; gap:6px; }
.radar-language a { padding:7px 10px; border:1px solid #d5e5ed; border-radius:10px; background:#fff; color:#315567; text-decoration:none; font-weight:800; }
.radar-language a.active { background:#087eb8; color:#fff; border-color:#087eb8; }
.radar-hero { padding:clamp(24px,5vw,48px); border:1px solid #d5e5ed; border-radius:28px; background:linear-gradient(145deg,#fff,#eef9ff); }
.radar-hero h1 { margin:4px 0 10px; font-size:clamp(2rem,5vw,4rem); line-height:1.03; }
.radar-hero > p { max-width:780px; color:#526f80; font-size:1.05rem; line-height:1.6; }
.radar-status-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:24px 0; }
.radar-status-card { padding:16px; border:1px solid #d8e8ef; border-radius:16px; background:rgba(255,255,255,.82); }
.radar-status-card b { display:block; font-size:1.12rem; }
.radar-status-card span { color:#657c8b; font-size:.82rem; }
.radar-map-card { margin-top:20px; overflow:hidden; border:1px solid #ccdee7; border-radius:24px; background:#dcecf3; box-shadow:0 20px 50px rgba(12,70,100,.11); }
.radar-map-placeholder { min-height:clamp(430px,70vh,760px); display:grid; place-items:center; padding:28px; text-align:center; background:radial-gradient(circle at 50% 42%,#faffff,#dceef6); }
.radar-map-placeholder-inner { max-width:560px; }
.radar-map-placeholder h2 { margin:0 0 10px; font-size:clamp(1.5rem,4vw,2.3rem); }
.radar-map-placeholder p { color:#527183; line-height:1.55; }
.radar-load-button { border:0; border-radius:14px; background:#087eb8; color:#fff; padding:13px 21px; font:inherit; font-weight:850; cursor:pointer; }
.radar-frame { display:block; width:100%; min-height:clamp(520px,78vh,820px); border:0; background:#dbeaf1; }
.radar-source-note { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-top:14px; color:#657c8b; font-size:.84rem; }
.radar-source-note a { color:#075d8a; font-weight:800; }
.radar-explainer { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px; }
.radar-explainer article { padding:20px; background:#fff; border:1px solid #d8e8ef; border-radius:18px; }
.radar-explainer h2 { margin:0 0 8px; font-size:1.05rem; }
.radar-explainer p { margin:0; color:#617789; line-height:1.55; }
@media (max-width:760px) {
  .radar-status-grid,.radar-explainer { grid-template-columns:1fr; }
  .radar-map-placeholder { min-height:440px; }
  .radar-frame { min-height:72vh; }
}


/* MeteoCaorle 0.9.0 — notifiche push opt-in */
.current-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.current-actions .current-radar-link { margin-top:0; }
.current-push-button {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  min-height:38px; padding:7px 14px; border:1px solid rgba(7,93,138,.20);
  border-radius:999px; background:#087eb8; color:#fff; font:inherit;
  font-size:.78rem; font-weight:850; cursor:pointer; box-shadow:0 5px 14px rgba(8,126,184,.16);
  transition:transform .18s ease, filter .18s ease, background .18s ease; white-space:nowrap;
}
.current-push-button:hover { filter:brightness(1.05); transform:translateY(-1px); }
.current-push-button.active { background:#e9f7ef; color:#176b37; border-color:#b9dfc7; box-shadow:none; }
.current-push-button.denied { background:#f1f4f6; color:#667b88; border-color:#dce5ea; cursor:not-allowed; box-shadow:none; }
.current-push-button:focus-visible { outline:3px solid rgba(8,126,184,.26); outline-offset:2px; }
@media(max-width:520px){
  .current-actions { gap:6px; margin-top:8px; }
  .current-push-button,.current-actions .current-radar-link { min-height:31px; padding:6px 9px; font-size:.72rem; }
  .forecast-48-badges { margin-top:6px; }
}


/* MeteoCaorle 1.2.0 — scala termica intelligente
   Il colore usa la temperatura percepita, con fallback sulla temperatura reale. */
.current-card.thermalized {
  border-color: color-mix(in srgb, var(--thermal-border) 76%, white);
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 48%, var(--thermal-soft) 100%);
  transition: background-color .35s ease, border-color .35s ease;
}
.current-card.thermalized::after { background: var(--thermal-glow); }
.current-card.thermalized .current-temp {
  color: var(--thermal-ink);
  text-shadow: 0 7px 24px var(--thermal-glow);
  transition: color .35s ease;
}
.current-card.thermalized .thermal-detail {
  border-color: var(--thermal-border);
  background: color-mix(in srgb, var(--thermal-soft) 78%, white);
}
.current-card.thermalized .thermal-detail b { color: var(--thermal-ink); }

.forecast-48-row.thermalized .forecast-48-temperature {
  padding: 9px 8px;
  border: 1px solid var(--thermal-border);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), var(--thermal-soft));
  box-shadow: 0 5px 16px var(--thermal-glow);
  transition: background-color .25s ease, border-color .25s ease;
}
.forecast-48-row.thermalized .forecast-48-temperature strong { color: var(--thermal-ink); }
.forecast-48-row.thermalized .forecast-48-temperature span { color: color-mix(in srgb, var(--thermal-ink) 72%, var(--muted)); }
.forecast-48-row.thermalized:not(.has-precipitation) { box-shadow: inset -3px 0 0 var(--thermal-border); }

@media (prefers-reduced-motion: reduce) {
  .current-card.thermalized,
  .current-card.thermalized .current-temp,
  .forecast-48-row.thermalized .forecast-48-temperature { transition: none; }
}

@media (max-width: 560px) {
  .forecast-48-row.thermalized .forecast-48-temperature {
    padding: 6px 4px;
    border-radius: 11px;
    box-shadow: none;
  }
}

/* MeteoCaorle 1.2.0 — header mobile compatto
   Il logo occupa una riga dedicata e gli strumenti vengono disposti sotto,
   evitando sovrapposizioni anche su schermi da 360 px. */
@media (max-width: 700px) {
  .site-header { padding: 14px 0 12px; }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }
  .brand {
    width: 100%;
    min-width: 0;
    gap: 10px;
    justify-content: flex-start;
  }
  .brand-mark { width: 64px; }
  .brand-wordmark { min-width: 0; }
  .brand-name {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
    letter-spacing: -.055em;
  }
  .brand-tld {
    font-size: clamp(1.05rem, 5vw, 1.45rem);
    margin-left: .08em;
    margin-bottom: .12em;
  }
  .header-tools {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "updated languages"
      "actions actions";
    gap: 8px 12px;
    align-items: center;
  }
  .updated {
    grid-area: updated;
    max-width: none;
    text-align: left;
    font-size: .76rem;
  }
  .language-switcher {
    grid-area: languages;
    justify-self: end;
  }
  .header-action-row {
    grid-area: actions;
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 430px) {
  .brand-mark { width: 56px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 2rem; }
  .brand-tld { font-size: 1.12rem; }
  .header-action-row { justify-content: stretch; }
  .header-action-row .header-action { flex: 1 1 auto; }
}

/* MeteoCaorle 1.2.0 — sponsor locale a rotazione, uno spazio solo */
.sponsor-slot {
  margin-top: 24px;
}
.sponsor-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 17px 20px 18px;
  border: 1px solid #d4e5dc;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 10%, rgba(104,187,89,.14), transparent 19rem),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,251,247,.96));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(32,122,69,.09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sponsor-card:hover {
  transform: translateY(-1px);
  border-color: #b9d7c5;
  box-shadow: 0 14px 34px rgba(32,122,69,.13);
}
.sponsor-card:focus-visible {
  outline: 3px solid rgba(32,122,69,.24);
  outline-offset: 3px;
}
.sponsor-disclosure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sponsor-label {
  color: #4e6b5c;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.sponsor-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #cbe0d2;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  color: #277447;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.15;
}
.sponsor-content {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(0,1fr) auto;
  align-items: center;
  gap: 22px;
}
.sponsor-logo-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}
.sponsor-logo {
  display: block;
  width: 100%;
  max-width: 270px;
  max-height: 74px;
  object-fit: contain;
  object-position: left center;
}
.sponsor-copy {
  min-width: 0;
}
.sponsor-copy h2 {
  margin: 0 0 5px;
  color: #174f31;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.sponsor-copy p {
  margin: 0;
  color: #496459;
  font-size: .9rem;
  line-height: 1.48;
}
.sponsor-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #207a45;
  color: #fff;
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(32,122,69,.18);
}
.sponsor-cta::after {
  content: "↗";
  margin-left: 7px;
  font-size: .9em;
}
@media (max-width: 760px) {
  .sponsor-card { padding: 15px 16px 17px; border-radius: 20px; }
  .sponsor-content { grid-template-columns: minmax(150px, 215px) minmax(0,1fr); gap: 16px; }
  .sponsor-logo { max-height: 62px; }
  .sponsor-cta { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 520px) {
  .sponsor-slot { margin-top: 18px; }
  .sponsor-disclosure { align-items: flex-start; flex-direction: column; gap: 7px; }
  .sponsor-content { grid-template-columns: 1fr; gap: 13px; }
  .sponsor-logo-wrap { justify-content: flex-start; }
  .sponsor-logo { width: min(100%, 285px); max-height: 72px; }
  .sponsor-copy h2 { font-size: 1.02rem; }
  .sponsor-copy p { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sponsor-card { transition: none; }
}

/* MeteoCaorle 1.3.1 — icone meteo animate, senza vento */
.weather-svg {
  display:block;
  width:100%;
  height:100%;
  margin:0 auto;
  overflow:visible;
}
.weather-svg .wx-sun-pulse,
.weather-svg .wx-moon-halo,
.weather-svg .wx-star,
.weather-svg .wx-cloud-shape,
.weather-svg .wx-drop,
.weather-svg .wx-flake,
.weather-svg .wx-lightning,
.weather-svg .wx-fog-line {
  will-change:opacity,filter,transform,stroke-dashoffset;
  transform-box:fill-box;
  transform-origin:center;
}

/* Il sole normale resta pulito e stabile. Solo il livello più caldo pulsa. */
.weather-svg .wx-sun-halo { opacity:.72; }
.weather-svg .wx-sun-rays { opacity:.94; }
.weather-svg .wx-sun-disc { filter:drop-shadow(0 1px 1px rgba(120,75,10,.08)); }
.weather-svg .wx-sun-hot .wx-sun-pulse {
  animation:wxHotSunPulse 2.8s ease-in-out infinite;
}
.weather-svg .wx-sun-hot .wx-sun-halo {
  animation:wxHotSunHalo 2.8s ease-in-out infinite;
}

/* Luna e stelle. */
.weather-svg .wx-moon-halo {
  opacity:.30;
  animation:wxMoonGlow 5.8s ease-in-out infinite;
}
.weather-svg .wx-star {
  animation:wxTwinkle 3.8s ease-in-out infinite;
}
.weather-svg .wx-star-b { animation-delay:1.25s; }

/* Nuvole: movimento lento, limitato e senza deformazioni. */
.weather-svg .wx-cloud-front .wx-cloud-shape {
  animation:wxCloudFloat 7.2s ease-in-out infinite;
}
.weather-svg .wx-cloud-back .wx-cloud-shape {
  opacity:.84;
  animation:wxCloudBackFloat 8.6s ease-in-out infinite;
}

/* Precipitazioni. */
.weather-svg .wx-drop {
  opacity:0;
  animation:wxRainFall 1.45s ease-in infinite;
}
.weather-svg--drizzle .wx-drop { animation-duration:2.1s; }
.weather-svg--showers .wx-drop { animation-duration:1.5s; }
.weather-svg--rain .wx-drop { animation-duration:1.12s; }
.weather-svg--thunder .wx-drop { animation-duration:.98s; }
.weather-svg .wx-drop-2 { animation-delay:.22s; }
.weather-svg .wx-drop-3 { animation-delay:.44s; }
.weather-svg .wx-drop-4 { animation-delay:.12s; }
.weather-svg .wx-drop-5 { animation-delay:.34s; }
.weather-svg .wx-flake {
  opacity:0;
  animation:wxSnowFall 3.5s ease-in-out infinite;
}
.weather-svg .wx-flake-2 { animation-delay:.7s; }
.weather-svg .wx-flake-3 { animation-delay:1.4s; }
.weather-svg .wx-lightning {
  opacity:0;
  animation:wxLightning 4.2s linear infinite;
}

/* Nebbia: scorrimento continuo delle linee. */
.weather-svg .wx-fog-line {
  stroke-dasharray:28 18;
  animation:wxFogFlow 6.2s linear infinite;
}
.weather-svg .wx-fog-2 { animation-delay:.55s; }
.weather-svg .wx-fog-3 { animation-delay:1.1s; }

@keyframes wxHotSunPulse {
  0%,100% { transform:scale(1); filter:drop-shadow(0 0 0 rgba(239,91,58,0)); }
  50% { transform:scale(1.09); filter:drop-shadow(0 0 5px rgba(239,91,58,.30)); }
}
@keyframes wxHotSunHalo {
  0%,100% { opacity:.58; }
  50% { opacity:1; }
}
@keyframes wxMoonGlow {
  0%,100% { opacity:.22; filter:drop-shadow(0 0 0 rgba(130,184,210,0)); }
  50% { opacity:.40; filter:drop-shadow(0 0 3px rgba(130,184,210,.20)); }
}
@keyframes wxTwinkle {
  0%,100% { opacity:.35; transform:scale(.90); }
  50% { opacity:1; transform:scale(1.18); }
}
@keyframes wxCloudFloat {
  0%,100% { transform:translate(0,0); filter:drop-shadow(0 2px 2px rgba(50,92,113,.05)); }
  50% { transform:translate(1.8px,-.8px); filter:drop-shadow(0 3px 4px rgba(50,92,113,.11)); }
}
@keyframes wxCloudBackFloat {
  0%,100% { transform:translate(0,0); opacity:.76; }
  50% { transform:translate(-1.4px,.6px); opacity:.92; }
}
@keyframes wxRainFall {
  0% { transform:translateY(-2px); opacity:0; }
  18% { opacity:.95; }
  100% { transform:translateY(8px); opacity:0; }
}
@keyframes wxSnowFall {
  0% { transform:translate(0,-2px) rotate(0deg); opacity:0; }
  22% { opacity:.92; }
  55% { transform:translate(1.2px,4px) rotate(10deg); }
  100% { transform:translate(-1.2px,9px) rotate(-8deg); opacity:0; }
}
@keyframes wxLightning {
  0%,74%,100% { opacity:0; }
  76% { opacity:1; }
  78% { opacity:.20; }
  80% { opacity:.95; }
  83% { opacity:0; }
}
@keyframes wxFogFlow {
  from { stroke-dashoffset:0; opacity:.70; }
  50% { opacity:.98; }
  to { stroke-dashoffset:-46; opacity:.70; }
}

/* Nelle icone piccole il bagliore resta più sobrio. */
.mini-icon .weather-svg .wx-sun-halo,
.forecast-48-icon .weather-svg .wx-sun-halo { opacity:.48; }
.mini-icon .weather-svg .wx-moon-halo,
.forecast-48-icon .weather-svg .wx-moon-halo { opacity:.24; }

@media (prefers-reduced-motion:reduce) {
  .weather-svg .wx-sun-pulse,
  .weather-svg .wx-sun-halo,
  .weather-svg .wx-moon-halo,
  .weather-svg .wx-star,
  .weather-svg .wx-cloud-shape,
  .weather-svg .wx-drop,
  .weather-svg .wx-flake,
  .weather-svg .wx-lightning,
  .weather-svg .wx-fog-line { animation:none !important; }
  .weather-svg .wx-drop,
  .weather-svg .wx-flake { opacity:.88; }
  .weather-svg .wx-lightning { opacity:1; }
}

/* MeteoCaorle 1.4.0 — vento leggibile, UV e modulo contatti */
.wind-reading {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: 850;
  line-height: 1.2;
  white-space: normal !important;
}
.wind-reading .wind-speed,
.wind-reading .wind-direction-name,
.wind-reading .wind-separator {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit;
  white-space: nowrap !important;
}
.wind-separator {
  opacity: .48;
  font-weight: 700;
  line-height: 1;
}
.wind-direction-arrow {
  --wind-colour: #64a9cb;
  display: inline-grid !important;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: 2px;
  border-radius: 9px;
  color: var(--wind-colour) !important;
  background: rgba(100,169,203,.10);
  border: 1px solid rgba(100,169,203,.18);
  transform: none;
  transform-origin: center;
  flex: 0 0 auto;
  vertical-align: middle;
}
.wind-direction-arrow svg { width: 21px; height: 21px; overflow: visible; display:block; transform: rotate(var(--wind-angle)); transform-origin:50% 50%; }
.wind-direction-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wind-direction-arrow .wind-shaft,
.wind-direction-arrow .wind-head { stroke-width: 2; }
.wind-direction-arrow .wind-tail { stroke-width: 1.65; opacity: .58; }
.wind-force-light .wind-direction-arrow { --wind-colour:#6faecb; }
.wind-force-moderate .wind-direction-arrow { --wind-colour:#248bbd; background:rgba(36,139,189,.11); }
.wind-force-fresh .wind-direction-arrow { --wind-colour:#0b739f; background:rgba(11,115,159,.13); box-shadow:0 4px 12px rgba(11,115,159,.10); }
.wind-force-strong .wind-direction-arrow { --wind-colour:#c45e28; background:rgba(229,127,61,.14); border-color:rgba(196,94,40,.22); box-shadow:0 4px 14px rgba(196,94,40,.13); }
.wind-direction-arrow.is-compact { width:23px; height:23px; border-radius:8px; }
.wind-direction-arrow.is-compact svg { width:18px; height:18px; }
.wind-reading.is-compact { gap:4px; font-size:.94em !important; }

.uv-reading {
  display:inline-flex !important;
  align-items:baseline;
  gap:6px;
  color:inherit !important;
  font-size:inherit !important;
  white-space:nowrap !important;
}
.uv-reading strong { color:inherit; font-size:inherit; }
.uv-reading small { color:var(--muted); font-size:.72em; font-weight:750; text-transform:capitalize; }
.uv-reading.is-compact { gap:0; }
.uv-reading.uv-low { color:#397e54 !important; }
.uv-reading.uv-moderate { color:#8a6900 !important; }
.uv-reading.uv-high { color:#ae5c12 !important; }
.uv-reading.uv-very-high,
.uv-reading.uv-extreme { color:#b63d25 !important; }
.trend-section .uv-reading { color:#fff !important; }
.trend-section .uv-reading small { color:#d9eff9; }

.forecast-48-details > span { display:inline-flex; align-items:center; gap:4px; }
.forecast-48-details .wind-reading { display:inline-flex !important; }
.forecast-48-details .wind-direction-name::before { margin-right:3px; }
.current-details .wind-reading { justify-content:flex-start; }
.current-details .wind-direction-arrow { width:30px; height:30px; }
.current-details .uv-reading { align-items:center; }
.current-details .wind-detail .wind-reading {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:'origin arrow' 'speed arrow';
  column-gap:10px;
  row-gap:2px;
  align-items:center;
}
.current-details .wind-detail .wind-direction-name,
.current-details .wind-detail .wind-local-name { grid-area:origin; }
.current-details .wind-detail .wind-speed { grid-area:speed; }
.current-details .wind-detail .wind-direction-arrow {
  grid-area:arrow;
  margin-left:0;
  justify-self:center;
  align-self:center;
}
.current-details .wind-detail .wind-separator { display:none; }

.trend-day-values { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
.trend-day-values .wind-reading { color:#fff !important; }
.trend-day-values .wind-direction-arrow { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.18); color:#c6edff !important; }

.contact-section {
  align-items: stretch;
  display:grid;
  grid-template-columns:minmax(220px,.72fr) minmax(360px,1.28fr);
  gap:30px;
  padding:30px;
}
.contact-copy { align-self:center; }
.contact-privacy { margin-top:14px !important; font-size:.78rem; }
.contact-form { min-width:0; display:grid; gap:13px; }
.contact-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.contact-form label { display:grid; gap:6px; color:#365568; font-size:.76rem; font-weight:850; }
.contact-form input,
.contact-form textarea {
  width:100%;
  border:1px solid #cfe0e9;
  border-radius:13px;
  background:#f9fcfe;
  color:var(--ink);
  padding:12px 13px;
  font:inherit;
  font-size:.9rem;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact-form textarea { resize:vertical; min-height:118px; line-height:1.5; }
.contact-form input:focus,
.contact-form textarea:focus { border-color:#59a8ce; background:#fff; box-shadow:0 0 0 4px rgba(8,126,184,.10); }
.contact-honeypot { position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
.contact-actions { display:flex; align-items:center; gap:14px; min-height:48px; }
.contact-button { border:0; cursor:pointer; font:inherit; }
.contact-button:disabled { opacity:.62; cursor:wait; transform:none; }
.contact-status { margin:0; min-height:1.3em; color:var(--muted); font-size:.8rem; font-weight:750; }
.contact-status.success { color:#28743d; }
.contact-status.error { color:#a33f31; }

@media (max-width:1120px) {
  .trend-day-values { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:760px) {
  .contact-section { grid-template-columns:1fr; gap:20px; }
  .trend-day-values { grid-template-columns:1fr 1fr !important; }
  .trend-day-values > div:last-child { grid-column:auto !important; }
}
@media (max-width:560px) {
  .contact-section { padding:22px 18px; }
  .contact-fields { grid-template-columns:1fr; }
  .contact-actions { align-items:stretch; flex-direction:column; }
  .contact-button { width:100%; }
  .contact-status { text-align:center; }
  .current-details .wind-reading { gap:3px; }
  .current-details .wind-detail .wind-reading { column-gap:8px; }
  .current-details .wind-direction-arrow { width:26px; height:26px; }
}
@media (max-width:430px) {
  .forecast-48-details > span:nth-child(2) { display:none; }
  .forecast-48-details > span:nth-child(4) { display:inline-flex; }
  .forecast-48-details .wind-direction-name { display:inline; }
  .trend-day-values { grid-template-columns:1fr !important; }
}


/* MeteoCaorle 1.5.0: fraseggio umano, nowcast live, embed */
.nowcast-anchor{scroll-margin-top:92px}.forecast-48-human{margin:.28rem 0 .55rem;color:var(--muted);font-size:.92rem;line-height:1.35}.forecast-48-row.is-hourly .forecast-48-human{font-size:.88rem}.nowcast-live{margin:18px 0 22px;padding:18px;border-radius:24px;border:1px solid rgba(216,115,48,.24);background:linear-gradient(135deg,#fff7e8,#fffdf8);box-shadow:0 16px 40px rgba(126,76,24,.10)}.nowcast-live.imminent,.nowcast-live.ongoing{background:linear-gradient(135deg,#fff0ea,#fff8f5);border-color:rgba(184,60,47,.25)}.nowcast-live.hidden{display:none}.nowcast-live-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.nowcast-live-head h2{margin:.05rem 0 .35rem;font-size:clamp(1.25rem,3vw,1.85rem)}.nowcast-live-head p{margin:0;color:var(--muted)}.nowcast-live-meta{display:grid;gap:4px;text-align:right;min-width:190px}.nowcast-live-meta strong{font-size:.92rem}.nowcast-live-meta span{color:var(--muted);font-size:.82rem}.nowcast-live-strip{display:flex;gap:10px;overflow:auto;padding:14px 2px 2px;scroll-snap-type:x proximity}.nowcast-live-step{min-width:122px;scroll-snap-align:start;border:1px solid rgba(10,72,104,.10);border-radius:16px;background:#fff;padding:12px 12px;box-shadow:0 8px 18px rgba(10,72,104,.06)}.nowcast-live-step time{display:block;font-size:1.2rem;font-weight:900;color:var(--ink)}.nowcast-live-step span{display:block;margin-top:4px;color:var(--muted);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.nowcast-live-step.phase-likely,.nowcast-live-step.phase-ongoing{border-color:rgba(184,60,47,.25);background:#fff4f0}.nowcast-live-step.phase-approaching{background:#fff9ed}.radar-map-card-live{padding:0;overflow:hidden}.radar-frame{display:block;width:100%;height:min(70vh,650px);min-height:440px;border:0}.embed-demo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-top:24px}.embed-code{background:#102b3b;color:#dff5ff;border-radius:16px;padding:14px;overflow:auto;font:13px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}.embed-preview{border:1px solid var(--line);border-radius:20px;padding:14px;background:#fff;box-shadow:0 10px 28px rgba(10,72,104,.06)}.embed-preview iframe{width:100%;border:0;border-radius:16px;background:#fff}@media(max-width:720px){.nowcast-live-head{display:block}.nowcast-live-meta{text-align:left;margin-top:12px}.nowcast-live-step{min-width:108px}.forecast-48-human{font-size:.86rem}.radar-frame{min-height:360px;height:66vh}}


/* MeteoCaorle v1.5.1 - Radar Live + Nowcast polish */
.nowcast-live{overflow:hidden;max-width:100%;box-sizing:border-box}.nowcast-live-head,.nowcast-live-strip{min-width:0}.nowcast-live-strip{width:100%;max-width:100%;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-padding-inline:2px;scrollbar-width:thin}.nowcast-live-step{flex:0 0 clamp(104px,11vw,132px);min-width:0;text-align:center;display:grid;gap:4px;align-content:center}.nowcast-live-icon{font-size:1.55rem;line-height:1;display:block}.nowcast-live-label{display:block;margin-top:0!important;text-transform:none!important;letter-spacing:0!important;font-size:.82rem!important;line-height:1.12;color:var(--ink)!important}.nowcast-live-step time{font-size:1.12rem}.nowcast-live-step.phase-easing{background:#f8fbfd}.nowcast-live-step.phase-watch{background:#fff}.nowcast-live-step.phase-approaching{border-color:rgba(216,150,36,.28);background:#fff8ec}.nowcast-live-step.phase-likely{border-color:rgba(216,115,48,.33);background:#fff3e8}.nowcast-live-step.phase-ongoing{border-color:rgba(184,60,47,.30);background:#fff0ea}@media(max-width:720px){.nowcast-live{padding:14px;border-radius:20px}.nowcast-live-strip{gap:8px;padding-top:12px}.nowcast-live-step{flex-basis:102px;padding:10px 8px}.nowcast-live-icon{font-size:1.45rem}.nowcast-live-label{font-size:.78rem!important}.nowcast-live-step time{font-size:1.02rem}}
.mc-radar-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.75fr);gap:20px;align-items:stretch;margin:22px 0}.mc-radar-stage{position:relative;min-height:clamp(360px,58vw,620px);border-radius:28px;overflow:hidden;background:linear-gradient(135deg,#e9f3f7,#dcebf1);border:1px solid rgba(10,72,104,.12);box-shadow:0 22px 60px rgba(10,72,104,.16)}.mc-radar-map-base{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.8),transparent 28%),linear-gradient(130deg,#dfead9 0 52%,#c8e6f3 52% 100%)}.mc-radar-sea{position:absolute;right:-10%;bottom:-15%;width:62%;height:70%;background:linear-gradient(145deg,#b8ddea,#8ec8dd);border-radius:55% 0 0 0;opacity:.92}.mc-radar-lagoon{position:absolute;left:42%;bottom:22%;width:28%;height:14%;background:rgba(139,199,209,.55);border-radius:50%;transform:rotate(-12deg)}.mc-radar-coast{position:absolute;left:48%;top:24%;width:2px;height:72%;background:rgba(9,67,91,.18);transform:rotate(21deg);box-shadow:16px 18px 0 rgba(9,67,91,.10),-22px 60px 0 rgba(9,67,91,.10)}.mc-radar-ring{position:absolute;left:50%;top:50%;border:1px solid rgba(8,126,184,.20);border-radius:50%;transform:translate(-50%,-50%)}.mc-radar-ring.r1{width:22%;height:22%}.mc-radar-ring.r2{width:44%;height:44%}.mc-radar-ring.r3{width:66%;height:66%}.mc-radar-label{position:absolute;font-size:.8rem;font-weight:800;color:rgba(13,38,56,.70);text-shadow:0 1px 0 rgba(255,255,255,.7)}.mc-radar-label.caorle{left:51%;top:48%;font-size:1rem;color:#092e43}.mc-radar-label.venezia{left:38%;top:68%}.mc-radar-label.treviso{left:34%;top:31%}.mc-radar-label.bibione{left:63%;top:43%}.mc-radar-station{position:absolute;left:50%;top:51%;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;color:#e64230;font-size:22px;text-shadow:0 0 0 #fff,0 3px 9px rgba(0,0,0,.18);animation:mcPulse 1.8s ease-in-out infinite}.mc-radar-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:auto;mix-blend-mode:multiply;opacity:.88;filter:saturate(1.25) contrast(1.05)}.mc-radar-sweep{position:absolute;inset:-20%;background:conic-gradient(from 0deg at 50% 50%,transparent 0deg,rgba(255,255,255,.28) 18deg,transparent 36deg,transparent 360deg);animation:mcRadarSweep 5.5s linear infinite;opacity:.55;pointer-events:none}.mc-radar-toolbar{position:absolute;left:14px;right:14px;bottom:14px;display:flex;gap:10px;align-items:center;justify-content:space-between;background:rgba(255,255,255,.80);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.8);border-radius:18px;padding:10px 12px;box-shadow:0 12px 30px rgba(10,72,104,.12)}.mc-radar-toolbar button{border:0;border-radius:999px;padding:8px 14px;background:#0a7eb8;color:#fff;font-weight:900;cursor:pointer}.mc-radar-brand{font-weight:900;color:#0b3953}.mc-radar-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:30px;color:#496372;font-weight:800}.mc-radar-reading{border:1px solid rgba(8,126,184,.14);border-radius:28px;padding:22px;background:linear-gradient(180deg,#fff,#f5fbff);box-shadow:0 18px 48px rgba(10,72,104,.10)}.mc-radar-reading h2{margin:.1rem 0 1rem;font-size:clamp(1.25rem,2.6vw,1.8rem)}.mc-radar-reading p{color:#415d70;line-height:1.55;margin:.85rem 0}.mc-radar-credit{font-size:.82rem;color:#6b7f8d!important;border-top:1px solid rgba(10,72,104,.10);padding-top:12px;margin-top:16px!important}.radar-explainer-live{margin-bottom:30px}.radar-hero-live h1{letter-spacing:-.04em}@keyframes mcRadarSweep{to{transform:rotate(360deg)}}@keyframes mcPulse{0%,100%{transform:scale(1);opacity:.9}50%{transform:scale(1.18);opacity:1}}@media(max-width:900px){.mc-radar-grid{grid-template-columns:1fr}.mc-radar-stage{min-height:430px}.mc-radar-reading{padding:18px}}@media(max-width:520px){.mc-radar-stage{min-height:360px;border-radius:22px}.mc-radar-toolbar{left:10px;right:10px;bottom:10px;gap:6px;font-size:.82rem}.mc-radar-brand{display:none}.mc-radar-label{font-size:.7rem}.mc-radar-label.caorle{font-size:.9rem}.mc-radar-frame{opacity:.92}}


/* MeteoCaorle 1.5.3: nowcast compatto con icone ufficiali e radar con base mappa più leggibile */
.nowcast-live{overflow:hidden;max-width:100%;box-sizing:border-box}
.nowcast-live-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:10px;overflow:visible;padding:14px 0 0;scroll-snap-type:none;width:100%;max-width:100%}
.nowcast-live-step{min-width:0!important;flex:initial!important;padding:10px 10px;border-radius:16px;display:grid;grid-template-rows:auto 54px auto;align-items:center;justify-items:center;text-align:center;gap:4px}
.nowcast-live-icon{width:52px;height:52px;font-size:0;line-height:0;margin:0 auto;display:grid;place-items:center}
.nowcast-live-icon .weather-svg{width:52px;height:52px;display:block;filter:none}
.nowcast-live-label{font-weight:850}
@media(max-width:720px){.nowcast-live-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nowcast-live-step{grid-template-rows:auto 48px auto;padding:9px 8px}.nowcast-live-icon,.nowcast-live-icon .weather-svg{width:48px;height:48px}}
.mc-radar-map-base{background:linear-gradient(130deg,#e2eddc 0 50%,#c8e7f3 50% 100%)}
.mc-radar-basemap{position:absolute;inset:0;width:100%;height:100%;opacity:.86;filter:drop-shadow(0 1px 0 rgba(255,255,255,.5))}
.mc-radar-sea,.mc-radar-lagoon,.mc-radar-coast{display:none}
.mc-radar-frame{opacity:.76;mix-blend-mode:multiply;filter:saturate(1.25) contrast(1.08)}
.mc-radar-label{z-index:3;background:rgba(255,255,255,.45);padding:2px 5px;border-radius:999px;backdrop-filter:blur(3px)}
.mc-radar-label.caorle{background:rgba(255,255,255,.62)}
.mc-radar-station{z-index:4}
.mc-radar-map-note{position:absolute;left:14px;top:14px;z-index:4;background:rgba(255,255,255,.70);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.9);border-radius:999px;padding:7px 10px;font-weight:900;font-size:.78rem;color:#16465d;box-shadow:0 8px 20px rgba(10,72,104,.10)}
@media(max-width:520px){.mc-radar-map-note{font-size:.7rem;left:10px;top:10px}.mc-radar-frame{opacity:.8}}

/* MeteoCaorle 1.5.4: embed con icone ufficiali e anteprime più pulite */
.embed-preview iframe{overflow:hidden}.embed-preview h2{line-height:1.15}.embed-code{max-height:96px}

/* MeteoCaorle 1.5.5: radar con vera piantina di riferimento */
.mc-radar-map-base{background:linear-gradient(130deg,#edf3e5 0 54%,#cde8f5 54% 100%)}
.mc-radar-basemap{position:absolute;inset:0;width:100%;height:100%;opacity:.98;filter:none}
.mc-radar-basemap .sea,.mc-radar-basemap .lagoon{display:block}
.mc-radar-basemap .coastline{display:block}
.mc-radar-frame{opacity:.64;mix-blend-mode:multiply;filter:saturate(1.22) contrast(1.03)}
.mc-radar-label{z-index:3;background:rgba(255,255,255,.62);padding:2px 6px;border-radius:999px;backdrop-filter:blur(4px);box-shadow:0 2px 8px rgba(10,72,104,.08)}
.mc-radar-label.caorle{background:rgba(255,255,255,.82);font-size:1.02rem;font-weight:950}
.mc-radar-label.jesolo{left:31%;top:76%}
.mc-radar-label.portogruaro{left:52%;top:17%}
.mc-radar-label.lignano{left:79%;top:33%}
.mc-radar-label.sea{left:74%;top:70%;font-style:italic;color:rgba(16,82,108,.78)}
.mc-radar-map-note{background:rgba(255,255,255,.82);border-color:rgba(255,255,255,.95)}
@media(max-width:620px){.mc-radar-label.portogruaro,.mc-radar-label.lignano,.mc-radar-label.sea{display:none}}

/* MeteoCaorle 1.5.6: radar definitivo, costa e mare più leggibili */
.mc-radar-map-base{background:linear-gradient(132deg,#eef4e5 0 53%,#d7edf7 53% 100%)}
.mc-radar-basemap{position:absolute;inset:0;width:100%;height:100%;opacity:1}
.mc-radar-map-note{z-index:4;background:rgba(255,255,255,.88);border-color:rgba(255,255,255,.98);font-weight:900;color:#0f425e}
.mc-radar-label{z-index:4;background:rgba(255,255,255,.72);padding:3px 7px;border-radius:999px;box-shadow:0 3px 12px rgba(10,72,104,.12);text-shadow:none;color:#355565}
.mc-radar-label.caorle{left:51%;top:48%;font-size:1.1rem;color:#0a2e44;background:rgba(255,255,255,.9)}
.mc-radar-label.venezia{left:38%;top:70%}.mc-radar-label.treviso{left:34%;top:30%}.mc-radar-label.bibione{left:63%;top:43%}.mc-radar-label.jesolo{left:32%;top:80%}.mc-radar-label.portogruaro{left:58%;top:14%}.mc-radar-label.lignano{left:79%;top:33%}.mc-radar-label.sea{left:74%;top:73%;font-style:italic}.mc-radar-label.laguna{left:69%;top:58%;font-style:italic}
.mc-radar-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:auto;mix-blend-mode:multiply;opacity:.56;filter:blur(.9px) saturate(1.12) contrast(1.03)}
.mc-radar-ring{border-color:rgba(8,126,184,.18);z-index:2}.mc-radar-sweep{opacity:.32;z-index:3}.mc-radar-station{z-index:5}
@media(max-width:620px){.mc-radar-label.portogruaro,.mc-radar-label.lignano,.mc-radar-label.sea,.mc-radar-label.laguna{display:none}.mc-radar-map-note{max-width:86%}}

/* MeteoCaorle 1.5.7: basemap radar ridisegnata in modo più fedele */
.mc-radar-stage{background:linear-gradient(135deg,#eef5e9,#dfeef4)}
.mc-radar-map-base{background:linear-gradient(180deg,#eef4e7 0 61%,#c9e5f2 61% 100%)}
.mc-radar-basemap{position:absolute;inset:0;width:100%;height:100%;opacity:1}
.mc-radar-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:auto;mix-blend-mode:multiply;opacity:.60;filter:blur(1.35px) saturate(1.12) contrast(1.02)}
.mc-radar-map-note{z-index:5;left:20px;top:16px;max-width:min(80%,480px);background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.98);box-shadow:0 8px 24px rgba(11,57,83,.10);border-radius:999px;padding:10px 14px;font-size:.92rem;font-weight:900;color:#0f425e}
.mc-radar-label{z-index:5;position:absolute;font-size:.84rem;font-weight:850;color:#415e6d;background:rgba(255,255,255,.74);padding:3px 7px;border-radius:999px;box-shadow:0 3px 12px rgba(10,72,104,.10)}
.mc-radar-label.caorle{left:45.8%;top:46.5%;font-size:1.08rem;font-weight:950;color:#0b2f44;background:rgba(255,255,255,.92)}
.mc-radar-label.bibione{left:62.5%;top:34.5%}.mc-radar-label.jesolo{left:22%;top:77%}.mc-radar-label.lignano{left:79.2%;top:22%}.mc-radar-label.portogruaro{left:40.8%;top:12.5%}.mc-radar-label.sanstino{left:21.5%;top:29%}.mc-radar-label.latisana{left:56%;top:21%}.mc-radar-label.sea{left:56%;top:82%;font-style:italic}.mc-radar-label.laguna-venezia{left:17%;top:67%;font-style:italic}.mc-radar-label.laguna-marano{left:68%;top:17%;font-style:italic}
.mc-radar-ring{border-color:rgba(8,126,184,.16);z-index:3}.mc-radar-ring.r1{width:22%;height:22%;left:49.5%;top:50%}.mc-radar-ring.r2{width:44%;height:44%;left:49.5%;top:50%}.mc-radar-ring.r3{width:68%;height:68%;left:49.5%;top:50%}.mc-radar-sweep{opacity:.22;z-index:4}.mc-radar-station{left:49.4%;top:53.2%;z-index:6}
@media(max-width:720px){.mc-radar-label.laguna-marano,.mc-radar-label.laguna-venezia,.mc-radar-label.latisana,.mc-radar-label.sanstino{display:none}}
@media(max-width:520px){.mc-radar-map-note{font-size:.74rem;left:10px;top:10px;max-width:86%}.mc-radar-label{font-size:.69rem;padding:2px 6px}.mc-radar-label.caorle{font-size:.90rem}.mc-radar-label.portogruaro,.mc-radar-label.lignano,.mc-radar-label.sea{display:none}.mc-radar-frame{opacity:.64;filter:blur(1.05px) saturate(1.1)}}

/* MeteoCaorle 1.5.8: rifacimento radar più fedele e più serio */
.mc-radar-stage{background:linear-gradient(135deg,#edf4e8,#d9edf4)}
.mc-radar-map-base{background:linear-gradient(180deg,#edf4e7 0 59%,#cce7f3 59% 100%)}
.mc-radar-basemap{position:absolute;inset:0;width:100%;height:100%;opacity:1}
.mc-radar-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:auto;mix-blend-mode:multiply;opacity:.57;filter:blur(1.5px) saturate(1.08) contrast(1.04)}
.mc-radar-map-note{z-index:5;left:18px;top:14px;max-width:min(82%,500px);background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.98);box-shadow:0 8px 24px rgba(11,57,83,.10);border-radius:999px;padding:10px 14px;font-size:.90rem;font-weight:900;color:#0f425e}
.mc-radar-label{z-index:5;position:absolute;font-size:.84rem;font-weight:850;color:#40606d;background:rgba(255,255,255,.78);padding:3px 7px;border-radius:999px;box-shadow:0 3px 10px rgba(10,72,104,.10)}
.mc-radar-label.caorle{left:46.6%;top:50.2%;font-size:1.06rem;font-weight:950;color:#0a2f44;background:rgba(255,255,255,.94)}
.mc-radar-label.bibione{left:63.8%;top:37%}.mc-radar-label.jesolo{left:23%;top:78%}.mc-radar-label.lignano{left:80.5%;top:23.2%}.mc-radar-label.portogruaro{left:42%;top:12.5%}.mc-radar-label.latisana{left:57.5%;top:21%}.mc-radar-label.sanstino{left:23%;top:29.5%}.mc-radar-label.sea{left:57%;top:84%;font-style:italic}.mc-radar-label.laguna-venezia{left:12.5%;top:67.5%;font-style:italic}.mc-radar-label.laguna-marano{left:68%;top:16%;font-style:italic}
.mc-radar-ring{border-color:rgba(8,126,184,.16);z-index:3}.mc-radar-ring.r1,.mc-radar-ring.r2,.mc-radar-ring.r3{left:50%;top:55%}.mc-radar-ring.r1{width:22%;height:22%}.mc-radar-ring.r2{width:44%;height:44%}.mc-radar-ring.r3{width:68%;height:68%}
.mc-radar-sweep{opacity:.20;z-index:4}.mc-radar-station{left:50.1%;top:56.9%;z-index:6}
@media(max-width:720px){.mc-radar-label.laguna-marano,.mc-radar-label.sanstino{display:none}}
@media(max-width:520px){.mc-radar-map-note{font-size:.74rem;left:10px;top:10px;max-width:86%}.mc-radar-label{font-size:.69rem;padding:2px 6px}.mc-radar-label.caorle{font-size:.90rem}.mc-radar-label.portogruaro,.mc-radar-label.lignano,.mc-radar-label.sea,.mc-radar-label.laguna-marano{display:none}.mc-radar-frame{opacity:.62;filter:blur(1.15px) saturate(1.07)}}


/* MeteoCaorle 1.5.9: Radar raster definitivo, centrato su Caorle */
.mc-radar-stage{--mc-radar-cx:50%;--mc-radar-cy:50%;background:#c7e7f3;isolation:isolate}
.mc-radar-map-base.radar-raster-base{position:absolute;inset:0;z-index:1;background:#c7e7f3;overflow:hidden}
.mc-radar-map-base.radar-raster-base picture,.mc-radar-basemap-img{position:absolute;inset:0;width:100%;height:100%;display:block}
.mc-radar-basemap-img{object-fit:cover;filter:saturate(1.02) contrast(1.01)}
.mc-radar-map-note{position:absolute;left:18px;top:14px;z-index:9;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.98);box-shadow:0 8px 24px rgba(11,57,83,.10);border-radius:999px;padding:9px 13px;font-size:.88rem;font-weight:900;color:#0f425e;backdrop-filter:blur(8px)}
.mc-radar-ring{position:absolute;left:var(--mc-radar-cx)!important;top:var(--mc-radar-cy)!important;transform:translate(-50%,-50%)!important;border:1px solid rgba(255,255,255,.72);box-shadow:0 0 0 1px rgba(8,126,184,.11),0 0 24px rgba(8,126,184,.10) inset;border-radius:50%;z-index:7;pointer-events:none}
.mc-radar-ring.r1{width:17.5%;aspect-ratio:1/1;height:auto!important}.mc-radar-ring.r2{width:35%;aspect-ratio:1/1;height:auto!important}.mc-radar-ring.r3{width:70%;aspect-ratio:1/1;height:auto!important}
.mc-radar-station{position:absolute;left:var(--mc-radar-cx)!important;top:var(--mc-radar-cy)!important;transform:translate(-50%,-50%)!important;z-index:10;width:18px;height:18px;border-radius:50%;background:#0b8dcc;border:4px solid rgba(255,255,255,.95);box-shadow:0 0 0 2px rgba(8,126,184,.26),0 0 22px rgba(8,126,184,.55);animation:mcPulse 1.8s ease-in-out infinite;color:transparent!important;font-size:0!important}
.mc-radar-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;image-rendering:auto;mix-blend-mode:multiply;opacity:.58;filter:blur(1px) saturate(1.10) contrast(1.04);z-index:4;pointer-events:none}
.mc-radar-sweep{position:absolute;inset:0;background:conic-gradient(from 0deg at var(--mc-radar-cx) var(--mc-radar-cy),transparent 0deg,rgba(255,255,255,.04) 8deg,rgba(255,255,255,.32) 20deg,rgba(9,126,184,.13) 31deg,transparent 43deg,transparent 360deg);animation:mcRadarSweep 5.5s linear infinite;opacity:.65;pointer-events:none;z-index:8;transform-origin:var(--mc-radar-cx) var(--mc-radar-cy)}
.mc-radar-label{display:none!important}.mc-radar-toolbar{z-index:20}.mc-radar-reading{z-index:1}
@media(max-width:520px){.mc-radar-map-note{font-size:.72rem;left:10px;top:10px;max-width:84%;white-space:normal}.mc-radar-ring.r3{width:86%}.mc-radar-frame{opacity:.62;filter:blur(.75px) saturate(1.08)}}


/* MeteoCaorle 1.5.10: radar mobile/app non deve croppare la basemap */
.mc-radar-stage {
  aspect-ratio: 1000 / 620 !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
}
.mc-radar-map-base,
.mc-radar-basemap-raster,
.mc-radar-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mc-radar-basemap-raster,
.mc-radar-frame {
  object-fit: fill !important;
  object-position: 50% 50% !important;
}
.mc-radar-map-base {
  overflow: hidden;
}
.mc-radar-ring,
.mc-radar-sweep,
.mc-radar-station {
  transform-origin: center center;
}
@media (max-width: 900px) {
  .mc-radar-stage {
    aspect-ratio: 1000 / 620 !important;
    min-height: 0 !important;
  }
}
@media (max-width: 520px) {
  .mc-radar-stage {
    aspect-ratio: 1000 / 620 !important;
    min-height: 0 !important;
    border-radius: 22px;
  }
  .mc-radar-toolbar {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}


/* v1.5.14 — dettagli cliccabili e qualità sensore UV */
.detail-button {
  width:100%;
  text-align:left;
  font:inherit;
  color:inherit;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.detail-button:hover,
.detail-button:focus-visible {
  transform:translateY(-1px);
  border-color:#b8d9e8;
  box-shadow:0 10px 24px rgba(13,71,103,.08);
  outline:none;
}
.detail-button span {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.detail-button span em {
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#eaf7fc;
  color:var(--blue-dark);
  font-style:normal;
  font-size:.68rem;
  font-weight:900;
  border:1px solid #c9e4ef;
}
.detail-note {
  display:block !important;
  margin-top:4px;
  color:#9a6b16 !important;
  font-size:.67rem !important;
  line-height:1.25;
  font-weight:800;
}
.uv-reading.uv-suspicious strong { color:#9a6b16; }
.uv-reading.uv-suspicious small { color:#9a6b16; }
.explain-modal {
  position:fixed;
  inset:0;
  z-index:1200;
  display:grid;
  place-items:end center;
  padding:18px;
  background:rgba(8,34,52,.34);
  backdrop-filter:blur(7px);
}
.explain-card {
  position:relative;
  width:min(620px, 100%);
  max-height:min(78vh, 680px);
  overflow:auto;
  padding:26px 24px 22px;
  border-radius:24px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.72);
  box-shadow:0 24px 80px rgba(13,38,56,.24);
}
.explain-card h2 {
  margin:0 42px 12px 0;
  font-size:clamp(1.35rem, 4vw, 1.9rem);
  color:var(--blue-dark);
}
.explain-body p {
  margin:0 0 12px;
  color:#536b78;
  line-height:1.6;
}
.explain-body p:last-child { margin-bottom:0; }
.explain-close {
  position:absolute;
  top:14px;
  right:14px;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--blue-dark);
  font:inherit;
  font-size:1.45rem;
  font-weight:850;
  line-height:1;
  cursor:pointer;
}
.explain-close:hover,
.explain-close:focus-visible { outline:none; background:#eef8fd; }
@media (min-width:720px) {
  .explain-modal { place-items:center; }
}
@media (max-width:560px) {
  .explain-modal { padding:10px; }
  .explain-card { border-radius:22px 22px 18px 18px; padding:23px 18px 19px; }
}


/* v1.5.15: clickable UV help in forecasts and badges */
.sun-badge-button,
.uv-explain-button {
  appearance:none;
  -webkit-appearance:none;
  border:0;
  font:inherit;
  cursor:pointer;
  text-align:left;
}
.sun-badge-button { border:1px solid transparent; }
.uv-explain-button {
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:0;
  margin:0;
  background:transparent;
  color:inherit;
  line-height:1;
}
.sun-badge-button:hover,
.sun-badge-button:focus-visible,
.uv-explain-button:hover,
.uv-explain-button:focus-visible {
  filter:brightness(.98);
  outline:2px solid rgba(21,127,181,.28);
  outline-offset:2px;
}
.info-dot {
  display:inline-grid;
  place-items:center;
  width:1.05em;
  height:1.05em;
  border-radius:999px;
  background:rgba(255,255,255,.55);
  color:currentColor;
  font-size:.68em;
  font-weight:950;
  line-height:1;
  text-transform:none;
}
.forecast-48-badges .sun-badge-button { width:fit-content; }
.trend-day-values .uv-explain-button { color:#fff; }

/* MeteoCaorle 1.5.16 · storico stazione locale */
.station-history-preview{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.75fr);gap:22px;align-items:stretch;margin:28px 0}.station-history-copy,.station-history-card{background:rgba(255,255,255,.92);border:1px solid rgba(8,126,184,.14);border-radius:28px;padding:24px;box-shadow:0 20px 55px rgba(13,71,103,.08)}.station-history-copy h2{margin:.15rem 0 .55rem;font-size:clamp(1.65rem,3vw,2.45rem)}.station-history-copy p:not(.eyebrow){color:var(--muted);line-height:1.65;margin:0}.station-history-card{display:flex;flex-direction:column;gap:16px}.station-history-date{display:flex;justify-content:space-between;gap:12px;align-items:center}.station-history-date strong{font-size:1.25rem}.station-history-date span{color:var(--muted);font-weight:800;font-size:.9rem}.station-history-values{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.station-history-values div{border-radius:18px;background:#f4fafd;border:1px solid rgba(8,126,184,.1);padding:14px}.station-history-values>div>span{display:block;color:var(--muted);font-size:.82rem;font-weight:800}.station-history-values b{display:block;margin-top:3px;font-size:1.12rem}.station-history-source,.station-history-empty{margin:0;color:var(--muted);line-height:1.55}.station-history-link{display:inline-flex;align-self:flex-start;align-items:center;gap:8px;border-radius:999px;padding:11px 15px;background:#e8f6fc;color:var(--brand-blue);font-weight:900;text-decoration:none}.station-history-link:hover{background:#d9f0fa}@media(max-width:820px){.station-history-preview{grid-template-columns:1fr}.station-history-copy,.station-history-card{border-radius:24px}}@media(max-width:520px){.station-history-values{grid-template-columns:1fr}}

/* v1.5.17 history summary/icons */
.station-history-weather-icons{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 10px}.station-history-icon-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(8,126,184,.14);background:#f5fbfe;border-radius:999px;padding:6px 10px;font-size:.84rem;font-weight:900;color:#28546a}.history-weather-svg{width:34px;height:34px;flex:0 0 34px}.station-history-summary{font-size:1.04rem;line-height:1.55;font-weight:850;color:#12384c;margin:10px 0 7px}.station-history-forecast{font-size:.95rem;line-height:1.55;color:var(--muted);background:rgba(255,214,92,.18);border:1px solid rgba(231,169,0,.18);border-radius:18px;padding:10px 12px;margin:8px 0 14px}.history-day-summary{font-size:1rem;line-height:1.6;font-weight:850;color:#12384c;margin:12px 0 7px}.history-day-forecast{font-size:.94rem;line-height:1.55;color:var(--muted);background:rgba(255,214,92,.18);border:1px solid rgba(231,169,0,.18);border-radius:18px;padding:10px 12px;margin:8px 0 14px}.history-day-icons{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 10px}.history-day-icon-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(8,126,184,.14);background:#f5fbfe;border-radius:999px;padding:6px 10px;font-size:.84rem;font-weight:900;color:#28546a}@media(max-width:560px){.station-history-icon-chip,.history-day-icon-chip{font-size:.78rem;padding:5px 8px}.history-weather-svg{width:30px;height:30px}}


/* MeteoCaorle 1.5.23 — fix mobile storico ieri: blocco unico, traduzioni/cache e icone compatte */
.station-history-preview--single{
  display:block;
  margin:28px 0;
}
.station-history-preview--single .station-history-card--single{
  width:100%;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:16px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(8,126,184,.16);
  border-radius:28px;
  padding:24px;
  box-shadow:0 20px 55px rgba(13,71,103,.08);
  overflow:hidden;
}
.station-history-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
}
.station-history-head h2{
  margin:.15rem 0 .55rem;
  font-size:clamp(1.65rem,3vw,2.45rem);
}
.station-history-head p:not(.eyebrow){
  color:var(--muted);
  line-height:1.65;
  margin:0;
}
.station-history-date--compact{
  flex:0 0 auto;
  min-width:150px;
  justify-content:flex-start;
  align-items:flex-end;
  flex-direction:column;
  text-align:right;
}
.station-history-preview--single .station-history-weather-icons{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:4px 0 0;
}
.station-history-preview--single .station-history-icon-chip,
.history-day-icon-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  max-width:100%;
  border:1px solid rgba(8,126,184,.14);
  background:#f5fbfe;
  border-radius:999px;
  padding:6px 10px;
  font-size:.84rem;
  font-weight:900;
  color:#28546a;
  line-height:1;
}
.station-history-preview--single .history-weather-svg,
.history-day-icon-chip .history-weather-svg{
  width:34px !important;
  height:34px !important;
  min-width:34px;
  flex:0 0 34px;
  display:block;
  filter:none;
  margin:0;
}
.station-history-preview--single .station-history-summary{
  margin:0;
  max-width:980px;
}
.station-history-preview--single .station-history-values b{
  overflow-wrap:anywhere;
}
@media(max-width:680px){
  .station-history-preview--single{margin:22px 0;}
  .station-history-preview--single .station-history-card--single{border-radius:24px;padding:18px;gap:14px;}
  .station-history-head{display:block;}
  .station-history-date--compact{align-items:flex-start;text-align:left;margin-top:12px;}
  .station-history-preview--single .station-history-values{grid-template-columns:1fr;}
  .station-history-preview--single .station-history-icon-chip,
  .history-day-icon-chip{font-size:.8rem;padding:6px 9px;}
  .station-history-preview--single .history-weather-svg,
  .history-day-icon-chip .history-weather-svg{width:30px !important;height:30px !important;min-width:30px;flex-basis:30px;}
}


/* MeteoCaorle 1.5.27 — production mobile fix for "Com'è andata ieri".
   Keep the history block compact and prevent unstyled SVGs/labels from exploding on phones. */
.station-history-preview--single,
.station-history-preview--single *{box-sizing:border-box;}
.station-history-preview--single .station-history-card--single{overflow:hidden;}
.station-history-preview--single .station-history-weather-icons,
.history-day-icons{display:flex !important;flex-wrap:wrap;gap:8px 10px;align-items:center;margin:6px 0 12px;}
.station-history-preview--single .station-history-icon-chip,
.history-day-icon-chip{display:inline-flex !important;align-items:center;gap:7px;width:auto;max-width:100%;border:1px solid rgba(8,126,184,.16);background:#f5fbfe;border-radius:999px;padding:6px 10px;font-size:.84rem;font-weight:900;line-height:1.05;color:#28546a;white-space:nowrap;}
.station-history-preview--single .station-history-icon-chip .weather-svg,
.station-history-preview--single .history-weather-svg,
.history-day-icon-chip .weather-svg,
.history-day-icon-chip .history-weather-svg{width:34px !important;height:34px !important;min-width:34px !important;max-width:34px !important;flex:0 0 34px !important;display:block !important;margin:0 !important;filter:none !important;}
.station-history-preview--single .station-history-values{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.station-history-preview--single .station-history-values>div{display:block;border-radius:18px;background:#f4fafd;border:1px solid rgba(8,126,184,.12);padding:12px 14px;min-width:0;}
.station-history-preview--single .station-history-values>div>span{display:block;margin:0 0 4px;color:var(--muted);font-size:.82rem;font-weight:850;line-height:1.15;}
.station-history-preview--single .station-history-values b{display:block;margin:0;color:var(--ink);font-size:1.02rem;font-weight:950;line-height:1.25;overflow-wrap:break-word;}
.station-history-preview--single .station-history-values .history-wind-direction,
.station-history-preview--single .station-history-values .history-wind-origin,
.station-history-preview--single .station-history-values .history-wind-arrow{margin:0;}
.station-history-preview--single .station-history-values .history-wind-direction{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;}
.station-history-preview--single .station-history-values .history-wind-origin{display:inline;color:#39738f;}
.station-history-preview--single .station-history-values .history-wind-arrow{display:inline-flex;}
.station-history-preview--single .station-history-link{display:inline-flex !important;align-items:center;justify-content:center;width:auto;margin-top:2px;text-decoration:none;}
@media(max-width:680px){
  .station-history-preview--single{margin:22px 0;}
  .station-history-preview--single .station-history-card--single{padding:18px;border-radius:24px;gap:14px;}
  .station-history-head{display:block;}
  .station-history-head h2{font-size:clamp(2rem,9vw,2.9rem);line-height:1.05;letter-spacing:-.04em;}
  .station-history-date--compact{display:flex;align-items:flex-start;text-align:left;margin-top:12px;gap:3px;}
  .station-history-preview--single .station-history-icon-chip,
  .history-day-icon-chip{padding:6px 9px;font-size:.8rem;}
  .station-history-preview--single .station-history-icon-chip .weather-svg,
  .station-history-preview--single .history-weather-svg,
  .history-day-icon-chip .weather-svg,
  .history-day-icon-chip .history-weather-svg{width:30px !important;height:30px !important;min-width:30px !important;max-width:30px !important;flex-basis:30px !important;}
  .station-history-preview--single .station-history-summary{font-size:1rem;line-height:1.5;margin:0;}
  .station-history-preview--single .station-history-values{grid-template-columns:1fr !important;gap:9px;}
  .station-history-preview--single .station-history-values>div{padding:12px;}
}
@media(max-width:420px){
  .station-history-preview--single .station-history-values b{font-size:.98rem;}
}


/* MeteoCaorle 1.5.28 — critical history mobile fallback also in external CSS */
#giorni-scorsi.station-history-preview--single{display:block!important;margin:28px 0!important;width:100%!important;box-sizing:border-box!important;}
#giorni-scorsi .station-history-card--single{display:flex!important;flex-direction:column!important;gap:16px!important;width:100%!important;box-sizing:border-box!important;overflow:hidden!important;background:rgba(255,255,255,.94)!important;border:1px solid rgba(8,126,184,.16)!important;border-radius:28px!important;padding:24px!important;box-shadow:0 20px 55px rgba(13,71,103,.08)!important;}
#giorni-scorsi .station-history-icon-chip svg,#giorni-scorsi svg.history-weather-svg,.history-day-icon-chip svg,.history-day-icon-chip .history-weather-svg{width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;flex:0 0 34px!important;display:block!important;margin:0!important;filter:none!important;}
@media(max-width:680px){#giorni-scorsi .station-history-card--single{padding:18px!important;border-radius:24px!important}#giorni-scorsi .station-history-head{display:block!important}#giorni-scorsi .station-history-values{grid-template-columns:1fr!important}#giorni-scorsi .station-history-icon-chip svg,#giorni-scorsi svg.history-weather-svg,.history-day-icon-chip svg,.history-day-icon-chip .history-weather-svg{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;flex-basis:30px!important}}

/* v1.5.30: forecast validation note */
.forecast-validation-note{display:grid;grid-template-columns:42px 1fr;gap:14px;align-items:start;margin:18px 0 18px;padding:17px 18px;border:1px solid rgba(8,126,184,.18);border-radius:20px;background:linear-gradient(135deg,#edf8ff,#fffef7);box-shadow:0 12px 30px rgba(10,72,104,.06)}
.forecast-validation-icon{width:42px;height:42px;border-radius:999px;display:grid;place-items:center;background:#e2f4ff;color:#0a6d9c;font-weight:900;font-size:1.15rem;border:1px solid rgba(8,126,184,.18)}
.forecast-validation-note h3{margin:0 0 5px;font-size:1.02rem;letter-spacing:-.01em;color:var(--ink)}
.forecast-validation-note p{margin:0;color:#496879;line-height:1.5;font-size:.93rem}
.forecast-validation-note a{display:inline-flex;margin-top:8px;color:#087eb8;font-weight:900;text-decoration:none}
.forecast-validation-note a:hover{text-decoration:underline}
@media(max-width:640px){.forecast-validation-note{grid-template-columns:34px 1fr;padding:14px 13px;border-radius:17px}.forecast-validation-icon{width:34px;height:34px;font-size:1rem}.forecast-validation-note h3{font-size:.98rem}.forecast-validation-note p{font-size:.86rem}}

/* v1.5.33: official data sources / licensing */
.data-sources-page{background:linear-gradient(180deg,#eaf7ff 0%,#f8fcff 42%,#ffffff 100%);color:var(--ink)}
.source-shell{width:min(1120px,calc(100% - 28px));margin:auto}.source-top{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 0}.source-hero{position:relative;overflow:hidden;border-radius:30px;padding:38px;border:1px solid rgba(8,126,184,.16);background:linear-gradient(135deg,#ffffff,#eef9ff);box-shadow:0 22px 60px rgba(11,86,128,.10)}.source-hero h1{margin:0;font-size:clamp(2.25rem,6vw,4.8rem);line-height:1;letter-spacing:-.06em}.source-hero p{max-width:760px;margin:16px 0 0;color:#496879;font-size:1.05rem;line-height:1.58}.source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.source-card{display:flex;flex-direction:column;gap:10px;border:1px solid rgba(8,126,184,.14);border-radius:24px;padding:24px;background:#fff;box-shadow:0 16px 42px rgba(8,72,110,.07)}.source-card h2{margin:0;font-size:1.35rem;letter-spacing:-.03em}.source-card p{margin:0;color:#516f7f;line-height:1.55}.source-card .source-badge{align-self:flex-start;display:inline-flex;align-items:center;border-radius:999px;background:#eaf8ff;color:#087eb8;border:1px solid rgba(8,126,184,.16);padding:6px 10px;font-size:.74rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.source-card.source-primary{background:linear-gradient(145deg,#0c5578,#08324b);color:#fff}.source-card.source-primary p{color:#c9e9f7}.source-card.source-primary .source-badge{background:rgba(255,255,255,.12);color:#dff6ff;border-color:rgba(255,255,255,.20)}.source-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.source-links a,.source-cta a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border-radius:999px;background:#087eb8;color:#fff;text-decoration:none;font-weight:900;font-size:.84rem}.source-links a.secondary,.source-cta a.secondary{background:#e8f5fb;color:#087eb8}.source-note{margin:18px 0 28px;padding:20px;border-radius:22px;border:1px dashed rgba(8,126,184,.28);background:#f7fcff;color:#476777}.source-note p{margin:.3rem 0}.source-table{width:100%;border-collapse:separate;border-spacing:0;margin:18px 0 28px;border:1px solid rgba(8,126,184,.14);border-radius:22px;overflow:hidden;background:#fff}.source-table th,.source-table td{padding:13px 14px;text-align:left;border-bottom:1px solid rgba(8,126,184,.10);vertical-align:top}.source-table th{background:#edf8ff;color:#28546a;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em}.source-table tr:last-child td{border-bottom:none}.source-small{font-size:.9rem;color:#577687}.official-sources-section{margin:22px 0;padding:22px;border-radius:24px;border:1px solid rgba(8,126,184,.16);background:linear-gradient(135deg,#f4fbff,#fff);box-shadow:0 14px 36px rgba(8,72,110,.06)}.official-sources-section h2{margin:0 0 8px;font-size:1.35rem;letter-spacing:-.03em}.official-sources-section p{margin:0 0 14px;color:#496879}.official-source-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.official-source-card{padding:16px;border-radius:18px;border:1px solid rgba(8,126,184,.13);background:#fff}.official-source-card b{display:block;margin-bottom:4px}.official-source-card span{display:block;color:#587686;font-size:.9rem;line-height:1.45}.official-source-card a{display:inline-flex;margin-top:10px;color:#087eb8;font-weight:900;text-decoration:none}@media(max-width:760px){.source-top{align-items:flex-start;flex-direction:column}.source-grid,.official-source-cards{grid-template-columns:1fr}.source-hero{padding:26px 20px;border-radius:24px}.source-card{padding:20px}.source-table{display:block;overflow-x:auto}.official-sources-section{padding:18px}}

/* v1.5.35: Radar-DPC official beta preview on radar page */
.dpc-beta-section {
  margin: 22px 0;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(8,126,184,.16);
  background: linear-gradient(135deg,#f7fcff,#ffffff);
  box-shadow: 0 14px 38px rgba(8,72,110,.07);
}
.dpc-beta-heading { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:16px; }
.dpc-beta-heading h2 { margin:.1rem 0 .45rem; font-size:clamp(1.35rem,2.5vw,1.9rem); letter-spacing:-.03em; }
.dpc-beta-heading p:last-child { margin:0; max-width:860px; color:#496879; line-height:1.55; }
.dpc-beta-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.dpc-beta-card { padding:14px; border:1px solid rgba(8,126,184,.14); border-radius:22px; background:#fff; }
.dpc-beta-card h3 { margin:0 0 10px; font-size:1rem; }
.dpc-beta-map { position:relative; display:block; overflow:hidden; border-radius:18px; border:1px solid #d5e6ee; background:#dce9ef; aspect-ratio:1000/620; color:#0a6d9f; text-decoration:none; isolation:isolate; }
.dpc-beta-basemap, .dpc-beta-basemap img, .dpc-beta-layer { position:absolute; inset:0; width:100%; height:100%; display:block; }
.dpc-beta-basemap img { object-fit:fill; filter:saturate(1.02) contrast(1.01); }
.dpc-beta-layer { object-fit:cover; mix-blend-mode:multiply; opacity:.76; image-rendering:auto; filter:saturate(1.25) contrast(1.04); z-index:2; }
.dpc-beta-card.ir .dpc-beta-layer { opacity:.58; mix-blend-mode:multiply; filter:saturate(1.05) contrast(1.08); }
.dpc-beta-card.vmi .dpc-beta-layer, .dpc-beta-card.sri .dpc-beta-layer { filter:saturate(1.35) contrast(1.08); }
.dpc-beta-caorle { position:absolute; left:50%; top:55%; transform:translate(-50%,-50%); z-index:4; display:inline-flex; align-items:center; justify-content:center; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,.88); color:#09364f; font-size:.72rem; font-weight:950; box-shadow:0 5px 18px rgba(8,72,110,.18); }
.dpc-beta-caorle::before { content:''; width:8px; height:8px; margin-right:5px; border-radius:50%; background:#0b8dcc; box-shadow:0 0 0 3px rgba(255,255,255,.85); }
.dpc-beta-error { display:none; position:absolute; inset:auto 10px 10px; z-index:6; padding:8px 10px; border-radius:14px; background:rgba(255,255,255,.92); color:#9a3b2d; font-weight:850; font-size:.8rem; }
.dpc-beta-card.is-broken .dpc-beta-error { display:block; }
.dpc-beta-card.is-broken .dpc-beta-layer { display:none; }
.dpc-beta-legend { margin:14px 0 0; color:#496879; line-height:1.5; }
.dpc-beta-credit { margin:8px 0 0; color:#6b7f8d; font-size:.82rem; }
@media(max-width:900px){.dpc-beta-grid{grid-template-columns:1fr}.dpc-beta-heading{flex-direction:column;gap:8px}.dpc-beta-section{padding:19px}}
@media(max-width:520px){.dpc-beta-section{border-radius:22px;padding:16px}.dpc-beta-card{padding:11px;border-radius:18px}.dpc-beta-map{border-radius:15px}.dpc-beta-caorle{font-size:.66rem}}

/* v1.5.37: Radar-DPC beta mosaic overlay - 3x3 cache-aligned tiles */
.dpc-beta-mosaic { position:absolute; inset:0; display:block; z-index:2; overflow:hidden; }
.dpc-beta-mosaic .dpc-beta-layer { position:absolute; width:33.3334%; height:33.3334%; object-fit:cover; display:block; }
.dpc-beta-mosaic .tile-0 { left:0; top:0; }
.dpc-beta-mosaic .tile-1 { left:33.3333%; top:0; }
.dpc-beta-mosaic .tile-2 { left:66.6666%; top:0; }
.dpc-beta-mosaic .tile-3 { left:0; top:33.3333%; }
.dpc-beta-mosaic .tile-4 { left:33.3333%; top:33.3333%; }
.dpc-beta-mosaic .tile-5 { left:66.6666%; top:33.3333%; }
.dpc-beta-mosaic .tile-6 { left:0; top:66.6666%; }
.dpc-beta-mosaic .tile-7 { left:33.3333%; top:66.6666%; }
.dpc-beta-mosaic .tile-8 { left:66.6666%; top:66.6666%; }
.dpc-beta-card.is-broken .dpc-beta-mosaic { opacity:.28; }

/* MeteoCaorle v1.5.38 — radar freshness and DPC beta clarity */
.radar-status-card.is-stale{
  border-color: rgba(210, 124, 28, .35);
  background: linear-gradient(135deg, rgba(255, 244, 223, .95), rgba(255,255,255,.92));
}
.radar-status-card.is-stale b{ color:#9a4f09; }
.mc-radar-stale-badge{
  position:absolute;
  left:1rem;
  top:3.5rem;
  z-index:4;
  display:inline-flex;
  align-items:center;
  padding:.42rem .72rem;
  border-radius:999px;
  background:rgba(255,244,223,.92);
  color:#8b4300;
  font-weight:800;
  font-size:.86rem;
  box-shadow:0 8px 22px rgba(91,55,0,.14);
  backdrop-filter:blur(8px);
}
.dpc-beta-note{
  margin:.75rem 0 0;
  padding:.78rem .95rem;
  border:1px solid rgba(244,174,62,.45);
  border-radius:1rem;
  background:rgba(255,248,226,.78);
  color:#684208;
  font-weight:700;
}
@media (max-width: 760px){
  .mc-radar-stale-badge{left:.8rem;top:3.1rem;font-size:.78rem;}
}


/* v1.5.40 — Radar-DPC compact public panel */
.dpc-panel{margin:22px 0;padding:22px 24px 18px;border-radius:28px;border:1px solid rgba(8,126,184,.13);background:#f7fcff;box-shadow:0 8px 28px rgba(8,72,110,.05)}
.dpc-panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.dpc-panel-header h2{margin:.1rem 0 0;font-size:clamp(1.1rem,2vw,1.45rem);letter-spacing:-.025em}
.dpc-panel-source-link{flex-shrink:0;font-size:.82rem;color:#0a6d9f;text-decoration:none;border-bottom:1px solid rgba(10,109,159,.3);font-weight:900}
.dpc-panel-body{margin-bottom:14px}.dpc-panel-lead{margin:0 0 10px;color:#496879;font-size:.9rem}
.dpc-indicator-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.dpc-indicator{display:inline-flex;align-items:center;gap:6px;padding:5px 12px 5px 9px;border-radius:999px;background:#fff;border:1px solid rgba(8,126,184,.18);font-size:.82rem;font-weight:900;color:#09364f}.dpc-indicator-dot{width:9px;height:9px;border-radius:50%;background:#b0c8d5;flex-shrink:0}.dpc-indicator-label{font-weight:600;color:#496879}.dpc-indicator.sri .dpc-indicator-dot{background:#a9d9cf}.dpc-indicator.vmi .dpc-indicator-dot{background:#c9d5e0}.dpc-indicator.ir .dpc-indicator-dot{background:#cdd7e2}
.dpc-panel-note-inline{margin:0;font-size:.84rem;color:#5d7787;line-height:1.5}.dpc-panel-note-muted{margin-top:5px;color:#7a8c98;font-size:.8rem}.dpc-panel-toggle-row{border-top:1px solid rgba(8,126,184,.1);padding-top:14px}.dpc-toggle-btn{background:none;border:1px solid rgba(8,126,184,.25);border-radius:999px;padding:6px 16px;font-size:.82rem;font-weight:800;color:#0a6d9f;cursor:pointer;transition:background .15s,border-color .15s}.dpc-toggle-btn:hover{background:rgba(8,126,184,.07);border-color:rgba(8,126,184,.4)}.dpc-layer-detail{margin-top:18px}
@media(max-width:900px){.dpc-panel-header{flex-direction:column;gap:6px}.dpc-panel{padding:18px 18px 16px}}
@media(max-width:520px){.dpc-panel{border-radius:20px;padding:15px 14px 13px}.dpc-indicator{font-size:.78rem}.dpc-panel-source-link{font-size:.8rem}}


/* v1.5.41 — Radar-DPC back to lab: public panel without technical maps */
.dpc-panel-back-to-lab .dpc-panel-body {
  max-width: 920px;
}
.dpc-panel-back-to-lab .dpc-indicator-row {
  margin-top: 10px;
}
.dpc-panel-back-to-lab .dpc-indicator {
  background: rgba(255,255,255,.75);
}
.dpc-panel-back-to-lab .dpc-indicator-dot {
  background: #d5e2ea;
}


/* MeteoCaorle v1.5.59: local wind names and safer embed previews */
.wind-local-name{font-weight:900;color:var(--ink);white-space:nowrap}
.wind-reading.is-compact .wind-local-name{font-size:.86em}
.embed-demo-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;align-items:stretch}
.embed-preview{overflow:hidden;display:flex;flex-direction:column;min-height:0}
.embed-preview iframe{display:block;width:100%;max-width:100%;border:0;border-radius:18px;background:#fff;overflow:hidden}
.embed-code{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:none;overflow:auto}
@media(max-width:760px){.embed-demo-grid{grid-template-columns:1fr}.embed-preview{padding:16px}}


/* MeteoCaorle v1.5.59 · internal page footer + sources/embed polish */
.site-footer--internal{margin-top:34px;background:rgba(255,255,255,.58)}
.site-footer--internal .footer-inner{align-items:flex-start}
@media(max-width:720px){.site-footer--internal .footer-inner{display:block}.site-footer--internal .footer-inner>span+span{display:block;margin-top:10px}}

.source-top .brand.source-brand{max-width:min(420px,72vw);display:inline-flex}
.source-top .brand.source-brand img{display:block;width:100%;height:auto;max-height:160px;object-fit:contain}
.source-hero h1{font-size:clamp(2.15rem,4.7vw,3.9rem);line-height:1.03}
.source-grid--current{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.source-grid--current .source-card{min-width:0}
.source-grid--current .source-card.source-primary{order:-1}
@media(max-width:720px){.source-top{display:block}.source-top .language-switch{margin-top:12px}.source-hero{padding:26px 22px;border-radius:24px}.source-hero h1{font-size:clamp(2rem,9vw,3rem)}}

.embed-demo-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start}
.embed-preview{overflow:hidden}
.embed-preview h2{font-size:clamp(1.55rem,3.2vw,2.35rem);line-height:1.08;margin-bottom:8px}
.embed-preview iframe{display:block;width:100%;max-width:100%;border:0}
.embed-code{white-space:pre;max-width:100%}



/* MeteoCaorle v1.5.59 · fonti dati  */



/* MeteoCaorle v1.5.59 · standard internal page header */






.source-main{padding-top:0}
@media(max-width:720px){
  
  
  
  
}


/* MeteoCaorle v1.5.59 · radar-like internal topbar */
.internal-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px 0 12px;
}
.internal-topbar .radar-back{margin:0}
.page-lang-switch{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.page-lang-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:36px;
  padding:7px 11px;
  border:1px solid #cfe5ef;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:#0d4f78;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.03em;
}
.page-lang-switch a.active{
  background:#087eb8;
  border-color:#087eb8;
  color:#fff;
}
.source-main{padding-top:0}
@media(max-width:720px){
  .internal-topbar{
    display:block;
    padding:16px 0 10px;
  }
  .page-lang-switch{
    justify-content:flex-start;
    margin-top:12px;
  }
}

/* MeteoCaorle 1.5.59 — nowcast pubblico a 4 livelli: nota, box, banner, avviso forte */
.nowcast-banner.severity-warning {
  border-color:#f2c447;
  background:linear-gradient(135deg,#fff8df,#fffdf5);
  box-shadow:0 12px 30px rgba(147,103,12,.10);
}
.nowcast-banner.severity-warning .nowcast-symbol { background:#f4c43d; color:#5f4200; }
.nowcast-banner.severity-warning .eyebrow { color:#795800; }
.nowcast-banner.severity-severe {
  border-color:#e26a4f;
  background:linear-gradient(135deg,#ffe2d9,#fff5f1);
  box-shadow:0 14px 34px rgba(150,44,28,.15);
}
.nowcast-banner.severity-severe .nowcast-symbol { background:#d85643; color:#fff; }
.nowcast-banner.severity-severe .eyebrow { color:#9b3929; }
.nowcast-live.tier-weak_unconfirmed,
.nowcast-live.tier-moderate {
  border-color:rgba(111,155,178,.28);
  background:linear-gradient(135deg,#f8fcfe,#ffffff);
  box-shadow:0 12px 32px rgba(23,56,74,.06);
}
.nowcast-live.tier-weak_unconfirmed .eyebrow,
.nowcast-live.tier-moderate .eyebrow { color:#557488; }
.nowcast-live.tier-weak_unconfirmed .nowcast-live-step,
.nowcast-live.tier-moderate .nowcast-live-step { background:#fff; border-color:rgba(10,72,104,.10); }
.nowcast-live.tier-weak_unconfirmed .nowcast-live-step.phase-approaching,
.nowcast-live.tier-moderate .nowcast-live-step.phase-approaching { background:#f7fbfd; border-color:rgba(111,155,178,.22); }

/* MeteoCaorle 1.5.73 · segnalazioni meteo locali */
.local-weather-report-card {
  margin: 18px 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(8,126,184,.16);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(237,248,253,.94));
  box-shadow: 0 16px 42px rgba(10,72,104,.09);
}
.local-weather-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}
.local-weather-report-heading h2 { margin: .12rem 0 .45rem; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.local-weather-report-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
.local-weather-report-privacy {
  flex: 0 0 auto;
  max-width: 230px;
  padding: 8px 12px;
  border: 1px solid rgba(8,126,184,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  font-size: .76rem;
  font-weight: 750;
  text-align: center;
}
.weather-report-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}
.weather-report-option {
  min-height: 94px;
  border: 1px solid rgba(8,126,184,.15);
  border-radius: 18px;
  padding: 12px 9px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font: inherit;
  font-weight: 820;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(10,72,104,.06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.weather-report-option:hover,
.weather-report-option:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(8,126,184,.45);
  background: #fff;
  box-shadow: 0 12px 24px rgba(10,72,104,.12);
  outline: none;
}
.weather-report-option:disabled {
  cursor: not-allowed;
  opacity: .5;
  transform: none;
  box-shadow: none;
}
.weather-report-icon { display: block; margin-bottom: 7px; font-size: 1.85rem; line-height: 1; }
.weather-report-label { display: block; font-size: .84rem; }
.weather-report-loading { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.weather-report-footer { display: grid; gap: 8px; margin-top: 13px; }
.weather-report-status,
.weather-report-summary { margin: 0; font-size: .86rem; line-height: 1.45; }
.weather-report-status { min-height: 1.2em; color: var(--muted); }
.weather-report-status.success { color: #137149; font-weight: 800; }
.weather-report-status.error { color: #a83c31; font-weight: 800; }
.weather-report-summary {
  width: fit-content;
  padding: 9px 12px;
  border-radius: 13px;
  background: rgba(8,126,184,.08);
  color: #164e6c;
  font-weight: 780;
}
.weather-report-summary.confirmed { background: rgba(37,157,105,.11); color: #12613f; }
.weather-report-summary.mixed { background: rgba(242,176,49,.14); color: #78520c; }
@media (max-width: 680px) {
  .local-weather-report-heading { display: block; }
  .local-weather-report-privacy { width: fit-content; max-width: none; margin-top: 12px !important; }
  .weather-report-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .weather-report-option { min-height: 88px; padding: 10px 6px; border-radius: 16px; }
  .weather-report-label { font-size: .76rem; }
}
@media (max-width: 390px) {
  .weather-report-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 1.5.74 · Skycam integrata solo nelle condizioni attuali. */
.skycam-badge {
  background:#e8f1f5;
  color:#285365;
  border-color:#bfd6df;
}
.vision-node-applied {
  font-size:.68rem;
  font-weight:750;
  opacity:.72;
}


/* v1.5.77 — metodo pubblico semplice */
.method-grid-simple { grid-template-columns:repeat(2,minmax(0,1fr)); }
.method-card-simple { min-height:0; padding:23px; }
.method-icon { display:grid; place-items:center; width:54px; height:54px; margin-bottom:18px; border:1px solid #d9eaf2; border-radius:18px; background:#eef8fd; font-size:1.75rem; box-shadow:0 8px 20px rgba(13,71,103,.06); }
.method-card-simple h3 { font-size:1.15rem; }
.method-card-simple p { font-size:.94rem; color:#4f6877; }
.confidence-explainer-simple { margin-top:18px; }
@media(max-width:700px){.method-grid-simple{grid-template-columns:1fr}.method-card-simple{padding:20px}.method-icon{width:50px;height:50px;margin-bottom:15px}}


/* MeteoCaorle 1.5.79 — la home mostra nowcast solo con conferme operative.
   Quando esiste già un banner severo, il box sottostante è soltanto la timeline
   e non ripete titolo e testo dell'allerta. */
.nowcast-live.is-banner-companion {
  margin-top: 10px;
  padding-top: 14px;
  background: linear-gradient(135deg,#fff8f5,#ffffff);
}
.nowcast-live.is-banner-companion .nowcast-live-head p:not(.eyebrow) { display:none; }
.nowcast-live.is-banner-companion .nowcast-live-meta strong { display:none; }


/* v1.5.84 — richiamo app Android e guida iPhone/iPad */
.header-store-badge { padding:5px 10px 5px 8px; gap:8px; text-align:left; }
.header-store-icons { display:flex; align-items:center; gap:1px; flex:0 0 auto; }
.android-mini-icon { width:21px; height:21px; color:#fff; }
.play-mini-icon { width:19px; height:19px; margin-left:-3px; filter:drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.header-store-copy { display:grid; line-height:1.02; }
.header-store-copy small { color:rgba(255,255,255,.78); font-size:.56rem; font-weight:750; letter-spacing:.02em; }
.header-store-copy strong { color:#fff; font-size:.78rem; font-weight:900; white-space:nowrap; }

.app-promo {
  margin:26px 0;
  padding:clamp(22px,3vw,34px);
  border:1px solid rgba(8,126,184,.18);
  border-radius:30px;
  background:linear-gradient(135deg,#f7fcff 0%,#edf8fd 58%,#fff8e8 100%);
  box-shadow:0 20px 55px rgba(13,71,103,.08);
  overflow:hidden;
}
.app-promo-heading { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom:20px; }
.app-promo-heading h2 { margin:.2rem 0 0; font-size:clamp(1.7rem,3vw,2.55rem); line-height:1.08; letter-spacing:-.04em; }
.app-promo-heading > p { max-width:640px; margin:0; color:var(--muted); line-height:1.6; }
.app-promo-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.app-promo-card { display:grid; grid-template-columns:74px 1fr; gap:18px; min-width:0; padding:22px; border-radius:24px; border:1px solid rgba(8,126,184,.14); background:rgba(255,255,255,.88); }
.app-promo-card--android { background:linear-gradient(145deg,#f7fff8,#eefcf1); border-color:rgba(40,160,70,.22); }
.app-promo-card--ios { background:linear-gradient(145deg,#f8fbff,#eef5ff); border-color:rgba(38,112,208,.18); }
.app-platform-icon { display:grid; place-items:center; width:68px; height:68px; border-radius:21px; }
.app-platform-icon svg { width:46px; height:46px; }
.app-platform-icon--android { background:#daf5df; color:#2b9d48; }
.app-platform-icon--ios { background:#e2efff; color:#176ec2; }
.app-promo-copy { min-width:0; }
.app-platform-name { display:block; color:var(--muted); font-size:.72rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.app-promo-copy h3 { margin:.25rem 0 .5rem; font-size:1.22rem; line-height:1.2; }
.app-promo-copy > p { margin:0 0 15px; color:var(--muted); line-height:1.5; }
.google-play-badge { display:inline-flex; align-items:center; gap:10px; min-width:205px; width:fit-content; padding:8px 15px 8px 10px; border-radius:14px; background:#111; color:#fff; text-decoration:none; box-shadow:0 10px 24px rgba(0,0,0,.18); transition:transform .16s ease,box-shadow .16s ease; }
.google-play-badge:hover { color:#fff; transform:translateY(-2px); box-shadow:0 14px 30px rgba(0,0,0,.23); }
.google-play-mark { width:38px; height:38px; flex:0 0 auto; }
.google-play-badge span { display:grid; line-height:1.05; }
.google-play-badge small { color:#d7d7d7; font-size:.67rem; font-weight:700; }
.google-play-badge strong { color:#fff; font-size:1.12rem; font-weight:850; white-space:nowrap; }
.ios-home-steps { display:grid; gap:8px; margin:14px 0 0; padding:0; list-style:none; }
.ios-home-steps li { display:grid; grid-template-columns:26px 24px 1fr; align-items:center; gap:7px; min-height:34px; color:#22455b; font-weight:750; }
.ios-home-steps li:first-child { grid-template-columns:26px 1fr; }
.ios-step-number { display:grid; place-items:center; width:25px; height:25px; border-radius:999px; background:#dcecff; color:#176ec2; font-size:.72rem; font-weight:950; }
.ios-share-symbol,.ios-home-symbol { display:grid; place-items:center; width:24px; height:24px; color:#176ec2; font-size:1.45rem; font-weight:700; }
.ios-share-symbol svg { width:22px; height:22px; }
body.mc-platform-android .app-promo-grid,body.mc-platform-ios .app-promo-grid { grid-template-columns:1fr; }
body.mc-platform-android .app-promo-card--ios { display:none; }
body.mc-platform-ios .app-promo-card--android { display:none; }
body.mc-platform-ios #play-store-link,body.mc-platform-ios #footer-play-store-link { display:none!important; }
body.mc-display-standalone #app-promo,body.mc-display-standalone #play-store-link,body.mc-display-standalone #footer-play-store-link { display:none!important; }
@media (max-width:850px) {
  .app-promo-heading { display:block; }
  .app-promo-heading > p { margin-top:10px; }
  .app-promo-grid { grid-template-columns:1fr; }
}
@media (max-width:680px) {
  .header-store-badge { flex:1.35; }
  .header-store-copy small { font-size:.53rem; }
  .header-store-copy strong { font-size:.72rem; }
  .app-promo { padding:19px; border-radius:25px; }
  .app-promo-card { grid-template-columns:56px 1fr; gap:13px; padding:17px; border-radius:21px; }
  .app-platform-icon { width:54px; height:54px; border-radius:17px; }
  .app-platform-icon svg { width:36px; height:36px; }
  .google-play-badge { width:100%; min-width:0; justify-content:center; }
}
@media (max-width:410px) {
  .header-store-icons .android-mini-icon { display:none; }
  .header-store-badge { padding-left:7px; gap:5px; }
  .app-promo-card { grid-template-columns:1fr; }
  .app-platform-icon { width:50px; height:50px; }
}


/* 1.5.85: richiamo App compatto in home e sottopagina dedicata */
.header-app-link { min-width: 112px; text-decoration: none; }
.header-app-link .header-store-copy strong { letter-spacing: .01em; }
.phone-mini-icon { width: 24px; height: 24px; }

.app-info-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,226,145,.28), transparent 30rem),
    linear-gradient(180deg, #eefaff 0%, #f8fcff 55%, #fff 100%);
  color: var(--ink, #08263a);
}
.app-page-header { padding: 20px clamp(18px,4vw,54px); }
.app-page-header-inner {
  width: min(1120px,100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.app-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0c4166;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(1.45rem,3vw,2rem);
}
.app-page-brand img { width: 58px; height: 58px; object-fit: contain; }
.app-page-brand em { color: #4dabe2; font-style: normal; }
.app-page-actions { display: flex; align-items: center; gap: 16px; }
.app-page-back { color: #0b6e9e; font-weight: 800; text-decoration: none; }
.app-page-languages {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #cfe3ee;
  border-radius: 15px;
  background: rgba(255,255,255,.9);
}
.app-page-languages a {
  min-width: 38px;
  padding: 7px 9px;
  border-radius: 11px;
  color: #42677c;
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}
.app-page-languages a.active { color: #075c88; background: #e4f5fd; }
.app-page-main { width: min(1120px,calc(100% - 36px)); margin: 18px auto 48px; }
.app-page-hero { max-width: 780px; margin-bottom: 28px; }
.app-page-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.15rem,5vw,4.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.app-page-hero > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #547284;
  font-size: clamp(1.05rem,2vw,1.25rem);
  line-height: 1.65;
}
.app-page-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.app-page-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 20px;
  min-height: 380px;
  padding: clamp(24px,4vw,38px);
  border: 1px solid #cbe0ea;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(41,94,121,.09);
}
.app-page-card--android { background: linear-gradient(145deg,#f2fff5,#fff); }
.app-page-card--ios { background: linear-gradient(145deg,#eef6ff,#fff); }
.app-page-card h2 {
  margin: 6px 0 12px;
  font-size: clamp(1.45rem,2.5vw,2rem);
  line-height: 1.12;
}
.app-page-card p { color: #5e7788; line-height: 1.6; }
.app-page-card .google-play-badge { margin-top: 18px; }
.app-page-done {
  margin: 18px 0 0;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  color: #315c77 !important;
  font-weight: 750;
}
.app-page-footer {
  width: min(1120px,calc(100% - 36px));
  margin: 0 auto 34px;
  padding: 22px 0;
  border-top: 1px solid #d6e5ec;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #607989;
  font-size: .92rem;
}
.app-page-footer a { color: #176f9d; }
@media (max-width: 760px) {
  .app-page-header-inner, .app-page-actions, .app-page-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .app-page-actions { width: 100%; gap: 10px; }
  .app-page-grid { grid-template-columns: 1fr; }
  .app-page-card {
    grid-template-columns: 54px 1fr;
    min-height: 0;
    padding: 22px;
  }
  .app-page-card .app-platform-icon { width: 54px; height: 54px; }
}


/* 1.5.125 · dettagli correnti: mare compatto + pioggia reale dalla stazione */
.sea-temperature-reading,.rain-rate-reading { display:flex; flex-direction:column; gap:2px; }
.sea-temperature-reading strong,.rain-rate-reading strong { display:block; color:#075d8a; font-size:1.05rem; }
.sea-temperature-reading small,.rain-rate-reading small { display:block; color:var(--muted); font-size:.66rem; font-weight:700; line-height:1.2; }
.sea-temperature-detail { background:linear-gradient(145deg,rgba(240,251,255,.95),rgba(231,247,252,.88)); }
.rain-rate-detail { background:linear-gradient(145deg,rgba(244,251,255,.95),rgba(235,247,252,.90)); }
.sea-temperature-detail > b,.rain-rate-detail > b { min-width:0; }
.current-details .sea-temperature-detail,.current-details .rain-rate-detail { grid-column:auto; }
@media (min-width:851px) {
  .current-details { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* 1.5.89 · storico: direzione raffica + massima percepita */
.history-secondary-reading{
  display:block !important;
  margin-top:7px !important;
  color:var(--muted);
  font-size:.78rem !important;
  font-weight:800 !important;
  line-height:1.25;
}
.history-secondary-reading strong{
  color:var(--ink);
  font:inherit;
  font-weight:950;
}
.history-wind-direction{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-left:6px;
  white-space:nowrap;
  vertical-align:middle;
}
.history-wind-origin{
  color:#39738f;
  font-size:.78em;
  font-weight:900;
}
.history-wind-arrow{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  width:23px;
  height:23px;
  border-radius:8px;
  background:rgba(8,126,184,.10);
  border:1px solid rgba(8,126,184,.15);
  color:#087eb8;
  line-height:1;
  transform:none;
  transform-origin:center;
  vertical-align:middle;
}
.history-wind-arrow svg{width:18px;height:18px;display:block;margin:0 auto;overflow:visible;transform:rotate(var(--history-wind-angle,0deg));transform-origin:50% 50%;transform-box:view-box}
.history-wind-arrow path{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.history-wind-arrow .wind-shaft,.history-wind-arrow .wind-head{stroke-width:2}
.history-wind-arrow .wind-tail{stroke-width:1.65;opacity:.58}
@media(max-width:520px){
  .history-wind-direction{margin-left:4px}
}

/* 1.5.94 · Curiosità meteo + Oggi a Caorle */
.home-extra-section{
  margin:24px 0 0;
  padding:28px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.9);
  box-shadow:0 12px 38px rgba(13,71,103,.07);
}
.home-extra-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:18px;
}
.home-extra-heading h2{font-size:clamp(1.55rem,3vw,2rem)}
.home-extra-heading p:not(.eyebrow){margin:8px 0 0;color:var(--muted);line-height:1.55;max-width:760px}
.curiosities-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.curiosity-card{
  min-width:0;
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:13px;
  align-items:start;
  padding:17px;
  border:1px solid rgba(8,126,184,.12);
  border-radius:20px;
  background:linear-gradient(145deg,#fff,#f4fafd);
}
.curiosity-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:15px;
  background:#eaf7fc;
  font-size:1.45rem;
}
.curiosity-copy{min-width:0}
.curiosity-copy strong{display:block;color:var(--ink);font-size:1rem;line-height:1.3}
.curiosity-copy p{margin:7px 0 6px;color:#365568;font-size:.9rem;line-height:1.45}
.curiosity-copy small{display:block;color:var(--muted);font-size:.72rem;font-weight:750}
.curiosity-card.is-loading{grid-column:1/-1}
.events-heading{align-items:center}
.events-calendar-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border:1px solid rgba(8,126,184,.16);
  border-radius:999px;
  background:#e9f6fb;
  color:var(--blue-dark);
  text-decoration:none;
  font-size:.82rem;
  font-weight:900;
  white-space:nowrap;
}
.events-calendar-link:hover{background:#dff2fa}
.today-events-list{display:grid;gap:9px}
.today-event-card{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:13px;
  align-items:center;
  padding:13px 15px;
  border:1px solid rgba(8,126,184,.11);
  border-radius:18px;
  background:#f8fcfe;
}
.event-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#eaf7fc;font-size:1.25rem}
.event-copy{min-width:0}
.event-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:3px}
.event-time{color:var(--blue-dark);font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.event-confirmed{display:inline-flex;padding:3px 7px;border-radius:999px;background:#e7f5e9;color:#2f7542;font-size:.66rem;font-weight:850}
.today-event-card h3{margin:0;font-size:1rem;line-height:1.3}
.today-event-card h3 a{color:var(--ink);text-decoration:none}
.today-event-card h3 a:hover{text-decoration:underline;text-decoration-color:#8ccbe7;text-underline-offset:3px}
.event-location{margin:4px 0 0;color:var(--muted);font-size:.82rem;line-height:1.35}
.event-weather{margin-top:6px;color:#356c83;font-size:.77rem;font-weight:800}
.event-weather.is-wet{color:#8a5a00}
.events-empty,.events-loading{padding:15px;border:1px dashed rgba(8,126,184,.18);border-radius:16px;color:var(--muted);background:#f8fcfe}
.events-sources{margin:12px 2px 0;color:var(--muted);font-size:.72rem}
.events-sources a{color:var(--blue-dark)}
@media(max-width:860px){
  .curiosities-grid{grid-template-columns:1fr}
  .home-extra-heading{align-items:flex-start}
}
@media(max-width:560px){
  .home-extra-section{padding:21px 17px;border-radius:24px}
  .home-extra-heading{display:block;margin-bottom:15px}
  .events-calendar-link{margin-top:12px}
  .curiosity-card{grid-template-columns:40px minmax(0,1fr);padding:14px}
  .curiosity-icon{width:40px;height:40px;border-radius:13px;font-size:1.25rem}
  .today-event-card{grid-template-columns:40px minmax(0,1fr);padding:12px}
  .event-icon{width:38px;height:38px;border-radius:12px}
}


/* 1.5.115 · Dual SkyCam Nord/Sud + Vision Node */
.sky-vision-section{margin:18px 0 22px;padding:24px;border:1px solid #d9e8ef;border-radius:26px;background:linear-gradient(135deg,#f8fcfe,#eef8fc);box-shadow:0 12px 34px rgba(13,71,103,.07)}
.sky-vision-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.sky-vision-heading h2{margin:.15rem 0 .35rem;font-size:clamp(1.45rem,3vw,2rem)}.sky-vision-summary{margin:0;color:#456576;font-weight:650}.sky-vision-live{white-space:nowrap;border:1px solid #bfe2ef;background:#fff;color:#087eb8;border-radius:999px;padding:7px 11px;font-size:.78rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.sky-vision-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sky-vision-card{overflow:hidden;background:#fff;border:1px solid #dceaf0;border-radius:20px;padding:12px;box-shadow:0 8px 24px rgba(13,71,103,.06)}.sky-vision-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 2px 9px}.sky-vision-card-head strong{font-size:1.05rem}.sky-vision-card-head span{font-weight:900;color:#087eb8}.sky-vision-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;background:#dce8ee}.sky-vision-card p{margin:10px 3px 2px;color:#4d6877}.sky-vision-note{margin:13px 2px 0;color:#6a818e;font-size:.86rem}@media(max-width:720px){.sky-vision-section{padding:18px}.sky-vision-heading{display:block}.sky-vision-live{display:inline-flex;margin-top:10px}.sky-vision-grid{grid-template-columns:1fr}}

/* MeteoCaorle 1.5.116 — radar georeferenziato reale (OSM + RainViewer XYZ) */
.mc-georadar-stage{--mc-radar-cx:50%;--mc-radar-cy:50%;background:#dcebf1;isolation:isolate}
.mc-georadar-map{position:absolute;inset:0;overflow:hidden;background:#dcebf1;z-index:1}
.mc-map-tile-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.mc-map-base-layer{z-index:1;background:#e7eef0}
.mc-map-radar-layer{z-index:3}
.mc-map-tile{position:absolute;display:block;max-width:none!important;user-select:none;-webkit-user-drag:none}
.mc-map-base-tile{filter:saturate(.82) contrast(.96) brightness(1.04)}
.mc-map-radar-tile{opacity:.74;filter:saturate(1.16) contrast(1.05);pointer-events:none}
.mc-radar-rings{position:absolute;inset:0;z-index:5;pointer-events:none}
.mc-georadar-map .mc-radar-ring{left:50%!important;top:50%!important;width:0;height:0;aspect-ratio:auto!important;transform:translate(-50%,-50%)!important;border:1px solid rgba(255,255,255,.88);box-shadow:0 0 0 1px rgba(8,126,184,.22);border-radius:50%;z-index:5}
.mc-georadar-map .mc-radar-ring i{position:absolute;left:50%;top:2px;transform:translate(-50%,-50%);font-style:normal;font-size:.68rem;font-weight:850;color:#0b506f;background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.94);border-radius:999px;padding:1px 5px;white-space:nowrap;box-shadow:0 3px 9px rgba(10,72,104,.10)}
.mc-georadar-map .mc-radar-station{left:50%!important;top:50%!important;z-index:9}
.mc-georadar-stage .mc-radar-sweep{z-index:7;opacity:.18;background:conic-gradient(from 0deg at 50% 50%,transparent 0deg,rgba(255,255,255,.03) 8deg,rgba(255,255,255,.24) 20deg,rgba(9,126,184,.08) 31deg,transparent 43deg,transparent 360deg);transform-origin:50% 50%}
.mc-georadar-stage .mc-radar-toolbar{z-index:20}
.mc-georadar-map .mc-radar-map-note{z-index:12}
.mc-georadar-map .mc-radar-stale-badge{z-index:12}
.mc-radar-map-attribution{position:absolute;right:12px;bottom:70px;z-index:12;background:rgba(255,255,255,.82);backdrop-filter:blur(7px);border:1px solid rgba(255,255,255,.94);border-radius:8px;padding:3px 7px;font-size:.62rem;line-height:1.2;color:#385a6c;box-shadow:0 5px 14px rgba(10,72,104,.08)}
.mc-radar-map-attribution a{color:#235a73;text-decoration:none}.mc-radar-map-attribution a:hover{text-decoration:underline}
.mc-georadar-stage .mc-radar-empty{z-index:15;background:rgba(242,248,251,.78);backdrop-filter:blur(2px)}
@media(max-width:520px){
  .mc-map-radar-tile{opacity:.78}
  .mc-radar-map-attribution{right:8px;bottom:58px;font-size:.52rem;padding:2px 5px;max-width:68%;text-align:right}
  .mc-georadar-map .mc-radar-ring i{font-size:.56rem;padding:1px 4px}
}


/* v1.5.129 — visual explainers: simpler copy, images first */
.method-visual{margin:24px 0 4px;border:1px solid #dbeaf1;border-radius:24px;overflow:hidden;background:linear-gradient(145deg,#eaf8fd,#fff);box-shadow:0 12px 28px rgba(13,71,103,.08)}
.method-visual img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.method-visual-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.method-visual-card{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:stretch;min-height:145px;overflow:hidden;border:1px solid #dceaf1;border-radius:20px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 8px 22px rgba(13,71,103,.05);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.method-visual-card:hover{transform:translateY(-2px);border-color:#b9dce9;box-shadow:0 12px 28px rgba(13,71,103,.09)}
.method-visual-card img{width:100%;height:100%;min-height:145px;object-fit:cover}
.method-visual-card>span{display:flex;flex-direction:column;justify-content:center;padding:18px}
.method-visual-card strong{font-size:1.05rem;line-height:1.25}
.method-visual-card small{display:block;margin-top:7px;color:var(--muted);font-size:.87rem;line-height:1.5}
@media(max-width:800px){.method-visual-links{grid-template-columns:1fr}.method-visual-card{grid-template-columns:145px minmax(0,1fr)}}
@media(max-width:520px){.method-visual-card{grid-template-columns:1fr}.method-visual-card img{height:auto;aspect-ratio:16/8;min-height:0}.method-visual-card>span{padding:16px}}

/* v1.5.136 — mobile/WebView guard for visual explainers */
#metodo.method-section{max-width:100%;box-sizing:border-box;overflow:hidden}
#metodo .method-visual,#metodo .method-visual-links,#metodo .method-visual-card{min-width:0;max-width:100%;box-sizing:border-box}
#metodo .method-visual{width:100%;margin-left:0;margin-right:0;overflow:hidden}
#metodo .method-visual img{display:block;width:100%;max-width:100%;height:auto}
#metodo .method-visual-card img{max-width:100%;box-sizing:border-box}
@media(max-width:700px){
  #metodo.method-section{padding-left:18px;padding-right:18px}
  #metodo .method-visual-links{grid-template-columns:1fr;width:100%}
  #metodo .method-visual-card{grid-template-columns:1fr;width:100%;overflow:hidden}
  #metodo .method-visual-card img{width:100%;height:auto;min-height:0;aspect-ratio:16/8;object-fit:cover}
}
