/* IMPACT HERO */
.imp-hero { padding: clamp(64px,9vw,110px) 0 clamp(40px,6vw,70px); }
.imp-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.imp-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem,5.4vw,4.4rem); line-height: 1.03; letter-spacing: -0.025em; margin: 18px 0 22px; }
.imp-hero h1 em { font-style: italic; color: var(--gold); }
.imp-hero p.lead { margin-bottom: 32px; }
.imp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.imp-stat { background: #fff; border: 1px solid var(--gray-mid); padding: 24px; border-radius: 14px; }
.imp-stat .num { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; color: var(--gold); letter-spacing: -0.02em; line-height: 1; }
.imp-stat .lbl { font-size: 12.5px; color: var(--gray); margin-top: 10px; line-height: 1.5; }

/* @media (max-width: 820px) { .imp-hero-grid { grid-template-columns: 1fr; } } */
@media (max-width: 820px) {
  .imp-hero-grid {
    /* Forziamo la griglia a una sola colonna */
    grid-template-columns: 1fr !important;
    /* Opzionale: attiva il posizionamento dei figli tramite l'ordine */
    display: grid !important; 
  }

  /* Selezioniamo il primo div (Testo) e lo mandiamo in fondo */
  .imp-hero-grid > div:first-child {
    order: 2;
  }

  /* Selezioniamo il secondo div (Video) e lo portiamo in cima */
  .imp-hero-grid > div:last-child {
    order: 1;
  }
}

/* MAP */
.map-section { padding: clamp(56px,8vw,100px) 0; background: #fff; border-top: 1px solid var(--gray-mid); border-bottom: 1px solid var(--gray-mid);}
.map-head { margin-bottom: 40px; max-width: 640px; }
.map-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px,5vw,56px); align-items: flex-start; }
.map-holder {
  position: relative; aspect-ratio: 7/10;
  background: var(--gray-light);
  border-radius: 16px;
  padding: 36px;
  display: flex; align-items: center; justify-content: center;
}
.map-svg { width: 100%; height: 100%; max-width: 360px; }
.map-city-btn {
  cursor: pointer; transition: transform .15s;
  /* AGGIUNGI QUESTE DUE RIGHE: */
  transform-origin: center;
  transform-box: fill-box;
}
.map-city-btn:hover { transform: scale(1.15); }
.map-legend {
  position: absolute; left: 16px; bottom: 16px;
  background: #fff; border: 1px solid var(--gray-mid);
  padding: 10px 14px; border-radius: 10px;
  font-size: 11px; color: var(--gray);
  display: flex; gap: 14px; align-items: center;
}
.map-legend .lg-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: middle; }
.map-legend .lg-dot.done { background: var(--gold); }
.map-legend .lg-dot.soon { background: transparent; border: 1.5px solid #999; }

.city-panel {
  background: #fff; border: 1px solid var(--gray-mid);
  border-radius: 16px; overflow: hidden;
  display: none;
}
.city-panel.active { display: block; }
.city-panel-head {
  background: var(--ink); color: #fff;
  padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.city-panel-head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.01em; }
.city-panel-head h3 em { font-style: italic; color: var(--gold-soft); }
.city-panel-head .badge {
  font-size: 10.5px; padding: 4px 10px; border-radius: 999px;
  background: rgba(184,149,42,0.2); color: var(--gold-soft); letter-spacing: 0.08em; text-transform: uppercase;
}
.city-panel-head .badge.soon { background: rgba(255,255,255,0.1); color: #A9A69E; }
.city-panel-body { padding: 28px; }
.city-row {
  display: flex; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid var(--gray-mid); font-size: 14.5px;
}
.city-row:last-child { border-bottom: 0; }
.city-row .k { color: var(--gray); }
.city-row .v { font-weight: 500; }
.city-row .v.gold { color: var(--gold); font-family: var(--serif); font-style: italic; font-weight: 400; }
.city-pick-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.city-pick-list button {
  background: var(--gray-light); border: 1px solid transparent;
  padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; color: var(--gray); cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.city-pick-list button.active { background: var(--gold); color: #fff; border-color: var(--gold); }
.city-pick-list button:hover:not(.active) { border-color: var(--gold); color: var(--ink); }

@media (max-width: 820px) { .map-grid { grid-template-columns: 1fr; } }

/* CALCULATOR */
.calc-section { padding: clamp(56px,8vw,100px) 0; }
.calc-card {
  background: linear-gradient(180deg, #fff 0%, #faf5e8 100%);
  border: 1px solid var(--gold-soft);
  border-radius: 22px;
  padding: clamp(32px,5vw,56px);
}
.calc-head { text-align: center; margin-bottom: 36px; }
.calc-head h2 { margin: 14px 0 14px; }
.calc-head p { color: var(--gray); max-width: 480px; margin: 0 auto; }
.calc-slider-wrap {
  max-width: 640px; margin: 0 auto;
}
.calc-val {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem,8vw,5rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--gold);
  text-align: center; margin-bottom: 24px;
}
.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: linear-gradient(to right, var(--gold) var(--pct,50%), var(--gray-mid) var(--pct,50%));
  border-radius: 3px; outline: none;
  margin-bottom: 12px;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(184,149,42,0.3);
}
.calc-slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold);
  cursor: pointer;
}
.calc-range-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray); }

.calc-result {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px;
  margin: 36px auto 0; max-width: 640px; align-items: center;
}
.calc-box { background: #fff; border: 1px solid var(--gray-mid); border-radius: 14px; padding: 24px; text-align: center; }
.calc-box .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); letter-spacing: -0.02em; line-height: 1; }
.calc-box .lbl { font-size: 12.5px; color: var(--gray); margin-top: 10px; line-height: 1.5; }
.calc-split { font-family: var(--serif); font-style: italic; color: var(--gray); font-size: 1.4rem; }
@media (max-width: 600px) {
  .calc-result { grid-template-columns: 1fr; }
  .calc-split { display: none; }
}

/* TWO VOICES */
.voices-wrap { padding: clamp(56px,8vw,100px) 0; background: var(--ink); color: #fff; }
.voices-head { text-align: center; margin-bottom: 48px; }
.voices-head h2 { color: #fff; }
.voices-head h2 em { color: var(--gold-soft); }
.voices-head p { color: #A9A69E; max-width: 480px; margin: 14px auto 0; }
.voices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.voice-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px; padding: 36px;
}
.voice-card p.eyebrow { color: var(--gold-soft); }
.voice-card p.eyebrow::before { background: var(--gold-soft); }
.voice-quote {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.5rem; line-height: 1.35; letter-spacing: -0.01em;
  color: #fff; margin: 22px 0 24px;
}
.voice-byline {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
}
.voice-av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; color: #fff;
  flex-shrink: 0;
}
.voice-name { font-size: 15px; font-weight: 500; color: #fff; }
.voice-role { font-size: 12.5px; color: #A9A69E; }
@media (max-width: 760px) { .voices-grid { grid-template-columns: 1fr; } }

/* 50/50 */
.split-wrap { padding: clamp(56px,8vw,100px) 0; }
.split-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.split-head h2 { margin: 14px 0 16px; }
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; background: var(--ink); color: #fff;
  border-radius: 22px; overflow: hidden;
}
.split-cell { padding: clamp(36px,5vw,60px); position: relative; }
.split-cell:nth-child(1) { border-right: 1px solid rgba(255,255,255,0.08); }
.split-pct { font-family: var(--serif); font-size: clamp(3.5rem,8vw,5.5rem); color: var(--gold-soft); letter-spacing: -0.03em; line-height: 0.9; }
.split-title { font-family: var(--serif); font-size: 1.5rem; color: #fff; margin: 20px 0 12px; letter-spacing: -0.01em; }
.split-desc { color: #C9C6BE; font-size: 14.5px; line-height: 1.7; }
.split-badge-row { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.split-badge {
  display: inline-flex; align-items: center; font-size: 11.5px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(184,149,42,0.18); color: var(--gold-soft);
  letter-spacing: 0.02em;
}
@media (max-width: 760px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-cell:nth-child(1) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* CTA: Dona soldi o strumenti */
.give-wrap { padding: clamp(64px,9vw,120px) 0; background: linear-gradient(180deg, var(--bg) 0%, #f3ede0 100%); }
.give-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.give-card {
  background: #fff; border: 1px solid var(--gray-mid);
  border-radius: 20px; padding: 40px 36px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.give-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 20px 40px -20px rgba(184,149,42,0.25); }
.give-card.feat { background: var(--ink); color: #fff; border-color: var(--ink); }
.give-ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--gold-light); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.give-card.feat .give-ico { background: rgba(184,149,42,0.2); color: var(--gold-soft); }
.give-card h3 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
.give-card.feat h3 { color: #fff; }
.give-card h3 em { font-style: italic; color: var(--gold); }
.give-card.feat h3 em { color: var(--gold-soft); }
.give-card p { color: var(--gray); font-size: 14.5px; line-height: 1.65; }
.give-card.feat p { color: #C9C6BE; }
.give-amounts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.give-amt {
  padding: 10px 18px; border-radius: 999px;
  background: rgba(184,149,42,0.1); color: var(--gold);
  font-family: var(--serif); font-size: 1.05rem; font-style: italic;
  border: 1px solid transparent; cursor: pointer; font-weight: 500;
  transition: all .15s;
}
.give-amt.custom { background: transparent; color: var(--gray); border: 1px dashed var(--gray-mid); font-family: inherit; font-style: normal; font-size: 13.5px; }
.give-amt:hover { background: var(--gold); color: #fff; }
.give-card.feat .give-amt { background: rgba(184,149,42,0.2); color: var(--gold-soft); }
.give-card.feat .give-amt:hover { background: var(--gold); color: #fff; }
.give-list { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.give-list div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #C9C6BE; line-height: 1.55; }
.give-list svg { color: var(--gold-soft); flex-shrink: 0; margin-top: 3px; }
.give-cta { margin-top: auto; padding-top: 18px; }
.give-cta .btn { width: 100%; justify-content: center; }
.give-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray); margin-top: 14px; }
.give-card.feat .give-foot { color: #8A8782; }
@media (max-width: 760px) { .give-grid { grid-template-columns: 1fr; } }

.map-city-btn.active circle {
  fill: #7A5F10;
  stroke: #B8952A;
  stroke-width: 2px;
}

.map-city-btn.active text {
  fill: #B8952A;
  font-weight: 600;
}

.gfm-embed {
  width: 100%;
  display: block;
}

.give-card--gfm {
  padding: 0;
  overflow: hidden;
  background: #fff; /* importante per evitare effetto “box nel box” */
}
.give-card--gfm iframe {
  display: block;
  width: 100%;
}

/* --- Stili Nuova Card Donazione --- */
:root {
  --gold-pale: rgba(201,168,76,0.12);
  --gold-border: rgba(201,168,76,0.3);
  --gray-1: #f5f2ea;
  --gray-2: #e8e3d8;
  --gray-3: #a09880;
  --radius-lg: 18px;
  --radius-sm: 8px;
}

.donation-card {
  width: 100%;
  background: #fff;
  border: 0.5px solid var(--gray-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-header {
  background: #1A1A1A;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-left { display: flex; align-items: baseline; gap: 8px; }
.card-header .city {  font-size: 20px; color: #fff; }
.card-header .region {  font-size: 20px; color: var(--gold); font-style: italic; }
.card-header .separator { color: var(--gray-3); }

.status-badge {
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.status-badge.completata { background: var(--gold-pale); border: 0.5px solid var(--gold-border); color: var(--gold); }
.status-badge.in-corso { background: rgba(255,255,255,0.08); border: 0.5px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.5); }

.card-body { padding: 0 20px 20px; }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 14px 0; border-bottom: 0.5px solid var(--gray-1); gap: 8px;
}
.field-label { font-size: 13px; color: #7a7060; }
.field-value { font-size: 13px; font-weight: 500; text-align: right; }

.strumenti-block { padding: 14px 0; border-bottom: 0.5px solid var(--gray-1); }
.strumenti-label { font-size: 13px; color: #7a7060; margin-bottom: 10px; }
.strumento-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gray-1); border-radius: var(--radius-sm);
  padding: 8px 12px; margin-bottom: 6px;
}
.strumento-nome { font-size: 13px; }
.valore-num {font-size: 16px; color: var(--gold); }

/* Badge strumenti */
.badge-mini { font-size: 9px; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; margin-left: 5px; }
.badge-partner { background: #ddd; color: #666; }
.badge-privato { background: var(--gold-pale); color: var(--gold); }




.imp-hero::before {
  content: "";
  position: absolute;

  top: 40%;
  left: 0;
  transform: translate(-40%, -50%);

  width: 770px;
  height: 770px;

  background: url("../assets/Forma\ circolare.png") no-repeat center;
  background-size: contain;

  opacity: 0.10;
  pointer-events: none;

  z-index: 0;
}

@media (max-width: 768px) {
  .imp-hero::before {
    width: 500px;
    height: 500px;
    left: -220px;
  }
}