/* Landing "Un dono che nutre": mappa parrocchie (SGI, 03/11/2026). Colori = palette Astra del sito */
.dono-parrocchie { --dono-oro: var(--ast-global-color-0, #c3955e); --dono-petrolio: var(--ast-global-color-1, #135e69); --dono-blu: var(--ast-global-color-2, #0b7ca1); --dono-testo: var(--ast-global-color-3, #1a1a1a); --dono-chiaro: var(--ast-global-color-4, #f9f9f9); font-family: inherit; }
.dono-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.dono-tools .dono-q { flex: 1 1 260px; min-width: 0; height: 48px; padding: 0 16px; border: 2px solid var(--dono-petrolio); border-radius: 0; font-size: 1rem; color: var(--dono-testo); background: #fff; }
.dono-tools .dono-q:focus { outline: none; border-color: var(--dono-oro); box-shadow: 0 0 0 3px rgba(195, 149, 94, .25); }
.dono-tools .dono-near { flex: 0 0 auto; height: 48px; padding: 0 20px; border: 0; border-radius: 0; background: var(--dono-petrolio); color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; cursor: pointer; transition: background .2s; }
.dono-tools .dono-near:hover, .dono-tools .dono-near:focus { background: var(--dono-oro); color: #fff; }
.dono-tools .dono-near.is-loading { opacity: .6; cursor: progress; }
.dono-count { margin: 0 0 12px; font-size: .9rem; color: #555; }
.dono-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 0; border: 1px solid #e3e3e3; background: #fff; }
.dono-map { order: 2; height: 520px; min-height: 100%; z-index: 0; }
.dono-list { order: 1; list-style: none; margin: 0; padding: 0; max-height: 520px; overflow-y: auto; border-right: 1px solid #e3e3e3; overscroll-behavior: contain; }
.dono-item { position: relative; padding: 12px 16px 12px 18px; border-bottom: 1px solid #eee; border-left: 4px solid transparent; transition: background .15s, border-color .15s; }
.dono-item[hidden] { display: none; }
.dono-item:hover { background: var(--dono-chiaro); }
.dono-item.is-active { background: var(--dono-chiaro); border-left-color: var(--dono-oro); }
.dono-item .dono-name { display: block; width: 100%; padding: 0; margin: 0 0 2px; border: 0; background: none; text-align: left; font: inherit; font-weight: 600; font-size: .98rem; line-height: 1.3; color: var(--dono-petrolio); cursor: pointer; }
.dono-item .dono-name:hover, .dono-item .dono-name:focus { color: var(--dono-oro); background: none; }
.dono-item .dono-addr { display: block; font-size: .85rem; line-height: 1.35; color: #555; }
.dono-item .dono-dist { position: absolute; top: 12px; right: 14px; font-size: .78rem; font-weight: 600; color: var(--dono-oro); }
.dono-item .dono-dist:empty { display: none; }
.dono-item .dono-maps { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 600; text-transform: uppercase; color: var(--dono-blu); text-decoration: none; }
.dono-item .dono-maps:hover { color: var(--dono-oro); text-decoration: underline; }
.dono-item .dono-name { padding-right: 56px; text-transform: none; letter-spacing: normal; }
.dono-tools .dono-near { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.dono-tools .dono-near svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.dono-empty { margin: 12px 0 0; padding: 12px 16px; background: var(--dono-chiaro); border-left: 4px solid var(--dono-oro); }
.dono-empty[hidden] { display: none; }
/* riquadro al posto della mappa finché non c'è il consenso (OpenStreetMap) */
.dono-map { position: relative; }
.dono-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: var(--dono-chiaro) repeating-linear-gradient(45deg, rgba(19, 94, 105, .04) 0 12px, transparent 12px 24px); }
.dono-ph[hidden] { display: none; }
.dono-ph svg { width: 54px; height: 54px; fill: var(--dono-oro); }
.dono-ph .dono-ph-title { margin: 0; font-weight: 600; font-size: 1.1rem; text-transform: uppercase; color: var(--dono-petrolio); }
.dono-ph .dono-ph-text { margin: 0; max-width: 420px; font-size: .9rem; line-height: 1.5; color: #555; }
.dono-ph .dono-ph-btn { margin-top: 6px; padding: 14px 26px; border: 0; border-radius: 0; background: var(--dono-petrolio); color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; cursor: pointer; transition: background .2s; }
.dono-ph .dono-ph-btn:hover, .dono-ph .dono-ph-btn:focus { background: var(--dono-oro); color: #fff; }
.dono-ph .dono-ph-link { font-size: .78rem; color: var(--dono-blu); }
/* segnaposti */
.dono-pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--dono-petrolio, #135e69); border: 3px solid #fff; transform: rotate(-45deg); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.dono-cluster span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--dono-oro, #c3955e); border: 3px solid #fff; color: #fff; font-weight: 700; font-size: .9rem; box-shadow: 0 1px 5px rgba(0, 0, 0, .35); }
.dono-parrocchie .leaflet-popup-content { font-size: .9rem; line-height: 1.4; }
.dono-parrocchie .leaflet-popup-content a { font-weight: 600; color: var(--dono-blu); }
@media (max-width: 767px) {
  .dono-wrap { grid-template-columns: 1fr; }
  .dono-map { order: 1; height: 340px; min-height: 0; }
  .dono-list { order: 2; max-height: 380px; border-right: 0; border-top: 1px solid #e3e3e3; }
  .dono-tools .dono-near { flex: 1 1 100%; }
}
