/* Layout: fascia loghi chiara, poi un palcoscenico scuro con la mappa circolare al centro,
   circondata da un anello di comandi e da testi grandi e leggeri agli angoli. */
:root {
  color-scheme: light;
  --bg: #c4d1d9;
  --bg-2: #aebfca;
  --surface: #d9e3e9;
  --line: #93a6b3;
  --ink: #1d2b35;
  --muted: #465864;
  --orange: #a84a0a;
  --orange-soft: #8a3d08;
  --slate: #7b93a8;
  --logobar: #ffffff;
  --focus: #0d5c8a;
  --halo: #262626;
  --map-out: #3e4348;
  --map-land: #8fa5b7;
  --map-edge: #2c3a45;
  --map-grid: rgba(255, 255, 255, 0.07);
  --c-agri: #6fb64f;
  --c-idrica: #45b3cf;
  --c-urbano: #f28e2b;
  --c-salute: #e0503f;
  --h-calore: #f28e2b;
  --h-siccita: #f0c93a;
  --h-piogge: #4db6e6;
  --h-vento: #6d7f8c;
  --h-erosione: #5f93e0;
  --h-salinita: #b48ed0;
  --font-display: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --font-body: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;
  --font-strong: "Poppins", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
b, strong { font-weight: 600; }
a { color: var(--orange-soft); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
button { font-family: inherit; }
.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fascia loghi (chiara: i loghi istituzionali restano intatti) */
.logobar { background: var(--logobar); }
.logobar .wrap { padding-block: 10px; }
.logos { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo img { display: block; width: auto; }
.logo--macro img { height: 42px; }
.logo--climate img { height: 34px; }
.logo--comune img { height: 48px; }
.logo--comune span { font-family: var(--font-strong); font-weight: 600; font-size: 0.75rem; line-height: 1.2; color: #12303f; }
.logo--ras img { height: 42px; }

/* Menu */
.nav { background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 13px 16px; white-space: nowrap; font-size: 1.05rem; letter-spacing: 0.02em;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); font-weight: 600; }

/* Tipografia grande */
.kicker { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.title { color: var(--orange); font-weight: 300; font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.2rem); line-height: 1; letter-spacing: -0.01em; }
.title b { font-weight: 600; }
.subtitle { color: var(--orange); font-weight: 300; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.2; }
.lead { color: var(--orange); font-weight: 300; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem); line-height: 1.4; }
.lead b { font-weight: 600; }
.body-l { color: var(--ink); font-weight: 300; font-size: 1.2rem; line-height: 1.45; }
.label { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }

/* Palcoscenico con orbita */
.stage-orbit {
  display: grid; gap: 8px 32px; padding-block: 32px 24px;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 700px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas: "tl tl tr" "bl orbit br";
}
.tl { grid-area: tl; align-self: start; display: grid; gap: 14px; }
.tr { grid-area: tr; align-self: start; text-align: right; display: grid; gap: 16px; justify-items: end; }
.bl { grid-area: bl; align-self: start; display: grid; gap: 16px; }
.br { grid-area: br; align-self: end; text-align: right; display: grid; gap: 16px; justify-items: end; }
.side-block { display: grid; gap: 14px; max-width: 34ch; }
.br .side-block { justify-items: end; }
.side-block h2 { color: var(--orange); font-weight: 600; font-size: 1.7rem; line-height: 1.1; }
.side-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.side-block li { font-weight: 300; font-size: 1.15rem; line-height: 1.35; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.br .pills { justify-content: flex-end; }
.pill { font-size: 0.9rem; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.pill:hover { border-color: var(--orange); color: var(--orange); }

.orbit { grid-area: orbit; position: relative; width: 100%; aspect-ratio: 1 / 1; margin-inline: auto; margin-bottom: 66px; align-self: center; }
.orbit .ring { position: absolute; inset: 4.5%; border: 1px solid rgba(242, 142, 43, 0.6); border-radius: 50%; pointer-events: none; }
.orbit .dial, .orbit .dial-major { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit .dial { inset: 7%; opacity: 0.5; background: repeating-conic-gradient(from -0.3deg, var(--orange) 0 0.6deg, transparent 0.6deg 3deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 95%, #000 95.5%); mask: radial-gradient(circle closest-side, transparent 0 95%, #000 95.5%); }
.orbit .dial-major { inset: 7%; background: repeating-conic-gradient(from -0.5deg, var(--orange) 0 1deg, transparent 1deg 30deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 91%, #000 91.5%); mask: radial-gradient(circle closest-side, transparent 0 91%, #000 91.5%); }
.orbit .mapbox { position: absolute; inset: 11%; border-radius: 50%; overflow: hidden; background: var(--map-out); box-shadow: 0 0 0 2px rgba(242, 142, 43, 0.85), 0 0 60px rgba(0, 0, 0, 0.5); }
.map { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map.dragging { cursor: grabbing; }
.map text { font-family: var(--font-body); }

.node { position: absolute; transform: translate(-50%, -50%); background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); z-index: 3; }
.node .pt { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c, var(--orange)); transition: transform 0.15s, background 0.15s; }
.node .tx { position: absolute; width: 132px; font-size: 1rem; line-height: 1.15; font-weight: 400; color: var(--muted); pointer-events: none; }
.node.r .tx { left: 34px; top: 50%; transform: translateY(-50%); text-align: left; }
.node.l .tx { right: 34px; top: 50%; transform: translateY(-50%); text-align: right; }
.node.t .tx { bottom: 34px; left: 50%; transform: translateX(-50%); text-align: center; }
.node.b .tx { top: 34px; left: 50%; transform: translateX(-50%); text-align: center; }
.node:hover .tx { color: var(--ink); }
.node:hover .pt { transform: scale(1.25); }
.node[aria-pressed="true"] .pt { background: var(--c, var(--orange)); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--c, var(--orange)); }
.node[aria-pressed="true"] .tx { color: #fff; font-weight: 600; }

.corner { position: absolute; z-index: 4; }
.corner.tl2 { left: 0; top: 0; }
.corner.tr2 { right: 0; top: 0; }
.corner.bl2 { left: 0; bottom: 0; }
.corner.br2 { right: 0; bottom: -58px; }
.demo-flag { background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 0.78rem; line-height: 1.25; padding: 6px 10px; border-radius: 8px; max-width: 180px; }
.demo-flag b { color: var(--orange); letter-spacing: 0.08em; text-transform: uppercase; margin-right: 4px; }
.zoom { display: flex; gap: 6px; }
.zoom button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--orange); background: var(--bg); color: var(--orange); font-size: 1.2rem; cursor: pointer; }
.zoom button:hover, .zoom button[aria-pressed="true"] { background: var(--orange); color: var(--bg); }
.legend { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 0.8rem; display: grid; gap: 4px; }
.legend .row { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 22px; height: 12px; border-radius: 3px; background: var(--sw); flex: none; }
.legend .sw.mid { opacity: 0.5; }
.legend:empty { display: none; }
.attr { position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%); margin: 0; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.attr[hidden] { display: none; }
.hint { position: absolute; left: 50%; bottom: 20.5%; transform: translateX(-50%); z-index: 4; font-size: 0.82rem; color: var(--orange-soft); background: rgba(35, 35, 35, 0.78); padding: 2px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; }

/* Comandi per schermi stretti */
.chips { display: none; flex-wrap: wrap; gap: 8px; padding-block: 8px 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 400 1rem var(--font-body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 42px; }
.chip .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot, var(--orange)); flex: none; }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #1d1d1d; font-weight: 600; }

/* Aree esposte */
.section { padding-block: 40px 56px; display: grid; gap: 18px; border-top: 1px solid var(--line); }
.section h2 { color: var(--orange); font-weight: 300; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.1; }
.section > p.sub { color: var(--muted); max-width: 66ch; font-weight: 300; font-size: 1.15rem; }
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.area { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.area summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.area summary::-webkit-details-marker { display: none; }
.area summary::after { content: "+"; font-size: 1.5rem; color: var(--orange); line-height: 1; flex: none; font-weight: 300; }
.area[open] summary::after { content: "−"; }
.area[open] { border-color: var(--orange); }
.area .body { padding: 0 16px 16px; display: grid; gap: 12px; font-size: 1rem; font-weight: 300; }
.area h4 { margin: 0 0 4px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.area ul { margin: 0; padding-left: 1.1em; }

/* Elenco soluzioni (colonna destra) */
.sol-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; justify-items: end; }
.sol-list button { background: none; border: 0; cursor: pointer; color: var(--ink); font: 300 1.15rem/1.3 var(--font-body); text-align: right; padding: 5px 0; }
.sol-list button:hover { color: var(--orange); }
.sol-list button[aria-pressed="true"] { color: var(--c, var(--orange)); font-weight: 600; }
.sol-list button::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-left: 10px; }
.badge { display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }

/* Eventi */
.events { display: grid; padding-bottom: 56px; }
.intro-ev { padding-block: 40px 24px; display: grid; gap: 14px; max-width: 900px; }
.event { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 8px 40px; padding-block: 28px; border-top: 1px solid var(--line); }
.event .when { display: grid; align-content: start; gap: 4px; }
.event .when .n { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); font-weight: 600; }
.event .when .m { font-weight: 300; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; color: var(--c); }
.event .when .w { color: var(--muted); font-size: 1rem; }
.event .main { display: grid; gap: 14px; min-width: 0; }
.event .top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.event h2 { font-weight: 600; font-size: 1.7rem; line-height: 1.15; color: var(--ink); }
.event p.desc { font-weight: 300; font-size: 1.2rem; line-height: 1.45; max-width: 62ch; }
.status { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.status.done { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--muted); font-size: 1rem; }
.meta b { color: var(--ink); font-weight: 500; margin-right: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border-radius: 999px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; background: var(--orange); color: #1d1d1d; border: 1px solid var(--orange); }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; font-weight: 400; }
.report { border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 10px; }
.report summary { cursor: pointer; font-weight: 500; color: var(--orange-soft); }
.empty { color: var(--muted); font-size: 1rem; font-weight: 300; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }

/* Footer */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 26px; }
.foot p { color: var(--muted); font-size: 0.95rem; max-width: 64ch; font-weight: 300; }
.bia { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.bia small { color: var(--muted); font-size: 0.82rem; display: block; }
.bia strong { font-weight: 600; font-size: 0.98rem; }
.bia .mark { height: 44px; width: auto; display: block; background: #fff; border-radius: 8px; padding: 4px 8px; }
.bia .fallback { font: 700 1.6rem var(--font-strong); letter-spacing: -0.03em; background: #fff; color: #1d1d1b; border-radius: 8px; padding: 2px 12px; }

@media (max-width: 1100px) {
  .stage-orbit { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "tl" "tr" "orbit" "bl" "br"; gap: 20px; }
  .tr, .br { text-align: left; justify-items: start; }
  .br .side-block { justify-items: start; }
  .br .pills { justify-content: flex-start; }
  .side-block { max-width: 60ch; }
  .orbit { max-width: 640px; }
  .sol-list { justify-items: start; }
  .sol-list button { text-align: left; }
  .sol-list button::after { display: none; }
  .sol-list button::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 10px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .chips { display: flex; }
  .node .tx { display: none; }
  .node { padding: 8px; }
  .node .pt { width: 14px; height: 14px; }
  .hint { display: none; }
  .demo-flag { max-width: 130px; font-size: 0.68rem; }
  .logos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .logo--macro img { height: 32px; }
  .logo--climate img { height: 26px; }
  .logo--comune img { height: 38px; }
  .logo--ras img { height: 34px; }
  .event { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .event .when { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; }
  .event .when .n { grid-column: 1 / -1; }
  .zoom button { width: 38px; height: 38px; }
  .orbit .mapbox { inset: 8%; }
  .orbit .ring { inset: 2%; }
  .orbit .dial, .orbit .dial-major { inset: 4%; }
  .attr { white-space: normal; text-align: center; width: 60%; bottom: -26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .node .pt { transition: none; } }

/* Elenco elementi esposti (fisarmonica) e pop-up sulla mappa */
.br { text-align: left; justify-items: stretch; align-self: start; }
.br .side-block, .br .side-block.wide { justify-items: stretch; max-width: none; width: 100%; }
.side-block .col-title { color: var(--orange); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.1; }
.hint-l { color: var(--muted); font-weight: 300; font-size: 1rem; }
.exp { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: block; }
.exp > li { border-bottom: 1px solid var(--line); }
.exp button.h { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; color: var(--ink); font: 400 1.05rem/1.25 var(--font-body); padding: 10px 0; cursor: pointer; text-align: left; }
.exp button.h::after { content: "+"; color: var(--orange); font-size: 1.4rem; font-weight: 300; line-height: 1; flex: none; }
.exp button.h:hover { color: var(--orange); }
.exp li[data-open="1"] button.h { color: var(--orange); font-weight: 600; }
.exp li[data-open="1"] button.h::after { content: "−"; }
.exp .b { padding: 0 0 14px; display: grid; gap: 12px; font-weight: 300; font-size: 1rem; line-height: 1.4; }
.exp .b .label { margin-bottom: 4px; }
.exp ul.plain { margin: 0; padding-left: 1.1em; display: grid; gap: 2px; list-style: disc; }
.side-block ul { list-style: none; }
button.pill { background: none; font: inherit; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
button.pill:hover { border-color: var(--orange); color: var(--orange); }
.pill i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.br .pills { justify-content: flex-start; }
.popup { position: absolute; z-index: 8; width: 268px; max-width: calc(100% - 8px); background: var(--bg); border: 1px solid var(--orange); border-radius: 12px; padding: 14px 16px 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55); display: grid; gap: 8px; font-size: 0.95rem; }
.popup h3 { color: var(--orange); font-weight: 600; font-size: 1.15rem; line-height: 1.15; padding-right: 22px; }
.popup .pp-k, .popup .pp-l { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.popup .pp-note { color: var(--muted); font-size: 0.82rem; font-weight: 300; }
.popup .pp-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
@media (max-width: 1100px) { .br { align-self: auto; } }

.title-logo { font-size: 1rem; line-height: 0; }
.title-logo .plate { display: inline-block; background: #f1f0ec; border-radius: 14px; padding: 14px 20px; }
.title-logo img { display: block; width: clamp(220px, 24vw, 340px); height: auto; }

.stage-orbit .orbit { align-self: start; }
.tr .lead { font-size: 1.05rem; max-width: 34ch; }
@media (max-width: 1100px) { .stage-orbit { grid-template-areas: "tl" "tr" "orbit" "bl" "br"; } .tr { text-align: left; justify-items: start; } }
.stage-orbit { column-gap: 56px; }
.stage-orbit > .tl { margin-bottom: 28px; }
@media (min-width: 1101px) { .stage-orbit { grid-template-columns: minmax(0, 1fr) minmax(460px, 600px) minmax(0, 1fr); } .subtitle { max-width: 40ch; } }

/* ===== Home: fascia bianca + pagina divisa a metà ===== */
.titleband { background: #fff; text-align: center; padding: 16px 16px 14px; border-bottom: 1px solid #e3e1db; }
.titleband .title-logo { line-height: 0; font-size: 1rem; }
.titleband .title-logo img { display: inline-block; width: clamp(230px, 24vw, 360px); height: auto; }
.subtitle-band { color: #3b3b3b; font-size: clamp(0.95rem, 0.8rem + 0.4vw, 1.15rem); margin-top: 8px; font-weight: 400; }
.split { --osz: clamp(500px, 42vw, 760px); background: linear-gradient(90deg, #2a2a2a 50%, #3a3a3a 50%); }
.split-in { display: grid; grid-template-columns: minmax(0, 1fr) var(--osz) minmax(0, 1fr); align-items: start; }
.split-in > * { grid-area: auto; }
.split .orbit { --bg: #303030; position: sticky; top: 62px; align-self: start; margin: 6px 0 70px; }
.split .bl { padding: 28px 84px 48px clamp(16px, 2vw, 32px); align-self: start; }
.split .br { padding: 28px clamp(16px, 2vw, 32px) 48px 84px; align-self: start; }
.split .side-block, .split .br .side-block { max-width: none; justify-items: stretch; }
.split .bl .side-block { max-width: 46ch; }
.split .chips { display: none; }
.split .node .pt { background: #303030; }
@media (max-width: 1180px) {
  .split { background: #2a2a2a; }
  .split-in { grid-template-columns: minmax(0, 1fr); }
  .split .orbit { position: relative; top: auto; width: min(100%, 640px); margin-inline: auto; grid-row: 1; }
  .split .bl { grid-row: 2; padding: 24px 16px 32px; }
  .split .br { grid-row: 3; padding: 24px 16px 40px; background: #3a3a3a; }
  .split .bl .side-block { max-width: 60ch; }
}
@media (max-width: 760px) { .split .chips { display: flex; padding: 0 16px 16px; } .titleband .title-logo img { width: 210px; } }

/* ===== Eventi: infografiche ===== */
.info { background: #f1f0ec; color: #26313a; border-radius: 22px; padding: 30px clamp(16px, 3vw, 40px) 34px; margin-bottom: 36px; display: grid; gap: 34px; position: relative; overflow: hidden; }
.info h2 { font-weight: 600; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); color: #17324a; margin-bottom: 4px; }
.info .sub { color: #5d6b76; font-weight: 400; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { background: #fff; border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.stat b { font: 700 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--font-strong, Poppins, sans-serif); color: #1b8aa0; }
.stat span { font-size: 1.02rem; line-height: 1.2; color: #3a4a57; }
.journey { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding-top: 6px; }
.journey::before { content: ""; position: absolute; left: 8%; right: 8%; top: 44px; border-top: 4px dotted #9dbccb; }
.st { position: relative; text-align: center; display: grid; justify-items: center; gap: 6px; text-decoration: none; color: inherit; }
.st .bd { width: 76px; height: 76px; border-radius: 50%; background: var(--c); display: grid; place-items: center; border: 5px solid #f1f0ec; box-shadow: 0 6px 14px rgba(23, 50, 74, 0.18); transition: transform 0.2s; }
.st:hover .bd { transform: translateY(-4px) rotate(-4deg); }
.st .bd svg { width: 40px; height: 40px; }
.st .k { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5d6b76; font-weight: 500; }
.st .t { font-weight: 600; color: #17324a; font-size: 1.02rem; line-height: 1.15; }
.st .d { font-size: 0.9rem; color: #5d6b76; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { background: #fff; border-radius: 18px; padding: 18px; display: grid; gap: 8px; justify-items: start; position: relative; }
.step svg { width: 64px; height: 64px; }
.step b { color: #17324a; font-size: 1.1rem; }
.step p { color: #3a4a57; font-size: 0.98rem; line-height: 1.35; }
.step::after { counter-increment: s; content: counter(s); position: absolute; right: 14px; top: 8px; font: 700 2.4rem/1 Poppins, sans-serif; color: #dbe9ee; }
.mascot { position: absolute; pointer-events: none; }
.mascot.m1 { right: 18px; top: 14px; width: 92px; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 14px; padding-left: 4px; }
  .journey::before { left: 42px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 4px dotted #9dbccb; }
  .st { grid-template-columns: 76px 1fr; justify-items: start; text-align: left; column-gap: 14px; align-items: center; }
  .st .bd { grid-row: 1 / span 3; }
  .stats, .steps { grid-template-columns: 1fr; }
  .mascot.m1 { width: 64px; }
}
.split .orbit { margin-top: 46px; } @media (max-width:1180px){ .split .orbit { margin-top: 40px; } }

/* ===== Tema chiaro "carta da zucchero" spento ===== */
.corner, .popup, .hint { --bg: #2e2e2e; --surface: #383838; --line: #4b4b4b; --ink: #f2ece3; --muted: #b3aca1; --orange: #f28e2b; --orange-soft: #f6b064; }
:root { --ring: #d9741c; }
.orbit .ring { border-color: rgba(217, 116, 28, 0.75); }
.orbit .dial { background: repeating-conic-gradient(from -0.3deg, var(--ring) 0 0.6deg, transparent 0.6deg 3deg); opacity: 0.6; }
.orbit .dial-major { background: repeating-conic-gradient(from -0.5deg, var(--ring) 0 1deg, transparent 1deg 30deg); }
.orbit .mapbox { background: #1b1b1b; box-shadow: 0 0 0 2px var(--ring), 0 14px 44px rgba(29, 55, 72, 0.4); }
.node .tx { color: var(--muted); }
.node:hover .tx, .node[aria-pressed="true"] .tx { color: var(--ink); }
.node[aria-pressed="true"] .tx { font-weight: 600; }
.node .pt { background: #fff; }
.btn, .chip[aria-pressed="true"] { color: #fff; }
.zoom button { background: #2e2e2e; border-color: #f28e2b; color: #f28e2b; }
.zoom button:hover, .zoom button[aria-pressed="true"] { background: #f28e2b; color: #2e2e2e; }
.attr { color: var(--muted); }
.hdot { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; margin-right: 0.45em; vertical-align: 0.05em; }
.label .hdot { width: 9px; height: 9px; }
.sol-list button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sol-list button:hover { color: var(--orange); }
.exp li[data-open="1"] button.h { color: var(--orange); }
.pill { background: rgba(255, 255, 255, 0.35); }
button.pill:hover { background: #fff; }
.chip { background: rgba(255, 255, 255, 0.4); }
.demo-flag b { color: #f28e2b; }

/* Intestazione: loghi, titolo, menu */
.logobar { border-bottom: 1px solid #e6ebee; }
.logos { justify-content: space-between; }
.titleband { background: #fff; text-align: center; padding: 6px 16px 14px; border: 0; }
.titleband .title-logo { display: inline-block; line-height: 0; }
.titleband .title-logo img { width: clamp(230px, 24vw, 360px); height: auto; }
.nav { background: var(--bg-2); border-top: 1px solid #d5dde2; }
.nav .wrap { justify-content: center; }
.nav a { color: #33444f; }
.nav a:hover { color: #000; }
.nav a[aria-current="page"] { color: #7d3606; border-bottom-color: #a84a0a; }

/* Metà pagina: due grigi-azzurro spenti */
.split { background: linear-gradient(90deg, #b3c3ce 50%, #c7d4dc 50%); }
@media (max-width: 1180px) { .split { background: #b3c3ce; } .split .br { background: #c7d4dc; } }
.split .orbit { --bg: #bccbd5; top: 16px; margin-top: 44px; }
.split .node .pt { background: #fff; }
.split .orbit { --osz-x: 1; }

/* Footer */
.foot { background: #9fb1bd; border-top: 1px solid #8ea2af; }
.foot p { color: #22323d; }
.bia { color: #1d2b35; }
.bia small { color: #33444f; }
.bia .mark { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 2px 8px rgba(29, 43, 53, 0.2); overflow: hidden; }
.bia .mark img { max-width: 44px; max-height: 40px; width: auto; height: auto; display: block; }
.bia .fallback { border-radius: 50%; width: 62px; height: 62px; display: grid; place-items: center; padding: 0; font-size: 1.5rem; }

/* Eventi: palette dell'infografica (corallo, ambra, turchese, indaco) */
.info { background: #f5f8fa; }
.info h2, .step b { color: #46406f; }
.stat { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.stat .donut { grid-area: 1 / 1; width: 76px; height: 76px; border-radius: 50%; -webkit-mask: radial-gradient(circle closest-side, transparent 0 68%, #000 69%); mask: radial-gradient(circle closest-side, transparent 0 68%, #000 69%); }
.stat b { grid-area: 1 / 1; text-align: center; color: #46406f; font-size: 1.7rem; }
.stat span:not(.donut) { grid-area: 1 / 2; }
.journey { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding-top: 0; }
.journey::before { display: none; }
.st { gap: 0; padding-inline: 4px; }
.st .pin { width: 46px; height: 46px; border-radius: 50%; border: 6px solid var(--c); background: #fff; display: grid; place-items: center; font: 600 0.85rem var(--font-strong); color: #26313a; letter-spacing: 0.04em; z-index: 1; }
.st .stem { width: 2px; height: 24px; background: #a9b3ba; }
.st .chev { width: calc(100% + 8px); height: 36px; background: var(--c); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%); margin-inline: -4px; }
.st:first-child .chev { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%); }
.st .bd { width: 92px; height: 92px; margin-top: 14px; border: 0; background: none; box-shadow: none; }
.st .bd svg { width: 92px; height: 92px; }
.st .k { margin-top: 8px; color: #465864; }
.st .t { color: var(--t); }
.event .pic { display: block; width: 84px; height: 84px; margin-bottom: 8px; }
.event .pic svg { width: 100%; height: 100%; }
.event .when .n, .event .when .m { color: var(--c); }
.event h2 { color: var(--ink); }
.status.done { background: var(--ink); color: #fff; }
.mascot.m1 { display: none; }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 12px; }
  .st { display: grid; grid-template-columns: 46px 92px 1fr; grid-template-areas: "pin bd k" "pin bd t" "pin bd d"; column-gap: 12px; align-items: center; text-align: left; justify-items: start; }
  .st .pin { grid-area: pin; } .st .bd { grid-area: bd; margin-top: 0; } .st .k { grid-area: k; margin: 0; } .st .t { grid-area: t; } .st .d { grid-area: d; }
  .st .stem, .st .chev { display: none; }
  .stat { grid-template-columns: 76px 1fr; }
}
.corner, .popup, .hint { color: var(--ink); }
.mapbox, .map { --ink: #f2ece3; --muted: #aaa398; --surface: #383838; --halo: #262626; --orange: #f28e2b; }
.split .sol-list { justify-items: start; }
.split .sol-list button { text-align: left; }
.split .sol-list button::after { display: none; }
.split .sol-list button::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 10px; }
@media (max-width: 1180px) { .split .chips { grid-row: 2; } .split .bl { grid-row: 3 !important; } .split .br { grid-row: 4 !important; } }
@media (max-width: 760px) { .split .chips { padding: 0 16px 8px; } }

.nav { background: #fff; border-top: 1px solid #e6ebee; border-bottom: 1px solid #e6ebee; }
.nav a { color: #465864; }
.logobar { border-bottom: 0; }
.titleband { padding-top: 0; }
.logos-r { display: flex; align-items: center; gap: 28px; }
@media (max-width: 760px) { .logos { display: flex; } .logos-r { gap: 14px; } }
.info { background: transparent; padding-inline: 0; }
.info .stat, .info .step { background: rgba(255, 255, 255, 0.55); }

/* ===== ultime rifiniture ===== */
.node .tx { color: #111; }
.node:hover .tx, .node[aria-pressed="true"] .tx { color: #000; }
.body-l { font-size: 0.98rem; line-height: 1.5; font-weight: 400; }
.side-block li { font-size: 0.98rem; font-weight: 400; line-height: 1.45; }
.side-block h2 { font-size: 2rem; }
.side-block .lead { font-size: 1.3rem; }
.exp .b { font-size: 0.92rem; font-weight: 400; }
.split .bl .lead { margin-top: 2px; }
.pill { font-size: 0.86rem; }

/* Soluzioni: schizzo a tutta area, senza cornice */
[data-page="soluzioni"] .split-in { align-items: stretch; }
[data-page="soluzioni"] .bl { padding: 0; display: flex; flex-direction: column; margin-right: calc(var(--osz) / -2); position: relative; z-index: 1; align-self: stretch; min-height: 620px; }
[data-page="soluzioni"] .orbit { z-index: 2; }
.sol-text { padding: 28px calc(var(--osz) / 2 + 84px) 24px clamp(16px, 2vw, 32px); max-width: none; }
.sketch { flex: 1; min-height: 380px; background: #f9f9f7; position: relative; overflow: hidden; }
.sketch .sk-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 1180px) {
  [data-page="soluzioni"] .bl { margin-right: 0; min-height: 0; }
  .sol-text { padding: 24px 16px; }
  .sketch { min-height: 340px; }
}
.split .bl .sol-text { max-width: none; }

/* ===== v10: intestazione compatta, metà pagina, 22 pericoli ===== */
.topbar { background: #fff; }
.topgrid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 8px; }
.topgrid .logo--macro { justify-self: start; }
.titlec { text-align: center; display: grid; justify-items: center; gap: 2px; }
.titlec .title-logo { display: inline-block; line-height: 0; }
.titlec .title-logo img { width: clamp(190px, 16vw, 250px); height: auto; }
.titlec .subtitle-band { font-size: 0.86rem; margin: 0; color: #3b3b3b; }
.topgrid .logos-r { justify-self: end; }
.nav { border-top: 1px solid #e6ebee; }
.nav a { padding: 9px 16px; }
@media (max-width: 900px) {
  .topgrid { grid-template-columns: 1fr auto; grid-template-areas: "macro right" "title title"; row-gap: 4px; }
  .topgrid .logo--macro { grid-area: macro; } .topgrid .logos-r { grid-area: right; } .topgrid .titlec { grid-area: title; }
  .titlec .title-logo img { width: 200px; }
}

.foot { background: #fff; border-top: 1px solid #e6ebee; }
.foot .wrap { justify-content: flex-end; padding-block: 6px; }
.bia { gap: 12px; color: #22323d; }
.bia small { display: inline; margin-right: 6px; color: #465864; }
.bia > span:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.bia .mark { width: 48px; height: 48px; box-shadow: 0 1px 6px rgba(29, 43, 53, 0.25); }
.bia .mark img { max-width: 34px; max-height: 30px; }

.split { --osz: clamp(520px, min(50vw, calc(100vh - 165px)), 840px); background: linear-gradient(90deg, #a8bbc9 50%, #d9cce4 50%); }
.split .orbit { --bg: #c3bfd6; margin-top: 30px; margin-bottom: 76px; }
.split .bl { padding: 22px 58px 40px clamp(14px, 1.6vw, 26px); }
.split .br { padding: 22px clamp(14px, 1.6vw, 26px) 40px 58px; }
@media (max-width: 1180px) { .split { background: #a8bbc9; } .split .br { background: #d9cce4; } .split .bl { padding: 22px 16px 32px; } .split .br { padding: 22px 16px 40px; } .split .orbit { margin-bottom: 76px; } }
.corner.bl2 { left: 0; bottom: -70px; display: grid; gap: 8px; justify-items: start; }
.scalebox { display: flex; align-items: flex-end; gap: 10px; font: 500 0.78rem var(--font-body); color: #22323d; padding-left: 2px; }
.scalebox .txt { color: #22323d; }
.node .tx.code { width: auto; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: #1a2630; }
.node.r .tx.code { left: 30px; } .node.l .tx.code { right: 30px; }
.node[data-tipo="acuto"] .pt { background: color-mix(in srgb, var(--c) 55%, #fff); }
.node[aria-pressed="true"] .tx.code { color: #000; font-size: 0.9rem; }
.split .chips { display: none !important; }

/* elenchi a fisarmonica */
.exp button.h { font-size: 1.4rem; font-weight: 500; line-height: 1.15; padding: 11px 0; }
.exp li[data-open="1"] > button.h { font-weight: 600; }
.exp button.cat { justify-content: flex-start; gap: 0; }
.exp button.cat::after { margin-left: auto; }
.exp button.cat small { font-size: 0.8rem; color: var(--muted); margin-left: 8px; font-weight: 400; }
.exp .grp { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 6px 0 2px; }
.exp ul.hl { list-style: none; margin: 0 0 6px; padding: 0; display: block; }
.exp ul.hl > li { border: 0; }
.hi { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 6px 0; text-align: left; cursor: pointer; color: var(--ink); font: 400 1.02rem/1.25 var(--font-body); }
.hi i { font: 600 0.7rem/1 var(--font-strong); font-style: normal; color: #fff; border-radius: 999px; padding: 4px 7px; min-width: 40px; text-align: center; flex: none; }
.hi:hover { color: var(--orange); }
.hl li[data-sel="1"] > .hi { font-weight: 600; color: var(--orange); }
.hd { display: grid; gap: 10px; padding: 4px 0 14px; font-size: 0.92rem; line-height: 1.45; font-weight: 400; }
.hd h3 { font-size: 1.1rem; color: var(--orange); font-weight: 600; line-height: 1.2; }
.hd p { margin: 0; }
.hd ul.plain { margin: 0; padding-left: 1.1em; list-style: disc; display: grid; gap: 2px; }
.side-block .col-title { font-size: clamp(1.8rem, 1.3rem + 1vw, 2.3rem); }
main[data-page="soluzioni"] .split .bl { padding: 0; margin-right: calc(var(--osz) / -2); min-height: 560px; }
main[data-page="soluzioni"] .split .bl .sol-text { padding: 22px calc(var(--osz) / 2 + 58px) 22px clamp(14px, 1.6vw, 26px); }
@media (max-width: 1180px) { main[data-page="soluzioni"] .split .bl { margin-right: 0; min-height: 0; } main[data-page="soluzioni"] .split .bl .sol-text { padding: 22px 16px; } }

/* ===== v11 ===== */
.split { --osz: clamp(520px, min(58vw, calc(100vh - 150px)), 960px); background: linear-gradient(90deg, #a8bbc9 50%, #b39db6 50%); }
@media (max-width: 1180px) { .split { background: #a8bbc9; } .split .br { background: #b39db6; } }
.split .br { --orange: #6f2e04; --muted: #2f3d47; --line: #7c6a86; --ink: #16222b; }
.split .br .pill, .split .br .chip { background: rgba(255, 255, 255, 0.4); }
.split .orbit { --bg: #b0a3c0; margin-top: 8px; margin-bottom: 0; top: 8px; }
.split .bl, .split .br { padding-top: 16px; }
/* logo Adattiamoci grande come ClimaTE */
.topgrid .logo--macro img { height: auto; width: clamp(190px, 16vw, 250px); }
.topgrid { padding-block: 6px; }
/* legenda + scala affiancate, dentro il riquadro dell'orbita */
.corner.bl2 { left: 0; bottom: 0; display: flex; flex-direction: row; align-items: flex-end; gap: 14px; }
.corner.br2 { bottom: 0; }
/* titoli in grassetto */
.col-title, .side-block .col-title, .title, .intro-ev .title, .info h2, .section h2 { font-weight: 700; }
.step b { font-weight: 700; }
/* tooltip dei nodi */
.node .tip { display: none; position: absolute; z-index: 20; width: max-content; max-width: 230px; top: 50%; transform: translateY(-50%); background: #1d2b35; color: #fff; font-size: 0.9rem; line-height: 1.25; padding: 7px 11px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); text-align: left; pointer-events: none; }
.node .tip b { color: #f6b064; margin-right: 4px; }
.node .tip small { display: block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #b9c6cf; margin-top: 2px; }
.node.r .tip { left: 44px; } .node.l .tip { right: 44px; }
.node:hover .tip, .node:focus-visible .tip { display: block; }
.node:hover, .node:focus-visible { z-index: 21; }

/* ===== v12 ===== */
/* intestazione e piè di pagina grigio chiarissimo */
.topbar, .nav, .foot { background: #eeeeec; }
.nav { border-top: 1px solid #dcdcd9; border-bottom: 1px solid #dcdcd9; }
.foot { border-top: 1px solid #dcdcd9; }
/* logo ClimaTE alla stessa altezza di Adattiamoci, sottotitolo accanto */
.topgrid { grid-template-columns: auto 1fr auto; }
.topgrid .logo--macro img { height: clamp(52px, 4.8vw, 68px); width: auto; }
.titlec { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 16px; text-align: left; }
.titlec .title-logo img { height: clamp(52px, 4.8vw, 68px); width: auto; }
.titlec .subtitle-band { font-size: 1.02rem; line-height: 1.25; max-width: 21em; font-weight: 500; color: #2c3a44; }
@media (max-width: 1100px) { .titlec { flex-direction: column; gap: 2px; text-align: center; } .titlec .subtitle-band { max-width: none; } }
@media (max-width: 900px) { .topgrid { grid-template-columns: 1fr auto; } .topgrid .logo--macro img { height: 48px; } .titlec .title-logo img { height: 46px; width: auto; } }

/* titoli un po' più grandi */
.side-block .col-title, .col-title { font-size: clamp(2.1rem, 1.5rem + 1.2vw, 2.8rem); }
.side-block h2 { font-size: 2.2rem; }
.info h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.exp button.h { font-size: 1.5rem; }

/* Pericoli: metà destra in blu cobalto (Pantone 19-4037) con testi chiari */
.split { background: linear-gradient(90deg, #a8bbc9 50%, #5b7791 50%); }
main[data-page="pericoli"] .split .br { --ink: #f5f2ea; --muted: #c9d5e4; --orange: #f6b064; --orange-soft: #f6b064; --line: rgba(255, 255, 255, 0.35); --surface: #4a70a3; color: var(--ink); }
main[data-page="pericoli"] .split .br .pill { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
main[data-page="pericoli"] .split .br button.pill:hover { background: rgba(255, 255, 255, 0.28); }
main[data-page="pericoli"] .split .orbit { --bg: #7a90ab; }
@media (max-width: 1180px) { main[data-page="pericoli"] .split .br { background: #5b7791; } }
/* Soluzioni: sfondo unico come la pagina Eventi */
main[data-page="soluzioni"] .split { background: var(--bg); }
main[data-page="soluzioni"] .split .br { background: transparent; }
main[data-page="soluzioni"] .split .orbit { --bg: #c4d1d9; }
/* pulsante "Elenco completo" */
.back { background: none; border: 0; padding: 4px 0; font: 600 0.8rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); cursor: pointer; text-align: left; opacity: 0.45; }
.back.on { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.back:hover { color: #000; }
main[data-page="pericoli"] .node.r .tx.code, main[data-page="pericoli"] .node.r[aria-pressed="true"] .tx.code { color: #fff; }
main[data-page="pericoli"] .node.r .tx.code { text-shadow: 0 0 3px rgba(20, 40, 70, 0.6); }

/* v13: i loghi Adattiamoci e ClimaTE si appoggiano sulla stessa linea di base
   (base delle lettere: 83,6% dell'altezza per Adattiamoci, 73,6% per ClimaTE) */
.topgrid { --lh: clamp(52px, 4.8vw, 68px); }
.topgrid .logo--macro img { position: relative; top: calc(var(--lh) * -0.05); }
.titlec .title-logo img { position: relative; top: calc(var(--lh) * 0.05); }
@media (max-width: 900px) { .topgrid { --lh: 46px; } }
@media (max-width: 1100px) { .titlec .title-logo img { top: calc(var(--lh) * 0.05); } }

/* Cerchio della mappa ingrandito al massimo (14/10/2026): usa quasi tutta l'altezza disponibile e due terzi della larghezza; la mappa riempie di più il cerchio. */
.split { --osz: clamp(560px, min(66vw, calc(100vh - 118px)), 1240px); }
.split .orbit { margin-top: 2px; top: 2px; }
.orbit .mapbox { inset: 8%; }
.orbit .dial, .orbit .dial-major { inset: 5.6%; }
@media (max-width: 1180px) { .split .orbit { width: min(100%, 760px); } }

/* ===== Valutazione del rischio (PNACC/SRACC): 5 classi di rischio =====
   Stessi colori per etichette, pulsanti, legenda, matrice e aree sulla mappa (riempimento semitrasparente e contorno pieno).
   Testo scuro sulle tre classi chiare, testo bianco su "Alto" ed "Estremo" (contrasto almeno 4,5:1). */
:root {
  --rk-trascurabile: #9fcf8c;
  --rk-basso: #f1db4f;
  --rk-medio: #f39a33;
  --rk-alto: #c8361f;
  --rk-estremo: #9c1c52;
}
[data-rk="trascurabile"] { --rkc: var(--rk-trascurabile); --rkt: #1a2a1a; }
[data-rk="basso"] { --rkc: var(--rk-basso); --rkt: #2a2408; }
[data-rk="medio"] { --rkc: var(--rk-medio); --rkt: #2a1604; }
[data-rk="alto"] { --rkc: var(--rk-alto); --rkt: #ffffff; }
[data-rk="estremo"] { --rkc: var(--rk-estremo); --rkt: #ffffff; }
.rk { display: inline-block; font: 600 0.74rem/1 var(--font-strong); letter-spacing: 0.03em; padding: 5px 10px; border-radius: 999px; background: var(--rkc); color: var(--rkt); border: 1px solid rgba(0, 0, 0, 0.22); white-space: nowrap; vertical-align: 0.08em; }
.rk.sm { font-size: 0.62rem; padding: 3px 7px; }
.note { color: var(--muted); font-size: 0.84rem; line-height: 1.35; }
.hd .note, .exp .note { margin-top: 6px; }
.rk-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.rk-line .note { margin: 0; }
.hi .hn { flex: 1 1 auto; min-width: 0; }
.hi .rk { flex: none; margin-left: 8px; }
/* elementi esposti di un pericolo: colore = rischio, testo = vulnerabilità e rischio */
button.pill.elp { flex-direction: column; align-items: flex-start; gap: 1px; border-radius: 10px; padding: 5px 11px 6px; text-align: left; line-height: 1.2; max-width: 100%; }
button.pill.elp .en { font-weight: 600; }
button.pill.elp .ev { font-size: 0.78rem; }
button.pill.elp[data-rk] { background: var(--rkc); color: var(--rkt); border-color: rgba(0, 0, 0, 0.25); }
button.pill.elp[data-rk]:hover { background: var(--rkc); color: var(--rkt); filter: brightness(1.08); }
button.pill.elp[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--bg-2, #fff), 0 0 0 4px var(--ink); }
.eldet { margin-top: 10px; display: grid; gap: 8px; padding: 10px 12px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.42); border-left: 6px solid var(--rkc, var(--line)); }
.eldet h4 { font-size: 1rem; line-height: 1.2; font-weight: 600; }
.eldet .label { margin-bottom: 2px; }
.eldet .sub { display: grid; gap: 6px; border-top: 1px solid rgba(29, 43, 53, 0.18); padding-top: 8px; }
.eldet .sub-h { font-weight: 600; }
.howlink { justify-self: start; background: none; border: 0; padding: 2px 0; margin-top: 4px; font: 500 0.85rem var(--font-body); color: var(--orange-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.howlink:hover { color: #000; }
/* riquadro "Come valutiamo il rischio" */
.how { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.32); scroll-margin-top: 12px; }
.how summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 1.02rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; font-weight: 300; line-height: 1; }
.how[open] summary::after { content: "−"; }
.how-b { display: grid; gap: 8px; padding: 0 14px 14px; font-size: 0.92rem; line-height: 1.45; }
.how-b ul.plain { margin: 0; padding-left: 1.1em; list-style: disc; display: grid; gap: 2px; }
.how .mx-k { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 4px 0 -4px; display: flex; justify-content: space-between; gap: 8px; }
.mx-w { max-width: 100%; overflow-x: auto; }
table.mx { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-size: 0.74rem; line-height: 1.15; }
table.mx th { font-weight: 600; color: var(--ink); padding: 2px 4px; }
table.mx thead th { vertical-align: bottom; text-align: center; }
table.mx thead th:first-child { width: 29%; }
table.mx tbody th { text-align: left; font-weight: 500; padding-left: 0; }
table.mx td { background: var(--rkc); color: var(--rkt); text-align: center; padding: 6px 0; border-radius: 4px; font: 600 0.7rem/1.15 var(--font-body); hyphens: manual; overflow: hidden; }
/* legenda della mappa */
.legend.rk-mode { grid-template-columns: auto auto; column-gap: 14px; }
.legend.rk-mode .lg-t { grid-column: 1 / -1; }
.legend .lg-t { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.legend .lg-n { font-size: 0.72rem; color: var(--muted); max-width: 16em; line-height: 1.25; }
.legend .sw.rk-sw { background: color-mix(in srgb, var(--rkc) 70%, transparent); box-shadow: none; }
@media (max-width: 760px) {
  .legend { font-size: 0.72rem; padding: 6px 8px; gap: 2px; }
  .legend .sw { width: 16px; height: 10px; }
  .legend.rk-mode { column-gap: 10px; }
}

/* Cerchio della mappa ancora più grande (15/10/2026): può superare di poco l'altezza dello schermo e la mappa occupa più spazio dentro il cerchio. */
.split { --osz: clamp(580px, min(72vw, calc(100vh - 24px)), 1320px); }
.orbit .mapbox { inset: 6.8%; }
.orbit .dial, .orbit .dial-major { inset: 4.6%; }
.orbit .ring { inset: 3.4%; }
@media (max-width: 1180px) { .split .orbit { width: min(100%, 820px); } }

/* caselline di selezione (pericoli ed elementi esposti) */
.ck { flex: none; width: 18px; height: 18px; border-radius: 4px; border: 2px solid currentColor; opacity: 0.55; display: inline-grid; place-items: center; background: transparent; transition: background .15s, opacity .15s; }
[aria-pressed="true"] > .ck { opacity: 1; background: var(--orange); border-color: var(--orange); }
[aria-pressed="true"] > .ck::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.exp button.h.ex { justify-content: flex-start; }
.exp button.h.ex .hn { flex: 1 1 auto; min-width: 0; }
.exp button.h.ex .ck { box-shadow: inset 0 0 0 3px transparent; }
.exp button.h.ex[aria-pressed="true"] > .ck { background: var(--ac, var(--orange)); border-color: var(--ac, var(--orange)); }

/* elenco pericoli: ogni voce in un rettangolo, livello di rischio in colonna allineata */
.exp ul.hl { display: grid; gap: 6px; }
.exp ul.hl > li { border: 1px solid rgba(20, 40, 60, 0.16); border-radius: 10px; background: rgba(255, 255, 255, 0.32); padding: 0 10px; }
.exp ul.hl > li[data-sel="1"] { background: rgba(255, 255, 255, 0.55); border-color: var(--orange); }
.hi { gap: 8px; padding: 8px 0; }
.hi .rkm { flex: none; width: 74px; margin-left: 6px; padding-left: 10px; border-left: 1px solid rgba(20, 40, 60, 0.16); display: grid; gap: 4px; justify-items: start; }
.rkm .bars { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.rkm .bars b { width: 7px; border-radius: 2px; background: rgba(20, 40, 60, 0.16); }
.rkm .bars b:nth-child(1) { height: 5px; } .rkm .bars b:nth-child(2) { height: 8px; } .rkm .bars b:nth-child(3) { height: 11px; } .rkm .bars b:nth-child(4) { height: 14px; }
.rkm .bars b.on { background: var(--rkc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.rkm .rkl { font: 600 0.66rem/1 var(--font-strong); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.rkm:not([data-rk]) .rkl { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 0.7rem; }

/* pagina Soluzioni in attesa degli incontri territoriali */
.wip { min-height: calc(100vh - 190px); display: grid; place-items: center; padding-block: 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wip-card { max-width: 34rem; text-align: center; display: grid; gap: 14px; justify-items: center; padding: 40px 36px; border-radius: 18px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(20, 40, 60, 0.14); }
.wip-tag { font: 600 0.95rem/1 var(--font-strong); letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); }
.wip-card h1 { margin: 0; font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--font-strong); color: var(--ink); text-wrap: balance; }
.wip-card p { margin: 0; font-size: 1.1rem; line-height: 1.45; color: var(--ink); }

/* legenda dentro il cerchio della mappa, centrata in basso; il suggerimento d'uso passa in alto */
.maplegend { position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%); z-index: 4; max-width: 46%; --bg: #2e2e2e; --surface: #383838; --line: #4b4b4b; --ink: #f2ece3; --muted: #b3aca1; --orange: #f28e2b; color: var(--ink); }
.maplegend .legend { background: rgba(40, 40, 40, 0.82); backdrop-filter: blur(2px); }
.split .hint { bottom: auto; top: 10.5%; }

/* ===== Responsive (15/10/2026): testi che si adattano alla larghezza delle colonne e del cerchio ===== */
.split { overflow-x: clip; }
@media (min-width: 1181px) {
  /* il cerchio lascia sempre almeno ~350px a ciascuna colonna laterale */
  .split { --osz: clamp(540px, min(72vw, calc(100vw - 700px), calc(100vh - 24px)), 1320px); }
}
.split .bl, .split .br { container-type: inline-size; min-width: 0; }
.split .side-block .col-title, .split .col-title { font-size: clamp(1.5rem, 9cqi, 2.8rem); }
.split .hint-l { font-size: clamp(0.85rem, 4.4cqi, 1rem); }
.split .exp button.h { font-size: clamp(1rem, 6.4cqi, 1.5rem); }
.split .exp button.cat { font-size: clamp(1.05rem, 6.6cqi, 1.5rem); }
.split .hi { font-size: clamp(0.84rem, 4.6cqi, 1.02rem); }
.split .exp .b { font-size: clamp(0.8rem, 4.1cqi, 0.92rem); }
.split .hi .rkm { width: clamp(58px, 22cqi, 74px); }
/* elementi dentro il cerchio in proporzione al cerchio */
.split .orbit { container-type: inline-size; }
.maplegend .legend { font-size: clamp(0.62rem, 1.7cqi, 0.82rem); padding: 0.6em 0.8em; gap: 0.3em; }
.maplegend .legend .lg-t { font-size: 0.85em; }
.maplegend .legend .lg-n { font-size: 0.9em; }
.maplegend .legend .sw { width: 2.2em; height: 1.2em; }
.maplegend .legend.rk-mode { column-gap: 1.2em; }
.split .hint { font-size: clamp(0.66rem, 1.7cqi, 0.85rem); white-space: nowrap; }
@media (max-width: 760px) { .maplegend { bottom: 9%; max-width: 56%; } }

/* elementi esposti nella scheda del pericolo: righe allineate come l'elenco dei pericoli */
.elist { display: grid; gap: 6px; }
.elrow { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer; color: var(--ink); font: inherit; background: rgba(255, 255, 255, 0.32); border: 1px solid rgba(20, 40, 60, 0.16); border-left: 5px solid var(--ac, var(--line)); border-radius: 8px; padding: 7px 10px; }
.elrow:hover { background: rgba(255, 255, 255, 0.5); }
.elrow[aria-expanded="true"] { background: rgba(255, 255, 255, 0.6); border-color: var(--orange); border-left-color: var(--ac, var(--orange)); }
.elrow .et { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; }
.elrow .en { font-weight: 600; font-size: 0.92em; line-height: 1.2; }
.elrow .ev { font-size: 0.78em; color: var(--muted); }
.elrow .rkm { flex: none; width: clamp(58px, 22cqi, 74px); padding-left: 10px; border-left: 1px solid rgba(20, 40, 60, 0.16); display: grid; gap: 4px; justify-items: start; }

/* ===== Testata (16/10/2026): tutti i loghi a sinistra, menu a destra con voci più grandi ===== */
.topgrid { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px 30px; --lh: clamp(46px, 3.8vw, 62px); }
.topgrid .logo--macro img, .titlec .title-logo img { height: var(--lh); width: auto; top: 0; }
.titlec { flex-direction: row; text-align: left; gap: 14px; align-items: center; }
.titlec .subtitle-band { font-size: 0.95rem; max-width: 17em; }
.topgrid .logos-r { justify-self: auto; gap: 24px; }
.nav .wrap { justify-content: flex-end; }
.nav a { font-size: 1.2rem; padding: 12px 18px; }
@media (min-width: 1400px) {
  header { display: flex; align-items: stretch; background: #eeeeec; border-bottom: 1px solid #dcdcd9; }
  header .topbar { flex: 1 1 auto; min-width: 0; }
  header .topbar .wrap { max-width: none; padding-left: max(24px, env(safe-area-inset-left, 0px)); }
  header .nav { position: static; flex: none; display: flex; align-items: center; border: 0; background: transparent; }
  header .nav .wrap { max-width: none; height: 100%; align-items: stretch; padding-right: max(24px, env(safe-area-inset-right, 0px)); }
  header .nav a { display: flex; align-items: center; padding: 0 18px; border-bottom-width: 4px; margin-bottom: 0; }
}
@media (max-width: 1100px) { .titlec { flex-direction: row; text-align: left; } }
@media (max-width: 760px) {
  .topgrid { gap: 8px 18px; --lh: 40px; }
  .titlec { flex-wrap: wrap; }
  .titlec .subtitle-band { max-width: none; font-size: 0.85rem; }
  .nav a { font-size: 1.05rem; padding: 10px 12px; }
  .nav .wrap { justify-content: center; }
}
@media (min-width: 1400px) and (max-width: 1720px) {
  .topgrid { gap: 10px 20px; --lh: 44px; }
  .titlec { gap: 10px; }
  .titlec .subtitle-band { font-size: 0.86rem; max-width: 15em; }
  .topgrid .logos-r { gap: 16px; }
  header .nav a { padding: 0 13px; font-size: 1.12rem; }
}
/* scheda attiva del menu: fondo pieno invece della sottolineatura */
.nav a, header .nav a { border-bottom: 0; margin-bottom: 0; }
.nav a[aria-current="page"], header .nav a[aria-current="page"] { background: #d4d4cf; color: #1f2a31; font-weight: 600; border-bottom: 0; }
.nav a[aria-current="page"]:hover { color: #1f2a31; }

/* ===== Testata v2 (16/10/2026): Adattiamoci, Comune e Regione a sinistra, menu al centro, ClimaTE a destra ===== */
header { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; column-gap: 26px; background: #eeeeec; border-bottom: 1px solid #dcdcd9;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
header .topbar, header .topbar .wrap, header .topgrid { display: contents; }
header .topgrid .logo--macro { grid-column: 1; grid-row: 1; padding-block: 8px; }
header .topgrid .logos-r { grid-column: 2; grid-row: 1; gap: 20px; }
header .topgrid .titlec { grid-column: 4; grid-row: 1; justify-self: end; flex-direction: row-reverse; gap: 12px; text-align: right; }
header .titlec .subtitle-band { font-size: 0.82rem; max-width: 15em; }
header .nav { grid-column: 3; grid-row: 1; align-self: stretch; display: flex; position: static; background: transparent; border: 0; }
header .nav .wrap { max-width: none; padding: 0; height: 100%; justify-content: center; align-items: stretch; }
header .nav a { display: flex; align-items: center; padding: 0 18px; font-size: 1.2rem; }
@media (max-width: 1500px) {
  header .titlec .subtitle-band { display: none; }
}
@media (max-width: 1180px) {
  header .nav { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #dcdcd9; margin-inline: calc(-1 * max(24px, env(safe-area-inset-left, 0px))); }
  header .nav a { padding: 11px 18px; }
}
@media (max-width: 760px) {
  header { grid-template-columns: auto 1fr; column-gap: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  header .topgrid .logo--macro { grid-column: 1; grid-row: 1; }
  header .topgrid .titlec { grid-column: 2; grid-row: 1; }
  header .topgrid .logos-r { grid-column: 1 / -1; grid-row: 2; padding-bottom: 6px; }
  header .nav { grid-row: 3; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
  header .nav a { font-size: 1.02rem; padding: 10px 12px; }
}

/* ===== Pagina iscrizione agli incontri ===== */
.isc { padding-bottom: 64px; }
.isc .intro-ev { padding-bottom: 12px; }
.isc .title { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); line-height: 1.08; margin: 0; }
.isc-back { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.isc-back:hover { text-decoration: underline; }
.isc-form { max-width: 820px; display: grid; gap: 22px; }
.isc-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; margin: 0; background: rgba(255, 255, 255, 0.35); min-width: 0; }
.isc-form legend { padding: 0 8px; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.isc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.isc-grid label { display: grid; gap: 6px; font-size: 0.95rem; color: var(--ink); font-weight: 500; }
.isc-grid label.wide { grid-column: 1 / -1; }
.isc-grid label small { font-weight: 400; color: var(--muted); }
.isc-grid input { font: inherit; font-weight: 400; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); min-width: 0; }
.isc-grid input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.req { color: var(--orange); }
.isc-list { display: grid; gap: 8px; }
.isc-ev, .isc-privacy { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.isc-ev { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.5); }
.isc-ev:has(input:checked) { border-color: var(--orange); background: #fff; }
.isc-ev input, .isc-privacy input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.isc-ev .ck, .isc-privacy .ck { margin-top: 2px; }
.isc-ev input:checked + .ck, .isc-privacy input:checked + .ck { opacity: 1; background: var(--orange); border-color: var(--orange); }
.isc-ev input:checked + .ck::after, .isc-privacy input:checked + .ck::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.isc-ev input:focus-visible + .ck, .isc-privacy input:focus-visible + .ck { outline: 2px solid var(--orange); outline-offset: 2px; }
.isc-evt { display: grid; gap: 2px; }
.isc-evt small { color: var(--muted); font-size: 0.85rem; }
.isc-privacy { font-size: 0.9rem; line-height: 1.4; color: var(--ink); max-width: 820px; }
.isc-note { margin: 0; font-size: 0.85rem; color: var(--muted); }
.isc-form .btn { justify-self: start; border: 0; cursor: pointer; background: var(--orange); }
.isc-form .btn:disabled { opacity: 0.6; cursor: default; }
.isc-msg { max-width: 820px; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.6); border-left: 5px solid var(--line); font-size: 1rem; }
.isc-msg[data-kind="ok"] { border-left-color: #3e8e41; }
.isc-msg[data-kind="warn"] { border-left-color: #d9a441; }
.isc-msg[data-kind="err"] { border-left-color: #c0392b; }
.step b a { color: inherit; }
@media (max-width: 640px) { .isc-grid { grid-template-columns: minmax(0, 1fr); } }
.isc-grid label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; row-gap: 6px; }
.isc-grid label input { flex: 1 0 100%; }

/* percorso degli incontri: tante colonne quanti sono gli incontri */
@media (min-width: 901px) { .journey { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); } }
.event .when .m.tbd { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }

/* Eventi: tasto di iscrizione tondo, a destra della descrizione */
.event .evbody { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; align-items: center; }
.event .evtxt { display: grid; gap: 14px; min-width: 0; }
.btn-tondo { display: grid; place-items: center; width: 136px; aspect-ratio: 1; max-width: 100%; border-radius: 50%; padding: 18px; background: #19b0a1; color: #fff; text-align: center; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2; box-shadow: 0 6px 16px rgba(25, 176, 161, .28); transition: transform .15s ease, background .15s ease; }
.btn-tondo:hover, .btn-tondo:focus-visible { background: #128f83; transform: scale(1.04); }
.btn-tondo:focus-visible { outline: 3px solid #0d6d64; outline-offset: 3px; }
@media (max-width: 560px) { .event .evbody { grid-template-columns: minmax(0, 1fr); } .btn-tondo { width: 112px; font-size: .92rem; } }
/* Titolo pagina eventi su una sola riga negli schermi larghi */
.intro-ev { max-width: none; }
.intro-ev > p { max-width: 900px; }
@media (min-width: 1100px) { .intro-ev .ev-title { white-space: nowrap; } }
.wip-omino { width: min(300px, 80%); height: auto; margin-bottom: 4px; }
/* Tasto tondo vicino al testo, non in fondo alla riga */
@media (min-width: 561px) { .event .evbody { grid-template-columns: minmax(0, 40rem) auto; justify-content: start; gap: 14px 40px; } .event p.desc { max-width: none; } }
/* Tasto di invio: rettangolo largo quanto i riquadri, verde acqua come i tasti degli eventi */
.isc-form .btn { justify-self: stretch; width: 100%; min-height: 56px; border-radius: 12px; background: #19b0a1; color: #fff; font-size: 1.1rem; }
.isc-form .btn:hover:not(:disabled), .isc-form .btn:focus-visible { background: #128f83; }
/* Righe degli eventi larghe quanto la barra del percorso: testo pieno, tasto sul bordo destro */
@media (min-width: 561px) { .event .evbody { grid-template-columns: minmax(0, 1fr) auto; justify-content: stretch; } }
.event .when .m { white-space: nowrap; font-size: clamp(1.9rem, 0.9rem + 1.9vw, 3.2rem); }
/* Testo introduttivo largo quanto la barra del percorso */
.intro-ev > p, .intro-ev .lead { max-width: none; }
/* Pagina iscrizione: titolo e testo larghi quanto il modulo */
.isc .intro-ev { max-width: 820px; }
/* Pagina iscrizione: colonna centrata nello schermo */
.isc .intro-ev, .isc .isc-form { margin-inline: auto; width: 100%; max-width: 820px; }
/* Caselline di spunta più piccole nelle liste di pericoli ed elementi esposti */
button > .ck { width: 14px; height: 14px; border-width: 1.5px; border-radius: 3px; }
button[aria-pressed="true"] > .ck::after { width: 3.5px; height: 7px; border-width: 0 1.5px 1.5px 0; }
/* Rischi che riguardano un elemento esposto: righe ordinate con il misuratore, come per i pericoli */
.elrows { display: grid; gap: 6px; }
.elrow.hzr { padding: 6px 10px; }
.elrow.hzr .en { font-weight: 500; }
.elrow.hzr .rkm { width: 92px; }
.elrow.hzr .rkm .rkl { white-space: nowrap; }
.split .br .elrow.hzr { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.22); color: inherit; }
.split .br .elrow.hzr:hover { background: rgba(255, 255, 255, 0.22); }
.split .br .elrow.hzr .rkm { border-left-color: rgba(255, 255, 255, 0.25); }
.split .br .elrow.hzr .rkm .bars b:not(.on) { background: rgba(255, 255, 255, 0.22); }
.split .br .elrow.hzr .rkm .rkl { color: inherit; }
.split .br .elrow.hzr { border-left-color: var(--ac); }
button > .ck { border-width: 1px; }
.wip-omino { width: min(210px, 56%); }
/* Sottotitoli delle schede dei pericoli (Cos'è, Perché il clima lo cambia…): più compatti e più scuri */
.split .bl .exp .label { letter-spacing: 0.06em; color: #46525c; font-weight: 600; }
.wip-omino { width: min(160px, 44%); }
/* Codici dei pericoli sul cerchio: un po' più staccati dai pallini */
.node.r .tx.code { left: 40px; } .node.l .tx.code { right: 40px; }

/* Titoli in giallo */
:root { --yellow: #b37a00; }
.title, .ev-title, .side-block h2, .section h2, .side-block .col-title, .popup h3, .hd h3 { color: var(--yellow); }
/* Sul pannello blu scuro dei pericoli il giallo resta chiaro */
main[data-page="pericoli"] .split .br .col-title, main[data-page="pericoli"] .split .br h2, main[data-page="pericoli"] .split .br .hd h3 { color: #ffc233; }

/* ===== Cellulare (20/10/2026): loghi piccoli su una riga (ClimaTE da solo a destra), comandi della mappa sotto il cerchio ===== */
@media (max-width: 760px) {
  header { grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 10px; }
  header .topgrid .logo--macro { grid-column: 1; grid-row: 1; padding-block: 6px; }
  header .topgrid .logos-r { grid-column: 2; grid-row: 1; gap: 8px; padding-bottom: 0; }
  header .topgrid .titlec { grid-column: 4; grid-row: 1; }
  header .topgrid .logo--macro img { height: 22px; width: auto; }
  header .logo--comune img { height: 24px; width: auto; }
  header .logo--comune span { font-size: 0.56rem; line-height: 1.1; }
  header .logo--comune { gap: 4px; }
  header .logo--ras img { height: 20px; width: auto; }
  header .titlec .title-logo img { height: 28px; width: auto; }
  header .titlec .subtitle-band { display: none; }
  .split .orbit { margin-bottom: 64px; }
  .corner.bl2 { bottom: -58px; }
  .corner.br2 { bottom: -54px; }
}
@media (max-width: 360px) { header .logo--comune span { display: none; } }
@media (max-width: 760px) {
  .maplegend { top: calc(100% + 62px); bottom: auto; left: 0; right: 0; transform: none; max-width: none; }
  .maplegend .legend { font-size: 0.8rem; }
  .maplegend .legend:empty { display: none; }
}

/* pagina eventi: tasto tondo "Iscriviti" a destra del titolo, il testo si stringe per fargli spazio */
.intro-ev { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; }
.intro-ev > :not(.ev-isc) { grid-column: 1; }
.intro-ev .ev-isc { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
@media (min-width: 1100px) { .intro-ev .ev-title { white-space: normal; } }
@media (max-width: 560px) { .intro-ev { grid-template-columns: minmax(0, 1fr); } .intro-ev .ev-isc { grid-column: 1; grid-row: auto; justify-self: start; } }
/* cellulare: le etichette dei pallini si aprono verso l'interno del cerchio, così restano nello schermo */
@media (max-width: 760px) {
  .node.r .tip { left: auto; right: 30px; }
  .node.l .tip { right: auto; left: 30px; }
  .node .tip { max-width: min(230px, 58vw); }
  .node:focus .tip { display: block; }
}

/* intestazione: Regione e Adattiamoci a sinistra, Comune a destra; footer con l'avviso regionale */
.logos-l { display: flex; align-items: center; gap: 22px; }
header .topgrid .logos-l { grid-column: 1; grid-row: 1; justify-self: start; }
header .topgrid .logos-l .logo--macro { padding-block: 0; }
@media (max-width: 760px) { .logos-l { gap: 10px; } }
.foot .wrap { justify-content: space-between; align-items: center; gap: 10px 32px; }
.foot-avviso { flex: 1 1 360px; max-width: 78ch; margin: 0; font-size: 0.8rem; line-height: 1.4; color: #465864; font-weight: 400; }

/* ===== Pagina Adattamento (21/10/2026): spiegazione dell'adattamento e del percorso di Terralba, poi soluzioni in costruzione ===== */
.ad-intro { padding-bottom: 8px; }
.ad-sec { padding-block: 18px; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.ad-card { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(20, 40, 60, 0.14); border-radius: 16px; padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.ad-card h2, .ad-h { margin: 0; font: 700 clamp(1.25rem, 1rem + 0.8vw, 1.6rem)/1.2 var(--font-strong); color: var(--yellow, #b37a00); }
.ad-card p, .ad-p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.ad-p { max-width: 62rem; margin-top: 8px; }
.ad-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; counter-reset: none; }
.ad-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(20, 40, 60, 0.14); border-radius: 16px; padding: 18px; }
.ad-steps .n { width: 40px; height: 40px; border-radius: 50%; background: #19b0a1; color: #fff; display: grid; place-items: center; font: 600 1.1rem var(--font-strong); }
.ad-steps h3 { margin: 4px 0 6px; font: 600 1.08rem/1.25 var(--font-strong); color: var(--ink); }
.ad-steps p { margin: 0; font-size: 0.98rem; line-height: 1.45; color: var(--ink); }
.ad-steps a, .ad-card a { color: var(--orange); font-weight: 500; }
.wip.wip--in { min-height: 0; padding-block: 24px 56px; }
.wip-card h2 { margin: 0; font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.15 var(--font-strong); color: var(--ink); text-wrap: balance; }
/* Intestazione con il menù sempre visibile in alto (21/10/2026); --hdr è l'altezza dell'intestazione, aggiornata da app.js */
header { position: sticky; top: 0; z-index: 40; }
header .nav { position: static; }
.split .orbit { top: calc(var(--hdr, 64px) + 8px); }
@media (max-width: 1180px) { .split .orbit { top: auto; } } /* sotto 1180px la mappa non è fissa: niente spostamento, così la legenda non copre i testi */
html { scroll-padding-top: calc(var(--hdr, 64px) + 12px); }
/* dicitura dell'avviso con lo stesso stile di «Sito realizzato da» */
.foot p.foot-avviso { font-family: var(--font-body); font-size: 0.82rem; line-height: 1.45; color: #465864; font-weight: 400; }

/* ===== Adattamento: tre box come nello schizzo e strada a gomiti, colori della pagina Eventi (21/10/2026) ===== */
a.sracc { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.foot-avviso a.sracc { color: inherit; }
main[data-page="adattamento"] .lead, .ad-shape p, .ad-p, .rs-t p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
main[data-page="adattamento"] .lead { max-width: none; }
.ad-intro { padding-bottom: 8px; }
.ad-sec { padding-block: 34px; }
.ad-sec + .ad-sec { padding-top: 46px; }
.ad-p { max-width: none; margin-top: 10px; }

.ad-shapes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 22px; }
.ad-shape { --bg: #3f8f95; position: relative; display: grid; gap: 10px; align-content: start; padding: 34px 36px 36px; background: var(--bg); color: #fff; }
.ad-shape h2 { margin: 0; font: 700 clamp(1.25rem, 1rem + 0.8vw, 1.6rem)/1.2 var(--font-strong); color: inherit; }
.ad-shape p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: inherit; }
.ad-shape a.sracc { color: inherit; }
.ad-ico { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); outline: 3px dotted rgba(255, 255, 255, 0.8); outline-offset: 5px; margin: 4px 0 10px; }
.ad-ico svg { width: 40px; height: 40px; color: #fff; }
/* box 1: cupola, angolo in basso a destra vivo */
.ad-shape--a { --bg: #d8706a; border-radius: 48% 48% 0 64px / 34% 34% 0 64px; padding-top: 56px; padding-inline: 40px; justify-items: center; text-align: center; }
.ad-shape--a p { text-align: justify; }
/* box 2: angolo in basso a sinistra vivo, lato destro arrotondato */
.ad-shape--b { --bg: #3f8f95; border-radius: 30px 200px 200px 0; padding-right: 96px; }
/* box 3: fascia lunga arrotondata su tutta la larghezza */
.ad-shape--c { --bg: #56507f; grid-column: 1 / -1; border-radius: 150px; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; padding: 38px 96px 38px 60px; }
.ad-shape--c .ad-ico { margin: 0; width: 96px; height: 96px; }
.ad-shape--c .ad-ico svg { width: 52px; height: 52px; }
.ad-shape-t { display: grid; gap: 10px; }
@media (max-width: 900px) {
  .ad-shapes { grid-template-columns: minmax(0, 1fr); }
  .ad-shape--a { border-radius: 46% 46% 0 50px / 120px 120px 0 50px; padding-top: 44px; }
  .ad-shape--b { border-radius: 24px 110px 110px 0; padding-right: 56px; }
  .ad-shape--c { border-radius: 70px; grid-template-columns: minmax(0, 1fr); padding: 36px 34px; justify-items: center; }
  .ad-shape--c .ad-shape-t { justify-items: center; text-align: center; }
}
@media (max-width: 560px) {
  .ad-shape { padding: 28px 24px 30px; }
  .ad-shape--a { padding-top: 40px; }
  .ad-shape--b { padding-right: 34px; border-radius: 20px 70px 70px 0; }
  .ad-shape--c { border-radius: 50px; padding: 32px 24px; }
}

/* strada a gomiti: le tappe sono posizionate in percentuale sul disegno (viewBox 1200 x 480) */
.road { position: relative; margin-top: 30px; aspect-ratio: 1200 / 480; }
.road-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.road-steps { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rs { position: absolute; left: var(--x); width: 17.2%; transform: translateX(-50%); display: flex; align-items: center; }
.rs--up { bottom: calc(100% - var(--y)); flex-direction: column-reverse; }
.rs--down { top: calc(var(--y) - 48px); flex-direction: column; }
.rs .pin { width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); display: grid; place-items: center; color: #fff; font: 700 1rem/1 var(--font-strong); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25); flex: none; margin-bottom: 8px; }
.rs--down .pin { margin-bottom: 0; }
.rs .pin b { transform: rotate(45deg); font-weight: 700; }
.rs-t h3 { margin: 0 0 6px; font: 700 1.02rem/1.2 var(--font-strong); color: var(--t); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; }
.rs-t p { margin: 0; font-size: 0.93rem; line-height: 1.45; color: var(--ink); }
.rs-t a { color: var(--t); font-weight: 600; }
.rs--up .rs-t { margin-bottom: 14px; }
.rs--down .rs-t { margin-top: 30px; }
@media (max-width: 1180px) {
  .road { aspect-ratio: auto; padding-left: 10px; }
  .road-svg { display: none; }
  .road-steps { position: relative; inset: auto; display: grid; gap: 22px; padding: 6px 0; }
  .road-steps::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 30px; transform: translateX(-50%); background: #2b2f33 linear-gradient(#fff, #fff) center / 2px 100% no-repeat; border-radius: 15px; }
  .rs, .rs--up, .rs--down { position: relative; left: auto; top: auto; bottom: auto; width: auto; transform: none; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
  .rs .pin { position: relative; z-index: 1; margin: 4px 0 0 2px; }
  .rs--up .rs-t, .rs--down .rs-t { margin: 0; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(20, 40, 60, 0.14); border-radius: 14px; padding: 14px 16px; }
  .rs-t h3 { text-align: left; }
}
.ad-h--sol { margin-top: 56px; text-align: center; }
.wip.wip--in { padding-top: 6px; }
.wip--in .wip-card { background: none; border: 0; box-shadow: none; }
/* Adattamento, revisione: titoli uniformi, box nei colori degli eventi, icone viola (21/10/2026) */
main[data-page="adattamento"] .ad-h { font-family: var(--font-body); font-weight: 700; font-size: clamp(2rem, 1rem + 2.6vw, 3.3rem); line-height: 1.05; letter-spacing: -0.01em; }
.ad-shape h2, .rs-t h3, .wip--in .wip-card h2 { color: #1d2329; font: 700 clamp(1.25rem, 1rem + 0.8vw, 1.6rem)/1.2 var(--font-strong); letter-spacing: 0; text-transform: none; }
.rs-t h3 { text-align: center; margin-bottom: 8px; }
.ad-shape, .ad-shape p { color: #1d2329; }
.ad-shape--a { --bg: #d8706a; border-radius: 50% 50% 0 44% / 52% 52% 0 40%; padding: 70px 48px 44px; }
.ad-shape--b { --bg: #d9a441; }
.ad-shape--c { --bg: #3f8f95; }
.ad-ico { background: rgba(255, 255, 255, 0.55); outline-color: #56507f; }
.ad-ico svg { color: #56507f; }
.ad-ico svg circle[r="2.2"] { fill: #fff; }
.rs { width: var(--w, 17.2%); }
.rs--down .rs-t { margin-top: 54px; }
.rs--up .rs-t { margin-bottom: 18px; }
@media (max-width: 1180px) { .rs { width: auto; } .rs--down .rs-t, .rs--up .rs-t { margin: 0; } .rs-t h3 { text-align: left; } }
@media (max-width: 900px) { .ad-shape--a { border-radius: 50% 50% 0 40% / 150px 150px 0 90px; padding: 56px 34px 36px; } }
@media (max-width: 560px) { .ad-shape--a { padding: 48px 26px 32px; } }
/* Titoli e sottotitoli uniformi in tutte le pagine, sul modello della pagina Eventi (21/10/2026) */
.title.ev-title, .isc .title, main[data-page="adattamento"] .ad-h { font-family: var(--font-body); font-weight: 700; font-size: clamp(2rem, 1rem + 2.6vw, 3.3rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--yellow); }
.event h2, .info h2, .ad-shape h2, .rs-t h3, .wip--in .wip-card h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.7rem; line-height: 1.15; letter-spacing: 0; text-transform: none; color: #1d2b35; }
/* box 1 a goccia: tre angoli interi, angolo in basso a destra vivo */
.ad-shape--a { border-radius: 50% 50% 0 50%; padding: 64px 64px 56px; align-content: center; }
@media (max-width: 900px) { .ad-shape--a { border-radius: 50% 50% 0 50%; padding: 60px 56px 52px; } }
@media (max-width: 560px) { .ad-shape--a { padding: 56px 40px 46px; } }
.ad-shape--a { padding: 60px 70px 62px 84px; }
@media (max-width: 900px) { .ad-shape--a { padding: 60px 56px 56px 64px; } }
@media (max-width: 560px) { .ad-shape--a { padding: 56px 34px 50px 48px; } }
/* box 2 come l'esempio: angoli piccoli in alto a sinistra e in basso a destra, grandi e tondi gli altri due */
.ad-shape--b { border-radius: 28px 170px 28px 170px; padding: 40px 80px 44px 80px; }
@media (max-width: 900px) { .ad-shape--b { border-radius: 24px 110px 24px 110px; padding: 40px 48px 44px 52px; } }
@media (max-width: 560px) { .ad-shape--b { border-radius: 20px 80px 20px 80px; padding: 34px 28px 40px 34px; } }
@media (max-width: 560px) { .ad-shape--a { padding: 56px 34px 58px 58px; } }
/* box 1: goccia con proporzioni fisse (quadrato) a ogni larghezza; gli altri due box si adattano */
.ad-shapes { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); align-items: stretch; }
.ad-shape--a { aspect-ratio: 1 / 1; align-self: center; border-radius: 50% 50% 0 50%; padding: 11% 12% 11% 14%; align-content: center; }
.ad-shape--a p { font-size: 1rem; }
@media (max-width: 900px) { .ad-shapes { grid-template-columns: minmax(0, 1fr); } .ad-shape--a { width: min(100%, 460px); justify-self: center; border-radius: 50% 50% 0 50%; padding: 11% 11% 10% 14%; } }
@media (max-width: 560px) { .ad-shape--a { padding: 12% 10% 9% 14%; } .ad-shape--a p { font-size: 0.92rem; line-height: 1.4; } .ad-shape--a .ad-ico { width: 58px; height: 58px; margin-bottom: 4px; } .ad-shape--a .ad-ico svg { width: 32px; height: 32px; } .ad-shape--a h2 { font-size: 1.45rem; } }
/* strada verticale (telefono): inizio sfumato e freccia finale */
@media (max-width: 1180px) {
  .road-steps { padding-bottom: 34px; }
  .road-steps::before { bottom: 26px; -webkit-mask: linear-gradient(transparent, #000 60px); mask: linear-gradient(transparent, #000 60px); border-radius: 0; }
  .road-steps::after { content: ""; position: absolute; left: 22px; bottom: 0; transform: translateX(-50%); border-left: 26px solid transparent; border-right: 26px solid transparent; border-top: 34px solid #2b2f33; }
}
/* testi più leggibili, come le descrizioni degli eventi */
.road { aspect-ratio: 1200 / 730; }
.ad-shape p, .ad-p, .rs-t p { font-size: 1.2rem; font-weight: 300; line-height: 1.45; }
.ad-shape p b, .ad-p b { font-weight: 600; }
.rs--down .rs-t { margin-top: 44px; }
.ad-shape--a p { font-size: clamp(1rem, 0.75rem + 0.9vw, 1.2rem); }
@media (max-width: 900px) { .ad-shape--a p { font-size: 1.1rem; } }
@media (max-width: 560px) { .ad-shape--a p { font-size: 1rem; line-height: 1.35; } .ad-shape--a h2 { font-size: 1.4rem; } }
@media (max-width: 900px) and (min-width: 561px) { .ad-shape--a p { font-size: 1.05rem; } }
/* puntine più grandi, simboli dei box più grandi e staccati dal testo */
.road { aspect-ratio: 1200 / 855; }
.rs .pin { width: 56px; height: 56px; font-size: 1.35rem; margin-bottom: 6px; }
.rs--down { top: calc(var(--y) - 64px); }
.rs--down .rs-t { margin-top: 40px; }
.ad-shape { align-content: center; }
.ad-ico { width: 104px; height: 104px; margin: 6px 0 26px; outline-width: 4px; outline-offset: 7px; }
.ad-ico svg { width: 60px; height: 60px; }
.ad-shape--c { gap: 48px; }
.ad-shape--c .ad-ico { width: 116px; height: 116px; margin: 0; }
.ad-shape--c .ad-ico svg { width: 66px; height: 66px; }
@media (max-width: 1180px) { .rs .pin { width: 46px; height: 46px; font-size: 1.15rem; } .rs, .rs--up, .rs--down { grid-template-columns: 50px minmax(0, 1fr); } }
@media (max-width: 900px) { .ad-shape--c .ad-ico { margin-bottom: 10px; } .ad-shape--c { gap: 16px; } }
@media (max-width: 560px) { .ad-ico { width: 84px; height: 84px; margin-bottom: 20px; } .ad-ico svg { width: 48px; height: 48px; } .ad-shape--a .ad-ico { width: 64px; height: 64px; margin-bottom: 12px; } .ad-shape--a .ad-ico svg { width: 38px; height: 38px; } }
.ad-shape--a .ad-ico { width: 84px; height: 84px; margin-bottom: 18px; } .ad-shape--a .ad-ico svg { width: 48px; height: 48px; } @media (max-width: 1250px) { .ad-shape--a .ad-ico { width: 70px; height: 70px; margin-bottom: 14px; } .ad-shape--a .ad-ico svg { width: 40px; height: 40px; } }
@media (min-width: 1251px) { .ad-shape--a .ad-ico { width: 100px; height: 100px; margin-bottom: 24px; } .ad-shape--a .ad-ico svg { width: 58px; height: 58px; } }
/* box trasparenti con bordo colorato spesso; simboli più staccati dal testo */
.ad-shape { background: transparent; border: 7px solid var(--bg); }
.ad-ico { background: color-mix(in srgb, var(--bg) 30%, #fff); margin-bottom: 40px; }
.ad-shape--a .ad-ico { margin-bottom: 34px; }
@media (max-width: 1250px) { .ad-shape--a .ad-ico { margin-bottom: 24px; } }
.ad-shape--c .ad-ico { margin: 0; }
@media (max-width: 900px) { .ad-shape--c .ad-ico { margin-bottom: 26px; } }
@media (max-width: 560px) { .ad-shape { border-width: 5px; } .ad-ico { margin-bottom: 28px; } .ad-shape--a .ad-ico { margin-bottom: 16px; } }
/* puntine staccate dal bordo della strada, dal lato del testo, con bordo tratteggiato */
.rs .pin { position: relative; }
.rs .pin::before { content: ""; position: absolute; inset: -7px; border: 2.5px dashed var(--c); border-radius: inherit; }
.rs--up { bottom: calc(100% - var(--y) + 2.4% + 12px); }
.rs--up .pin { margin-bottom: 0; }
.rs--down { top: calc(var(--y) + 2.4% + 12px); }
.rs--down .pin { transform: rotate(135deg); }
.rs--down .pin b { transform: rotate(-135deg); }
.rs--down .rs-t { margin-top: 22px; }
.rs--up .rs-t { margin-bottom: 22px; }
@media (max-width: 1180px) {
  .rs--up, .rs--down { top: auto; bottom: auto; }
  .rs--down .pin { transform: rotate(-45deg); } .rs--down .pin b { transform: rotate(45deg); }
  .rs .pin::before { inset: -5px; border-width: 2px; }
  .rs--down .rs-t, .rs--up .rs-t { margin: 0; }
}
@media (max-width: 900px) and (min-width: 561px) { .ad-shape--a .ad-ico { width: 64px; height: 64px; margin-bottom: 18px; } .ad-shape--a .ad-ico svg { width: 38px; height: 38px; } }
@media (max-width: 900px) and (min-width: 561px) { .ad-shape--a p { font-size: 1rem; line-height: 1.38; } .ad-shape--a { padding-top: 9%; padding-bottom: 8%; } }
/* footer a tutta larghezza: la dicitura dell avviso parte vicino al bordo sinistro dello schermo */
.foot .wrap { max-width: none; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
/* dicitura dell'avviso larga fino a metà schermo; box con bordo tratteggiato */
.foot p.foot-avviso { max-width: 50vw; flex: 0 1 50vw; }
@media (max-width: 760px) { .foot p.foot-avviso { max-width: none; flex: 1 1 100%; } }
.ad-shape { border-style: dashed; border-width: 6px; }
@media (max-width: 560px) { .ad-shape { border-width: 4px; } }
/* testi della strada centrati */
.rs-t p { text-align: center; hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 1180px) { .rs-t h3, .rs-t p { text-align: center; } }
/* simboli dei primi due box più in alto e staccati dal testo; testo del terzo box più a destra */
.ad-shape--b { align-content: start; padding-top: 34px; }
.ad-shape--b .ad-ico { margin: 0 0 56px; }
@media (min-width: 1251px) { .ad-shape--a { align-content: start; padding-top: 9%; } .ad-shape--a .ad-ico { margin-bottom: 56px; } }
@media (min-width: 901px) and (max-width: 1250px) { .ad-shape--a { align-content: start; padding-top: 9%; } .ad-shape--a .ad-ico { margin-bottom: 34px; } }
.ad-shape--c { gap: 90px; padding-left: 70px; }
@media (max-width: 900px) { .ad-shape--c { gap: 16px; padding-left: 34px; } .ad-shape--b .ad-ico { margin-bottom: 36px; } }
/* box 2: simbolo a destra */
.ad-shape--b .ad-ico { justify-self: end; margin-right: 40px; margin-top: 18px; }
@media (max-width: 900px) { .ad-shape--b .ad-ico { margin-right: 24px; } }
@media (max-width: 560px) { .ad-shape--b .ad-ico { margin-right: 18px; margin-top: 22px; } }
/* strada ritagliata sulla carreggiata: i testi escono sopra e sotto, spazi fissi in px */
.road { aspect-ratio: 1200 / 420; margin-top: 288px; margin-bottom: 270px; }
.rs--up { bottom: calc(100% - var(--y) + 4.1% + 12px); }
.rs--down { top: calc(var(--y) + 4.1% + 12px); }
.ad-sec + .ad-sec { padding-top: 96px; }
.ad-h--sol { margin-top: 110px; }
@media (max-width: 1180px) { .road { aspect-ratio: auto; margin: 26px 0 0; } }
/* puntine più staccate dal bordo della strada */
.rs--up { bottom: calc(100% - var(--y) + 4.1% + 30px); }
.rs--down { top: calc(var(--y) + 4.1% + 30px); }
.road { margin-top: 306px; margin-bottom: 288px; }
@media (max-width: 1180px) { .road { margin: 26px 0 0; } .rs--up, .rs--down { top: auto; bottom: auto; } }
/* freccetta curva verso gli elementi esposti indicati sotto */
.rk-line .note svg.giu { display: inline-block; width: 1.15em; height: 1.35em; margin-left: 6px; vertical-align: -0.55em; }
.rk-line .note svg.giu { vertical-align: -1.05em; }
/* pop-up della mappa: pericoli in elenco, tutti allineati (pallino, nome a sinistra, livello a destra) */
.popup .pp-list { display: grid; gap: 5px; }
.popup .pp-list .pill { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; column-gap: 9px; width: 100%; text-align: left; border-radius: 10px; padding: 5px 10px; line-height: 1.25; }
.popup .pp-list .pill .nm b { font-weight: 600; margin-right: 2px; }
.popup .pp-list .pill .rk { justify-self: end; min-width: 4.6em; text-align: center; }
/* colonna del livello larga abbastanza per «Trascurabile», uguale in tutte le righe */
.hi .rkm, .split .hi .rkm, .elrow .rkm, .elrow.hzr .rkm { width: 100px; }
.rkm .rkl { white-space: nowrap; }
@media (max-width: 420px) { .hi .rkm, .split .hi .rkm, .elrow .rkm, .elrow.hzr .rkm { width: 92px; } .rkm .rkl { letter-spacing: 0; } }
