/* Landing Uni+ (unipiu.it) — stile "Arte generativa" condiviso con i siti ABA e BLU. */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../../fonts/sora-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../fonts/space-mono-400-latin.woff2') format('woff2'); }

:root {
  --bg: #ebe5dc;
  --bg-2: #f6f2eb;
  --surface: rgba(246, 242, 235, .74);
  --surface-strong: rgba(246, 242, 235, .94);
  --line: rgba(50, 44, 38, .1);
  --line-strong: rgba(50, 44, 38, .22);
  --ink: #322c26;
  --ink-2: #4a4239;
  --muted: #6b6156;
  --teal: #4d6a2a;
  --teal-hi: #3d5620;
  --sand: #7a6c5d;
  --navy: #b3a595;
  --on-teal: #f6f2eb;
  --grad: linear-gradient(90deg, var(--teal), var(--sand));
  --blur: blur(14px);
  --gutter: clamp(16px, 5vw, 64px);
  --content: 1240px;
  --pad-x: max(var(--gutter), calc((100% - var(--content)) / 2));
  --sans: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; background: var(--bg) radial-gradient(1200px 700px at 85% -10%, rgba(77, 106, 42, .14), transparent 60%) fixed, radial-gradient(900px 600px at -10% 90%, rgba(122, 108, 93, .1), transparent 60%) fixed; }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; }
h1 em, h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
::selection { background: rgba(77, 106, 42, .35); color: #322c26; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--teal); color: var(--on-teal); font-weight: 600; }
.skip:focus { top: 12px; }

.flow { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.flow.is-ready { opacity: .6; }

.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--teal); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.dot { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; }
.dot-aba { background: var(--teal); box-shadow: 0 0 12px rgba(77, 106, 42, .8); }
.dot-blu { background: var(--sand); box-shadow: 0 0 12px rgba(122, 108, 93, .8); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid rgba(50, 44, 38, .3); border-radius: 999px; background: rgba(50, 44, 38, .06); color: var(--ink); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: background .2s ease, border-color .2s ease, box-shadow .3s ease, transform .2s ease; }
.btn:hover { border-color: rgba(50, 44, 38, .6); background: rgba(50, 44, 38, .12); }
.btn.solid { border-color: var(--teal); background: var(--teal); color: var(--on-teal); }
.btn.solid:hover { border-color: var(--teal-hi); background: var(--teal-hi); box-shadow: 0 0 32px -4px rgba(77, 106, 42, .55); transform: translateY(-1px); }
.btn.solid.is-blu { border-color: var(--sand); background: var(--sand); color: #f6f2eb; }
.btn.solid.is-blu:hover { border-color: #665a4d; background: #665a4d; box-shadow: 0 0 32px -4px rgba(122, 108, 93, .55); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px var(--pad-x); border-bottom: 1px solid var(--line); background: rgba(246, 242, 235, .6); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.brand { display: block; width: 84px; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; }
.top nav a { color: #4a4239; text-decoration: none; }
.top nav a:hover { color: #322c26; }

/* Ricerca */
.finder, .homes, .table-sec { padding: clamp(40px, 6vw, 80px) var(--pad-x); }
.finder-head, .section-head { max-width: 820px; margin-bottom: clamp(22px, 3vw, 36px); }
.finder h2, .section-head h2 { font-size: clamp(28px, 3.8vw, 52px); line-height: 1.04; }
.finder-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.map-card, .panel { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.map-card { padding: 14px; }
.map-wrap { position: relative; overflow: hidden; border-radius: 16px; background: rgba(246, 242, 235, .6); }
.map-svg { display: block; width: 100%; height: auto; touch-action: manipulation; cursor: crosshair; }
.map-hint { position: absolute; left: 12px; bottom: 10px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(246, 242, 235, .75); color: var(--muted); font-size: 11.5px; pointer-events: none; transition: opacity .4s ease; }
.map-hint.is-hidden { opacity: 0; }

.zone-aba { fill: rgba(77, 106, 42, .16); }
.zone-blu { fill: rgba(122, 108, 93, .19); }
.area { fill: transparent; stroke: rgba(50, 44, 38, .28); stroke-width: 1.2; stroke-linejoin: round; transition: fill .25s ease, stroke .25s ease; }
.area-comune { stroke: rgba(50, 44, 38, .2); stroke-dasharray: 5 5; }
.area:hover { fill: rgba(50, 44, 38, .05); }
.area.is-on { fill: rgba(50, 44, 38, .08); stroke: #322c26; stroke-width: 2; stroke-dasharray: none; }
.map-bisettrice { stroke: rgba(50, 44, 38, .55); stroke-width: 1.4; stroke-dasharray: 2 7; stroke-linecap: round; pointer-events: none; }
.lbl-circ, .lbl-comune { fill: rgba(50, 44, 38, .72); font: 700 22px var(--sans); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.lbl-comune { fill: rgba(50, 44, 38, .5); font: 400 15px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.ateneo { fill: #f6f2eb; stroke: #5b6f8c; stroke-width: 2; cursor: pointer; transition: r .2s ease, fill .2s ease; }
.ateneo:hover { fill: #5b6f8c; }
.ateneo.is-on { fill: #322c26; stroke: #322c26; r: 9; }
.res-dot { stroke: var(--bg); stroke-width: 3; }
.res-aba .res-dot, .res-aba .res-pulse { fill: var(--teal); }
.res-blu .res-dot, .res-blu .res-pulse { fill: var(--sand); }
.res-lbl { fill: #322c26; font: 700 20px var(--sans); paint-order: stroke; stroke: rgba(246, 242, 235, .85); stroke-width: 6px; stroke-linejoin: round; }
.res-pulse { opacity: .4; transform-box: fill-box; transform-origin: center; }
.res.is-near .res-dot { stroke: #322c26; }
.path-line { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.path-line.is-near { stroke-width: 3.4; }
.path-aba { stroke: var(--teal); }
.path-blu { stroke: var(--sand); }
.path-line:not(.is-near) { stroke-dasharray: 3 9; opacity: .65; }
.path-km { font: 700 18px var(--mono); paint-order: stroke; stroke: rgba(246, 242, 235, .9); stroke-width: 6px; text-anchor: middle; }
.path-km.km-aba { fill: var(--teal); }
.path-km.km-blu { fill: var(--sand); }
.pick-dot { fill: #322c26; stroke: var(--bg); stroke-width: 3; }
.pick-ring { fill: none; stroke: #322c26; stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; }

.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 4px 2px; padding: 0; list-style: none; color: var(--ink-2); font-size: 13.5px; }
.map-legend li { display: flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 16px; height: 12px; border-radius: 3px; }
.sw-aba { background: rgba(77, 106, 42, .35); box-shadow: inset 0 0 0 1px var(--teal); }
.sw-blu { background: rgba(122, 108, 93, .3); box-shadow: inset 0 0 0 1px var(--sand); }
.sw-line { height: 0; border-top: 2px dotted rgba(50, 44, 38, .7); border-radius: 0; }
.sw-uni { width: 12px; border: 2px solid #5b6f8c; border-radius: 50%; }

.panel { position: sticky; top: 84px; display: flex; flex-direction: column; max-height: calc(100vh - 100px); overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 12px 12px 0; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(50, 44, 38, .03); }
.tabs button { min-height: 40px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 14px var(--sans); cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.pane { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; scrollbar-width: thin; scrollbar-color: rgba(50, 44, 38, .2) transparent; }
.choices { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.group-title { margin: 12px 4px 4px; color: var(--muted); font: 400 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.group-title:first-child { margin-top: 2px; }
.choice { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(50, 44, 38, .03); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.choice:hover { border-color: rgba(77, 106, 42, .5); background: rgba(77, 106, 42, .06); }
.choice[aria-pressed='true'] { border-color: var(--teal); background: rgba(77, 106, 42, .12); }
.choice strong { font-size: 15px; line-height: 1.3; }
.choice small { grid-column: 1; color: var(--muted); font-size: 13px; line-height: 1.4; }
.choice .badge { grid-column: 2; grid-row: 1 / span 2; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 400 11px var(--mono); letter-spacing: .06em; white-space: nowrap; }
.badge-aba { background: rgba(77, 106, 42, .14); color: var(--teal); }
.badge-blu { background: rgba(122, 108, 93, .14); color: var(--sand); }
.search input { width: 100%; min-height: 46px; margin-bottom: 10px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(50, 44, 38, .05); color: var(--ink); font: 15px var(--sans); }
.search input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(77, 106, 42, .25); }
.note { margin: 4px 2px 12px; color: var(--ink-2); font-size: 14.5px; }

.result { flex: 0 0 auto; margin: 0 12px 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-strong); }
.result-empty p { margin: 0; color: var(--ink-2); font-size: 15px; }
.result-empty .mono { margin-bottom: 6px; color: var(--muted); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; }
.result-from { margin: 0 0 12px; color: var(--muted); font: 400 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.result-from strong { display: block; margin-top: 4px; color: var(--ink); font: 700 18px/1.3 var(--sans); letter-spacing: -.01em; text-transform: none; }
.bars { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.bar-name { font-weight: 600; }
.bar-km { font: 700 17px var(--mono); }
.bar-track { grid-column: 1 / -1; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(50, 44, 38, .08); }
.bar-fill { display: block; height: 100%; border-radius: inherit; transform-origin: left; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bar-aba .bar-fill { background: var(--teal); }
.bar-blu .bar-fill { background: var(--sand); }
.bar-aba .bar-km { color: var(--teal); }
.bar-blu .bar-km { color: var(--sand); }
.bar .badge { margin-left: 8px; vertical-align: 2px; }
.result-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.result-actions .btn { width: 100%; min-height: 44px; padding: 0 14px; font-size: 14.5px; }
.result-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 12px 2px 0; font-size: 13.5px; }
.result-links a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(50, 44, 38, .3); text-underline-offset: 3px; }
.result-links a:hover { color: var(--teal); }
.result-tie { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.fine { max-width: 900px; margin: 18px 0 0; color: var(--muted); font-size: 12.5px; }

/* Residenze */
.homes h2, .table-sec h2 { max-width: 820px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: border-color .3s ease, box-shadow .3s ease; }
.home-aba:hover { border-color: rgba(77, 106, 42, .5); box-shadow: 0 30px 70px -40px rgba(77, 106, 42, .5); }
.home-blu:hover { border-color: rgba(122, 108, 93, .5); box-shadow: 0 30px 70px -40px rgba(122, 108, 93, .5); }
.home picture { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.home picture img { width: 100%; height: 100%; object-fit: cover; }
.home-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 30px); }
.home-blu .kicker { color: var(--sand); }
.home h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.addr { margin: 0; color: var(--muted); font: 13px var(--mono); }
.facts { display: grid; gap: 8px; margin: 8px 0 18px; padding: 0; list-style: none; color: var(--ink-2); }
.facts li { position: relative; padding-left: 22px; }
.facts li::before { position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); content: ''; }
.home-blu .facts li::before { background: var(--sand); }
.facts strong { color: var(--ink); }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.home-blu .btn.solid { border-color: var(--sand); background: var(--sand); color: #f6f2eb; }
.home-blu .btn.solid:hover { border-color: #665a4d; background: #665a4d; box-shadow: 0 0 32px -4px rgba(122, 108, 93, .55); }

/* Tabella atenei */
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
table { width: 100%; border-collapse: collapse; }
thead th { padding: 14px 18px; background: rgba(50, 44, 38, .04); color: var(--muted); font: 400 12px var(--mono); letter-spacing: .12em; text-align: left; text-transform: uppercase; }
tbody th, tbody td { padding: 14px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
tbody th { font-weight: 400; }
tbody th strong, tbody th span, tbody th small { display: block; }
tbody th span { color: var(--ink-2); }
tbody th small { margin-top: 2px; color: var(--muted); font: 12px var(--mono); }
tbody td { color: var(--ink-2); font: 15px var(--mono); white-space: nowrap; }
tbody td.is-near { color: var(--ink); font-weight: 700; }
.near-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(77, 106, 42, .14); color: var(--teal); font-size: 11px; font-weight: 400; }
tbody td:nth-child(3) .near-tag { background: rgba(122, 108, 93, .14); color: var(--sand); }

/* PNRR e footer */
.pnrr { margin: clamp(24px, 4vw, 48px) var(--pad-x) 0; padding: 14px; border-radius: 18px; background: #fff; text-align: center; }
.pnrr img { width: 100%; max-width: 1100px; margin: 0 auto; }
.pnrr p { margin: 10px 0 0; color: #3c4a57; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.foot { margin-top: clamp(40px, 6vw, 72px); padding: 40px var(--pad-x) 32px; border-top: 1px solid var(--line); background: rgba(246, 242, 235, .88); color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: .6fr 1fr 1fr; gap: 28px; }
.foot-logo { width: 110px; }
.foot-title { margin: 0 0 6px; color: var(--ink); font-weight: 700; }
.foot p { margin: 0 0 8px; }
.foot a { color: var(--ink); }
.foot-small { font: 12px var(--mono); }
.foot-credits { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .res-pulse { animation: pulse 2.8s ease-out infinite; }
  .res-blu .res-pulse { animation-delay: 1.4s; }
  .pick-ring { animation: pulse 2s ease-out infinite; }
  .path-draw { stroke-dashoffset: var(--len); animation: draw .9s cubic-bezier(.2, .8, .2, 1) forwards; }
}
@keyframes pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(3.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow { transition: none; }
  .bar-fill { transition: none; }
}

@media (max-width: 1000px) {
  .finder-grid { grid-template-columns: 1fr; }
  .panel { position: static; max-height: none; }
  .pane { max-height: 340px; }
}
@media (max-width: 860px) {
  .home-grid, .foot-grid { grid-template-columns: 1fr; }
  .top nav a:not(:first-child) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand { width: 76px; }
  .map-card { padding: 8px; }
  .lbl-circ { font-size: 28px; }
  .res-lbl { font-size: 26px; }
  thead { display: none; }
  table, tbody, tr { display: block; }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  tbody th { grid-column: 1 / -1; border-top: 0; padding-bottom: 6px; }
  tbody td { border-top: 0; padding-top: 4px; font-size: 14px; }
  tbody td::before { display: block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
  tbody td:nth-of-type(1)::before { content: 'ABA Uni+'; }
  tbody td:nth-of-type(2)::before { content: 'UNI+ BLU'; }
  .near-tag { margin: 4px 0 0; }
}

/* Scelta della lingua (italiano / inglese). */
.langs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.langs a { min-width: 38px; padding: 6px 10px; border-radius: 999px; color: var(--ink-2); font: 600 13px var(--sans); text-align: center; text-decoration: none; }
.langs a:hover { color: #322c26; }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }
.top { gap: 16px; }
.top nav { margin-left: auto; }
@media (max-width: 860px) { .top nav { display: none; } .langs { margin-left: auto; } }

/* Consenso statistiche */
.consent { position: fixed; z-index: 40; right: 16px; bottom: 16px; left: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; max-width: 760px; margin: 0 auto; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 18px 50px -20px rgba(50, 44, 38, 0.32); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 320px; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.consent strong { color: var(--ink); }
.consent div { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Palette 19b (tortora e pistacchio): pulsante principale pistacchio con testo inchiostro, come nel modello. */
.btn.solid, .skip { border-color: #b9cf8f; background: #b9cf8f; color: #322c26; }
.btn.solid:hover { border-color: #a9c47a; background: #a9c47a; box-shadow: 0 0 32px -8px rgba(77, 106, 42, .45); }
.top, .foot { color: var(--ink); }

/* Mappa in cima: selettore + mappa nella prima schermata */
.finder { padding-top: clamp(14px, 2vw, 24px); padding-bottom: clamp(32px, 5vw, 64px); }
.selector { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 12px; }
.selector > .selector-row { flex: 1 1 500px; }
.selector > .note { flex: 1 1 100%; }
.selector h1 { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.1; letter-spacing: -.03em; }
.selector-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
.sel { display: grid; gap: 3px; min-width: 0; }
.sel select { width: 100%; min-height: 46px; padding: 0 38px 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(246, 242, 235, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23322c26' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; color: var(--ink); font: 15px var(--sans); text-overflow: ellipsis; cursor: pointer; -webkit-appearance: none; appearance: none; }
.sel select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(77, 106, 42, .25); }
.selector-row .btn { min-height: 46px; padding: 0 18px; font-size: 14.5px; white-space: nowrap; }
.selector .note { margin: 6px 2px 0; font-size: 13.5px; }
.selector .note:empty { display: none; }

.finder-grid { grid-template-columns: clamp(340px, calc(100svh - 238px), 720px) minmax(0, 1fr); }
.map-card { padding: 10px; }
.map-legend { gap: 4px 16px; margin: 8px 4px 0; font-size: 12.5px; }
.map-legend .mono { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.panel { position: static; max-height: none; overflow: visible; }
.panel .result { margin: 12px; }
.all-choices { margin: 0 12px 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(50, 44, 38, .02); }
.all-choices summary { padding: 12px 16px; font-weight: 600; font-size: 15px; cursor: pointer; }
.all-choices .tabs { margin-top: 0; }
.all-choices .tabs { grid-template-columns: repeat(2, 1fr); }
.pane { max-height: 320px; }

@media (max-width: 1000px) {
  .finder-grid { grid-template-columns: minmax(0, 1fr); }
  .map-card { width: 100%; max-width: calc(100svh - 190px); margin: 0 auto; }
}
@media (max-width: 760px) {
  .selector h1 { font-size: 20px; }
  .selector > .selector-row { flex-basis: 100%; }
  .selector-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .sel select { min-height: 44px; padding: 0 30px 0 12px; font-size: 14px; background-position: right 12px center; }
  .selector-row .btn { grid-column: 1 / -1; min-height: 40px; padding: 0 14px; font-size: 14px; }
    .selector { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .map-card { padding: 6px; border-radius: 18px; }
  .map-legend { font-size: 12px; }
}
/* Tasto Accedi (area riservata) */
.btn-accedi { flex: none; min-height: 44px; padding: 0 18px; font-size: 14.5px; white-space: nowrap; }
.btn-accedi svg { flex: none; }
.btn-accedi:focus-visible, .langs a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 560px) { .top { gap: 10px; } .btn-accedi { padding: 0 14px; gap: 6px; font-size: 14px; } .btn-accedi svg { width: 16px; height: 16px; } }
