:root {
  --navy-950: #041633;
  --navy-900: #061F45;
  --navy-800: #082C5E;
  --navy-700: #0B3A7A;
  --navy-600: #0E4A8F;
  --green: #22C55E;
  --green-400: #3EE07F;
  --cyan: #10C8DC;
  --amber: #F59E0B;
  --grad: linear-gradient(120deg, #3EE07F 0%, #10C8DC 100%);
  --ink: #0F1B2D;
  --muted: #5B6B82;
  --line: #E2E8F0;
  --bg: #EEF2F7;
  --card: #FFFFFF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(8, 44, 94, .06), 0 6px 18px rgba(8, 44, 94, .07);
  --shadow-lg: 0 16px 44px rgba(4, 22, 51, .22);
  --num: "Space Grotesk", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .brand { font-family: "Poppins", "Inter", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.icon { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }

/* ---------- Header (sempre scuro, stile app) ---------- */
.topbar { position: sticky; top: 0; z-index: 1000; background: var(--navy-900); color: #fff; }
.topbar-inner { padding: 10px 18px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.brand img { width: 36px; height: 36px; }
.brand .amp { color: var(--green-400); }
.gsearch { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 0 14px; color: rgba(255,255,255,.6); }
.gsearch:focus-within { background: #fff; color: var(--muted); }
.gsearch input { flex: 1; background: transparent; border: 0; outline: 0; color: inherit; padding: 10px 0; font-size: 15px; }
.gsearch:focus-within input { color: var(--ink); }
.nav { display: flex; gap: 4px; }
.nav a { display: flex; gap: 7px; align-items: center; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: rgba(255,255,255,.7); }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.nav a.active svg { color: var(--green-400); }
.top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.me { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: var(--navy-950); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 10px 16px; font-weight: 700; font-size: 14.5px; transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--grad); color: var(--navy-950); }
.btn-accent:hover { box-shadow: 0 6px 18px rgba(34,197,94,.4); }
.btn-primary { background: var(--navy-700); color: #fff; }
.btn-primary:hover { background: var(--navy-600); }
.btn-ghost { background: #fff; color: var(--navy-700); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy-600); }
.btn-danger { background: #fff; color: #B42318; border: 1px solid #F4C7C3; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 9px; }

/* ---------- Badge ---------- */
.lvl { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); white-space: nowrap; }
.st { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; white-space: nowrap; }
.st .icon { width: 13px; height: 13px; }
.st.ok { background: #E3F8EC; color: #0E7A3A; }
.st.warn { background: #FEF3DC; color: #93590A; }
.st.rev { background: #E8EEF8; color: var(--navy-700); }
.st.ko { background: #FDE8E7; color: #B42318; }
.cost { font-family: var(--num); font-weight: 700; font-size: 13px; padding: 4px 9px; border-radius: 8px; background: #E5F0FB; color: var(--navy-700); white-space: nowrap; }
.cost.free { background: var(--green); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip.on { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip:hover:not(.on) { border-color: var(--navy-600); }

/* ---------- Card tecnica punto di ricarica ---------- */
.ccard { display: grid; grid-template-columns: 74px 1fr; gap: 14px; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.ccard:hover, .ccard.hl { border-color: var(--green); }
.kwb { border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; min-height: 74px; background: var(--navy-800); position: relative; overflow: hidden; }
.kwb::before { content: ""; position: absolute; inset: auto -10px -18px auto; width: 50px; height: 50px; border-radius: 50%; background: rgba(62,224,127,.25); }
.kwb b { font-family: var(--num); font-size: 26px; line-height: 1; letter-spacing: -1px; }
.kwb span { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; opacity: .8; margin-top: 4px; }
.kwb.dc { background: var(--grad); color: var(--navy-950); }
.kwb.dc::before { background: rgba(255,255,255,.3); }
.cc-main { min-width: 0; }
.cc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cc-top h3 { margin: 0; font-size: 15.5px; line-height: 1.25; }
.cc-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cc-conn { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cp { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: #F1F5F9; }
.cp i { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-700); }
.cp i.dc { background: var(--cyan); }
.cp em { font-style: normal; color: var(--muted); font-weight: 500; }
.cc-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }
.cc-foot .acc { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cc-foot .acc .icon, .cc-foot .meta .icon { width: 14px; height: 14px; }
.cc-foot .meta { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }

/* ---------- Filtri ---------- */
.filters h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 20px 0 9px; font-family: "Inter", sans-serif; font-weight: 800; }
.filters h4:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--navy-700); }
.check .count { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.range { width: 100%; accent-color: var(--green); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 14px; gap: 10px; }
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CBD5E1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(17px); }

/* ---------- Pannelli generici ---------- */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.panel h2 .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: var(--navy-950); }
.panel h2 .ic .icon { width: 16px; height: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; outline: 0; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.seg { display: inline-flex; background: #F1F5F9; border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 13px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--navy-800); box-shadow: var(--shadow); }

/* ---------- Leaflet / marker ---------- */
.leaflet-div-icon { background: none; border: 0; }
.mk { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; transition: transform .15s; }
.mk .bub { display: flex; align-items: center; gap: 3px; padding: 4px 8px 4px 5px; border-radius: 10px; font: 700 12.5px var(--num); color: #fff; white-space: nowrap; background: var(--navy-800); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(4,22,51,.35); }
.mk .bub svg { width: 13px; height: 13px; color: var(--green-400); }
.mk::after { content: ""; width: 0; height: 0; border: 6px solid transparent; border-top-color: #fff; margin-top: -1px; }
.mk.dc .bub { background: var(--grad); color: var(--navy-950); }
.mk.dc .bub svg { color: var(--navy-950); }
.mk.tv .bub { border-style: dashed; border-color: var(--amber); }
.mk.tv::after { border-top-color: var(--amber); }
.mk.hl { transform: translate(-50%, -100%) scale(1.2); z-index: 999; }
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; }
.leaflet-popup-content { margin: 10px; width: 300px !important; font-family: Inter, sans-serif; }
.leaflet-popup-content .ccard { box-shadow: none; padding: 0; border: 0; }

/* ---------- Mockup switcher ---------- */
.mock-switch { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5000; background: rgba(4,22,51,.94); color: #fff; border-radius: 999px; padding: 5px; display: flex; gap: 3px; box-shadow: var(--shadow-lg); font-size: 12.5px; }
.mock-switch a { padding: 7px 12px; border-radius: 999px; color: rgba(255,255,255,.75); font-weight: 600; white-space: nowrap; }
.mock-switch a.active { background: var(--grad); color: var(--navy-950); }

@media (max-width: 980px) { .nav, .hide-sm { display: none; } }
@media (max-width: 640px) {
  .gsearch { display: none; }
  .mock-switch { left: 10px; right: 10px; transform: none; overflow-x: auto; }
}
/* Componenti UI: dropdown personalizzato, barra filtri rapidi, tema SweetAlert2 */

/* ---------- Dropdown personalizzato (sostituisce le select native) ---------- */
.dd-wrap { position: relative; display: inline-block; }
.dd-wrap > select { display: none; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: border-color .15s, box-shadow .15s; }
.dd-btn:hover { border-color: #B8C6D8; }
.dd-wrap.open .dd-btn { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.dd-btn .icon { width: 16px; height: 16px; color: var(--muted); }
.dd-btn .lbl { color: var(--muted); font-weight: 500; }
.dd-btn .chev { width: 14px; height: 14px; transition: transform .2s; color: var(--muted); }
.dd-wrap.open .dd-btn .chev { transform: rotate(180deg); }
.dd-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 100%; z-index: 3000; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 5px; opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none; transition: opacity .15s, transform .15s; }
.dd-wrap.left .dd-menu { left: 0; right: auto; }
.dd-wrap.up .dd-menu { top: auto; bottom: calc(100% + 6px); }
.dd-wrap.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink); text-align: left; white-space: nowrap; }
.dd-menu button:hover, .dd-menu button:focus-visible { background: #F1F5F9; outline: 0; }
.dd-menu button .ok { width: 16px; height: 16px; color: transparent; }
.dd-menu button.sel { font-weight: 700; color: var(--navy-800); }
.dd-menu button.sel .ok { color: var(--green); }
.dd-wrap.full, .dd-wrap.full .dd-btn { width: 100%; }
.dd-wrap.full .dd-btn { height: 42px; justify-content: space-between; font-weight: 500; font-size: 14.5px; }

/* select nativi rimasti nei form: stessa grafica, freccia personalizzata */
.field select, .crow select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B82' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 15px;
}

/* ---------- Barra filtri rapidi ---------- */
.qbar { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); min-width: 0; }
.qscroll { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%); }
.qscroll::-webkit-scrollbar { display: none; }
.qbar.at-start .qscroll { padding-left: 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 20px), transparent 100%); }
.qbar.at-end .qscroll { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px); mask-image: linear-gradient(90deg, transparent 0, #000 20px); }
.qbar.at-start.at-end .qscroll { -webkit-mask-image: none; mask-image: none; }
.qchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; border: 0; background: #F1F5F9; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: background .15s, color .15s; }
.qchip .icon { width: 15px; height: 15px; color: var(--muted); }
.qchip:hover { background: #E4EAF2; }
.qchip.on { background: var(--navy-800); color: #fff; }
.qchip.on .icon { color: var(--green-400); }
.qarrow { flex: none; width: 30px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.qarrow:hover { background: #F1F5F9; color: var(--ink); }
.qarrow[disabled] { opacity: .25; pointer-events: none; }
.qarrow .icon { width: 16px; height: 16px; }
.qsep { width: 1px; height: 22px; background: var(--line); flex: none; margin: 0 2px; }
.qall { flex: none; background: #fff; border: 1px solid var(--line); }
.qall .n { background: var(--green); color: #fff; font-size: 11px; border-radius: 999px; min-width: 18px; height: 18px; display: none; place-items: center; padding: 0 5px; }
.qall.has .n { display: grid; }

/* ---------- SweetAlert2: tema Bed&Charge ---------- */
.swal2-container { z-index: 7000 !important; }
.swal2-container.swal2-backdrop-show { background: rgba(4,22,51,.55) !important; }
.bc-swal.swal2-popup { border-radius: 20px; padding: 26px 24px 22px; font-family: "Inter", sans-serif; color: var(--ink); }
.bc-swal .swal2-title { font-family: "Poppins", sans-serif; font-size: 21px; color: var(--ink); padding: 0; text-align: left; }
.bc-swal.center .swal2-title { text-align: center; }
.bc-swal .swal2-html-container { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 10px 0 0; padding: 0; text-align: left; }
.bc-swal.center .swal2-html-container { text-align: center; }
.bc-swal .swal2-actions { gap: 8px; margin: 20px 0 0; width: 100%; justify-content: flex-end; }
.bc-swal.center .swal2-actions { justify-content: center; }
.bc-swal .swal2-actions .btn { margin: 0; }
.bc-swal .swal2-icon { margin: 4px auto 12px; }
.bc-swal .swal2-icon.swal2-success { border-color: var(--green); color: var(--green); }
.bc-swal .swal2-icon.swal2-success [class^=swal2-success-line] { background-color: var(--green); }
.bc-swal .swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(34,197,94,.3); }
.bc-swal .swal2-icon.swal2-warning { border-color: var(--amber); color: var(--amber); }
.bc-swal .swal2-validation-message { background: #FDE8E7; color: #B42318; border-radius: 10px; font-size: 13.5px; margin: 14px 0 0; }
.bc-swal .swal2-textarea, .bc-swal .swal2-input { margin: 12px 0 0; width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: none; font-size: 14.5px; }
.bc-swal .swal2-textarea:focus, .bc-swal .swal2-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.15); }
.bc-swal .field { text-align: left; color: var(--ink); }
.bc-swal .swal2-close:focus { box-shadow: none; }
.bc-toast.swal2-popup { border-radius: 12px; padding: 10px 14px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); font-family: "Inter", sans-serif; }
.bc-toast .swal2-title { font-size: 14px; color: #fff; margin: 0 6px; font-weight: 600; }
.bc-toast .swal2-timer-progress-bar { background: var(--green-400); }
.swal-flow { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 11px 13px; font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; background: #E6FAFC; color: var(--ink); }
.swal-flow.review { background: #E8EEF8; } .swal-flow.toverify { background: #FEF3DC; } .swal-flow.verified { background: #E3F8EC; }
.swal-flow .icon { color: var(--cyan); margin-top: 1px; }
.swal-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.swal-reasons { display: grid; gap: 6px; margin-top: 12px; }
.swal-reasons label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; cursor: pointer; color: var(--ink); text-align: left; }
.swal-reasons label:has(input:checked) { border-color: var(--green); background: #F2FCF6; }
.swal-reasons input { accent-color: var(--green); }
@media (max-width: 560px) { .swal-grid2 { grid-template-columns: 1fr; } }

/* dropdown nell'header scuro (selettore lingua) */
.topbar .dd-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.topbar .dd-btn .icon, .topbar .dd-btn .chev { color: rgba(255,255,255,.7); }
.topbar .dd-btn:hover { border-color: rgba(255,255,255,.3); }
/* Header su schermi stretti: lingua solo con bandiera, "Accedi" e "Aggiungi" solo icona */
@media (max-width: 980px) {
  .topbar .dd-wrap.lang .val .tx, .topbar .dd-wrap.lang .dd-btn > .icon:first-child { display: none; }
  .topbar .dd-wrap.lang .dd-btn { padding: 0 8px; gap: 6px; }
  .top-actions .btn { padding: 0; width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 10px; padding: 10px 12px; }
  .top-actions { gap: 6px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
}
/* Sotto i 380 px (iPhone SE e simili) il marchio resta solo come logo */
@media (max-width: 380px) { .brand > span { display: none; } }

/* bandiere (immagini, non emoji) */
.flag { width: 20px; height: 14px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15,27,45,.12); vertical-align: -2px; flex: none; display: inline-block; }
.dd-btn .val, .dd-menu button { display: inline-flex; align-items: center; gap: 8px; }
.cc-sub .flag { width: 16px; height: 11px; vertical-align: -1px; margin-left: 2px; }
.group-c .flag { width: 30px; height: 21px; border-radius: 4px; }

/* etichette dei campi: prima lettera maiuscola (le chiavi fld_* sono minuscole per stare dentro le frasi) */
.field label::first-letter { text-transform: uppercase; }
/* il sito vero non ha la barra dei mockup */
.mock-switch { display: none; }

/* ---------- Foto: selettore e galleria ---------- */
.drop { display: grid; justify-items: center; gap: 4px; border: 2px dashed #B8C6D8; border-radius: 14px; padding: 22px; text-align: center; background: #F8FAFC; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--green); background: #F2FCF6; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #E2E8F0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(4,22,51,.75); color: #fff; font-size: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gph { position: relative; aspect-ratio: 4/3; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #E2E8F0; cursor: zoom-in; }
.gph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.gph:hover img { transform: scale(1.04); }
.gph .st { position: absolute; left: 6px; bottom: 6px; }

/* ---------- Pagine di accesso (accedi, registrati, password dimenticata, reimposta) ---------- */
.auth { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 30px 16px; background: radial-gradient(900px 400px at 100% 0, rgba(16,200,220,.18), transparent 60%), radial-gradient(800px 400px at 0 100%, rgba(62,224,127,.18), transparent 60%), var(--bg); }
.auth .box { width: 100%; max-width: 440px; }
.auth .logo { width: 64px; height: 64px; display: block; margin: 0 auto 14px; }
.auth h1 { text-align: center; margin: 0 0 6px; font-size: 26px; }
.auth .sub { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: 14.5px; line-height: 1.5; }
.auth .field input { width: 100%; }
.auth .btn-accent { width: 100%; padding: 13px; margin-top: 6px; }
.auth .alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth .alt a { color: var(--navy-700); font-weight: 700; }
.hint { font-size: 12.5px; color: var(--muted); }
.site-foot { border-top: 1px solid var(--line); background: #fff; margin-top: 30px; }
.site-foot-in { max-width: 1180px; margin: 0 auto; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.site-foot .amp { color: var(--green); }
.site-foot .ver { font-family: var(--num); font-size: 12px; margin-left: 6px; opacity: .75; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); font-weight: 600; }
.site-foot a:hover { color: var(--ink); }
.reg-names { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .reg-names { grid-template-columns: 1fr; } }
.auth .check a { color: var(--navy-700); font-weight: 700; text-decoration: underline; }

/* ---------- Occhietto mostra/nascondi password ---------- */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 46px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.pw-eye:hover { background: #F1F5F9; color: var(--navy-700); }
.pw-eye:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.pw-eye .icon { width: 19px; height: 19px; }
/* il browser Edge aggiunge un suo occhietto: lo nascondiamo per non averne due */
input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear { display: none; }
.forgot { display: block; text-align: right; font-size: 13px; color: var(--navy-700); font-weight: 600; margin-top: 6px; }

/* card: il badge di stato scende sotto il nome quando lo spazio non basta (schermi da 320 px) */
.cc-top { flex-wrap: wrap; }
.cc-top h3 { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; }
.cc-top .st { flex: none; }

/* pulsante del pannello staff nell'header scuro */
.topbar .btn-staff { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; padding: 0; width: 40px; height: 40px; }
.topbar .btn-staff:hover { border-color: var(--green-400); }
