/* ============================================================
   volontariato.me — design system
   Tema per-associazione: --accent / --accent-dark impostati via JS
   ============================================================ */
:root {
  /* Brand "Istituzionale premium": navy profondo + oro.
     Le pagine associazione sovrascrivono --accent con il colore
     della singola organizzazione */
  --accent: #14355e;
  --accent-dark: #0b2342;
  --gold: #b8923d;
  --gold-soft: #d9c08a;
  --ink: #101c2e;
  --ink-soft: #46536b;
  --ink-faint: #8792a6;
  --paper: #f7f8fa;
  --card: #ffffff;
  --line: #e6e9ef;
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 6px 24px rgba(11, 25, 50, .07), 0 1px 3px rgba(11, 25, 50, .05);
  --shadow-lg: 0 24px 70px rgba(11, 25, 50, .16);
  --font: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 1rem var(--font);
  padding: .8rem 1.6rem; border-radius: 999px;
  border: none; cursor: pointer; transition: all .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}
.btn-ghost {
  background: rgba(255,255,255,.14); color: #fff;
  border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(23,26,60,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 0;
}
.nav-brand {
  display: flex; align-items: center; gap: 0;
  font-weight: 800; font-size: 1.1rem; color: var(--ink);
}
.nav-brand .dot { color: #ee7a1c; }  /* arancio del logo */
.nav-brand .brand-mark { width: 27px; height: 27px; margin-right: .5rem; flex: none; }

/* Badge "powered by myVol.net" accanto al brand */
.nav-brand-group { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.powered {
  display: inline-flex; align-items: center; gap: .45rem;
  padding-left: .9rem; border-left: 1px solid var(--line);
  font-size: .72rem; font-weight: 500; color: var(--ink-faint);
  white-space: nowrap; font-style: italic;
}
.powered img { width: 19px; height: 19px; border-radius: 5px; }
.powered b { color: #2778b5; font-weight: 700; font-style: normal; }
.powered:hover b { text-decoration: underline; }
@media (max-width: 560px) {
  .powered span { display: none; }   /* sui telefoni resta solo il logo */
  .powered { padding-left: .6rem; }
}
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.nav-links a:hover { color: var(--accent); }
/* i bottoni nella navbar NON ereditano il grigio dei link (fix contrasto) */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.btn-outline { color: var(--accent); }
.nav-links a.btn-outline:hover { color: #fff; }
@media (max-width: 720px) {
  .nav-links { gap: .8rem; }
  .nav-links .hide-mobile, .nav-links a:not(.btn) { display: none; }
}

/* ---------- Hero associazione ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 70%, #fff 10%), transparent 60%),
    linear-gradient(135deg, var(--accent-dark), var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, #000 15%));
  padding: 4.5rem 0 7rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; gap: 2.5rem; align-items: center; flex-wrap: wrap; }
.hero-logo {
  width: 128px; height: 128px; flex: none;
  border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; overflow: hidden; font-size: 3.4rem;
}
.hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -.01em;
  text-wrap: balance;
}
.hero .tagline { font-size: 1.15rem; opacity: .92; margin-top: .5rem; font-weight: 500; }
.hero-address {
  margin-top: 1.1rem; display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,0,0,.22); padding: .5rem 1.1rem; border-radius: 999px;
  font-size: .95rem; backdrop-filter: blur(4px);
}
.hero-cta { margin-top: 1.6rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* Badge "pagina non rivendicata" */
.claim-banner {
  position: relative; z-index: 2;
  background: #fff8e6; border: 1px solid #f2dfa7; color: #7a5c00;
  border-radius: var(--radius-sm); padding: .9rem 1.2rem;
  display: flex; gap: .8rem; align-items: center; flex-wrap: wrap;
  margin-top: -3.4rem; box-shadow: var(--shadow);
}

/* ---------- Card mappa + contatti ---------- */
.info-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.4rem;
  margin-top: -3.4rem;
}
.claim-banner + .info-grid { margin-top: 1.4rem; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.map-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; min-height: 320px; display: flex; flex-direction: column;
}
.map-card iframe { width: 100%; flex: 1; min-height: 280px; border: 0; }
.map-card .map-foot {
  display: flex; border-top: 1px solid var(--line); background: #fbfbfe;
}
.map-card .map-foot a {
  flex: 1; padding: .8rem 1rem; font-weight: 600; font-size: .88rem;
  color: var(--accent); text-align: center;
}
.map-card .map-foot a + a { border-left: 1px solid var(--line); }
.map-card .map-foot a:hover { background: color-mix(in srgb, var(--accent) 6%, #fff); }
.contact-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 1.8rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 1.1rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-row { display: flex; gap: .9rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ico {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent); display: grid; place-items: center; font-size: 1.1rem;
}
.contact-row b { display: block; font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.contact-row span, .contact-row a { font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-row a:hover { color: var(--accent); }

/* ---------- Sezioni ---------- */
section.block { padding: 4.2rem 0 1rem; }
.eyebrow {
  color: var(--gold); font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; font-size: .78rem;
}
h2.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700;
  letter-spacing: -.01em; margin: .3rem 0 1.6rem; text-wrap: balance;
}
.mission-text { font-size: 1.15rem; color: var(--ink-soft); max-width: 780px; }

.activities {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.activity {
  background: var(--card); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--accent);
  transition: transform .2s ease;
}
.activity:hover { transform: translateY(-4px); }
.activity .emoji { font-size: 2rem; }
.activity h4 { margin: .6rem 0 .3rem; font-size: 1.05rem; }
.activity p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- Notizie ---------- */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem; margin-top: 1rem;
}
.news-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card img { height: 190px; width: 100%; object-fit: cover; background: var(--line); }
.news-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-date {
  font-size: .78rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em;
}
.news-card h4 { font-size: 1.12rem; line-height: 1.35; }
.news-card p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Form (volontari / donazioni) ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: stretch;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.form-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem;
}
.form-card > p.sub { color: var(--ink-soft); margin: .3rem 0 1.3rem; font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: 500 .95rem var(--font); color: var(--ink);
  padding: .75rem .95rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fbfbfe; outline: none;
  transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 96px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: #e8f8ef; color: #14683c; border: 1px solid #b8e6cc; }
.form-msg.err { display: block; background: #fdecec; color: #9c2121; border: 1px solid #f3c1c1; }

/* Donazioni: importi rapidi */
.amounts { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.amounts button {
  font: 700 1rem var(--font); padding: .65rem 1.2rem; cursor: pointer;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: #fbfbfe; color: var(--ink); transition: all .15s ease;
}
.amounts button.active, .amounts button:hover {
  border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent);
}

/* ---------- CTA claim ---------- */
.claim-cta {
  margin: 4.5rem 0 0; border-radius: var(--radius);
  background: linear-gradient(135deg, #0b2342, #14355e 60%, #1c4a80);
  color: #fff; padding: 3.4rem 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.claim-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(640px 260px at 18% 0%, rgba(184, 146, 61, .28), transparent 70%);
}
.claim-cta > * { position: relative; }
.claim-cta h3 { font-family: var(--font-display); font-size: 1.9rem; margin-bottom: .6rem; letter-spacing: 0; }
.claim-cta .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 8px 26px rgba(0,0,0,.3); }
.claim-cta .btn-primary:hover { color: var(--accent-dark); }
.claim-cta p { opacity: .85; max-width: 620px; margin: 0 auto 1.5rem; }

/* ---------- Footer ---------- */
footer.site-footer {
  margin-top: 4.5rem; padding: 2.8rem 0 3.2rem;
  background: linear-gradient(135deg, #0b2342, #122e4f);
  color: #9fb0c8; font-size: .9rem;
}
footer.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
footer.site-footer a { color: var(--gold-soft); }
footer.site-footer a:hover { color: #fff; }
.foot-links a { color: var(--gold-soft); font-weight: 600; }
.foot-links a:hover { color: #fff; }

/* ---------- Home / directory ---------- */
.dir-hero {
  text-align: center; padding: 5.5rem 0 3.5rem;
  background:
    radial-gradient(800px 380px at 50% -10%, #e8ebff, transparent 70%),
    var(--paper);
}
.dir-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.dir-hero h1 .grad {
  background: linear-gradient(90deg, #d43f2a, #2456c9 60%, #0e8a6d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dir-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 640px; margin: 1rem auto 0; }
.assoc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.6rem; padding: 1.5rem 0 4rem;
}
.assoc-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; color: var(--ink); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.assoc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.assoc-card .band { height: 92px; position: relative; }
.assoc-card .logo {
  width: 76px; height: 76px; border-radius: 20px; background: #fff;
  box-shadow: var(--shadow); position: absolute; left: 1.4rem; bottom: -30px;
  display: grid; place-items: center; overflow: hidden; font-size: 2.1rem;
}
.assoc-card .logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.assoc-card .body { padding: 2.6rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.assoc-card h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.assoc-card .tag { color: var(--ink-soft); font-size: .92rem; }
.assoc-card .addr { color: var(--ink-faint); font-size: .85rem; margin-top: .3rem; }
.assoc-card .foot { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; }
.pill {
  font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em;
}
.pill.ok { background: #e8f8ef; color: #14683c; }
.pill.warn { background: #fff4dd; color: #8a6400; }

/* ---------- Modal claim ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,18,35,.55); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius); max-width: 520px; width: 100%;
  padding: 2.2rem; box-shadow: var(--shadow-lg); position: relative;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.modal p { color: var(--ink-soft); margin-bottom: 1rem; font-size: .96rem; }
.modal .steps { margin: 1.2rem 0 1.6rem; display: grid; gap: .8rem; }
.modal .step { display: flex; gap: .8rem; align-items: flex-start; }
.modal .step .n {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent);
  font-weight: 800; font-size: .85rem; display: grid; place-items: center;
}
.modal .close {
  position: absolute; top: 1rem; right: 1.1rem; border: none; background: none;
  font-size: 1.4rem; cursor: pointer; color: var(--ink-faint);
}

/* ---------- Home: mappa stile Google Maps ---------- */
.map-app { position: relative; height: calc(100vh - 62px); height: calc(100dvh - 62px); }
#map { position: absolute; inset: 0; z-index: 1; background: #eaeef3; }

.map-panel {
  position: absolute; z-index: 20; top: 1.1rem; left: 1.1rem; bottom: 1.1rem;
  width: min(400px, calc(100vw - 2.2rem));
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.map-search {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem .9rem; border-bottom: 1px solid var(--line);
  position: relative;
}

/* Suggerimenti indirizzo sotto la barra di ricerca */
.suggest {
  position: absolute; top: calc(100% + 4px); left: .6rem; right: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden;
}
.suggest-item {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  border: none; background: none; text-align: left; cursor: pointer;
  padding: .65rem .9rem; font: 500 .9rem var(--font); color: var(--ink);
}
.suggest-item:hover, .suggest-item:focus-visible { background: #f4f5fa; }
.suggest-item + .suggest-item { border-top: 1px solid var(--line); }
.suggest-item .si-txt b { display: block; font-size: .92rem; font-weight: 600; }
.suggest-item .si-txt small { display: block; color: var(--ink-faint); font-size: .78rem; }
.map-search .lens { font-size: 1.05rem; }
.map-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font: 600 1.05rem var(--font); color: var(--ink); padding: .45rem .2rem;
}
.map-search input::placeholder { color: var(--ink-faint); font-weight: 500; }

/* Selettore del raggio, attaccato alla barra di ricerca */
.radius-chip {
  display: inline-flex; align-items: center; gap: .2rem; flex: none;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px;
  padding: .3rem .5rem .3rem .6rem; cursor: pointer; transition: border-color .15s ease;
}
.radius-chip:hover, .radius-chip:focus-within { border-color: var(--accent); }
.radius-chip select {
  border: none; background: transparent; outline: none; cursor: pointer;
  font: 700 .88rem var(--font); color: var(--accent); padding-right: .1rem;
}

/* Intestazione del pannello: tappabile per ridurre/espandere */
.map-panel-head { cursor: pointer; user-select: none; }
.map-panel-head #panelToggle {
  border: none; background: var(--paper); color: var(--ink-soft);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; flex: none; line-height: 1;
  transition: transform .25s ease, background .15s ease;
}
.map-panel-head #panelToggle:hover { background: var(--line); }
.map-panel.collapsed #panelToggle { transform: rotate(180deg); }
.map-panel.collapsed .map-results,
.map-panel.collapsed .map-panel-foot { display: none; }
/* Ridotto: su desktop resta ancorato IN ALTO, su mobile resta IN BASSO —
   la posizione non cambia mai tra aperto e ridotto */
@media (min-width: 721px) {
  .map-panel.collapsed { bottom: auto; }
}
@media (max-width: 720px) {
  .map-panel.collapsed { top: auto; bottom: .6rem; max-height: none; }
}

/* Pin "sei qui": grande, centrato sul punto, con anello pulsante */
.you-pin { position: relative; width: 30px; height: 30px; transform: translateY(50%); }
.you-pin .dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); border: 4px solid #fff;
  box-shadow: 0 3px 12px rgba(11, 25, 50, .45);
}
.you-pin .core {
  position: absolute; inset: 9px; border-radius: 50%; background: var(--gold);
}
.you-pin .pulse {
  position: absolute; inset: -16px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--accent) 55%, transparent);
  animation: youpulse 1.8s ease-out infinite;
}
@keyframes youpulse {
  from { transform: scale(.45); opacity: 1; }
  to   { transform: scale(1.35); opacity: 0; }
}

.map-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .8rem 1.1rem; border-bottom: 1px solid var(--line);
}
.map-panel-head b { display: block; font-size: 1rem; }
.map-panel-head span { display: block; font-size: .8rem; color: var(--ink-faint); }
.map-panel-head #resetSearch {
  border: none; background: var(--paper); color: var(--ink-soft);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: .95rem; flex: none;
}
.map-panel-head #resetSearch:hover { background: var(--line); }

.map-results { flex: 1; overflow-y: auto; padding: .6rem; }
.result-card {
  display: flex; gap: .9rem; padding: .9rem; border-radius: var(--radius-sm);
  cursor: pointer; border: 1.5px solid transparent; transition: background .15s ease;
}
.result-card:hover { background: #f4f5fa; }
.result-card.active { background: #f0f3ff; border-color: #c9d5ff; }
.result-card .r-logo {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: color-mix(in srgb, var(--pc, var(--accent)) 12%, #fff);
  border: 2px solid color-mix(in srgb, var(--pc, var(--accent)) 35%, #fff);
  display: grid; place-items: center; font-size: 1.5rem; overflow: hidden;
}
.result-card .r-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.result-card .r-body { min-width: 0; flex: 1; }
.result-card h4 { font-size: .98rem; line-height: 1.3; }
.result-card .r-tag { display: block; font-size: .82rem; color: var(--ink-soft); }
.result-card .r-addr {
  display: block; font-size: .78rem; color: var(--ink-faint); margin-top: .15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.result-card .r-foot { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; }
.result-card .r-dist {
  font-size: .75rem; font-weight: 800; color: var(--ink);
  background: #eef1f6; padding: .15rem .55rem; border-radius: 999px;
}
.result-card .r-link { font-size: .82rem; font-weight: 700; }

.map-panel-foot {
  padding: .6rem 1.1rem; border-top: 1px solid var(--line);
  font-size: .76rem; color: var(--ink-faint);
}

/* Pin personalizzati */
.pin-wrap { background: none; border: none; }
.pin {
  width: 42px; height: 42px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--pc, var(--accent));
  border: 3px solid #fff; box-shadow: 0 5px 14px rgba(10,14,40,.35);
  display: grid; place-items: center;
}
.pin > span { transform: rotate(45deg); font-size: 1.1rem; }
.pin img {
  width: 28px; height: 28px; border-radius: 50%; transform: rotate(45deg);
  background: #fff; object-fit: contain;
}
.pin-search { background: #1a1d29; }

/* Popup (InfoWindow di Google Maps) */
.gm-style .gm-style-iw-c { border-radius: 14px; font-family: var(--font); }
.map-pop b { display: block; font-size: .98rem; margin-bottom: .1rem; }
.map-pop span { display: block; font-size: .8rem; color: var(--ink-soft); }
.map-pop a { display: inline-block; margin-top: .5rem; font-weight: 700; font-size: .85rem; }
.map-pop-actions { display: flex; gap: 1rem; }

/* Avviso "raggio allargato automaticamente" in testa ai risultati */
.search-note {
  margin: .6rem .8rem 0;
  background: #fdf6e5; border: 1px solid #eadfc0; color: #7a5c00;
  padding: .6rem .9rem; border-radius: var(--radius-sm);
  font-size: .84rem; font-weight: 600;
}

/* Mobile: pannello a scheda in basso (ricerca in cima al pannello) */
@media (max-width: 720px) {
  .map-panel {
    top: auto; left: .6rem; right: .6rem; bottom: .6rem; width: auto;
    max-height: 52%;
  }
  .map-search input { font-size: .98rem; }
  .map-panel-head { padding: .55rem 1.1rem; }
}

/* ---------- Contenuti SEO (home e pagine città) ---------- */
.seo-strip {
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(900px 420px at 12% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 65%),
    radial-gradient(700px 380px at 95% 30%, rgba(14,138,109,.05), transparent 60%),
    var(--paper);
}
.seo-strip h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.9vw, 3rem); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; margin: .3rem 0 1.2rem; }
.seo-strip h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 700; letter-spacing: 0; margin: 3rem 0 1rem; }
.seo-strip p, .seo-strip .lead { color: var(--ink-soft); max-width: 800px; }
.seo-strip .lead { font-size: 1.12rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin: 2rem 0; }
.step-card {
  background: var(--card); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); border: 1px solid rgba(23,26,60,.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.step-card .n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff;
  font-weight: 800; margin-bottom: .7rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.step-card p { font-size: .92rem; }
.seo-links { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 .6rem; }
.chips { display: flex; gap: .6rem; flex-wrap: wrap; }
.chips a {
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink);
  font-weight: 600; font-size: .9rem; padding: .5rem 1rem; border-radius: 999px;
  transition: all .15s ease;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.foot-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); font-weight: 600; }
.foot-links a:hover { color: var(--accent); }

/* Breadcrumb */
.crumbs { font-size: .85rem; color: var(--ink-faint); padding: 1rem 0 0; }
.crumbs a { color: var(--ink-soft); font-weight: 600; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 .4rem; }

/* Elenchi città/associazioni */
.list-hero { padding: 3.5rem 0 2rem; background:
  radial-gradient(700px 320px at 50% -10%, #e8ebff, transparent 70%), var(--paper); }
.list-hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.9vw, 2.9rem); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.list-hero p { color: var(--ink-soft); max-width: 760px; margin-top: .8rem; font-size: 1.05rem; }
.org-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; padding: 2rem 0 3rem; }
.org-card {
  display: flex; gap: 1rem; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.org-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.org-card .r-logo { width: 54px; height: 54px; flex: none; border-radius: 14px;
  background: color-mix(in srgb, var(--pc, var(--accent)) 12%, #fff);
  border: 2px solid color-mix(in srgb, var(--pc, var(--accent)) 35%, #fff);
  display: grid; place-items: center; font-size: 1.5rem; overflow: hidden; }
.org-card .r-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; }
.org-card h3 { font-size: 1rem; line-height: 1.3; }
.org-card .t { display: block; font-size: .82rem; color: var(--ink-soft); }
.org-card .a { display: block; font-size: .78rem; color: var(--ink-faint); margin-top: .2rem; }
.city-cols { columns: 3; gap: 2rem; padding: 1.5rem 0 3rem; }
@media (max-width: 800px) { .city-cols { columns: 2; } }
@media (max-width: 520px) { .city-cols { columns: 1; } }
.city-cols a { display: block; padding: .35rem 0; font-weight: 600; color: var(--ink-soft); break-inside: avoid; }
.city-cols a:hover { color: var(--accent); }
.city-cols .cnt { color: var(--ink-faint); font-weight: 500; font-size: .85rem; }

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 500;
  max-width: 620px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.1rem 1.3rem;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
}
.cookie-banner .cb-text { flex: 1; min-width: 240px; }
.cookie-banner .cb-text b { font-size: .95rem; }
.cookie-banner .cb-text p { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; line-height: 1.5; }
.cookie-banner .cb-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 560px) {
  .cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; }
  .cookie-banner .cb-actions { width: 100%; }
  .cookie-banner .cb-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Empty state ---------- */
.empty {
  text-align: center; color: var(--ink-faint); padding: 2.5rem;
  border: 2px dashed var(--line); border-radius: var(--radius);
}
