/* ShallWeGo per computer: tema scuro + lime, come l'app iOS (Theme/Theme.swift). */
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-SemiBold.ttf"); font-weight: 600; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-Bold.ttf"); font-weight: 700; }
@font-face { font-family: "Outfit"; src: url("../fonts/Outfit-ExtraBold.ttf"); font-weight: 800; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.ttf"); font-weight: 400; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.ttf"); font-weight: 500; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.ttf"); font-weight: 600; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.ttf"); font-weight: 700; }

:root {
  --lime: #C8F31D; --lime-dark: #9BBD12; --bg: #0B0C0A; --surface: #151713; --raised: #22251E;
  --stroke: rgba(255, 255, 255, 0.08); --text: #F4F5F0; --muted: #A2A699; --on-lime: #10120D; --danger: #FF6B5E;
  --r-lg: 24px; --r: 18px; --r-sm: 12px; --top: 68px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: Outfit, Inter, sans-serif; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 34px; font-weight: 800; line-height: 1.1; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; margin-top: 18px; }
p { margin: 0; }
a { color: var(--lime); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: 0.45; }
input, textarea, select { font: inherit; color: var(--text); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.ic.filled { fill: currentColor; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.lime-text { color: var(--lime); }
.pre { white-space: pre-line; color: var(--muted); }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Logo ---------- */
.logo { font-family: Outfit; font-weight: 800; letter-spacing: -0.02em; color: var(--text); display: inline-flex; align-items: baseline; gap: 1px; line-height: 1; }
.logo svg { transform: translateY(2px); }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r); padding: 12px 18px; font-weight: 600; background: var(--raised); color: var(--text); transition: transform .1s, background .15s; }
.btn:hover:not(:disabled) { background: #2b2f26; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn.lime { background: var(--lime); color: var(--on-lime); }
.btn.lime:hover:not(:disabled) { background: #d4fa3c; }
.btn.ghost { background: transparent; border: 1px solid var(--stroke); }
.btn.white { background: #fff; color: #000; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255, 107, 94, .35); }
.btn.dark { background: var(--on-lime); color: var(--lime); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 14px; border-radius: var(--r-sm); }
.link-btn { background: none; border: 0; padding: 0; color: var(--lime); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text); display: inline-grid; place-items: center; position: relative; }
.icon-btn:hover { background: var(--raised); }

.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--stroke); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: rgba(255, 255, 255, .2); }
.chip.on { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tag { font-size: 12px; font-weight: 500; color: rgba(244, 245, 240, .85); background: var(--raised); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--lime); color: var(--on-lime); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.icon-btn .badge { position: absolute; top: 2px; right: 0; }

.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r); padding: 16px; }
.card.pad-lg { padding: 22px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.notice { display: flex; gap: 8px; align-items: center; background: rgba(200, 243, 29, .08); color: var(--lime); padding: 10px 12px; border-radius: var(--r-sm); font-size: 13px; }
.bar { display: inline-block; width: 100%; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; vertical-align: middle; }
.bar i { display: block; height: 100%; background: var(--lime); border-radius: 3px; }
.stars { display: inline-flex; gap: 2px; color: var(--lime); }
.stars .ic:not(.filled) { color: rgba(162, 166, 153, .6); }

.field { width: 100%; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r-sm); padding: 12px 14px; outline: none; }
.field:focus { border-color: rgba(200, 243, 29, .6); }
.field::placeholder { color: var(--muted); }
label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 4px 0 6px; }

/* ---------- Avatar e score ---------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--raised); color: var(--text); font-family: Outfit; font-weight: 700; flex: none; overflow: hidden; box-shadow: 0 0 0 2px var(--bg); }
.avatar.hl { background: var(--lime); color: var(--on-lime); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack .avatar + .avatar { margin-left: -9px; }
.avatar-stack .more { margin-left: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.score { width: 54px; height: 54px; border-radius: 15px; border: 1.5px solid var(--lime); background: rgba(11, 12, 10, .6); color: var(--lime); display: grid; place-content: center; text-align: center; flex: none; line-height: 1; }
.score b { font-family: Outfit; font-weight: 800; font-size: 23px; }
.score small { font-size: 10px; font-weight: 600; }
.score.top { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.score-lg { width: 78px; height: 78px; border-radius: 20px; }
.score-lg b { font-size: 34px; }
.score-lg small { font-size: 12px; }

/* ---------- Barra in alto ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; gap: 22px; padding: 0 20px 0 24px; background: rgba(11, 12, 10, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--stroke); z-index: 1000; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14px; }
.topbar nav a:hover { color: var(--text); background: var(--surface); }
.topbar nav a.on { color: var(--on-lime); background: var(--lime); }
.topbar nav a .badge { background: var(--on-lime); color: var(--lime); }
.topbar nav a:not(.on) .badge { background: var(--lime); color: var(--on-lime); }
.searchbox { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.searchbox .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--surface); padding: 0 40px 0 42px; outline: none; }
.searchbox input:focus { border-color: rgba(200, 243, 29, .6); }
.searchbox .clear { position: absolute; right: 6px; top: 5px; width: 32px; height: 32px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; }

/* ---------- Menu a tendina ---------- */
.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r); padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); display: none; z-index: 1200; }
.menu.right { left: auto; right: 0; }
.menu.open { display: block; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: none; border-radius: 10px; text-align: left; color: var(--text); font-size: 14px; }
.menu button:hover, .menu a:hover { background: var(--raised); }
.menu .sep { height: 1px; background: var(--stroke); margin: 6px 4px; }
.menu .menu-title { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.zone-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--lime); font-weight: 600; padding: 0; font-size: 15px; }

/* ---------- Pagina Esplora: lista + mappa ---------- */
.explore { position: fixed; inset: var(--top) 0 0 0; display: grid; grid-template-columns: minmax(400px, 460px) 1fr; }
.panel { overflow-y: auto; padding: 24px 24px 40px; border-right: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 24px; scrollbar-width: thin; }
.mapbox { position: relative; background: #12130f; }
#map { position: absolute; inset: 0; background: #12130f; }
.greeting h1 { margin-top: 8px; }
.outings { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.outing { border: 1px solid var(--stroke); background: var(--surface); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 14px; text-align: left; font-weight: 600; font-family: Outfit; font-size: 17px; }
.outing:hover { border-color: rgba(255, 255, 255, .2); }
.outing.on { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.more-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--lime); font-weight: 600; font-size: 14px; }
.more-toggle .ic { transition: transform .2s; }
.more-toggle.open .ic { transform: rotate(180deg); }
.list-head { display: flex; flex-direction: column; gap: 12px; position: sticky; top: -24px; background: var(--bg); padding: 12px 0 10px; margin-top: -12px; z-index: 5; }
.sort-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--lime); font-weight: 600; font-size: 14px; padding: 0; }
.vlist { display: flex; flex-direction: column; gap: 10px; }
.vcard { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--stroke); cursor: pointer; text-align: left; width: 100%; transition: border-color .15s, background .15s; }
.vcard:hover, .vcard.hover { border-color: rgba(200, 243, 29, .45); }
.vcard.sel { border-color: var(--lime); background: #1a1d15; }
.vphoto { width: 76px; height: 76px; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--raised), rgba(34, 37, 30, .55)); display: grid; place-items: center; color: rgba(200, 243, 29, .38); flex: none; }
.vphoto.big { width: 100%; height: 170px; border-radius: var(--r-lg); }
.vcard h3 { font-size: 17px; }
.vmeta { font-size: 13px; color: var(--muted); }
.vprice { font-size: 14px; font-weight: 600; margin-top: 4px; }
.vcard .tags { margin-top: 6px; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { color: var(--muted); }

/* Card del gruppo (lime) */
.poll-card { background: var(--lime); color: var(--on-lime); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.poll-card .section-label { color: rgba(16, 18, 13, .65); }
.poll-card h3 { font-size: 21px; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 14px; border-radius: 14px; border: 0; background: var(--raised); color: var(--text); text-align: left; font-weight: 500; }
.poll-opt i { position: absolute; inset: 0 auto 0 0; background: rgba(200, 243, 29, .3); transition: width .3s; }
.poll-opt > *:not(i) { position: relative; }
.poll-opt .grow { font-weight: 600; }
.poll-opt.mine { outline: 1.5px solid var(--lime); }
.poll-card .poll-opt { background: rgba(16, 18, 13, .08); color: var(--on-lime); }
.poll-card .poll-opt i { background: rgba(16, 18, 13, .18); }
.poll-card .poll-opt.mine { outline-color: var(--on-lime); }
.att { display: flex; gap: 8px; }
.att button { flex: 1; padding: 9px 8px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface); font-weight: 600; font-size: 14px; }
.att button.on { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.poll-card .att button { background: transparent; border-color: rgba(16, 18, 13, .25); color: var(--on-lime); }
.poll-card .att button.on { background: var(--on-lime); color: var(--lime); }

/* Pin sulla mappa */
.pin { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 11px; background: var(--bg); border: 1.5px solid var(--lime); color: var(--lime); font-family: Outfit; font-weight: 800; font-size: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); position: relative; transition: transform .15s; }
.pin::after { content: ""; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 9px; height: 9px; background: inherit; border-right: 1.5px solid var(--lime); border-bottom: 1.5px solid var(--lime); }
.pin.top { background: var(--lime); color: var(--on-lime); }
.pin.sel, .pin.hover { transform: scale(1.18); background: var(--lime); color: var(--on-lime); z-index: 10; }
.cluster { width: 50px; height: 50px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-content: center; text-align: center; line-height: 1; box-shadow: 0 0 0 3px var(--bg), 0 0 0 9px rgba(200, 243, 29, .3); font-family: Outfit; font-weight: 800; font-size: 17px; }
.cluster small { font: 600 9px Inter; opacity: .8; }
.leaflet-container { background: #12130f; font-family: Inter; }
.leaflet-div-icon { background: none; border: 0; }
.leaflet-control-attribution { background: rgba(11, 12, 10, .75) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--text) !important; border-color: var(--stroke) !important; }
.map-legend { position: absolute; left: 16px; bottom: 16px; z-index: 500; background: rgba(11, 12, 10, .85); border: 1px solid var(--stroke); border-radius: 12px; padding: 8px 12px; font-size: 12px; color: var(--muted); max-width: 340px; }
.map-banner { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 500; background: var(--surface); border: 1px solid var(--stroke); border-radius: 999px; padding: 8px 14px; font-size: 13px; display: flex; gap: 8px; align-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); white-space: nowrap; }

/* Scheda del locale (pannello a destra sopra la mappa) */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 92%); background: var(--bg); border-left: 1px solid var(--stroke); z-index: 1001; overflow-y: auto; padding: 18px 24px 40px; box-shadow: -20px 0 50px rgba(0, 0, 0, .45); transform: translateX(105%); transition: transform .25s ease; display: flex; flex-direction: column; gap: 20px; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -18px; background: var(--bg); padding: 8px 0; margin: -8px 0 -8px; z-index: 2; }
.info-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.info-list .row { gap: 8px; }
.info-list .ic { color: var(--lime); }
.score-card { display: flex; flex-direction: column; gap: 14px; }
.profile-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid var(--stroke); padding-top: 12px; }
.profile-scores button { background: none; border: 0; border-radius: 12px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.profile-scores button b { font-family: Outfit; font-size: 20px; color: var(--text); }
.profile-scores button.on { background: var(--raised); }
.profile-scores button.on b { color: var(--lime); }
.reason { display: flex; gap: 8px; align-items: flex-start; color: #ffb35c; font-size: 13px; }
.hours-week { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; margin-top: 10px; }
.hours-week .today { color: var(--lime); font-weight: 600; }
.review-row { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Pagine con colonne (gruppi, amici, profilo) ---------- */
.page { position: fixed; inset: var(--top) 0 0 0; overflow-y: auto; }
.page-inner { max-width: 1180px; margin: 0 auto; padding: 32px 32px 60px; }
.cols { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
.group-row { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; border: 1px solid var(--stroke); background: var(--surface); border-radius: var(--r); padding: 14px; }
.group-row:hover { border-color: rgba(255, 255, 255, .2); }
.group-row.on { border-color: var(--lime); }
.status-line { display: flex; gap: 8px; align-items: center; color: var(--lime); font-size: 13px; font-weight: 500; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.member-row:last-child { border-bottom: 0; }
.chat { display: flex; flex-direction: column; height: max(420px, calc(100vh - var(--top) - 200px)); }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 12px; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 85%; }
.msg.mine { align-self: flex-end; }
.bubble { padding: 9px 13px; border-radius: 16px; background: var(--surface); font-size: 14px; }
.msg.mine .bubble { background: var(--lime); color: var(--on-lime); }
.bubble .who { font-size: 12px; color: var(--lime); font-weight: 600; margin-bottom: 2px; }
.composer { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--stroke); }
.composer input { flex: 1; height: 44px; border-radius: 999px; padding: 0 16px; background: var(--surface); border: 1px solid var(--stroke); outline: none; }
.send-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; }
details.fair summary { cursor: pointer; color: var(--lime); font-weight: 600; font-size: 14px; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
details.fair summary::-webkit-details-marker { display: none; }
details.fair[open] summary .ic { transform: rotate(180deg); }
.person-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--stroke); }
.submenu { display: flex; flex-direction: column; gap: 2px; }
.submenu a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); color: var(--text); }
.submenu a:hover { background: var(--surface); }
.submenu a.on { background: var(--surface); outline: 1px solid var(--stroke); }
.submenu a .ic { color: var(--lime); }
.submenu small { display: block; color: var(--muted); font-size: 12px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 4px; border-bottom: 1px solid var(--stroke); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv span:last-child { text-align: right; color: var(--muted); }
.weight-row { display: grid; grid-template-columns: 1fr 100px 30px; gap: 12px; align-items: center; font-size: 14px; }
.weight-row b { text-align: right; font-weight: 600; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; font-weight: 700; flex: none; }
.toggle { position: relative; width: 46px; height: 28px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 14px; background: var(--raised); transition: .2s; cursor: pointer; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked + span { background: var(--lime); }
.toggle input:checked + span::after { transform: translateX(18px); background: var(--on-lime); }
.setting { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--stroke); }
.setting:last-child { border-bottom: 0; }
.setting-btn { display: flex; width: 100%; gap: 12px; align-items: center; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--stroke); background: none; text-align: left; }
.setting-btn .ic:first-child { color: var(--lime); }

/* ---------- Notifiche ---------- */
.notif-panel { width: 420px; padding: 12px; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; cursor: pointer; text-align: left; width: 100%; border: 0; background: none; }
.notif:hover { background: var(--raised); }
.notif .nic { width: 38px; height: 38px; border-radius: 11px; background: var(--raised); color: var(--lime); display: grid; place-items: center; flex: none; }
.notif.unread .nic { background: var(--lime); color: var(--on-lime); }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-top: 6px; flex: none; }

/* ---------- Finestre ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(4px); z-index: 2000; display: grid; place-items: center; padding: 24px; animation: fade .15s; }
.modal { background: var(--bg); border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 24px; width: min(460px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal.wide { width: min(760px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--lime); color: var(--on-lime); padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 3000; transition: .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* Recensione */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review-grid .full { grid-column: 1 / -1; }
.rsec { background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rsec h4 { margin: 0; font-size: 16px; }
.crit-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { background: none; border: 0; padding: 2px; color: rgba(162, 166, 153, .6); }
.star-input button.on { color: var(--lime); }
.star-input button.on .ic { fill: currentColor; }
.yesno { display: inline-flex; background: var(--raised); border-radius: 10px; padding: 2px; }
.yesno button { border: 0; background: none; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.yesno button.on { background: var(--lime); color: var(--on-lime); }
.spend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spend-grid button { padding: 10px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--bg); font-weight: 500; font-size: 14px; }
.spend-grid button.on { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.modal-foot { position: sticky; bottom: -24px; background: var(--bg); padding: 14px 0 0; margin-bottom: -6px; display: flex; flex-direction: column; gap: 6px; align-items: center; }

/* ---------- Questionario e registrazione ---------- */
.onb { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(360px, 42%) 1fr; }
.onb-brand { position: relative; overflow: hidden; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(120% 80% at 0% 100%, rgba(200, 243, 29, .22), transparent 60%), var(--surface); border-right: 1px solid var(--stroke); }
.onb-brand h1 { font-size: 46px; margin-top: 18px; }
.onb-brand .claim { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 420px; }
.onb-brand .ring { position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; border-radius: 50%; border: 2px dashed rgba(200, 243, 29, .35); transform: translateY(-50%); }
.onb-brand .ring::after { content: ""; position: absolute; inset: 60px; border-radius: 50%; background: rgba(200, 243, 29, .07); }
.onb-steps { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); position: relative; }
.onb-steps .on { color: var(--text); font-weight: 600; }
.onb-steps span { display: flex; align-items: center; gap: 10px; }
.onb-steps i { width: 8px; height: 8px; border-radius: 50%; background: var(--raised); }
.onb-steps .on i, .onb-steps .done i { background: var(--lime); }
.onb-main { display: flex; flex-direction: column; overflow-y: auto; }
.onb-top { display: flex; align-items: center; gap: 14px; padding: 22px 40px; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--lime); transition: width .3s; }
.onb-body { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 12px 40px 24px; display: flex; flex-direction: column; gap: 22px; }
.onb-body.anim { animation: slide .25s ease; }
@keyframes slide { from { opacity: 0; transform: translateX(24px); } }
.onb-body h1 { font-size: 36px; }
.onb-foot { width: 100%; max-width: 620px; margin: 0 auto; padding: 0 40px 36px; }
.option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--stroke); text-align: left; font-weight: 600; font-size: 16px; }
.option:hover { border-color: rgba(255, 255, 255, .2); }
.option.on { background: var(--lime); color: var(--on-lime); border-color: transparent; }
.option .box { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; opacity: .7; }
.option.multi .box { border-radius: 6px; }
.option.on .box { opacity: 1; background: var(--on-lime); color: var(--lime); border-color: var(--on-lime); }
.trait { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.trait .caption { font-family: Outfit; font-weight: 700; font-size: 26px; color: var(--lime); text-align: center; }
.trait input[type=range] { width: 100%; accent-color: var(--lime); height: 28px; cursor: pointer; }
.trait .ends { display: flex; justify-content: space-between; color: var(--muted); font-weight: 500; font-size: 14px; }
.trait .ends span { display: inline-flex; gap: 6px; align-items: center; }
.persona { display: flex; align-items: center; gap: 16px; }
.persona .pic { width: 72px; height: 72px; border-radius: 20px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--lime); margin-top: 1px; flex: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }
.photo-pick { display: flex; align-items: center; gap: 18px; }
.err { color: var(--danger); font-size: 12px; }

/* ---------- Pagina per telefono ---------- */
.mobile { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 22px; text-align: center; background: radial-gradient(100% 60% at 50% 100%, rgba(200, 243, 29, .18), transparent 70%), var(--bg); }
.mobile .appicon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.mobile h1 { font-size: 30px; }
.mobile p { color: var(--muted); max-width: 340px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; padding: 10px 22px; text-align: left; }
.store-btn small { display: block; font-size: 11px; opacity: .85; }
.store-btn b { font-size: 20px; font-family: Inter; font-weight: 600; letter-spacing: -.01em; }

/* Finestre strette del computer: la lista resta usabile. */
@media (max-width: 1100px) {
  .topbar nav a span.lbl { display: none; }
  .cols { grid-template-columns: 290px 1fr; }
  .explore { grid-template-columns: 400px 1fr; }
}
@media (max-width: 860px) {
  .explore { grid-template-columns: 1fr; }
  .mapbox { display: none; }
  .onb { grid-template-columns: 1fr; }
  .onb-brand { display: none; }
  .cols, .cols-2 { grid-template-columns: 1fr; }
}
/* Pin su Google Maps (stesso aspetto della mappa di prova) */
.gpin { position: absolute; cursor: pointer; display: flex; align-items: flex-start; justify-content: center; }
#map .gm-style { font-family: Inter; }
#map .gm-style-cc, #map .gmnoprint a, #map .gm-style-cc span { color: var(--muted) !important; }
/* Richiamo al gruppo nella home e righe dei gruppi: fase, pallini delle presenze, barra */
.phase-badge { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(200, 243, 29, .14); color: var(--lime); white-space: nowrap; }
.phase-badge.deciso { background: var(--lime); color: var(--on-lime); }
.poll-card .phase-badge { background: rgba(16, 18, 13, .12); color: var(--on-lime); }
.poll-card .phase-badge.deciso { background: var(--on-lime); color: var(--lime); }
.av-dot { position: relative; display: inline-flex; }
.avatar-stack .av-dot + .av-dot { margin-left: -9px; }
.av-dot i { position: absolute; right: -1px; bottom: -1px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.poll-card .av-dot i { box-shadow: 0 0 0 2px var(--lime); }
.poll-card .avatar { box-shadow: 0 0 0 2px var(--lime); }
.att-ci { background: var(--lime); } .att-forse { background: #F5B83D; } .att-no { background: #FF6B5E; } .att-attesa { background: var(--raised); }
.poll-card .att-ci { background: var(--on-lime); } .poll-card .att-attesa { background: rgba(16, 18, 13, .2); }
.att-bar { display: flex; gap: 3px; height: 8px; width: 100%; }
.att-bar i { border-radius: 999px; min-width: 6px; }
.poll-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.outline { background: transparent; color: var(--on-lime); box-shadow: inset 0 0 0 1.5px var(--on-lime); }
.poll-more { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-weight: 600; color: var(--on-lime); opacity: .8; }
.poll-more:hover { opacity: 1; }
.poll-card .poll-opt .grow { font-weight: 500; }
/* Lista: locali più lontani */
.far-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.far-zone { margin-top: 4px; }
/* Approvati e non ancora verificati */
.vcard h3 .seal { color: var(--lime); display: inline-flex; vertical-align: -2px; }
.pin.unverified { border-color: #5c6056; color: var(--muted); background: var(--surface); }
.pin.unverified::after { border-color: #5c6056; }
.pin.unverified.sel, .pin.unverified.hover { border-color: var(--text); color: var(--text); background: var(--raised); }
/* Menu del locale */
.menu-card h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.menu-item { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--stroke); font-size: 14px; }
.menu-item:last-of-type { border-bottom: 0; }
.menu-item .grow { display: flex; flex-direction: column; gap: 2px; }
.menu-item b { white-space: nowrap; font-weight: 600; }
/* Gruppi aperti e chiusi */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface); border: 1px solid var(--stroke); border-radius: 14px; padding: 4px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--lime); color: var(--on-lime); }
.access-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; margin-bottom: 18px; border: 1px solid var(--stroke); border-radius: var(--r); background: var(--surface); color: var(--muted); }
.access-bar.open { border-color: rgba(200, 243, 29, .35); }
.access-bar.open > .ic { color: var(--lime); }
.access-bar .code { color: var(--text); letter-spacing: 1.5px; font-family: Outfit; }
/* Mi piace */
.like-btn.on, .like-ic { color: #FF6B8A; }
.like-btn:hover { color: #FF6B8A; }
.likes-line { display: flex; align-items: center; gap: 8px; }
.likes-line .avatar-stack { margin-right: 2px; }
.like-tag { color: #FF8FA6; }
.like-btn { width: auto; min-width: 40px; padding: 0 10px; gap: 5px; display: inline-flex; align-items: center; justify-content: center; }
.like-n { font-size: 13px; font-weight: 700; color: var(--text); }
.edit-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(245, 184, 61, .12); border: 1px solid rgba(245, 184, 61, .4); color: #F5D08A; font-size: 13px; margin-bottom: 10px; text-align: left; }
.edit-warn .ic { color: #F5B83D; flex: none; }
.edit-warn.strong { font-size: 14px; }
