/* site.css — grandino.it, the weather site. The app's palette (navy, blue,
   the hail greens, ambers and reds) laid out as a web page: a top bar, wide
   sections, tables where the app has cards. */
:root {
  --bg: #f4f6f9; --card: #fff; --ink: #1a2b4a; --ink2: #5a6a80; --ink3: #8693a5;
  --line: #e1e5ea; --line2: #eef1f5; --blue: #2563eb; --blue2: #3b82f6; --blue-bg: #eaf2ff;
  --orange: #f5a524; --navyA: #14233f; --navyB: #25406e; --rain: #e3eefc;
  --radius: 16px; --shadow: 0 1px 2px rgba(20,35,63,.05), 0 6px 24px rgba(20,35,63,.06);
  --max: 1440px; /* wider for large screens (user, 24 Oct 2026), margins kept by .wrap padding */
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; }
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  display: inline-block; vertical-align: middle; font-variation-settings: 'FILL' 0, 'wght' 500; flex-shrink: 0; }
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 500; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 3vw, 48px); }
[hidden] { display: none !important; }

/* ── top bar ── */
.bar { position: sticky; top: 0; z-index: 1100; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { border-radius: 10px; }
.brand-txt { display: grid; line-height: 1.05; }
.brand-txt b { font-weight: 800; font-size: 19px; }
.brand-txt em { font-style: normal; color: #fc7e20; } /* the "NO!" of the logo, sampled from it */
.brand-txt small { font-weight: 600; font-size: 12px; color: var(--ink3); letter-spacing: .02em; }
.menu { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; flex: 1; justify-content: center; }
.menu a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; color: var(--ink2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.menu a:hover { background: var(--line2); color: var(--ink); }
.menu a[aria-current="page"] { background: var(--blue-bg); color: var(--blue); }
.menu .ms { font-size: 19px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang button { border: 0; background: none; padding: 6px 11px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.lang button.on { background: var(--ink); color: #fff; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.login { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.login.on, .login:hover { background: var(--blue); }
.burger { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; color: var(--ink); }

/* ── search ── */
.search { position: relative; display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 6px 0 14px; box-shadow: var(--shadow); }
.search > .ms { color: var(--ink3); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 14px 8px; background: none; color: var(--ink); }
.search .locate { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--blue-bg); color: var(--blue); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.results { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(20,35,63,.14); }
.results button { display: flex; align-items: baseline; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; font: inherit; color: var(--ink); cursor: pointer; }
.results button:hover, .results button:focus { background: var(--line2); outline: 0; }
.results span { color: var(--ink2); font-size: 13px; }
.results .empty { padding: 9px 10px; color: var(--ink2); }
.status { max-width: var(--max); margin: 12px auto 0; padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink2); }

/* ── home ── */
.hero-band { background: radial-gradient(1200px 400px at 80% -10%, #3a5f9a 0, transparent 60%), linear-gradient(160deg, var(--navyA), var(--navyB)); color: #fff; padding: 44px 0 58px; }
.hero-band h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; max-width: 760px; letter-spacing: -.01em; }
.hero-band p { font-size: 17px; color: rgba(255,255,255,.82); max-width: 640px; margin: 0 0 26px; }
.hero-band .search { max-width: 640px; }
.section { padding: 30px 0 6px; }
.section > .wrap > h2 { font-size: 22px; margin: 0 0 16px; }
.about { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-top: -40px; position: relative; }
.about .logos { display: flex; align-items: center; gap: 10px; }
.about .logos img { border-radius: 12px; }
.about .logos .partner { display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 10px; border-radius: 12px; background: var(--line2); color: var(--ink2); font-weight: 800; }
.about h2 { margin: 0 0 4px; font-size: 18px; }
.about p { margin: 0; color: var(--ink2); }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.news-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.news-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.news-card time, .news-card h3, .news-card p { display: block; margin: 0 16px; }
.news-card time { margin-top: 14px; font-size: 12px; color: var(--ink3); }
.news-card h3 { margin-top: 4px; font-size: 17px; }
.news-card p { margin: 6px 16px 16px; color: var(--ink2); font-size: 14px; }
.empty { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink2); margin: 0; grid-column: 1 / -1; }
.empty .ms { color: var(--ink3); font-size: 26px; }
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cities a { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.cities a:hover { border-color: var(--blue2); color: var(--blue); }
.cities .ms { color: var(--blue2); font-size: 18px; }

/* ── forecast page ── */
.page-head { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 20px; align-items: center; padding: 14px 0 14px; }
.page-head h1 { margin: 0; font-size: 30px; }
.page-head .where p { margin: 2px 0 0; color: var(--ink2); }
.page-head .where small { color: var(--ink3); font-size: 12.5px; }
.layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.panel > h2, .panel-title { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }
.now-panel { position: sticky; top: 84px; }
.now-src { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); font-weight: 700; }
.now-temp { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.now-temp .now-ic { font-size: 54px; color: var(--blue2); }
.now-temp b { font-size: 60px; font-weight: 500; line-height: 1; }
.now-cond { font-size: 18px; font-weight: 700; margin-top: 6px; }
.now-hilo { color: var(--ink2); }
.now-facts { margin: 16px 0 0; display: grid; gap: 0; }
.now-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line2); }
.now-facts dt { color: var(--ink2); display: flex; align-items: center; gap: 8px; }
.now-facts dt .ms { color: var(--ink3); font-size: 18px; }
.now-facts dd { margin: 0; font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.now-radar { margin-top: 14px; border-radius: 12px; padding: 12px; background: var(--line2); }
.now-radar.rain { background: #e3eefc; }
.now-radar.dry { background: #eef7f0; }
.now-radar.na { background: var(--line2); }
.now-radar.na b { color: var(--ink3); }
.nr-head { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.nr-head b { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: var(--ink); }
.now-radar p { margin: 6px 0 0; font-size: 13px; color: var(--ink2); }
.now-hail { margin-top: 16px; }
.nh-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink2); margin-bottom: 8px; }
.nh-tiles { display: grid; gap: 8px; }
.nh-tiles div { border: 1px solid; border-radius: 12px; padding: 9px 12px; display: grid; gap: 1px; }
.nh-tiles small { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.nh-tiles b { font-size: 14.5px; }
.nh-tiles span { font-size: 12.5px; opacity: .85; }
.credit { font-size: 10.5px; color: var(--ink3); margin: 8px 0 0; }

.tabs { display: grid; grid-template-columns: repeat(10, minmax(84px, 1fr)); gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dtab { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--line); background: #fff; border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; min-width: 84px; }
.dtab:hover { border-color: var(--blue2); }
.dtab.on { border-color: var(--blue); background: var(--blue-bg); box-shadow: inset 0 0 0 1px var(--blue); }
.dtab.trend { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(26,43,74,.025) 8px 16px); }
.dt-day { font-weight: 800; font-size: 13.5px; text-transform: capitalize; white-space: nowrap; }
.dt-sub { font-size: 11.5px; color: var(--ink3); white-space: nowrap; }
.dt-ic { color: var(--blue2); font-size: 28px; margin: 4px 0; }
.dt-t b { font-size: 15px; } .dt-t i { font-style: normal; color: var(--ink3); margin-left: 6px; font-size: 13px; }
.dt-mm { font-size: 11px; color: var(--blue); display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.dt-mm .ms { font-size: 13px; }

.day-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin: 18px 0 6px; }
.day-head h2 { margin: 0; font-size: 22px; text-transform: capitalize; }
.day-head h2 span { color: var(--ink3); font-weight: 600; font-size: 15px; }
.day-head p { margin: 4px 0 0; color: var(--ink2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.day-head p .ms { color: var(--blue2); }
.day-head em { font-style: normal; background: var(--line2); padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #c9d8ee; font-size: 12.5px; font-weight: 600; }
.pill .ms { font-size: 15px; }
.pill.hail.low { border-color: #b5ddbe; color: #006025; }
.pill.hail.medium { border-color: #f3d08a; color: #874400; }
.pill.hail.high { border-color: #f5b3a6; color: #ac191f; }
.summary { display: flex; gap: 8px; color: var(--ink2); margin: 6px 0 12px; }
.summary .ms { color: var(--ink3); font-size: 18px; margin-top: 2px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours th, .hours td { padding: 9px 12px; text-align: left; border-top: 1px solid var(--line2); white-space: nowrap; }
.hours thead th { border-top: 0; background: #f8fafc; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); font-weight: 700; position: sticky; top: 0; }
.hours tbody th { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13.5px; }
.hours tr.now th, .hours tr.now td { background: #f3f8ff; }
.hours .num { text-align: right; font-family: 'JetBrains Mono', monospace; }
.hours .t { font-weight: 700; font-size: 15px; }
.hours .sky { display: flex; align-items: center; gap: 8px; white-space: normal; min-width: 170px; }
.hours .sky .ms { color: var(--blue2); font-size: 22px; }
.hours .sky em { font-style: normal; display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.hours .sky em.medium { background: #feedc9; color: #874400; } .hours .sky em.high { background: #ffe4dd; color: #ac191f; }
.hours .sky em .ms { font-size: 14px; color: inherit; }
.hours .rain { color: var(--ink3); }
.hours .rain.wet { color: var(--blue); font-weight: 600; background: linear-gradient(90deg, var(--rain), transparent); }
.hours small { display: block; font-size: 11px; color: var(--ink3); font-weight: 500; }
.hours .wind { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.warrow { font-size: 16px; color: var(--ink2); margin-right: 4px; }
.nohours { color: var(--ink2); }
.dayline { font-size: 15px; } .dayline small { color: var(--ink2); }
.note { color: var(--ink3); font-size: 12.5px; }
.story ul { list-style: none; margin: 0; padding: 0; }
.story li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line2); }
.story li small { color: var(--ink2); }
.story h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); margin: 18px 0 4px; }
.story p { color: var(--ink2); }

/* ── app promo + placeholder pages ── */
.promo { display: flex; gap: 20px; align-items: center; background: linear-gradient(160deg, var(--navyA), var(--navyB)); color: #fff; border-radius: var(--radius); padding: 24px; margin: 30px 0 0; }
.promo img { border-radius: 16px; }
.promo h2 { margin: 0 0 6px; font-size: 20px; }
.promo p { margin: 0 0 14px; color: rgba(255,255,255,.82); max-width: 640px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }

/* ── footer ── */
.foot { margin-top: 38px; background: #fff; border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--ink2); font-size: 13.5px; }
.foot .wrap { display: grid; gap: 6px; }
.foot strong { color: var(--ink); }
.foot .credits, .foot .small { font-size: 12px; color: var(--ink3); }
.foot a { color: var(--ink2); }

/* ── narrow screens ── */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .now-panel { position: static; }
  .page-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  .menu a .ms { display: none; }
  .menu a { padding: 8px 10px; }
}
@media (max-width: 760px) {
  .bar .wrap { gap: 10px; }
  .burger { display: grid; place-items: center; margin-left: auto; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px 14px; box-shadow: 0 16px 30px rgba(20,35,63,.08); }
  body.nav-open .menu { display: flex; }
  .bar-end .login span:last-child { display: none; }
  .bar-end .login { padding: 8px 10px; }
  .hero-band { padding: 28px 0 48px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .tabs { grid-template-columns: repeat(10, 84px); }
  .hours .opt { display: none; }
  .hours th, .hours td { padding: 8px 8px; }
  .hours .sky { min-width: 120px; }
  .hours .sky span { font-size: 13px; }
  .story li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .promo { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .search .locate .lbl { display: none; }
}

/* ── shared bits ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 0 0; font-size: 13px; color: var(--ink3); }
.crumbs a { color: var(--ink2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--blue); }
.crumbs.light, .crumbs.light a { color: rgba(255,255,255,.75); padding-top: 0; margin-bottom: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 22px; }
.col { display: grid; gap: 20px; min-width: 0; }
.btn.primary { background: var(--blue); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn.primary:disabled { opacity: .55; cursor: not-allowed; }
.narrow { max-width: 560px; }
.placeholder { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 40px 24px; }
.placeholder > .ms { font-size: 44px; color: var(--blue2); }
.placeholder h2 { margin: 6px 0 0; font-size: 20px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.placeholder p { margin: 0; color: var(--ink2); max-width: 560px; }

/* ── home: map ── */
.seg-group { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }
.map-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.map { height: 600px; background: #cfe2f3; }
.map-list { max-height: 600px; overflow-y: auto; border-left: 1px solid var(--line); padding: 6px; }
.map-list a { display: grid; grid-template-columns: 28px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.map-list a:hover { background: var(--line2); }
.map-list a .ms { grid-row: 1 / 3; grid-column: 1; color: var(--blue2); font-size: 26px; }
.map-list b { grid-column: 2; grid-row: 1; }
.map-list b { font-size: 14px; }
.map-list span { grid-column: 2; font-size: 12px; color: var(--ink2); }
.map-list em { grid-row: 1 / 3; grid-column: 3; font-style: normal; font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.map-list em i, .mk i { font-style: normal; color: var(--ink3); font-weight: 500; margin-left: 4px; }
.mk-wrap { background: none; border: 0; }
.mk { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 auto; width: max-content; padding: 3px 8px 3px 5px; background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(20,35,63,.22); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 13px; color: var(--ink); cursor: pointer; }
.mk .ms { font-size: 22px; color: var(--blue2); }
.mk-name { text-align: center; font-size: 11px; font-weight: 700; color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; margin-top: 2px; white-space: nowrap; }
.leaflet-container { font: inherit; }

/* ── home: news ── */
.news-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.news-kind { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink2); }
.news-kind.meteo { color: #8a4b00; }
.news-kind.meteo .ms { color: var(--orange); }
.news-list { display: grid; gap: 10px; }
.news-card { display: block; background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
a.news-card:hover { border-color: var(--blue2); }
.news-card.meteo { border-left: 4px solid var(--orange); }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.nc-body { padding: 12px 14px; }
.nc-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.nc-meta time { font-size: 12px; color: var(--ink3); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink2); background: var(--line2); padding: 2px 8px; border-radius: 999px; }
.badge .ms { font-size: 15px; }
.badge.meteo { background: #feedc9; color: #8a4b00; }
.badge.meteo .ms { color: var(--orange); }
.nc-body h3 { margin: 6px 0 0; font-size: 15.5px; line-height: 1.3; }
.nc-body p { margin: 4px 0 0; color: var(--ink2); font-size: 13.5px; }

/* ── webcam ── */
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cam { aspect-ratio: 16/9; border-radius: 14px; background: repeating-linear-gradient(135deg, #e9eef5 0 12px, #f1f4f9 12px 24px); display: grid; place-items: center; border: 1px dashed var(--line); }
.cam .ms { font-size: 36px; color: var(--ink3); }

/* ── login ── */
.login-card { display: grid; gap: 8px; margin-top: 24px; text-align: center; justify-items: center; padding: 32px 24px; }
.login-card > .ms { font-size: 40px; color: var(--blue2); }
.login-card h1 { margin: 0; font-size: 24px; }
.login-card > p { color: var(--ink2); margin: 0; }
.login-form { display: grid; gap: 6px; width: 100%; max-width: 360px; text-align: left; margin-top: 10px; }
.login-form label, .contact-form label { font-size: 13px; font-weight: 700; color: var(--ink2); }
.login-form input, .contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.login-form input:disabled { background: var(--line2); }
.login-form .btn { justify-content: center; margin-top: 6px; }

/* ── app page ── */
.app-hero { padding: 30px 0 40px; }
.app-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; }
.app-hero h1 { margin: 0 0 12px; }
.app-hero .hero-note { font-size: 13.5px; color: rgba(255,255,255,.7); margin: 14px 0 0; }
.phone { width: 100%; max-width: 300px; border-radius: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.35); justify-self: center; }
.btn.store { padding: 9px 16px; }
.btn.store small { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.btn.store .ms { font-size: 26px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.features article { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.features .ms { font-size: 30px; color: var(--blue2); }
.features h3 { margin: 8px 0 4px; font-size: 16.5px; }
.features p { margin: 0; color: var(--ink2); font-size: 14px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); display: block; }
.shots figcaption { font-size: 13px; color: var(--ink2); margin-top: 6px; text-align: center; font-weight: 600; }
.faq { display: grid; gap: 8px; }
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink3); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 14px; color: var(--ink2); }

/* ── about ── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.prose h2 { margin: 0 0 8px; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.prose p { color: var(--ink2); margin: 0 0 10px; }
.people { display: grid; gap: 14px; }
.person { display: flex; gap: 14px; align-items: flex-start; }
.person img { border-radius: 14px; }
.avatar { display: grid; place-items: center; flex: 0 0 56px; height: 56px; border-radius: 14px; background: var(--line2); font-weight: 800; color: var(--ink2); }
.person h3 { margin: 0; font-size: 17px; }
.person .role { margin: 0 0 4px; font-size: 13px; color: var(--blue); font-weight: 700; }
.person p { margin: 0; color: var(--ink2); font-size: 14px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.contact-form { display: grid; gap: 6px; position: relative; }
.contact-form .btn { justify-content: center; margin-top: 8px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #ac191f; margin: 4px 0 0; font-size: 13.5px; }
.form-done { color: #006025; margin: 4px 0 0; font-size: 13.5px; }

/* ── footer ── */
.foot .foot-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.foot-brand p { margin: 8px 0 0; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--blue); }
.foot-credits p { margin: 0 0 6px; font-size: 12px; color: var(--ink3); }

@media (max-width: 980px) {
  .map-card { grid-template-columns: minmax(0, 1fr); }
  .map { height: 460px; }
  .map-list { max-height: none; border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .news-cols, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .app-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 220px; }
  .foot .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .map { height: 400px; }
  .mk-name, .mk i { display: none; }
  .mk { padding: 2px 6px 2px 3px; font-size: 12px; }
  .mk .ms { font-size: 18px; }
  .menu a .ms { display: inline-block; }
  .menu a { padding: 10px 12px; }
}

/* ── privacy and terms ── */
.legal-doc { padding: 26px 30px; max-width: 920px; }
.legal-doc .privacy-lang-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; font-size: 13px; }
.legal-doc .privacy-lang-switch { display: flex; gap: 6px; flex-wrap: wrap; }
.legal-doc .privacy-lang-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink2); font-weight: 700; }
.legal-doc .privacy-lang-btn:hover, .legal-doc .privacy-lang-btn.active { border-color: var(--blue2); color: var(--blue); background: var(--blue-bg); }
.legal-doc .privacy-header-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 6px; }
.legal-doc .privacy-main-title { font-size: 24px; margin: 4px 0 6px; }
.legal-doc .privacy-meta { color: var(--ink3); font-size: 13px; }
.legal-doc .privacy-block { margin: 22px 0 0; scroll-margin-top: 90px; }
.legal-doc .privacy-subtitle { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.legal-doc .privacy-subtitle svg { color: var(--blue2); flex-shrink: 0; }
.legal-doc p, .legal-doc li { color: #3d4e68; line-height: 1.65; }
.legal-doc .privacy-list { padding-left: 20px; }
.legal-doc .privacy-list li { margin: 6px 0; }
.legal-doc .privacy-code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; background: var(--line2); padding: 1px 6px; border-radius: 6px; }
.legal-doc .privacy-highlight-box, .legal-doc .privacy-play-box { background: #f6f9ff; border: 1px solid #d8e5fb; border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.legal-doc .privacy-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0; }
.legal-doc .privacy-summary-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.legal-doc .privacy-table-wrapper { overflow-x: auto; }
.legal-doc .privacy-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-doc .privacy-table th, .legal-doc .privacy-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-doc .privacy-section-divider { border: 0; border-top: 2px solid var(--line); margin: 36px 0; }
.legal-doc .btn-outline { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
@media (max-width: 760px) { .legal-doc { padding: 18px 16px; } }

/* ── loading ── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.spinner { position: absolute; inset: 0; display: grid; place-items: center; z-index: 500; }
.spinner::after { content: ""; width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(37,99,235,.18); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-veil { position: relative; }
.loading-veil > :not(.spinner) { opacity: .35; transition: opacity .2s; pointer-events: none; }
.skeleton { min-height: 320px; background: linear-gradient(100deg, #eef1f5 30%, #f7f9fb 50%, #eef1f5 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .spinner::after, .skeleton { animation: none; } }

/* ── front page carousel ── */
.front h2 small { font-size: 13px; color: var(--ink3); font-weight: 600; margin-left: 6px; }
.carousel-nav { display: flex; gap: 6px; }
.round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.round:hover { border-color: var(--blue2); color: var(--blue); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 320px); gap: 14px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.carousel .news-card { scroll-snap-align: start; display: flex; flex-direction: column; border-left: 0; }
.carousel .news-card.meteo { box-shadow: 0 0 0 2px var(--orange), var(--shadow); }
.nc-top { height: 120px; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.nc-top .ms { font-size: 56px; opacity: .95; }
.nc-top img { width: 100%; height: 100%; object-fit: cover; }
.topic-today { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.topic-weather { background: linear-gradient(135deg, #0f766e, #22c55e); }
.topic-meteo { background: linear-gradient(135deg, #c2410c, #f5a524); }
.topic-earthquake { background: linear-gradient(135deg, #57534e, #a8a29e); }
.topic-cyclone, .topic-flood { background: linear-gradient(135deg, #1e3a8a, #6366f1); }
.topic-volcano, .topic-wildfire { background: linear-gradient(135deg, #991b1b, #f97316); }
.topic-other { background: linear-gradient(135deg, #334155, #64748b); }
.carousel .nc-body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.carousel .nc-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-lines { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 3px; font-size: 13.5px; color: var(--ink2); }
.nc-lines b { color: var(--ink); }
.nc-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 700; font-size: 13.5px; }
.nc-more .ms { font-size: 17px; }
.badge.brand { background: var(--blue-bg); color: var(--blue); }

/* ── app promo ── */
.promo-points { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.promo-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.9); }
.promo-points .ms { color: var(--orange); font-size: 22px; }
.promo .btn.store small { color: var(--ink2); }

/* ── forecast: radar peek ── */
.radar-peek .section-head { margin-bottom: 10px; }
.radar-peek .panel-title { display: flex; align-items: center; gap: 6px; margin: 0; }
.radar-peek .panel-title small { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink3); }
.peek-map { position: relative; height: 340px; border-radius: 12px; overflow: hidden; background: #cfe2f3; }
.peek-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.peek-foot .note { margin: 0; }
.peek-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); flex-wrap: wrap; }
.peek-legend i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.peek-legend span { margin-right: 6px; }
.leaflet-container .leaflet-control-attribution { font-size: 10px; line-height: 1.3; background: rgba(255,255,255,.75); }

/* ── home map: radar mode ── */
.map-section .radar-only { display: none; }
.map-section.mode-radar .radar-only { display: flex; }
.map-section.mode-radar p.radar-only { display: block; }
.map-section.mode-radar .fc-only { display: none; }
.seg button .ms { font-size: 17px; margin-right: 4px; }
.map-foot { display: grid; gap: 4px; margin-top: 10px; }
.map-foot .note { margin: 0; }
.map-foot small { margin-left: 6px; color: var(--ink3); }
.mk-dot { width: 8px; height: 8px; margin: 0 auto; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff; }
.map-list a.wet b { color: var(--blue); }
.map-list .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot.k1 { background: #9ec9ff; } .dot.k2 { background: #3b82f6; } .dot.k3 { background: #f5a524; } .dot.k4 { background: #e64340; }

/* ── forecast: never a sideways scroll (user, 23 Oct 2026) ── */
.tabs { grid-template-columns: repeat(10, minmax(0, 1fr)); overflow: visible; }
.dtab { min-width: 0; padding: 9px 4px; }
.dt-day, .dt-sub, .dt-mm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tablewrap { overflow: visible; }
table.hours { table-layout: fixed; }
.hours th, .hours td { white-space: normal; overflow-wrap: anywhere; }
.hours thead th:nth-child(1) { width: 64px; }
.hours thead th:nth-child(3) { width: 64px; }
.hours thead th:nth-child(4) { width: 84px; }
.hours thead th:nth-child(6) { width: 104px; }
.hours thead th:nth-child(7) { width: 80px; }
.hours .sky { min-width: 0; }
@media (max-width: 1180px) {
  .tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hours .opt { display: none; }
}
@media (max-width: 760px) {
  .tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .dtab { padding: 7px 2px; border-radius: 10px; }
  .dt-day { font-size: 12px; } .dt-sub { font-size: 10.5px; }
  .dt-ic { font-size: 22px; margin: 2px 0; }
  .dt-t b { font-size: 13px; } .dt-t i { font-size: 11.5px; margin-left: 3px; }
  .dt-mm { font-size: 10px; }
  .hours thead th:nth-child(1) { width: 46px; }
  .hours thead th:nth-child(3) { width: 44px; }
  .hours thead th:nth-child(6) { width: 74px; }
  .hours th, .hours td { padding: 7px 5px; font-size: 13px; }
  .hours .sky { gap: 4px; }
  .hours .sky span { font-size: 12px; }
  .hours .sky .ms { font-size: 20px; }
  .hours .wind { font-size: 12px; }
  .warrow { margin-right: 2px; font-size: 14px; }
}

/* ── home map: radar and forecast together ── */
.map-section .radar-only { display: flex; }
.map-section p.radar-only { display: block; }
.map-section.radar-off .radar-only { display: none; }
.peek-legend b { margin-right: 4px; color: var(--ink); }
.see-through .mk { background: rgba(255,255,255,.72); box-shadow: 0 1px 4px rgba(20,35,63,.18); }
.see-through .mk .ms { opacity: .8; }
.see-through:hover .mk { background: #fff; }
.radar-now { font-weight: 700; }
.radar-now.k1 { color: #4c8fd6; } .radar-now.k2 { color: #2563eb; } .radar-now.k3 { color: #b86e00; } .radar-now.k4 { color: #c62828; }

/* ── buttons: every one answers the pointer ── */
.btn { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,20,40,.22); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible, .round:focus-visible, .login:focus-visible { outline: 3px solid rgba(59,130,246,.5); outline-offset: 2px; }
.btn.store:hover { background: #f3f7ff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
.btn.primary:hover { background: #1d4ed8; }
.login, .round, .seg button, .dtab, .cities a, .map-list a, .news-card { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.round:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20,35,63,.12); }
a.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,35,63,.14); }
.seg button:not(.on):hover { background: var(--line2); color: var(--ink); }

/* ── home hero: wider, with the mascot ── */
.home-hero { position: relative; overflow: hidden; padding: 48px 0 62px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; }
.home-hero h1 { max-width: none; font-size: clamp(30px, 4.2vw, 52px); }
.home-hero p { max-width: 760px; font-size: 18px; }
.home-hero .search { max-width: 860px; }
.home-hero .search input { padding: 17px 8px; font-size: 17px; }
.mascot { width: 300px; height: auto; justify-self: end; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; pointer-events: none; user-select: none; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 180px; }
  .hero-grid .mascot { width: 180px; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  /* on a phone she peeks from the corner, behind the words */
  .hero-grid .mascot { position: absolute; right: -26px; top: 6px; width: 120px; opacity: .35; }
}

/* ── app page, dressed up ── */
.app-hero { position: relative; overflow: hidden; padding: 46px 0 54px; background: radial-gradient(900px 420px at 85% 10%, rgba(245,165,36,.18), transparent 60%), radial-gradient(800px 500px at 10% 100%, rgba(59,130,246,.25), transparent 60%), linear-gradient(160deg, #101c33, #25406e); }
.app-hero h1 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -.015em; }
.app-hero p { font-size: 18px; max-width: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #ffd58a; font-weight: 700; font-size: 13px; margin-bottom: 16px; }
.eyebrow .ms { font-size: 17px; color: var(--orange); }
.phone-stage { position: relative; justify-self: center; }
.phone-stage .phone { position: relative; z-index: 1; border: 8px solid #0b1324; border-radius: 34px; transform: rotate(3deg); }
.mascot.small { position: absolute; z-index: 2; width: 150px; left: -84px; bottom: 10px; }
.app-hero .btn.store { padding: 11px 18px; }
.features article { position: relative; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.features article:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20,35,63,.12); border-color: #d7e4fb; }
.features .ms { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #e7f0ff, #f3f7ff); color: var(--blue); font-size: 28px; }
.features article:nth-child(2) .ms { background: linear-gradient(135deg, #fff1d6, #fff8ea); color: #c07a00; }
.features article:nth-child(4) .ms { background: linear-gradient(135deg, #dcf7e2, #effcf2); color: #1f8a4c; }
.features article:nth-child(5) .ms { background: linear-gradient(135deg, #ffe4dd, #fff3ef); color: #c62828; }
.shots img { border: 6px solid #0b1324; border-radius: 26px; transition: transform .2s ease; }
.shots figure:hover img { transform: translateY(-4px) scale(1.02); }
.faq details { transition: box-shadow .15s ease; }
.faq details:hover { box-shadow: 0 8px 22px rgba(20,35,63,.1); }
.faq details[open] { box-shadow: 0 0 0 2px #d7e4fb, var(--shadow); }
.app-page .section-head h2, .page-app .section-head h2 { font-size: 26px; }
@media (max-width: 980px) {
  .mascot.small { width: 110px; left: -50px; }
  .phone-stage .phone { transform: none; }
}
@media (max-width: 760px) { .mascot.small { width: 96px; left: -24px; bottom: -6px; } }

/* ── home hero: a sky that moves (user, 23 Oct 2026) ── */
.home-hero .wrap { position: relative; z-index: 2; }
.hero-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-sky .cloud { position: absolute; left: 0; display: block; animation: drift linear infinite; will-change: transform; }
.cloud svg { width: 100%; height: auto; display: block; fill: #fff; }
.hero-sky .c1 { top: 6%; width: 260px; opacity: .16; animation-duration: 38s; animation-delay: -6s; }
.hero-sky .c2 { top: 32%; width: 380px; opacity: .11; animation-duration: 52s; animation-delay: -30s; }
.hero-sky .c3 { top: 62%; width: 220px; opacity: .14; animation-duration: 30s; animation-delay: -18s; }
.hero-sky .c4 { top: 14%; width: 170px; opacity: .18; animation-duration: 26s; animation-delay: -20s; }
.hero-sky .c5 { top: 74%; width: 320px; opacity: .10; animation-duration: 60s; animation-delay: -44s; }
@keyframes drift { from { transform: translateX(-420px); } to { transform: translateX(calc(100vw + 40px)); } }
.hero-sky .rain { position: absolute; inset: -40% -10% 0; background-repeat: repeat; transform: rotate(12deg); }
.hero-sky .r1 { background-image: repeating-linear-gradient(to bottom, rgba(180,210,255,.0) 0 22px, rgba(180,210,255,.22) 22px 40px, rgba(180,210,255,0) 40px 90px);
  background-size: 3px 90px; -webkit-mask-image: repeating-linear-gradient(to right, #000 0 1px, transparent 1px 37px); mask-image: repeating-linear-gradient(to right, #000 0 1px, transparent 1px 37px);
  animation: fall 0.9s linear infinite; }
.hero-sky .r2 { background-image: repeating-linear-gradient(to bottom, rgba(200,225,255,0) 0 40px, rgba(200,225,255,.16) 40px 54px, rgba(200,225,255,0) 54px 130px);
  background-size: 2px 130px; -webkit-mask-image: repeating-linear-gradient(to right, transparent 0 18px, #000 18px 19px, transparent 19px 53px); mask-image: repeating-linear-gradient(to right, transparent 0 18px, #000 18px 19px, transparent 19px 53px);
  animation: fall 1.4s linear infinite; }
@keyframes fall { from { background-position: 0 0; } to { background-position: 0 130px; } }
.hero-sky .r1 { animation-name: fall1; } @keyframes fall1 { from { background-position: 0 0; } to { background-position: 0 90px; } }
/* now and then the sky lights up, softly */
.hero-sky .flash { position: absolute; inset: 0; background: radial-gradient(700px 300px at 70% 0%, rgba(255,255,255,.22), transparent 70%); opacity: 0; animation: flash 14s ease-out infinite; }
@keyframes flash { 0%, 86%, 100% { opacity: 0; } 87% { opacity: 1; } 88% { opacity: .15; } 89.5% { opacity: .8; } 93% { opacity: 0; } }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,35,63,.55) 0%, rgba(20,35,63,.25) 45%, transparent 75%); }
@media (prefers-reduced-motion: reduce) { .hero-sky .cloud, .hero-sky .rain, .hero-sky .flash { animation: none; } .hero-sky .flash { display: none; } }
@media (max-width: 760px) { .hero-sky .c2, .hero-sky .hero-sky .c5 { display: none; } .hero-sky .r2 { display: none; } }

/* ── home hero: drops landing in a puddle along the bottom ── */
.hero-sky .puddle { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(to top, rgba(120,170,255,.16), transparent); }
.hero-sky .puddle i { position: absolute; bottom: 10px; width: 44px; height: 10px; margin-left: -22px; border: 1.5px solid rgba(190,215,255,.55); border-radius: 50%; opacity: 0; transform: scale(.2); animation: ripple 2.6s ease-out infinite; }
.hero-sky .puddle i::before { content: ""; position: absolute; left: 50%; bottom: 6px; width: 2px; height: 14px; margin-left: -1px; background: linear-gradient(to bottom, transparent, rgba(200,225,255,.8)); border-radius: 2px; animation: drop 2.6s ease-in infinite; animation-delay: inherit; opacity: 0; }
.hero-sky .puddle i::after { content: ""; position: absolute; inset: -6px -10px; border: 1px solid rgba(190,215,255,.3); border-radius: 50%; animation: ripple2 2.6s ease-out infinite; animation-delay: inherit; opacity: 0; }
@keyframes ripple { 0%, 20% { opacity: 0; transform: scale(.2); } 24% { opacity: .9; } 70% { opacity: 0; transform: scale(1.4); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes ripple2 { 0%, 30% { opacity: 0; transform: scale(.3); } 36% { opacity: .6; } 80% { opacity: 0; transform: scale(1.3); } 100% { opacity: 0; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-120px); } 5% { opacity: .9; } 22% { opacity: .9; transform: translateY(0); } 24%, 100% { opacity: 0; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-sky .puddle i, .hero-sky .puddle i::before, .hero-sky .puddle i::after { animation: none; } }
@media (max-width: 760px) { .hero-sky .puddle i:nth-child(even) { display: none; } }

/* the hour stays on one line ("17:00", never "17:0 / 0") */
.hours tbody th, .hours thead th { white-space: nowrap; overflow-wrap: normal; }

/* ── app screens: zoom on click ── */
.shots figure { cursor: zoom-in; }
.shots figure:focus-visible { outline: 3px solid rgba(59,130,246,.5); outline-offset: 4px; border-radius: 26px; }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8,14,28,.88); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 24px; backdrop-filter: blur(4px); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 110px); max-width: 100%; border-radius: 28px; border: 8px solid #0b1324; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: lb-in .2s ease-out; }
@keyframes lb-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox figcaption { color: #fff; font-weight: 700; }
.lb-nav, .lb-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .15s ease; }
.lb-nav:hover, .lb-close:hover { background: rgba(255,255,255,.22); }
.lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 760px) { .lightbox { grid-template-columns: minmax(0, 1fr); padding: 60px 12px 20px; } .lb-nav { display: none; } }

/* ── chi siamo: instagram ── */
.person .ig { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 13.5px; color: #fff; background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); transition: transform .15s ease, box-shadow .15s ease; }
.person .ig:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(221,42,123,.3); }
.person .ig .ms { font-size: 17px; }
.peek-map .radar-img { image-rendering: auto; }

/* ── contact: a card with a voice ── */
.contact-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); background: #fff; border-radius: 24px; box-shadow: 0 2px 6px rgba(20,35,63,.05), 0 24px 60px rgba(20,35,63,.10); overflow: hidden; }
.contact-side { position: relative; padding: 34px 30px; color: #fff; background: radial-gradient(500px 260px at 100% 0%, rgba(245,165,36,.22), transparent 60%), linear-gradient(160deg, #14233f, #25406e); overflow: hidden; }
.contact-side h2 { margin: 0 0 10px; font-size: 28px; color: #fff; }
.contact-side > p { margin: 0 0 22px; color: rgba(255,255,255,.82); max-width: 380px; }
.contact-mascot { position: absolute; right: -18px; bottom: -14px; width: 150px; opacity: .95; }
.contact-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; max-width: 360px; }
.contact-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.9); font-size: 14.5px; }
.contact-points .ms { color: var(--orange); font-size: 20px; margin-top: 1px; }
.contact-ig { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.contact-ig a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; transition: background-color .15s ease, transform .15s ease; }
.contact-ig a:hover { background: rgba(255,255,255,.2); transform: translateY(-1px); }
.contact-ig .ms { font-size: 16px; }
.contact .contact-form { padding: 30px; display: grid; gap: 16px; position: relative; }
.topics { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.topics legend { font-size: 13px; font-weight: 800; color: var(--ink2); margin-bottom: 8px; padding: 0; }
.topics label { cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label > span { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 14px; text-align: center; color: var(--ink2); transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease; }
.topics label > span .ms { font-size: 24px; color: var(--ink3); transition: color .15s ease; }
.topics b { font-size: 13px; }
.topics label:hover > span { border-color: #bcd0f0; transform: translateY(-1px); }
.topics input:checked + span { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }
.topics input:checked + span .ms { color: var(--blue); }
.topics input:focus-visible + span { outline: 3px solid rgba(59,130,246,.45); outline-offset: 2px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13px; font-weight: 800; color: var(--ink2); }
.input { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #f9fbfd; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.input .ms { color: var(--ink3); font-size: 20px; }
.input:focus-within { border-color: var(--blue2); background: #fff; box-shadow: 0 0 0 4px rgba(59,130,246,.12); }
.input:focus-within .ms { color: var(--blue); }
.input.bad { border-color: #e64340; box-shadow: 0 0 0 4px rgba(230,67,64,.10); }
.contact .input input, .contact .input textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); padding: 12px 0; }
.input.area { padding: 0 14px; }
.contact .input textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field-foot { display: flex; justify-content: space-between; gap: 10px; min-height: 16px; }
.field-err { color: #c62828; font-size: 12.5px; font-weight: 600; }
.count { margin-left: auto; color: var(--ink3); font-size: 12px; }
.btn.send { justify-content: center; gap: 8px; padding: 14px 18px; font-size: 15.5px; border-radius: 14px; background: linear-gradient(135deg, #2563eb, #3b82f6); }
.btn.send:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
.btn.send .ms { font-size: 19px; transition: transform .2s ease; }
.btn.send:hover .ms { transform: translateX(3px) rotate(-12deg); }
.btn.send.busy { opacity: .7; pointer-events: none; }
.btn.send.busy .ms { animation: spin .9s linear infinite; }
.form-done { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #dcf7e2; color: #005924; font-weight: 700; }
.form-done[hidden] { display: none; }
.form-done .ms { color: #1f8a4c; }
@media (max-width: 980px) { .contact-card { grid-template-columns: minmax(0, 1fr); } .contact-mascot { width: 110px; } }
@media (max-width: 560px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact .contact-form, .contact-side { padding: 22px 18px; }
}

/* the radar's credit, small and grey in the map's top-right corner */
.map-credit { position: absolute; top: 8px; right: 10px; z-index: 800; font-size: 10.5px; line-height: 1.2; color: var(--ink3); background: rgba(255,255,255,.75); padding: 3px 7px; border-radius: 6px; pointer-events: none; }
.map-section.radar-off .map-credit { display: none; }

.map-title small { font-size: 13px; font-weight: 600; color: var(--ink3); margin-left: 6px; }

/* ── hours table: tidy rain cells (user, 23 Oct 2026) ── */
.hours td.sky { display: table-cell; }
.hours .sky-in { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hours .sky-in .ms { color: var(--blue2); font-size: 22px; }
.hours td.rain, .hours td.rain.wet { background: none; color: var(--ink3); font-weight: 500; }
.hours .r-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hours td.rain.wet .r-top b { color: var(--blue); font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 13.5px; }
.hours td.rain.wet .r-top i { font-style: normal; color: var(--ink2); font-size: 12.5px; }
.rbar { display: block; height: 6px; margin: 5px 0 3px; border-radius: 6px; background: #edf2f8; overflow: hidden; max-width: 140px; }
.rbar-fill { display: block; height: 100%; border-radius: 6px; background: #9ec9ff; }
.rbar-fill.lv-drizzle, .rbar-fill.lv-light { background: #9ec9ff; }
.rbar-fill.lv-moderate { background: #3b82f6; }
.rbar-fill.lv-heavy { background: #f5a524; }
.rbar-fill.lv-violent { background: #e64340; }
.hours tr.now > * { background: #f3f8ff; }
@media (max-width: 760px) { .hours .sky-in { gap: 4px; } .hours .sky-in .ms { font-size: 20px; } .hours td.rain.wet .r-top i { display: none; } }
.hours td.sky, .hours td.sky span { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 760px) { .hours .sky-in { flex-direction: column; align-items: flex-start; gap: 2px; } .hours .sky-in span { font-size: 11.5px; line-height: 1.2; } }

/* wind: the direction on the same line as the speed ("8 km/h E") */
.hours td.wind { white-space: nowrap; }
.hours td.wind small { display: inline; margin-left: 4px; font-size: 11.5px; }
.map .spinner { background: rgba(244,246,249,.7); }
@media (max-width: 760px) { .hours td.wind { white-space: normal; } .hours td.wind small { display: block; margin-left: 0; } }

/* the contacts mascot: in the flow, centred under the links, never cut */
.contact-side { display: flex; flex-direction: column; }
.contact-side .contact-mascot { position: static; display: block; width: 170px; margin: auto auto 0; padding-top: 0; opacity: 1; }
.contact-ig { margin-bottom: 30px; }
@media (max-width: 980px) { .contact-side .contact-mascot { width: 130px; } }

/* privacy and terms: one language at a time, the one chosen in the header */
html[lang="en"] .legal-doc #italiano, html[lang="it"] .legal-doc #english { display: none; }
.legal-doc .privacy-summary-card strong { display: block; color: var(--ink); margin-bottom: 4px; }
.legal-doc .privacy-summary-card p { margin: 0; font-size: 13.5px; }

/* ── radar page ── */
.radar-page .page-head h1 small { font-size: 14px; font-weight: 600; color: var(--ink3); margin-left: 8px; }
.rp-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.rp-map { position: relative; height: min(72vh, 720px); min-height: 420px; background: #cfe2f3; }
.rp-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.rp-play { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(37,99,235,.3); transition: transform .15s ease, background-color .15s ease; }
.rp-play:hover { transform: scale(1.06); background: #1d4ed8; }
.rp-play .ms { font-size: 28px; }
.rp-track { flex: 1; min-width: 0; }
.rp-track input[type=range] { width: 100%; accent-color: var(--blue); }
.rp-ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink3); }
.rp-when { flex: 0 0 auto; display: grid; justify-items: end; min-width: 76px; }
.rp-when b { font-family: 'JetBrains Mono', monospace; font-size: 20px; }
.rp-when small { font-size: 12px; color: var(--ink3); }
.rp-foot { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 0 16px 14px; } /* the hint goes under the legend */
.rp-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.rp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.rp-toggle .sw { width: 40px; height: 22px; border-radius: 999px; background: #d6dde7; position: relative; transition: background-color .15s ease; flex: 0 0 auto; }
.rp-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s ease; }
.rp-toggle input:checked + .sw { background: #ff7a00; }
.rp-toggle input:checked + .sw::after { transform: translateX(18px); }
.rp-toggle input:focus-visible + .sw { outline: 3px solid rgba(59,130,246,.45); outline-offset: 2px; }
.rp-toggle small { color: var(--ink3); }
.rp-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.rp-info .panel > .ms { font-size: 28px; color: var(--blue2); }
.rp-info h3 { margin: 6px 0 4px; font-size: 16.5px; }
.rp-info p { margin: 0 0 10px; color: var(--ink2); font-size: 14px; }
.rp-place { background: #1a2b4a; color: #fff; border: 0; border-radius: 8px; font-weight: 700; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.rp-place::before { border-top-color: #1a2b4a !important; }
@media (max-width: 980px) { .rp-info { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .rp-map { height: 62vh; min-height: 360px; } .rp-bar { gap: 10px; padding: 10px 12px; } .rp-when b { font-size: 17px; } }

.rp-load { height: 3px; border-radius: 3px; background: #edf2f8; overflow: hidden; margin: 2px 0 4px; display: flex; justify-content: flex-end; transition: opacity .4s ease; }
.rp-load span { display: block; height: 100%; width: 0; background: var(--blue2); border-radius: 3px; transition: width .3s ease; }
.rp-load.done { opacity: 0; }
.rp-loading { color: var(--blue); font-size: 11px; white-space: nowrap; }

/* ── radar page: the pin, the spot card, the cities ── */
.rp-map { cursor: crosshair; }
.rp-pin { background: none; border: 0; }
.rp-pin .ms { font-size: 36px; color: #1a2b4a; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); animation: pin-drop .25s ease-out; }
@keyframes pin-drop { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.rp-spot { position: absolute; left: 12px; bottom: 28px; z-index: 900; width: min(340px, calc(100% - 24px)); background: #fff; border-radius: 16px; box-shadow: 0 12px 36px rgba(20,35,63,.22); padding: 14px 16px; cursor: default; }
.rp-spot[hidden] { display: none; }
.spot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spot-head b { font-size: 16px; }
.spot-x { border: 0; background: var(--line2); color: var(--ink2); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.spot-x:hover { background: #e2e8f0; }
.spot-x .ms { font-size: 18px; }
.spot-when, .spot-load, .spot-na { margin: 4px 0 8px; font-size: 12.5px; color: var(--ink3); }
.spot-facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.spot-facts li { display: grid; grid-template-columns: 22px auto 1fr; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--line2); font-size: 13.5px; }
.spot-facts li .ms { font-size: 20px; color: var(--ink3); }
.spot-facts li span { color: var(--ink2); }
.spot-facts li b { text-align: right; }
.spot-facts li.is-wet { background: #e3eefc; } .spot-facts li.is-wet .ms { color: var(--blue); }
.spot-facts li.is-storm { background: #feedc9; color: #6b3a00; } .spot-facts li.is-storm .ms { color: #d98a00; }
.spot-facts li.is-hail { background: #ffe4dd; color: #ac191f; } .spot-facts li.is-hail .ms { color: #e64340; }
.spot-facts li b small { display: block; font-size: 11px; font-weight: 500; color: var(--ink3); }
.spot-go { width: 100%; justify-content: center; gap: 6px; }
.rp-hint { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink2); font-size: 13.5px; }
.rp-hint .ms { color: var(--blue2); font-size: 20px; }
.rp-city { position: relative; }
.rp-city i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #1a2b4a; box-shadow: 0 0 0 1.5px #fff; }
.rp-city span { position: absolute; left: 6px; top: -9px; white-space: nowrap; font-size: 12px; font-weight: 700; color: #1a2b4a; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.rp-city.t2 { display: none; }
.rp-city.t2 span { font-size: 11px; font-weight: 600; color: #34476b; }
.show-t2 .rp-city.t2 { display: block; }
@media (max-width: 760px) { .rp-spot { left: 8px; right: 8px; width: auto; bottom: 22px; } .rp-city.t1 span { font-size: 11px; } }
/* very narrow phones (≤360px): the header keeps to one line */
@media (max-width: 360px) {
  .bar .wrap { gap: 6px; }
  .bar-end { gap: 6px; }
  .brand { gap: 7px; }
  .brand img { width: 34px; height: 34px; }
  .brand-txt b { font-size: 17px; }
  .brand-txt small { font-size: 10px; }
}

/* ── forecast page before any place is chosen: an animated invitation ── */
.pick { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 34px 20px 30px; margin-top: 6px; border-radius: 22px; background: radial-gradient(600px 260px at 50% 0, #e6f0ff, transparent 70%), #fff; box-shadow: var(--shadow); animation: pick-in .45s ease-out both; }
.pick[hidden] { display: none; }
@keyframes pick-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pick h2 { margin: 6px 0 0; font-size: 24px; }
.pick-sub { margin: 0; max-width: 460px; color: var(--ink2); }
.pick-scene { position: relative; width: 190px; height: 170px; }
.pick-halo { position: absolute; left: 50%; top: 48%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, rgba(59,130,246,.22), rgba(59,130,246,0) 70%); animation: pick-pulse 2.4s ease-in-out infinite; }
@keyframes pick-pulse { 50% { transform: scale(1.25); opacity: .6; } }
.pick-orbit { position: absolute; inset: 0; animation: pick-spin 14s linear infinite; }
.pick-orbit .o { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(20,35,63,.12); }
.pick-orbit .o .ms { font-size: 24px; animation: pick-spin 14s linear infinite reverse; }
.pick-orbit .o1 { transform: translate(0, -72px); } .pick-orbit .o1 .ms { color: var(--orange); }
.pick-orbit .o2 { transform: translate(78px, 0); } .pick-orbit .o2 .ms { color: var(--blue2); }
.pick-orbit .o3 { transform: translate(0, 72px); } .pick-orbit .o3 .ms { color: #6d5bd0; }
.pick-orbit .o4 { transform: translate(-78px, 0); } .pick-orbit .o4 .ms { color: #4fb3d9; }
@keyframes pick-spin { to { rotate: 360deg; } }
.pick-pin { position: absolute; left: 50%; top: 50%; margin: -38px 0 0 -26px; animation: pick-bounce 1.6s ease-in-out infinite; }
.pick-pin .ms { font-size: 52px; color: var(--blue); filter: drop-shadow(0 6px 8px rgba(37,99,235,.3)); }
.pick-shadow { position: absolute; left: 50%; top: 50%; width: 30px; height: 7px; margin: 16px 0 0 -15px; border-radius: 50%; background: rgba(20,35,63,.18); animation: pick-shade 1.6s ease-in-out infinite; }
@keyframes pick-bounce { 50% { transform: translateY(-10px); } }
@keyframes pick-shade { 50% { transform: scale(.7); opacity: .5; } }
.pick-field { display: flex; align-items: center; gap: 10px; width: min(420px, 100%); margin-top: 8px; padding: 13px 16px; border: 1.5px solid #cfdcf3; border-radius: 14px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); cursor: text; text-align: left; transition: border-color .15s ease, box-shadow .15s ease; }
.pick-field:hover { border-color: var(--blue2); box-shadow: 0 0 0 4px var(--blue-bg); }
.pick-field .ms { color: var(--ink3); }
.pick-type { min-height: 1.3em; }
.pick-caret { width: 2px; height: 20px; margin-left: -8px; background: var(--blue); animation: pick-blink 1s steps(1) infinite; }
@keyframes pick-blink { 50% { opacity: 0; } }
.pick-locate { gap: 6px; }
.pick-or { margin: 6px 0 0; font-size: 13px; color: var(--ink3); }
.pick-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 560px; }
.pick-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; animation: pick-in .4s ease-out both; animation-delay: calc(200ms + var(--d)); transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.pick-chips button:hover { background: var(--blue-bg); color: var(--blue); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .pick, .pick *, .pick-chips button { animation: none !important; } }
@media (max-width: 760px) { .pick { padding: 26px 16px 24px; } .pick h2 { font-size: 21px; } }

/* ── footer bottom row: language and the visit counter ── */
.foot .foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line2); font-size: 12px; color: var(--ink3); }
.foot-bottom .lang { order: 0; }
.foot-visits { display: inline-flex; align-items: center; gap: 6px; }
.foot-visits .ms { font-size: 17px; }
.foot-visits b { color: var(--ink2); font-family: 'JetBrains Mono', monospace; }
.foot-visits[hidden] { display: none; }

/* ── the radar card, reorganised (23 Oct 2026): a headline, then two tiles ── */
.spot-head > div { display: grid; gap: 2px; min-width: 0; }
.spot-head small { font-size: 12px; color: var(--ink3); }
.spot-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 12px 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--line2); }
.spot-main .spot-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; }
.spot-main .spot-ic .ms { font-size: 26px; color: var(--ink3); }
.spot-what { display: grid; gap: 2px; min-width: 0; }
.spot-what b { font-size: 15.5px; line-height: 1.25; }
.spot-what small { font-size: 12.5px; color: var(--ink2); line-height: 1.35; }
.spot-num { display: grid; justify-items: end; line-height: 1; }
.spot-num b { font-family: 'JetBrains Mono', monospace; font-size: 22px; }
.spot-num small { font-size: 11px; color: var(--ink3); margin-top: 3px; }
.spot-main.is-wet { background: #e3eefc; } .spot-main.is-wet .spot-ic .ms { color: var(--blue); }
.spot-main.is-storm { background: #feedc9; } .spot-main.is-storm .spot-ic .ms { color: #d98a00; } .spot-main.is-storm .spot-what small { color: #6b3a00; font-weight: 600; }
.spot-main.is-hail { background: #ffe4dd; } .spot-main.is-hail .spot-ic .ms { color: #e64340; }
.spot-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.spot-tile { display: grid; gap: 3px; align-content: start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.spot-label { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); }
.spot-label .ms { font-size: 16px; text-transform: none; letter-spacing: 0; } /* icon names are case-sensitive ligatures */
.spot-tile b { font-size: 15px; }
.spot-tile small { font-size: 12px; color: var(--ink3); line-height: 1.35; }
.spot-tile.is-hail { background: #ffe4dd; border-color: #f5b3a6; } .spot-tile.is-hail b, .spot-tile.is-hail .spot-label { color: #ac191f; }
.rp-city.t3 i { width: 4px; height: 4px; left: -2px; top: -2px; background: #34476b; }
.rp-city.t3 span { left: 5px; top: -8px; font-size: 10.5px; font-weight: 600; color: #34476b; }

/* ── forecast: the day in short, under the day's heading (24 Oct 2026) ── */
.day-report { margin: 2px 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--line2); }
.day-report h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); }
.day-report h3 .ms { font-size: 17px; }
.day-report p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
/* the details that come and go in the "Adesso" grid: tinted, so they read as news */
.now-facts .nf-extra { background: #e8f4fb; }
.now-facts .nf-extra dt .ms { color: #2b8fc4; }

/* ── "Adesso" compact (user, 24 Oct 2026): the whole card in sight when the
   page opens — temperature and sky on one row, the four facts as a 2 x 2
   grid, the two hail tiles side by side. Nothing removed. ── */
.now-row { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.now-row .now-temp { margin-top: 0; gap: 8px; }
.now-row .now-temp .now-ic { font-size: 44px; }
.now-row .now-temp b { font-size: 52px; }
.now-txt { min-width: 0; }
.now-txt .now-cond { margin-top: 0; font-size: 16.5px; line-height: 1.2; }
.now-txt .now-hilo { font-size: 13.5px; }
.now-facts { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.now-facts div { display: grid; gap: 2px; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--line2); }
.now-facts dt { font-size: 12px; gap: 5px; }
.now-facts dt .ms { font-size: 15px; }
.now-facts dd { font-size: 14px; }
.now-radar { margin-top: 10px; padding: 10px 12px; }
.now-radar p { margin-top: 4px; font-size: 12.5px; }
.now-hail { margin-top: 12px; }
.nh-head { margin-bottom: 6px; }
.nh-tiles { grid-template-columns: 1fr 1fr; }
.nh-tiles div { padding: 8px 10px; align-content: start; }
.nh-tiles b { font-size: 13.5px; line-height: 1.25; }

/* ── large screens (user, 24 Oct 2026): the wider page keeps its proportions —
   the Italy map grows in height with the width, the side columns a little ── */
@media (min-width: 1300px) {
  .map { height: clamp(600px, 40vw, 740px); }
  .map-list { max-height: clamp(600px, 40vw, 740px); }
  .map-card { grid-template-columns: minmax(0, 1fr) 330px; }
  .layout { grid-template-columns: 360px minmax(0, 1fr); gap: 24px; }
  .peek-map { height: 380px; }
}

/* ── home hero (user, 24 Oct 2026): 10% lower, and the app in sight at once —
   a card beside the search and a speech bubble from the cloud ── */
.home-hero { padding: 46px 0 54px; }
.home-hero h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 50px); }
.home-hero p { margin-bottom: 16px; font-size: 17px; }
.home-hero .search { max-width: 980px; } /* the whole row is the search again (24 Oct 2026) */
.mascot-wrap { position: relative; justify-self: end; }
.mascot-wrap .mascot { width: 270px; display: block; }
.mascot-bubble { position: absolute; z-index: 3; top: -18px; left: -36px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; box-shadow: 0 10px 24px rgba(0,0,0,.25); animation: bubble-pop 3.2s ease-in-out infinite; }
.mascot-bubble .ms { font-size: 18px; color: #fc7e20; }
.mascot-bubble:hover { color: var(--blue); }
@keyframes bubble-pop { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .mascot-bubble { animation: none; } }
@media (max-width: 980px) { .mascot-wrap .mascot { width: 180px; } .mascot-bubble { left: -30px; top: -16px; font-size: 13px; } }
@media (max-width: 760px) {
  .home-hero { padding: 24px 0 28px; }
  .mascot-wrap { position: static; }
  /* on a phone the bubble sits under the search, the faded cloud stays in its corner */
  .mascot-wrap { justify-self: start; margin-top: -18px; }
  .mascot-bubble { position: static; animation: none; border-radius: 16px; }
  .mascot-wrap .mascot { width: 120px; }
  .home-hero p { font-size: 15.5px; }
}

/* ── radar page on MapLibre (24 Oct 2026): street-level rain, the 3D button ── */
.rp-map .maplibregl-canvas { outline: none; }
.rp-map .maplibregl-ctrl-top-left { top: 8px; left: 8px; }
.rp-map .maplibregl-ctrl-group { border-radius: 10px; box-shadow: 0 4px 14px rgba(20,35,63,.15); }
.rp-pin { cursor: default; line-height: 0; }
.rp-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.rp-fx.on { opacity: 1; }
.rp-fxchip { position: absolute; z-index: 5; top: 44px; right: 10px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 6px 20px rgba(20,35,63,.18); pointer-events: none; animation: pick-in .35s ease-out both; }
.rp-fxchip[hidden] { display: none; }
.rp-fxchip > .ms { font-size: 22px; color: var(--ink3); }
.rp-fxchip span { display: grid; line-height: 1.2; }
.rp-fxchip b { font-size: 13.5px; }
.rp-fxchip small { font-size: 11px; color: var(--ink3); }
.rp-fxchip.k1 > .ms { color: #6aa6f0; } .rp-fxchip.k2 > .ms { color: var(--blue); } .rp-fxchip.k3 > .ms { color: #d98a00; } .rp-fxchip.k4 > .ms { color: #e64340; }
.rp-3d { position: absolute; z-index: 5; left: 8px; top: 132px; display: none; align-items: center; gap: 4px; padding: 6px 10px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(20,35,63,.15); font: inherit; font-size: 13px; font-weight: 800; color: var(--ink); cursor: pointer; }
.rp-3d.show { display: inline-flex; }
.rp-3d .ms { font-size: 18px; color: var(--blue); }
.rp-3d:hover { background: var(--blue-bg); }
.rp-map .spinner { z-index: 6; }

/* "Accedi" (user, 24 Oct 2026): on a phone it is the last item of the menu, not a button beside it */
.menu-login { display: none; }
@media (max-width: 760px) {
  .menu-login { display: block; border-top: 1px solid var(--line2); margin-top: 4px; padding-top: 4px; }
  .bar-end .login { display: none; }
}

/* ── radar card: the next hour in the square (24 Oct 2026) ── */
.spot-next { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.sn-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.sn-head .ms { font-size: 17px; color: var(--ink3); }
.sn-head b { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); }
.sn-head span { flex: 1 1 auto; text-align: right; font-weight: 700; color: var(--ink); }
.sn-bar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; margin-top: 8px; }
.sn-bar i { height: 12px; border-radius: 3px; }
.sn-ticks { display: flex; justify-content: space-between; margin-top: 3px; font-size: 10.5px; color: var(--ink3); }
.sn-note { display: block; margin-top: 4px; font-size: 11px; color: var(--ink3); }
.spot-na { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; }
.spot-na .ms { font-size: 20px; color: var(--ink3); flex: 0 0 auto; }
/* the play bar, compact (user, 24 Oct 2026, twice): a slim row — the play
   button as tall as the slider line, centred on it, the time on one line */
.rp-bar { align-items: flex-start; gap: 10px; padding: 7px 12px 5px; }
.rp-play { width: 22px; height: 22px; margin-top: -2px; box-shadow: 0 2px 6px rgba(37,99,235,.28); }
.rp-play .ms { font-size: 16px; }
.rp-track input[type=range] { display: block; height: 18px; margin: 0; }
.rp-load { margin: 0 0 1px; }
.rp-ticks { font-size: 10px; line-height: 1.1; }
.rp-when { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.rp-when b { font-size: 14px; line-height: 18px; }
.rp-when small { font-size: 10.5px; }
/* the hamburger on the right edge (user, 24 Oct 2026): with "Accedi" in the menu the button group must still be pushed right */
@media (max-width: 760px) { .bar-end { margin-left: auto; } }

/* ── the radars of the network on the map (24 Oct 2026) ── */
.rp-site { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(20,35,63,.35); }
.rp-site .ms { font-size: 14px; color: #fff; }
.rp-site.on { background: #1f9d55; }
.rp-site.off { background: #d64545; }
.rp-site:hover { transform: scale(1.15); }
.rp-site-pop .maplibregl-popup-content { display: grid; gap: 2px; padding: 10px 28px 10px 12px; border-radius: 12px; font: inherit; font-size: 13px; box-shadow: 0 8px 24px rgba(20,35,63,.2); }
.rp-site-pop span { color: var(--ink3); font-size: 12px; }
.rp-site-pop em { font-style: normal; font-weight: 800; }
.rp-site-pop em.on { color: #1f9d55; } .rp-site-pop em.off { color: #d64545; }
.rp-site-pop small { color: var(--ink3); font-size: 11px; }
.rp-sites-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: 12px; color: var(--ink2); }
.rp-sites-note[hidden] { display: none; }
.rp-sites-note .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 4px; }
.rp-sites-note .dot.on { background: #1f9d55; } .rp-sites-note .dot.off { background: #d64545; }
.rp-sites-note small { color: var(--ink3); }
/* on a phone the radar card is a sheet at the bottom of the map that scrolls, so the pin stays in sight above it */
@media (max-width: 760px) {
  .rp-spot { left: 0; right: 0; bottom: 0; width: auto; max-height: 58%; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 12px 14px; overscroll-behavior: contain; }
  .spot-main { margin: 8px 0; padding: 10px 12px; }
}

/* live radar check (amber = area only partly seen) and the users' reports */
.rp-site.part { background: #e0a100; }
.rp-sites-note .dot.part { background: #e0a100; }
.rp-site-pop em.part { color: #b07d00; }
.rp-sites-note .dot.hail { background: #e64340; } .rp-sites-note .dot.rain { background: #3b82f6; }
.rp-sites-note .dot.dry { background: #f2b705; } .rp-sites-note .dot.wind { background: #14a3a3; }
.rp-site-pop em.unk { color: var(--ink3); }
.rp-sites-note .dot.unk { background: #8a96a8; }
/* the radars in the legend are rings too, like on the map */
#rp-sites-note .dot { background: #fff !important; box-shadow: inset 0 0 0 2.5px currentColor; }
#rp-sites-note .dot.on { color: #1f9d55; } #rp-sites-note .dot.part { color: #e0a100; } #rp-sites-note .dot.off { color: #d64545; } #rp-sites-note .dot.unk { color: #8a96a8; }

/* Chi siamo: headings inside the story, the work-in-progress badge (24 Oct 2026) */
.prose h3 { margin: 18px 0 4px; font-size: 16px; }
.wip-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #fff4e0; color: #9a5b00; font-size: 11.5px; font-weight: 800; vertical-align: middle; }
.wip-badge .ms { font-size: 14px; }
/* home: the collaboration line under the search */
.hero-collab { margin: 10px 0 0 !important; font-size: 13.5px !important; color: rgba(255,255,255,.78); }
.hero-collab a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.hero-collab a:hover { text-decoration: underline; }
.ig-logo { width: 15px; height: 15px; }

/* ── news cards with a face (user, 24 Oct 2026: the row of identical green was sad) ──
   each story's colours and icon from its theme, two soft orbs for depth,
   the publication date on a glass chip, a lift on hover */
.carousel .news-card { transition: transform .18s ease, box-shadow .18s ease; }
.carousel a.news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,35,63,.14); border-color: transparent; }
.nc-top { height: 136px; }
.nc-top .nc-ic { font-size: 62px; position: relative; z-index: 1; filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); transition: transform .25s ease; }
a.news-card:hover .nc-ic { transform: scale(1.08) rotate(-4deg); }
.nc-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.16); }
.nc-orb.a { width: 150px; height: 150px; right: -40px; top: -60px; }
.nc-orb.b { width: 90px; height: 90px; left: -26px; bottom: -40px; background: rgba(255,255,255,.1); }
.nc-date { position: absolute; z-index: 2; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.nc-date .ms { font-size: 14px; color: var(--ink3); }
.topic-heat { background: linear-gradient(135deg, #c2410c, #fb923c 60%, #fcd34d); }
.topic-cold { background: linear-gradient(135deg, #0369a1, #38bdf8 60%, #bae6fd); }
.topic-storm { background: linear-gradient(135deg, #312e81, #6366f1 60%, #a5b4fc); }
.topic-sea { background: linear-gradient(135deg, #0f766e, #14b8a6 60%, #99f6e4); }
.topic-climate { background: linear-gradient(135deg, #86198f, #d946ef 60%, #f0abfc); }
.topic-science { background: linear-gradient(135deg, #1e293b, #0ea5e9 70%, #7dd3fc); }
.topic-history { background: linear-gradient(135deg, #78350f, #d97706 60%, #fde68a); }
.topic-names { background: linear-gradient(135deg, #1e3a8a, #3b82f6 60%, #93c5fd); }
.topic-weather { background: linear-gradient(135deg, #15803d, #22c55e 60%, #bbf7d0); }
.topic-today { background: linear-gradient(135deg, #1d4ed8, #38bdf8 60%, #a5f3fc); }
/* the collaboration line: words, dot and Instagram link on one centred axis */
.hero-collab { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; line-height: 1.3; }
.hero-collab a { line-height: 1; }
.ig-logo { display: block; flex: 0 0 auto; }
#rp-sites-note .dot.standby { color: #8a96a8; } #rp-sites-note .dot.unk { color: #c3cad5; }
.rp-site-pop em.standby { color: #5f6b7d; }

/* our own stories: the radar now, the alert bulletin by level */
.topic-radar { background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #60a5fa); }
.topic-alert-none { background: linear-gradient(135deg, #166534, #22c55e 60%, #bbf7d0); }
.topic-alert-gialla { background: linear-gradient(135deg, #a16207, #eab308 60%, #fde68a); }
.topic-alert-arancione { background: linear-gradient(135deg, #9a3412, #f97316 60%, #fed7aa); }
.topic-alert-rossa { background: linear-gradient(135deg, #7f1d1d, #dc2626 60%, #fca5a5); }
/* play: only the blue icon, no disc (user, 24 Oct 2026: the ring sat off-centre) */
.rp-play { width: 22px; height: 22px; background: none; box-shadow: none; color: var(--blue); }
.rp-play:hover { background: none; color: #1d4ed8; transform: scale(1.12); }
.rp-play .ms { font-size: 24px; }
/* news: the publication date in the top-right corner of the card */
.news-card .nc-date { left: auto; right: 12px; margin: 0; } /* the old ".news-card time" margins do not apply to the chip */
/* while the radar loads (the spinner is there), the map is greyed and cannot be used (user, 24 Oct 2026) */
.rp-map:has(> .spinner)::after { content: ""; position: absolute; inset: 0; z-index: 5; background: rgba(236,240,245,.72); backdrop-filter: grayscale(1) blur(1px); cursor: progress; }
.rp-map:has(> .spinner) .maplibregl-ctrl, .rp-map:has(> .spinner) .rp-3d { pointer-events: none; }

/* ── the satellite in the news (24 Oct 2026) ── */
.nc-top.has-sat { background-size: cover; background-position: center; }
.nc-top.has-sat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,55,.15), rgba(10,25,55,.55)); }
.nc-top.has-sat .nc-orb { display: none; }
.nc-top.has-sat > .ms { position: relative; z-index: 1; }
.sat-card { padding: 0; border: 0; font: inherit; text-align: left; cursor: zoom-in; color: var(--ink); }
.sat-card .nc-top { background: #0b1324; }
.sat-card .nc-top img { transition: transform .4s ease; }
.sat-card:hover .nc-top img { transform: scale(1.06); }
.nc-credit { display: block; margin-top: 6px; font-size: 10.5px; color: var(--ink3); }
.sat-view { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(5,10,20,.88); cursor: zoom-out; animation: pick-in .25s ease-out both; }
.sat-view figure { margin: 0; max-width: min(1000px, 100%); }
.sat-view img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 12px; }
.sat-view figcaption { margin-top: 8px; color: rgba(255,255,255,.75); font-size: 12px; text-align: center; }
.sat-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ── the Webcam page (24 Oct 2026) ── */
.wc-map .maplibregl-ctrl-top-left { top: 8px; left: 8px; }
.wc-credit { margin: 0; font-size: 12px; color: var(--ink3); }
.wc-credit a { color: var(--ink2); font-weight: 600; }
.wc-shot { position: relative; display: block; margin: 10px 0; border-radius: 12px; overflow: hidden; background: #0b1324; }
.wc-shot img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.wc-when { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 11.5px; }
.wc-when .ms { font-size: 14px; }
.wc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wc-actions .btn { gap: 6px; }
.wc-by { display: block; margin-top: 8px; font-size: 11px; color: var(--ink3); }
.wc-near { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wc-item { display: grid; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.wc-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(20,35,63,.14); }
.wc-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0b1324; }
.wc-item-txt { display: grid; gap: 2px; padding: 10px 12px; }
.wc-item-txt b { font-size: 14px; line-height: 1.3; }
.wc-item-txt small { font-size: 12px; color: var(--ink3); }
.wc-empty { margin: 0; color: var(--ink2); }
.wc-near .spinner { position: static; margin: 20px auto; }
.wc-player figure { width: min(960px, 100%); }
.wc-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }

/* live webcams: a red dot that pulses, a LIVE tag on the pictures */
.wc-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: wc-pulse 1.6s ease-out infinite; flex: 0 0 auto; }
@keyframes wc-pulse { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.btn.wc-live-btn { background: #dc2626; border-color: #dc2626; }
.btn.wc-live-btn:hover { background: #b91c1c; }
.wc-item-img { position: relative; display: block; }
.wc-item-img img { display: block; }
.wc-live-tag { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
@media (prefers-reduced-motion: reduce) { .wc-dot { animation: none; } }
a.wc-item { text-decoration: none; }
#fc-cams .wc-credit { margin-top: 10px; }

/* "Solo in diretta": a switch on the map */
.wc-live-toggle { position: absolute; z-index: 5; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(20,35,63,.15); }
.wc-live-toggle .wc-dot { background: #dc2626; animation: none; }
.wc-live-toggle.on { background: #dc2626; border-color: #dc2626; color: #fff; }
.wc-live-toggle.on .wc-dot { background: #fff; animation: wc-pulse 1.6s ease-out infinite; }
.wc-live-toggle.busy { opacity: .75; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .wc-live-toggle.on .wc-dot { animation: none; } }
/* webcam page: no play bar between map and text, so the text gets its own room */
.wc-map + .rp-foot { padding-top: 12px; }

/* ── the animated wind on the radar map (24 Oct 2026) ── */
.rp-wind { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.rp-wind-btn { position: absolute; z-index: 5; left: 10px; bottom: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(20,35,63,.15); }
.rp-wind-btn .ms { font-size: 18px; color: var(--blue); }
.rp-wind-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.rp-wind-btn.on .ms { color: #fff; }
.rp-wind-btn.busy { opacity: .7; cursor: progress; }
.rp-wind-legend { position: absolute; z-index: 5; left: 10px; bottom: 70px; display: grid; gap: 4px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 4px 14px rgba(20,35,63,.15); font-size: 11px; color: var(--ink2); pointer-events: none; }
.rp-wind-legend[hidden] { display: none; }
.wl-scale { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.wl-scale i { width: 14px; height: 4px; border-radius: 2px; margin-left: 4px; }
button.wc-shot { width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left; }
.wc-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0); transition: background .2s ease; }
.wc-play .ms { font-size: 54px; color: #fff; opacity: .85; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); transition: transform .2s ease; }
button.wc-shot:hover .wc-play { background: rgba(0,0,0,.18); }
button.wc-shot:hover .wc-play .ms { transform: scale(1.1); }
/* the radar card never taller than the map: it scrolls inside (24 Oct 2026, the wind tile made it overflow at the top) */
.rp-spot { max-height: calc(100% - 40px); overflow-y: auto; overscroll-behavior: contain; }
/* an odd last tile takes the whole row instead of leaving a hole */
.spot-tiles .spot-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .rp-spot { max-height: 58%; } } /* on a phone it stays the low sheet, the pin in sight above it */
.spot-tile.is-gauge { background: #e3eefc; border-color: #c4d8f6; } .spot-tile.is-gauge .spot-label { color: var(--blue); }

/* ── the reports banner (24 Oct 2026) ── */
.rp-reports-banner { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #fff7ed, #ffedd5); border: 1px solid #fed7aa; }
.rp-reports-banner[hidden] { display: none; }
.rb-ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #f97316; color: #fff; }
.rb-ic .ms { font-size: 21px; }
.rb-txt { display: grid; gap: 3px; min-width: 0; }
.rb-txt b { font-size: 14px; color: #7c2d12; line-height: 1.3; }
.rb-txt small { font-size: 12px; color: #9a3412; }
.rb-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; color: var(--ink2); }
.rb-keys .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 4px; }
.rb-keys .dot.hail { background: #e64340; } .rb-keys .dot.rain { background: #3b82f6; } .rb-keys .dot.dry { background: #36ac62; } .rb-keys .dot.wind { background: #0f8b8d; }

/* a gauge hour that ended well before the radar scan (24 Oct 2026) */
.spot-tile .spot-note { display: flex; gap: 4px; align-items: flex-start; margin-top: 4px; font-style: normal; font-size: 11.5px; line-height: 1.35; color: #9a6700; }
.spot-tile .spot-note .ms { font-size: 14px; margin-top: 1px; }

/* report pin sheet: the app's ReportDetailSheet on the web (24 Oct 2026) */
.rp-rep-pop .maplibregl-popup-content { padding: 14px 16px 12px; border-radius: 16px; font: inherit; box-shadow: 0 10px 28px rgba(20,35,63,.22); max-height: 60vh; overflow-y: auto; }
.rp-rep-pop .maplibregl-popup-close-button { font-size: 20px; width: 28px; height: 28px; right: 4px; top: 4px; color: var(--ink3); }
.rs-head { display: flex; align-items: center; gap: 10px; margin: 0 22px 8px 0; }
.rs-head b { font-size: 15.5px; line-height: 1.25; color: var(--ink); }
.rs-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.rs-ic .ms { font-size: 21px; }
.rs-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.rs-line span { color: var(--ink3); }
.rs-line b { text-align: right; color: var(--ink); font-weight: 600; }
.rs-badge { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 9px 10px; border-radius: 11px; background: #eef4ff; }
.rs-badge > .ms { font-size: 16px; color: #1d4ed8; margin-top: 1px; }
.rs-badge b { display: block; font-size: 13px; color: #1d4ed8; }
.rs-badge small { display: block; font-size: 12px; line-height: 1.4; color: var(--ink2); }
.rs-badge.tone-good { background: #e8f6ee; } .rs-badge.tone-good > .ms, .rs-badge.tone-good b { color: #1f8a4c; }
.rs-badge.tone-warn { background: #fff4e0; } .rs-badge.tone-warn > .ms, .rs-badge.tone-warn b { color: #b45309; }
.rs-badge.rs-level { background: #f4f6fa; }
.rs-badge.rs-level > div { flex: 1; }
.rs-lv { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.rs-lv b { color: var(--ink); }
.rs-stones { display: inline-flex; gap: 1px; }
.rs-stones i { font-style: normal; } .rs-stones .ms { font-size: 15px; }
.rs-foot { margin: 10px 0 0; font-size: 11px; color: var(--ink3); }
.maplibregl-popup.rp-rep-pop { z-index: 8; }

/* radar measurements in the click card (24 Oct 2026) */
.spot-radar { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rm-title { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); }
.rm-title .ms { font-size: 16px; }
.rm-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: start; padding: 7px 0; border-top: 1px solid var(--line); }
.rm-row:first-of-type { border-top: 0; }
.rm-row > .ms { font-size: 18px; color: #2563eb; margin-top: 1px; }
.rm-row span { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rm-row small { display: block; font-size: 11.5px; line-height: 1.35; color: var(--ink3); }
.rm-row b { font-family: 'JetBrains Mono', monospace; font-size: 14px; white-space: nowrap; color: var(--ink); }
.foot-build { font-family: 'JetBrains Mono', monospace; font-size: 11px; }

.rm-dry { margin: 0; font-size: 13px; color: var(--ink3); }
#peek-measures .spot-radar { margin-top: 12px; }

/* app screens are whole scrolling pages (24 Oct 2026): a phone-shaped top in
   the gallery and the hero; the large view shows the whole screen, a tap
   zooms it to a readable width that scrolls */
.shots img, .phone-stage .phone { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.lightbox .lb-scroll { max-height: calc(100vh - 190px); max-width: 100%; overflow: hidden; border-radius: 22px; border: 8px solid #0b1324; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; animation: lb-in .2s ease-out; }
.lightbox .lb-scroll img { display: block; width: auto; height: auto; max-height: calc(100vh - 206px); max-width: 100%; border: 0; border-radius: 0; box-shadow: none; animation: none; cursor: zoom-in; }
.lightbox .lb-scroll.zoom { height: calc(100vh - 190px); width: min(480px, 100%); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.lightbox .lb-scroll.zoom img { width: 100%; max-height: none; cursor: zoom-out; }
.lightbox .lb-hint { color: rgba(255,255,255,.7); font-size: 12px; margin-top: -4px; }
.shots figure.is-doc img { object-fit: contain; background: #fff; }
/* a line under each screen saying what it shows (24 Oct 2026) */
.shots .shot-sub { margin: 3px 2px 0; font-size: 12px; line-height: 1.4; color: var(--ink3); text-align: center; }
.lightbox .lb-sub { margin: -4px 0 0; max-width: 420px; color: rgba(255,255,255,.85); font-size: 13px; line-height: 1.45; text-align: center; }
.peek-legend i { width: 24px; } /* the ten shades inside each class (24 Oct 2026) */


/* ── news sorting & meteorologist modal (Nov 2026) ── */
.front-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-sort button { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 6px 11px; }
.news-sort button .ms { font-size: 16px; }
.badge-ava { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.nc-top .nc-meteo-logo { width: 82px; height: 82px; border-radius: 20px; object-fit: cover; position: relative; z-index: 1; box-shadow: 0 8px 20px rgba(0,0,0,.22); background: #fff; }
button.nc-btn { width: 100%; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.meteo-modal-card { background: #fff; color: var(--ink); border-radius: 20px; max-width: min(680px, 100%); max-height: 86vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,.45); cursor: default; }
.meteo-modal-img { width: 100%; max-height: 460px; object-fit: contain; background: #0f1c36; display: block; }
.meteo-modal-body { padding: 22px 24px 26px; }
.meteo-modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.meteo-modal-head img { border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.meteo-modal-head b { display: block; font-size: 15px; }
.meteo-modal-head small { color: var(--ink3); font-size: 12.5px; }
.meteo-modal-body h2 { margin: 0 0 12px; font-size: 22px; }
.meteo-modal-prose p { margin: 0 0 10px; color: var(--ink2); line-height: 1.6; font-size: 15px; }

/* ── Area Meteorologo (/accedi/) ── */
.meteo-login-card { max-width: 480px; margin: 28px auto; }
.meteo-login-logos { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.meteo-login-logos img { border-radius: 14px; box-shadow: 0 4px 14px rgba(20,35,63,.12); background: #fff; }
.meteo-login-plus { font-weight: 800; color: var(--ink3); font-size: 20px; }
.meteo-link-btn { background: none; border: 0; color: var(--blue); font-size: 13px; padding: 6px; cursor: pointer; justify-content: center; }
.meteo-link-btn:hover { text-decoration: underline; transform: none; box-shadow: none; }
.meteo-login-msg { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--blue-bg); color: var(--blue); font-size: 13.5px; font-weight: 600; }
.meteo-login-msg.is-err { background: #ffe4dd; color: #ac191f; }

.meteo-workspace { margin-top: 14px; display: grid; gap: 18px; }
.meteo-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.meteo-who { display: flex; align-items: center; gap: 12px; }
.meteo-who img { border-radius: 12px; box-shadow: 0 2px 8px rgba(20,35,63,.12); }
.meteo-who h1 { margin: 0; font-size: 20px; }
.meteo-who p { margin: 2px 0 0; font-size: 13px; color: var(--ink2); }
.meteo-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: var(--line2); padding: 4px; border-radius: 14px; }
.meteo-tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 9px 14px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink2); cursor: pointer; }
.meteo-tab.on { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.25); }
.meteo-logout-btn { background: var(--line2); color: var(--ink); border: 0; cursor: pointer; font: inherit; }

/* Studio Grafico Instagram */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 20px; align-items: start; }
.studio-controls { display: grid; gap: 16px; }
.studio-box h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.studio-box h2 .ms { color: var(--blue); font-size: 20px; }
.studio-hint { margin: -4px 0 12px; font-size: 13px; color: var(--ink2); }
.studio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.studio-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-row label, .pub-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.studio-row input, .studio-row select, .pub-form input, .pub-form select, .pub-form textarea, #st-caption {
  width: 100%; font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfd; color: var(--ink);
}
.studio-row input:focus, .studio-row select:focus, .pub-form input:focus, .pub-form textarea:focus, #st-caption:focus {
  outline: 0; border-color: var(--blue2); background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meteo-sec-btn { background: var(--line2); color: var(--ink); border: 1px solid var(--line); cursor: pointer; font: inherit; font-weight: 700; }
.meteo-mini-btn { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; background: var(--line2); color: var(--ink); border: 1px solid var(--line); cursor: pointer; font: inherit; font-weight: 700; }
.meteo-mini-btn.danger { background: #ffe4dd; color: #ac191f; border-color: #f5b3a6; }

/* Palette 14 icone meteo */
.st-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.st-pal-btn { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, #16294b, #233f70); color: #fff; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.st-pal-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,35,63,.22); border-color: var(--blue2); }
.st-pal-btn canvas { width: 44px; height: 44px; display: block; }

.st-selected-box { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--blue-bg); border: 1px solid #bfd6f8; }
.st-sel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.st-sel-head b { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--blue); }
.st-sel-btns { display: flex; gap: 6px; }

/* Pennelli regioni */
.st-brushes { display: flex; flex-wrap: wrap; gap: 6px; }
.st-brush { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.st-brush i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.st-brush.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.studio-checks { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.st-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; }

/* Colonna Anteprima Canvas */
.studio-preview-col { position: sticky; top: 82px; display: grid; gap: 16px; }
.studio-canvas-card { padding: 16px; }
.studio-canvas-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.studio-canvas-head small { font-family: 'JetBrains Mono', monospace; color: var(--ink3); font-size: 12px; }
.studio-canvas-wrap { background: #0b1324; border-radius: 16px; overflow: hidden; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
#meteo-canvas { width: 100%; height: auto; max-height: 68vh; object-fit: contain; display: block; cursor: grab; touch-action: none; }
#meteo-canvas:active { cursor: grabbing; }
.studio-canvas-tip { display: flex; align-items: center; gap: 6px; margin: 8px 0 10px; font-size: 12px; color: var(--ink3); }
.studio-canvas-tip .ms { font-size: 16px; color: var(--blue); }
.studio-dl-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-dl-bar .btn { flex: 1 1 auto; justify-content: center; }
.studio-caption-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.studio-caption-head h2 { margin: 0; }

/* Tab 2: Sala Analisi & Modelli */
.analysis-top-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 18px; align-items: start; }
.an-alerts-box { display: grid; gap: 6px; margin-bottom: 12px; }
.an-alert-row { padding: 9px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 13px; display: grid; gap: 2px; }
.an-alert-row b { color: #9a3412; }
.an-brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.an-brief-card { padding: 12px 14px; border-radius: 12px; background: var(--line2); }
.an-brief-card h4 { margin: 0 0 8px; font-size: 13px; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.an-brief-card ul { margin: 0; padding-left: 16px; display: grid; gap: 6px; font-size: 13px; color: var(--ink2); }
.an-brief-card b { color: var(--ink); }
.an-live-viewer { background: #0b1324; border-radius: 14px; overflow: hidden; text-align: center; position: relative; }
.an-live-viewer img { width: 100%; height: 310px; object-fit: contain; display: block; background: #0f1c36; }
.an-live-meta { display: block; padding: 7px 12px; font-size: 12px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.45); }

.an-search-bar { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 16px; align-items: center; margin-bottom: 10px; }
.an-quick-cities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.an-city-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.an-city-btn:hover, .an-city-btn.on { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Risalto Emiliano D’Alessandro nella Home Page */
.hero-collab .collab-name {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px 3px 5px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.75);
  color: #fde047; font-weight: 800; font-size: 14.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.hero-collab .collab-name img {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; object-fit: cover;
}

/* Bottone Esci nell'header superiore quando il meteorologo è connesso */
.bar-end .login.is-logout {
  background: #fee2e2; color: #b91c1c; border-color: #fca5a5;
}
.bar-end .login.is-logout:hover {
  background: #fecaca; color: #991b1b;
}

/* Visore Carte Sinottiche (Stile Meteociel / Wetterzentrale) */
.syn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.syn-ext-links { display: flex; gap: 8px; flex-wrap: wrap; }
.syn-ext-links a { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.syn-controls { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; padding: 12px 14px; border-radius: 12px; background: var(--line2); margin-bottom: 12px; }
.syn-group { display: grid; gap: 5px; }
.syn-lbl { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink3); }
.syn-seg button { font-size: 13px; padding: 6px 12px; }
.syn-select { font: inherit; font-size: 13.5px; font-weight: 700; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }

.syn-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 8px; margin-bottom: 14px; }
.syn-var-btn { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; border: 1px solid var(--line); background: #f9fbfd; color: var(--ink2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; transition: all .15s ease; }
.syn-var-btn .ms { font-size: 19px; color: var(--blue); flex: 0 0 auto; }
.syn-var-btn:hover { border-color: var(--blue2); background: var(--blue-bg); color: var(--ink); }
.syn-var-btn.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,.24); }
.syn-var-btn.on .ms { color: #fde047; }

.syn-timeline { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #0f1c36; color: #fff; margin-bottom: 14px; }
.syn-time-btns { display: flex; gap: 6px; align-items: center; }
.syn-slider-wrap { display: grid; gap: 6px; }
.syn-slider-wrap input[type=range] { width: 100%; accent-color: #38bdf8; cursor: pointer; margin: 0; }
.syn-hour-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.syn-pill { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); border-radius: 6px; padding: 2px 8px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.syn-pill:hover, .syn-pill.on { background: #fbbf24; color: #0f1c36; border-color: #fbbf24; }
.syn-cur-badge { display: inline-block; padding: 6px 12px; border-radius: 10px; background: #fbbf24; color: #0f1c36; font-family: 'JetBrains Mono', monospace; font-size: 16px; font-weight: 800; }

.syn-stage { background: #0b1324; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.syn-img-wrap { cursor: zoom-in; text-align: center; position: relative; }
.syn-img-wrap img { width: 100%; max-height: 680px; object-fit: contain; display: block; margin: 0 auto; background: #0b1324; }
.syn-status { padding: 9px 14px; background: rgba(15, 28, 54, 0.95); color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; border-top: 1px solid rgba(255,255,255,.12); }

/* Grafico Spaghetti Multi-Modello su Canvas */
.spaghetti-box { margin-bottom: 18px; padding: 14px; border-radius: 14px; background: #0b1324; color: #fff; }
.spaghetti-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.spaghetti-head b { font-size: 14.5px; color: #f8fafc; }
.spaghetti-canvas-wrap { border-radius: 10px; overflow: hidden; background: #0f1c36; border: 1px solid rgba(255,255,255,.12); }
#spaghetti-canvas { width: 100%; height: auto; display: block; }
.an-place-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.an-place-head h3 { margin: 0 0 6px; font-size: 19px; }
.an-place-head h3 small { color: var(--ink3); font-weight: 600; font-size: 13.5px; }
.an-mod-list { display: flex; flex-wrap: wrap; gap: 6px; }
.an-mod-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--line2); font-size: 12px; }
.an-mod-chip i { font-style: normal; color: var(--ink3); }
.an-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.an-kpi { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f9fbfd; display: grid; gap: 3px; }
.an-kpi small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink3); }
.an-kpi > b { font-size: 20px; font-family: 'JetBrains Mono', monospace; color: var(--blue); }
.an-kpi span { font-size: 12.5px; color: var(--ink2); }
.an-tables-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: start; }
.an-tables-grid h4 { margin: 0 0 8px; font-size: 14px; }
.an-scroll-table { max-height: 440px; overflow-y: auto; }
.an-table th, .an-table td { padding: 7px 9px !important; font-size: 13px !important; width: auto !important; }
.txt-warn { color: #b45309 !important; }
.txt-danger { color: #dc2626 !important; }

.an-charts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.an-chart-group { padding: 14px; border-radius: 14px; background: var(--line2); display: grid; gap: 7px; align-content: start; }
.an-chart-group h3 { margin: 0 0 4px; font-size: 14px; color: var(--ink); }
.an-chart-group a { display: block; padding: 8px 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; transition: border-color .15s ease, color .15s ease; }
.an-chart-group a:hover { border-color: var(--blue2); color: var(--blue); }

/* Tab 3: Pubblica sul Sito */
.publish-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 20px; align-items: start; }
.pub-form { display: grid; gap: 12px; }
.pub-img-box { padding: 12px; border-radius: 12px; border: 1px dashed var(--line); background: #f9fbfd; }
.pub-img-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pub-img-preview { margin-top: 10px; max-height: 220px; border-radius: 10px; display: block; }
.pub-list { display: grid; gap: 10px; }
.pub-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: #f9fbfd; }
.pub-item img { border-radius: 10px; object-fit: cover; }
.pub-item-txt { min-width: 0; display: grid; gap: 2px; }
.pub-item-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-item-txt small { font-size: 12px; color: var(--ink3); }
.pub-item-btns { display: flex; gap: 6px; }

@media (max-width: 1080px) {
  .studio-grid, .analysis-top-grid, .an-tables-grid, .an-charts-grid, .publish-grid { grid-template-columns: minmax(0, 1fr); }
  .studio-preview-col { position: static; }
  .an-kpi-grid { grid-template-columns: 1fr 1fr; }
  .an-search-bar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .studio-row, .studio-row.three, .an-brief-grid, .an-kpi-grid { grid-template-columns: minmax(0, 1fr); }
}
