/* Albero della Memoria — stile condiviso */

@import url('https://fonts.googleapis.com/css2?family=Handlee&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --verde-scuro: #1b4332;
  --verde-medio: #2d6a4f;
  --verde-accent: #40916c;
  --verde-menta: #d8f3e0;
  --verde-menta-chiaro: #f4faf6;
  --testo: #1b2e26;
  --testo-soft: #4a5c53;
  --bordo: rgba(27, 67, 50, 0.10);
  --ombra: 0 6px 24px rgba(27, 67, 50, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Handlee', cursive;
  color: var(--testo);
  background: var(--verde-menta-chiaro);
  line-height: 1.6;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; }

/* Header hero (home) */
.hero {
  background: linear-gradient(180deg, var(--verde-menta) 0%, var(--verde-menta-chiaro) 100%);
  padding: 56px 20px 40px;
  text-align: center;
}

.hero-icon {
  height: 190px;
  width: auto;
  margin-bottom: 4px;
}

.tree-header-icon {
  display: block;
  height: 130px;
  width: auto;
  margin: 0 auto 6px;
}

.hero h1 {
  font-family: 'Handlee', cursive;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--verde-scuro);
  margin: 0 0 8px;
}

.hero p {
  font-size: 1.05rem;
  color: var(--testo-soft);
  max-width: 480px;
  margin: 0 auto;
}

.hero-sub {
  font-size: 0.92rem !important;
  color: var(--testo-soft);
  opacity: 0.85;
  max-width: 560px !important;
  margin: 14px auto 0 !important;
  line-height: 1.6;
}

/* Sections */
section.block {
  padding: 32px 0;
}

section.block h2 {
  font-size: 1.3rem;
  color: var(--verde-scuro);
  margin: 0 0 16px;
  font-weight: 600;
}

.card {
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  box-shadow: var(--ombra);
  padding: 24px;
}

/* Aderisci al progetto */
.aderisci {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aderisci-info { flex: 1; min-width: 220px; }
.aderisci-info strong { color: var(--verde-scuro); font-size: 1.05rem; }
.aderisci-info div { color: var(--testo-soft); font-size: 0.95rem; margin-top: 4px; }

.btn {
  display: inline-block;
  background: var(--verde-scuro);
  color: #fff !important;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--verde-medio); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--verde-scuro) !important;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--verde-scuro);
  transition: background 0.15s ease;
}
.btn-outline:hover { background: var(--verde-menta); }

/* Posizione alberi — mappa interattiva */
.map-card {
  padding: 0;
  overflow: hidden;
}
#alberi-map {
  height: 340px;
  width: 100%;
}
.map-hint {
  font-size: 0.85rem;
  color: var(--testo-soft);
  margin: 10px 0 0;
  text-align: center;
}

.tree-pin-wrap { background: transparent; border: none; }
.tree-pin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--verde-scuro);
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(27, 67, 50, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Handlee', cursive;
  font-weight: 700;
  font-size: 17px;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
}
.leaflet-popup-content {
  font-family: 'Inter', sans-serif;
  margin: 14px 16px;
}
.popup-zone-title {
  font-family: 'Handlee', cursive;
  font-size: 1.5rem;
  color: var(--verde-scuro);
  margin: 0 0 6px;
}
.popup-tree-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 0.85rem;
}
.popup-tree-list li { margin-bottom: 3px; }
.popup-tree-list a { text-decoration: none; color: var(--testo); }
.popup-tree-list a:hover { color: var(--verde-scuro); }
.popup-dir-btn {
  display: inline-block;
  background: var(--verde-scuro);
  color: #fff !important;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.popup-dir-btn:hover { background: var(--verde-medio); }

/* Griglia alberi (home) */
.alberi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.albero-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--bordo);
  border-radius: 14px;
  box-shadow: var(--ombra);
  padding: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.albero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(27, 67, 50, 0.14);
}
.albero-card .num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--verde-medio);
  background: var(--verde-menta);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.albero-card .nome {
  font-family: 'Handlee', cursive;
  font-size: 1.5rem;
  color: var(--verde-scuro);
  display: block;
  line-height: 1.2;
}

/* Pagina singolo albero */
.tree-header {
  padding: 44px 20px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--verde-menta) 0%, var(--verde-menta-chiaro) 100%);
}
.tree-header .num-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--verde-medio);
  background: #fff;
  border: 1px solid var(--bordo);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tree-header h1 {
  font-family: 'Handlee', cursive;
  font-size: 3rem;
  font-weight: 700;
  color: var(--verde-scuro);
  margin: 0;
  line-height: 1.15;
}

.dedica-title {
  text-align: center;
  font-family: 'Handlee', cursive;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--verde-scuro);
  margin: 0 0 20px;
}

.dedica blockquote {
  text-align: center;
  font-family: 'Handlee', cursive;
  font-size: 1.6rem;
  color: var(--verde-scuro);
  margin: 0 0 24px;
  line-height: 1.4;
  white-space: pre-line;
}

.bio-text p {
  margin: 0 0 16px;
  color: var(--testo);
  font-size: 1rem;
  text-align: justify;
  text-align-last: left;
}
.bio-text p:last-child { margin-bottom: 0; }

/* Galleria */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--ombra);
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.gallery a:hover img { transform: scale(1.06); }

/* Home link footer (pagina albero) */
.back-home {
  text-align: center;
  padding: 36px 20px 56px;
}

/* Footer home */
footer.s