/* styles.css */

/* --- Variabili Colori e Stili Base --- */
:root {
  --primary-color: #003366; /* Blu Sant'Egidio */
  --secondary-color: #0056b3; /* Blu più scuro per hover/link */
  --accent-color: #ff6600; /* Arancione per CTA */
  --accent-hover-color: #e65c00;
  --light-bg: #f8f9fa; /* Grigio chiaro per sfondi */
  --very-light-bg: #ffffff;
  --light-blue-bg: #e7f0f7; /* Azzurrino per blocco donazione */
  --donation-section-bg-start: #eef3f8; /* Sfondo sezione donazioni */
  --donation-section-bg-end: #dde8f3;
  --impact-section-bg-start: #f8fcff; /* Sfondo sezione impact */
  --impact-section-bg-end: #f0f4f8;
  --map-section-bg: #f5f7fa; /* Sfondo sezione mappa */
  --text-color: #343a40; /* Grigio scuro per testo */
  --light-text-color: #f8f9fa; /* Testo chiaro su sfondi scuri */
  --medium-text-color: #495057; /* Grigio medio */
  --light-grey-text: #6c757d; /* Grigio chiaro */
  --border-color: #dee2e6;
  --medium-border-color: #ced4da; /* Bordo leggermente più scuro */
  --border-radius: 8px; /* Angoli arrotondati */
  --border-radius-large: 12px; /* Angoli più arrotondati per il box */
  --success-color: #28a745;
  --success-dark-text: #155724;
  --success-light-bg: #d4edda;
  --error-color: #dc3545;
  --error-light-bg: #f8d7da;
  /* Rimosse variabili highlight inutilizzate */
  /* --highlight-bg: #fffaf2; */
  /* --highlight-border: #ffe5c2; */
  --brand-blue:#003366;
  --brand-orange:#ff6600;
  --brand-grad:linear-gradient(135deg,#003366 0%,#0056b3 40%,#ff7b00 100%);
  --shadow-soft: 0 5px 15px rgba(0, 51, 102, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 51, 102, 0.12);
  --shadow-strong: 0 10px 40px rgba(0, 86, 179, 0.18);
  --header-height: 70px; /* Altezza approx header per gestione menu mobile */

  /* NUOVE Variabili per Sostegno Mensile */
  --monthly-highlight-color: var(--accent-color); /* Colore per evidenziare mensile (Arancione) */
  --monthly-highlight-bg: #fff8f2; /* Sfondo leggero per pitch (Arancione molto pallido) */
}
.tax-benefits-cards-section.no-icons {
  background: linear-gradient(120deg, #fafdff 70%, #eef3f8 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(0, 51, 102, 0.07);
  border: 1.5px solid #dde8f3;
  padding: 80px 0 60px 0;
}

.tax-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-bottom: 30px;
}

.tax-card.no-icon {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid #e0e7ef;
  box-shadow: 0 3px 14px rgba(0, 51, 102, 0.06);
  max-width: 460px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.tax-card.no-icon:hover {
  box-shadow: 0 8px 30px rgba(0,86,179,0.13);
  border-color: var(--accent-color);
}

.tax-card.no-icon .tax-card-content {
  padding: 44px 32px 38px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tax-card.no-icon h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary-color);
  font-size: 1.7em;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  text-align: center;
}

.tax-card.no-icon .accent {
  color: var(--accent-color);
  font-weight: 900;
  letter-spacing: 0.2px;
}

.tax-card.no-icon .tax-card-intro {
  font-size: 1.10em;
  color: var(--medium-text-color);
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.7;
  max-width: 95%;
}

.tax-card.no-icon .benefit-option.plain {
  background: #f6fafd;
  border-radius: 10px;
  border: 1.5px solid #e0e9f3;
  padding: 18px 18px 8px 18px;
  box-shadow: 0 2px 12px rgba(0, 51, 102, 0.04);
  width: 100%;
  max-width: 340px;
}

.tax-card.no-icon .benefit-option.plain h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--secondary-color);
  font-size: 1.06em;
  font-weight: 700;
  margin-bottom: 6px;
}

.tax-card.no-icon .benefit-option.plain p {
  color: var(--primary-color);
  font-size: 1.01em;
  margin-bottom: 0;
}

/* Note eleganti sotto la griglia */
.tax-benefits-important-notes.elegant-notes {
  margin-top: 38px;
  padding: 28px 32px;
  background-color: #fafdff;
  border-radius: 15px;
  border: 1.5px solid #e0e7ef;
  box-shadow: 0 2px 14px rgba(0,51,102,0.04);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.tax-benefits-important-notes .notes-content h4 {
  font-size: 1.15em;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 14px;
}
.tax-benefits-important-notes .notes-content ul {
  margin: 0; padding: 0; list-style: disc inside;
}
.tax-benefits-important-notes .notes-content ul li {
  font-size: 1em;
  color: var(--medium-text-color);
  margin-bottom: 11px;
  line-height: 1.6;
}
.tax-benefits-important-notes .notes-content ul li:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 767px) {
  .tax-benefits-cards-section.no-icons { padding: 44px 0 32px 0; }
  .tax-cards-grid { gap: 18px; }
  .tax-card.no-icon .tax-card-content { padding: 24px 8px 18px 8px; }
  .tax-card.no-icon { max-width: 98%; }
  .tax-card.no-icon h3 { font-size: 1.25em; }
  .tax-card.no-icon .tax-card-intro { font-size: 1em; }
  .tax-card.no-icon .benefit-option.plain { padding: 12px 8px 8px 8px; font-size: 0.96em; }
  .tax-benefits-important-notes.elegant-notes { padding: 15px 6px; }
}


/* Stili per le Note Importanti - Versione Elegante */
.tax-benefits-important-notes.elegant-notes {
  margin-top: 40px;
  padding: 30px;
  background-color: var(--very-light-bg);
  border-radius: var(--border-radius-large);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-start; /* Allinea icona e contenuto in alto */
  gap: 25px;
}

.elegant-notes .notes-icon-wrapper {
  font-size: 2.5em;
  color: var(--accent-color); /* Colore per l'icona principale delle note */
  padding-top: 5px; /* Allineamento verticale leggero */
}

.elegant-notes .notes-content h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary-color);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
}

.elegant-notes .notes-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.elegant-notes .notes-content ul li {
  font-size: 0.95em;
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 28px; /* Spazio per le icone Bootstrap */
  position: relative;
}

.elegant-notes .notes-content ul li:last-child {
  margin-bottom: 0;
}

.elegant-notes .notes-content ul li::before {
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  top: 4px; /* Aggiustare per allineamento verticale dell'icona */
  font-size: 1.2em;
  font-weight: normal; /* Assicura che non erediti grassetti */
}

/* Icone specifiche per le note */
.elegant-notes .notes-content ul li:nth-child(1)::before { /* Conserva attestazione */
  content: "\F304"; /* bi-file-earmark-check-fill */
  color: var(--success-color);
}
.elegant-notes .notes-content ul li:nth-child(2)::before { /* No contanti */
  content: "\F622"; /* bi-slash-circle-fill */
  color: var(--error-color);
}
.elegant-notes .notes-content ul li:nth-child(3)::before { /* Fornisci dati */
  content: "\F433"; /* bi-info-circle-fill */
  color: var(--secondary-color);
}
.elegant-notes .notes-content ul li:nth-child(4)::before { /* Non cumulabili */
  content: "\F286"; /* bi-exclamation-circle-fill */
  color: var(--primary-color);
}


/* Responsive adjustments */
@media (max-width: 767px) {
  .tax-benefits-cards-section {
    padding: 60px 0;
  }
  .tax-cards-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
    gap: 30px;
  }
  .tax-card-content h3 {
    font-size: 1.5em;
  }
  .benefit-option h4 {
    font-size: 1.15em;
  }
  .tax-benefits-important-notes.elegant-notes {
    flex-direction: column; /* Stack icon e testo su mobile */
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  .elegant-notes .notes-icon-wrapper {
    font-size: 2em; /* Riduci un po' l'icona principale */
    padding-top: 0;
  }
  .elegant-notes .notes-content ul li {
    padding-left: 0; /* Rimuovi padding per testo centrato */
    text-align: left; /* Se preferisci testo a sinistra con icona sopra o allineata da ::before */
  }
   .elegant-notes .notes-content ul li::before {
    /* Potrebbe essere necessario riposizionare o nascondere le icone ::before su mobile se il layout diventa troppo affollato */
    /* Esempio: nascondere le icone interne su mobile e fare affidamento solo sul testo */
    /* display: none; */
    /* Oppure, se mantenute, assicurarsi che siano ben allineate */
    position: relative; /* Cambia posizionamento se non più absolute */
    display: inline-block; /* Per affiancare il testo */
    margin-right: 8px;
    top: 2px; /* Aggiusta allineamento */
  }
   .elegant-notes .notes-content ul li { /* Se le icone sono inline-block */
      display: flex;
      align-items: flex-start;
      text-align: left;
   }
}
/* === Reset Base & Stili Globali === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height); /* Offset per i link # */
}

body {
  font-family: 'Nunito', sans-serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--very-light-bg);
  transition: background-color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll {
  overflow-y: hidden;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 25px;
}

h1, h2, h3, h4 {
  margin-bottom: 0.8em;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
  font-family: 'Poppins', 'Nunito', sans-serif;
}

h1 { font-size: 2.8em; font-weight: 700; }
h2 { font-size: 2.2em; font-weight: 700; } /* Default h2 */
h3 { font-size: 1.6em; font-weight: 600; }
h4 { font-size: 1.2em; font-weight: 600; }

p {
  margin-bottom: 1.2em;
}
p:last-child {
  margin-bottom: 0;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}

section {
  padding: 80px 0;
}

/* --- Stili Titoli Sezione Standard --- */
.section-title {
  text-align: center;
  margin-bottom: 0.6em;
  font-size: 2.4em;
  font-weight: 700;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3em auto; /* Spazio sotto standard */
  font-size: 1.15em;
  color: var(--medium-text-color);
  line-height: 1.7;
}

/* Separatore Decorativo Opzionale */
.section-divider {
  text-align: center;
  margin-bottom: 4em;
  color: var(--border-color);
}
.section-divider i {
  font-size: 2.5em;
  color: var(--accent-color);
  opacity: 0.6;
}

/* --- Header & Mobile Navigation --- */
header {
  background: var(--very-light-bg);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  height: var(--header-height);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo img{
  max-width: 170px;
  height: auto;
}

.menu-toggle, .menu-close {
  display: none;
  background: none; border: none; font-size: 2rem;
  color: var(--primary-color); cursor: pointer; padding: 5px;
  line-height: 1; z-index: 1010;
}
.menu-close {
   position: absolute; top: 20px; right: 25px;
   color: var(--light-text-color); font-size: 1.8rem;
}

#main-nav {
  display: flex;
  align-items: center;
}
#main-nav ul {
  list-style: none; display: flex; align-items: center;
  margin: 0; padding: 0;
}
#main-nav ul li { margin-left: 12px; }
#main-nav ul li a {
  color: var(--text-color); padding: 8px 8px; font-weight: 700; font-size: 0.92em;
  transition: color 0.3s ease, background-color 0.3s ease;
  border-radius: var(--border-radius); display: block; white-space: nowrap;
}
#main-nav ul li a:hover:not(.cta-button) {
  color: var(--accent-color);
  background-color: rgba(0, 51, 102, 0.05);
}
#main-nav .cta-button-header {
  padding: 10px 20px !important;
  margin-left: 15px;
}


/* --- CTA Button Base --- */
.cta-button {
  background-color: var(--accent-color); color: #fff !important;
  padding: 12px 28px; border-radius: var(--border-radius);
  font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; border: none; cursor: pointer;
  text-align: center; font-size: 1em; line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.cta-button i { font-size: 1.1em; }
.cta-button:hover {
  background-color: var(--accent-hover-color); transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.cta-button:active {
  transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}


/* --- Hero Section --- */
.hero {
  background-image: linear-gradient(rgba(0, 51, 102, 0.75), rgba(0, 41, 82, 0.85)), url('images/hero-sicilia.png'); /* !!! SOSTITUISCI IMMAGINE !!! */
  background-color: var(--primary-color); background-repeat: no-repeat;
  background-position: center center; background-size: cover;
  min-height: calc(100vh - var(--header-height)); color: var(--light-text-color);
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; padding: 40px 0;
}
.hero-overlay { display: none; }
.hero-content {
  position: relative; z-index: 2; max-width: 850px; padding: 30px;
  animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 {
  color: #fff; margin-bottom: 0.5em; font-size: 3.4em; font-weight: 800;
  text-shadow: 2px 3px 10px rgba(0,0,0,0.6); line-height: 1.2;
}
.hero .subtitle {
  font-size: 1.35em; margin-bottom: 1.8em; line-height: 1.7; opacity: 0.95;
  max-width: 700px; margin-left: auto; margin-right: auto;
}
.cta-button-hero {
  padding: 18px 45px; font-size: 1.5em; font-weight: 700;
  border-radius: 30px;
}

/* --- Hero Volunteer Section --- */
.hero-volunteer {
  background-image: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 86, 179, 0.75)), url('images/volontari-sorriso.png');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

/* --- Enhanced Impact Section --- */
.impact {
  background: linear-gradient(175deg, var(--impact-section-bg-start) 0%, var(--impact-section-bg-end) 100%);
  padding: 80px 0 100px 0;
  position: relative;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 45px; align-items: stretch;
}
.impact-item {
  background-color: var(--very-light-bg); border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium); text-align: left; border: 1px solid #e0e5ec;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  border-top: 4px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-top-color 0.35s ease;
}
.impact-item:hover {
  transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-strong);
  border-top-color: var(--accent-color);
}
.impact-item-image {
  position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
}
.impact-item-image img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease; border-radius: 0;
}
.impact-item:hover .impact-item-image img { transform: scale(1.08); filter: brightness(1.05); }
.image-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
  background: linear-gradient(to top, rgba(0, 25, 51, 0.6), transparent);
  z-index: 1; pointer-events: none; transition: opacity 0.3s ease;
}
.impact-item:hover .image-overlay { opacity: 0.8; }
.impact-category-tag {
  position: absolute; bottom: 10px; left: 15px; background-color: var(--accent-color);
  color: #fff; padding: 4px 12px; border-radius: 5px; font-size: 0.8em;
  font-weight: 700; z-index: 2; text-transform: uppercase; letter-spacing: 0.5px;
}
.impact-item-content {
  padding: 25px 30px 30px 30px; display: flex; flex-direction: column;
  flex-grow: 1; position: relative;
}
.card-icon {
  font-size: 1.8em; color: var(--accent-color); margin-bottom: 15px;
  display: inline-block; width: auto;
}
.impact-item-content h3 {
  font-size: 1.45em; margin-bottom: 0.8em; color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
}
.impact-item-content p {
  font-size: 0.98em; color: var(--medium-text-color); line-height: 1.65; flex-grow: 1;
}

/* --- ENHANCED Donation Section --- */
.donation-section {
  background-color: #fafdff; padding: 100px 0; text-align: center;
  border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.donation-header { max-width: 800px; margin: 0 auto 3.5em auto; }
.icon-title { color: var(--accent-color); margin-right: 10px; font-size: 0.9em; vertical-align: middle; }
.donation-section h2 { margin-bottom: 0.5em; color: var(--primary-color); font-size: 2.5em; }
.donation-section .donation-intro { font-size: 1.2em; color: var(--medium-text-color); line-height: 1.7; margin-bottom: 0; }
#donation-box-outer {
  background-color: var(--very-light-bg); max-width: 750px; margin: 0 auto;
  padding: 45px 50px; border-radius: var(--border-radius-large); box-shadow: var(--shadow-strong);
  text-align: left; border: 1px solid var(--medium-border-color);
  transition: opacity 0.3s ease-out, padding 0.3s ease-out, border 0.3s ease-out, box-shadow 0.3s ease-out;
  position: relative; overflow: hidden;
}
#donation-box-outer::before { /* Glow effect */
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, rgba(255, 102, 0, 0) 60%);
  opacity: 0; transition: opacity 0.5s ease-in-out; z-index: 0; pointer-events: none;
  animation: rotateGlow 20s linear infinite;
}
/* #donation-box-outer:hover::before { opacity: 1; } */
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.donation-box-content { transition: opacity 0.3s ease-out; position: relative; z-index: 1; }
.donation-step { margin-bottom: 40px; }
.donation-step:last-child { margin-bottom: 0; }
.step-label { display: block; font-weight: 700; margin-bottom: 18px; color: var(--primary-color); font-size: 1.2em; font-family: 'Poppins', sans-serif; }
.donation-type-selector { display: flex; position: relative; background-color: #e9ecef; border-radius: var(--border-radius); overflow: hidden; border: 1px solid var(--medium-border-color); box-shadow: inset 0 2px 4px rgba(0,0,0,0.06); }
.type-button { flex: 1; padding: 16px 20px; font-size: 1.1em; font-weight: 600; font-family: 'Poppins', sans-serif; cursor: pointer; border: none; background-color: transparent; color: var(--medium-text-color); position: relative; z-index: 2; transition: color 0.3s ease, background-color 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.type-button:hover:not(.active) { color: var(--primary-color); }

/* MODIFIED: Stile icona mensile per renderla più visibile anche quando non attiva (arancione) */
.type-button[data-type="monthly"] i {
  color: var(--accent-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* MODIFIED: Assicurati che l'icona singola mantenga il colore base (grigio) */
.type-button[data-type="single"] i {
  color: inherit;
}

/* Stile generale icona nei type-button */
.type-button i {
  font-size: 1.3em;
  transition: transform 0.3s ease;
  margin-right: 4px;
}

/* Stile generale pulsante attivo (testo e icona diventano bianchi) */
.type-button.active {
  color: #fff; /* Testo e icona di default */
}

/* Stile generale icona quando il pulsante è attivo */
.type-button.active i {
  transform: scale(1.1);
  /* Il colore dell'icona è gestito dalla regola specifica qui sotto */
}

/* NUOVA REGOLA: Colore dell'icona per il pulsante mensile *quando è attivo* (diventa blu) */
.type-button.active[data-type="monthly"] i {
  color: var(--primary-color); /* Blu Sant'Egidio per visibilità su sfondo arancione */
}

.type-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  /* Gradiente blu per default (pulsante singolo attivo) */
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius);
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* MODIFIED: Gradiente diverso per lo slider quando è attivo il mensile (arancione) */
.donation-type-selector.monthly-active .type-slider {
  transform: translateX(100%);
  background: linear-gradient(145deg, var(--monthly-highlight-color), var(--accent-hover-color));
}

/* MODIFIED: Stile per il pitch del mensile per farlo risaltare */
.donation-monthly-pitch {
  /* display: none;  Questo sarà gestito dal JS, non lo mettiamo qui fisso */
  font-size: 1.05em;
  margin-top: 15px;
  color: var(--medium-text-color);
  line-height: 1.6;
  text-align: center;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;

  border: 1px dashed var(--monthly-highlight-color);
  padding: 12px 15px;
  border-radius: var(--border-radius);
  background-color: var(--monthly-highlight-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.donation-amount-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 5px; }
.amount-option-wrapper { border: 2px solid var(--medium-border-color); border-radius: var(--border-radius); padding: 15px; text-align: center; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; position: relative; overflow: hidden; background-color: var(--very-light-bg); }
.amount-option-wrapper:hover { border-color: var(--secondary-color); background-color: #f8fcff; box-shadow: 0 4px 10px rgba(0, 86, 179, 0.08); }
.amount-option-wrapper.selected { border-color: var(--primary-color); background-color: #e7f0f7; box-shadow: 0 6px 15px rgba(0, 51, 102, 0.15); }
.amount-option-wrapper.selected::after { content: '\F26E'; font-family: 'bootstrap-icons'; position: absolute; top: 10px; right: 10px; font-size: 1.3em; color: var(--primary-color); opacity: 0; transform: scale(0.5); transition: opacity 0.3s ease, transform 0.3s ease; }
.amount-option-wrapper.selected::after { opacity: 1; transform: scale(1); }
.amount-button { padding: 0; font-size: 1.8em; font-weight: 700; font-family: 'Poppins', sans-serif; border: none; background: none; color: var(--primary-color); display: block; margin-bottom: 8px; cursor: pointer; transition: color 0.2s ease; }
.amount-option-wrapper.selected .amount-button { color: var(--accent-color); }
.amount-description { font-size: 0.95em; color: var(--medium-text-color); line-height: 1.4; display: block; min-height: 2.8em; transition: color 0.2s ease; }
.amount-description strong { color: var(--primary-color); font-weight: 700; }

/* ==== MODIFIED Stili per il testo di impatto evidenziato ==== */
.donation-impact-highlight {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  font-size: 1.15em;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  box-shadow: 0 4px 10px rgba(0, 51, 102, 0.1);
  transition: opacity 0.35s ease-out, max-height 0.35s ease-out, transform 0.35s ease-out, margin 0.35s ease-out, padding 0.35s ease-out;
  will-change: opacity, max-height, transform;
}

.donation-impact-highlight.visible {
  opacity: 1;
  max-height: 200px; /* Aumentato per sicurezza */
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 20px 25px;
  transform: translateY(0) scale(1);
}

.donation-impact-highlight i {
  font-size: 1.6em;
  color: var(--accent-color);
  flex-shrink: 0;
  line-height: 1;
}

.donation-impact-highlight strong {
  color: var(--accent-color);
  font-weight: 700;
}
/* ==== Fine Modifiche Stili Highlight ==== */

.custom-amount-wrapper { display: flex; align-items: center; border: 2px solid var(--medium-border-color); border-radius: var(--border-radius); padding: 8px 15px; transition: border-color 0.3s ease, box-shadow 0.3s ease; margin-top: 25px; background-color: var(--very-light-bg); cursor: text; }
.custom-amount-wrapper:focus-within, .custom-amount-wrapper.selected { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2); }
.euro-symbol { font-weight: 600; font-size: 1.4em; color: var(--light-grey-text); margin-right: 8px; line-height: 1; }
#custom-amount { flex-grow: 1; border: none; padding: 10px 0; font-size: 1.3em; font-weight: 700; text-align: left; background: transparent; outline: none; -moz-appearance: textfield; width: auto; color: var(--primary-color); font-family: 'Poppins', sans-serif; }
#custom-amount::placeholder { color: #b0bec5; font-weight: 400; font-style: italic; font-size: 0.9em; }
.custom-amount-label { font-size: 0.9em; color: var(--light-grey-text); margin-left: 15px; white-space: nowrap; }
.custom-amount-wrapper:focus-within .custom-amount-label, .custom-amount-wrapper.selected .custom-amount-label { color: var(--primary-color); }
#custom-amount::-webkit-outer-spin-button, #custom-amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.donation-summary-step { margin-top: 45px; padding-top: 35px; border-top: 1px dashed var(--border-color); }
.donation-summary { text-align: center; margin-bottom: 15px; font-size: 1.3em; color: var(--text-color); }
.donation-summary strong { color: var(--accent-color); font-size: 1.3em; font-weight: 800; }
.donation-summary span { color: var(--primary-color); font-weight: bold; }
/* Nascondi vecchio testo impatto nel riepilogo */
.donation-impact-summary { display: none; }
#paypal-button-container { margin: 30px auto 15px; max-width: 420px; position: relative; min-height: 60px; }
.paypal-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 15px; color: #666; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.8); border-radius: var(--border-radius); z-index: 5; }
.spinner { border: 4px solid rgba(0, 0, 0, 0.1); border-radius: 50%; border-top-color: var(--primary-color); width: 35px; height: 35px; animation: spin 1s linear infinite; margin-bottom: 12px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.paypal-error-message { color: var(--error-color); font-weight: bold; text-align: center; padding: 12px 15px; border: 1px solid var(--error-color); border-radius: var(--border-radius); background-color: var(--error-light-bg); margin-top: 15px; font-size: 0.95em; }

/* NEW: Stili per i badge di sicurezza e deducibilità */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px; /* Spazio tra i badge */
  margin-top: 20px;
  flex-wrap: wrap; /* Permetti di andare a capo su mobile */
}
.secure-info, .deductible-info {
  text-align: center;
  font-size: 0.9em;
  color: var(--light-grey-text);
  margin-top: 0; /* Rimosso margine superiore per usarlo nel flex gap */
  display: flex; /* Allinea icona e testo */
  align-items: center;
  gap: 5px; /* Spazio tra icona e testo */
}
.secure-info i { color: var(--success-color); font-size: 1.2em; }
.deductible-info i { color: var(--secondary-color); font-size: 1.2em; }


.donation-footer { margin-top: 50px; text-align: center; padding-top: 35px; border-top: 1px dashed var(--border-color); }
.donation-benefits { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 20px 35px; margin-bottom: 35px; }
.benefit-item { display: flex; align-items: center; gap: 10px; font-size: 1em; color: var(--medium-text-color); font-weight: 500; background-color: #f8f9fa; padding: 10px 15px; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.benefit-item i { font-size: 1.6em; color: var(--secondary-color); line-height: 1; }
.other-ways { font-size: 1.05em; color: var(--medium-text-color); line-height: 1.6; margin-bottom: 25px; }
.other-ways strong { color: var(--primary-color); }

/* Stili Selettore IBAN */
.bank-details-container {
  max-width: 650px; margin: 30px auto 0; padding: 30px 35px;
  background-color: #f0f4f8; border-radius: var(--border-radius);
  border: 1px solid var(--medium-border-color); border-left: 5px solid var(--secondary-color);
  text-align: left;
  /* Stili per nascondere/mostrare */
  max-height: 0; opacity: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; margin-top: 0; border-width: 0 0 0 5px;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-in, padding 0.4s ease-out, margin 0.4s ease-out, border-width 0.4s ease-out;
  will-change: max-height, opacity;
}
.bank-details-container.visible {
  max-height: 500px; opacity: 1; padding: 30px 35px; margin: 30px auto 0;
  border-width: 1px 1px 1px 5px; border-style: solid;
  border-color: var(--medium-border-color) var(--medium-border-color) var(--medium-border-color) var(--secondary-color);
}
.bank-details-title { color: var(--primary-color); margin-bottom: 25px; font-size: 1.3em; text-align: center; }
.city-selector-wrapper { margin-bottom: 25px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.city-selector-wrapper label { font-weight: 600; color: var(--medium-text-color); font-size: 0.95em; }
#city-select-iban { /* ID Aggiornato */
  width: 100%; padding: 12px 15px; border: 1px solid var(--medium-border-color);
  border-radius: var(--border-radius); background-color: var(--very-light-bg);
  font-size: 1em; font-family: 'Nunito', sans-serif; cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23003366' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 16px 16px;
}
#city-select-iban:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15); }
.bank-details-content { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border-color); min-height: 100px; transition: opacity 0.3s ease-in-out; }
.bank-details-content p { margin-bottom: 10px; font-size: 0.95em; line-height: 1.6; color: var(--text-color); }
.bank-details-content p.placeholder-iban { color: var(--light-grey-text); font-style: italic; text-align: center; }
.bank-details-content strong { color: #000; font-weight: 700; display: inline-block; }
.iban-details { /* Non servono più stili specifici qui, gestito da contenitore */ }


/* === NEW 5x1000 Call to Action Section Styling === */
.cpm-section-revamped {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--secondary-color) 60%, #0077cc 100%);
  color: #fff;
}
.cpm-background-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(30px);
  z-index: 0;
}
.cpm-shape-1 {
  width: 400px; height: 400px;
  background-color: var(--accent-color);
  top: -100px; left: -150px;
  animation: rotateGlow 25s linear infinite reverse;
}
.cpm-shape-2 {
  width: 350px; height: 350px;
  background-color: #fff;
  bottom: -120px; right: -100px;
  animation: rotateGlow 30s linear infinite;
}
.cpm-container-revamped {
  position: relative;
  z-index: 1;
}
.cpm-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.cpm-text-content {
  max-width: 700px;
}
.cpm-title-revamped {
  font-family: 'Poppins', sans-serif;
  font-size: 3em;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5em;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}
.cpm-title-revamped span {
  display: block;
}
.cpm-subtitle-revamped {
  font-size: 1.2em;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 0;
}
.cpm-subtitle-revamped strong {
  color: var(--accent-color);
}
.cpm-cf-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cpm-cf-box-revamped {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  border-radius: var(--border-radius-large);
  padding: 35px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 550px;
  width: 100%;
  border: 1px solid rgba(0, 51, 102, 0.2);
  position: relative;
  overflow: hidden;
}
.cpm-label-revamped {
  font-size: 1em;
  color: var(--medium-text-color);
  margin-bottom: 15px;
  line-height: 1.6;
}
.cpm-code-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 15px;
  background-color: var(--primary-color);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.cpm-code-revamped {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  user-select: all; -webkit-user-select: all; -moz-user-select: all;
  flex-grow: 1;
  text-align: center;
}
.copy-cf-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 15px;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.copy-cf-button i {
  font-size: 1.1em;
}
.copy-cf-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.copy-cf-button:active {
  background-color: rgba(255, 255, 255, 0.4);
}
.copy-cf-button.copied {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: #fff;
  cursor: default;
}
.cpm-entity-revamped {
  font-size: 0.95em;
  color: var(--medium-text-color);
  margin-top: 15px;
  font-weight: 600;
}
.impact-icon {
  position: absolute;
  font-size: 2.5em;
  color: var(--primary-color);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.icon-1 { top: 20px; left: 25px; transform: rotate(-15deg); }
.icon-2 { bottom: 15px; right: 20px; transform: rotate(10deg); font-size: 3em; }
.icon-3 { top: 40%; right: 30px; transform: rotate(5deg); font-size: 2em;}
.cpm-cta-text {
  margin-top: 25px;
  font-size: 1.1em;
  font-weight: 500;
  color: #fff;
  opacity: 0.9;
}
.cpm-how-to-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.cpm-how-to-link:hover {
  color: #fff;
}
.cpm-how-to-link i {
  font-size: 0.9em;
  margin-left: 3px;
}


/* --- About Brief Section --- */
.about-brief { background-color: #f8fcff; }
.about-content { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.about-image { flex: 1; min-width: 320px; }
.about-image img { box-shadow: var(--shadow-strong); border-radius: var(--border-radius-large); }
.about-text { flex: 1.4; min-width: 320px; }
.about-text h2 { margin-bottom: 0.7em; font-size: 2em; }
.about-text p { font-size: 1.1em; color: var(--medium-text-color); }
.about-text .learn-more-link { font-weight: 700; display: inline-flex; align-items: center; gap: 5px; margin-top: 25px; color: var(--primary-color); padding-bottom: 3px; border-bottom: 2px solid var(--accent-color); transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease; }
.about-text .learn-more-link:hover { color: var(--accent-hover-color); transform: translateX(5px); }

/* --- Map Section Styling --- */
.map-section { padding: 80px 0; background-color: var(--map-section-bg); }
#sicily-map-container { position: relative; width: 100%; max-width: 1000px; margin: 0 auto; border-radius: var(--border-radius-large); overflow: hidden; box-shadow: var(--shadow-medium); border: 1px solid var(--border-color); }
#sicily-map { width: 100%; height: 550px; background-color: #e0e0e0; position: relative; }
.map-loader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 100; transition: opacity 0.5s ease-out; }
.map-loader .spinner { width: 45px; height: 45px; border-top-color: var(--primary-color); margin-bottom: 15px; animation: spin 1s linear infinite; border: 4px solid rgba(0, 0, 0, 0.1); border-radius: 50%; }
.map-loader p { color: var(--primary-color); font-weight: 600; }
#sicily-map.loaded .map-loader { opacity: 0; pointer-events: none; }
.leaflet-popup-content-wrapper { border-radius: var(--border-radius) !important; box-shadow: var(--shadow-medium) !important; border: 1px solid var(--medium-border-color); }
.leaflet-popup-content { font-family: 'Nunito', sans-serif !important; font-size: 0.95em !important; line-height: 1.4 !important; padding: 10px 15px !important; max-width: 300px !important; color: var(--text-color); }
.leaflet-popup-content h5 { font-family: 'Poppins', sans-serif; font-size: 1.15em; margin-bottom: 10px; color: var(--primary-color); font-weight: 700; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
.leaflet-popup-content p { margin-bottom: 5px !important; font-size: 1.15em }
.leaflet-popup-content a { color: var(--secondary-color); font-weight: 600; word-break: break-all; }
.leaflet-popup-content a:hover { color: var(--accent-color); text-decoration: underline; }
.leaflet-popup-content i { color: var(--primary-color); margin-right: 6px; width: 16px; text-align: center; }
.leaflet-popup-close-button { padding: 8px 8px 0 0 !important; color: var(--light-grey-text) !important; font-size: 1.2em !important; transition: color 0.2s ease; }
.leaflet-popup-close-button:hover { color: var(--error-color) !important; background: none !important; }


/* --- Footer --- */
footer { background: linear-gradient(to bottom, var(--primary-color), #002244); color: var(--light-text-color); padding: 60px 0 30px 0; font-size: 0.95em; }
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 45px; margin-bottom: 45px; }
.footer-column h4 { color: #fff; margin-bottom: 20px; font-size: 1.3em; font-weight: 700; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; display: inline-block; }
.footer-column ul { list-style: none; padding-left: 0; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: #ccc; transition: color 0.3s ease, padding-left 0.3s ease; }
.footer-column ul li a::before { content: "» "; opacity: 0; transition: opacity 0.3s ease; margin-right: 0px; }
.footer-column ul li a:hover { color: #fff; padding-left: 5px; }
.footer-column ul li a:hover::before { opacity: 1; }
.footer-column p { color: #ccc; margin-bottom: 10px; line-height: 1.6; }
.footer-column p strong { color: #fff; font-weight: 700; }
.footer-column p a { color: #ccc; text-decoration: underline; text-decoration-color: #777; transition: color 0.3s, text-decoration-color 0.3s; }
.footer-column p a:hover { color: #fff; text-decoration-color: #fff; }
.social-links a { margin-right: 15px; color: #ccc; font-size: 1.8em; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.social-links a:last-child { margin-right: 0; }
.social-links a:hover { color: var(--accent-color); transform: scale(1.15) rotate(-5deg); }
.copyright { text-align: center; margin-top: 45px; padding-top: 30px; border-top: 1px solid var(--secondary-color); color: #aaa; font-size: 0.9em; }
.copyright a { color: #ccc; text-decoration: underline; }
.copyright a:hover { color: #fff; }


/* --- Success Message Styles --- */
.donation-success-message { padding: 40px 30px; border-radius: var(--border-radius-large); text-align: center; animation: fadeInScaleUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); background: linear-gradient(145deg, #e8f5e9, #d1f0d3); border: 1px solid var(--success-color); }
.donation-success-message i { font-size: 4.5em;  margin-bottom: 20px; display: block; line-height: 1; text-shadow: 2px 2px 5px rgba(0,0,0,0.1); }
.donation-success-message h3 { color: var(--success-dark-text); font-size: 2em; margin-bottom: 15px; font-weight: 800; }
.donation-success-message p { font-size: 1.15em; color: var(--success-dark-text); margin-bottom: 12px; line-height: 1.6; }
.donation-success-message strong { color: var(--primary-color); font-weight: 700; }
.donation-success-message small { font-size: 0.85em; color: #495057; display: block; margin-top: 25px; word-break: break-all; }
.success-home-button { background-color: var(--success-color); font-size: 1.1em !important; padding: 12px 30px !important; }
.success-home-button:hover { background-color: #218838; }
@keyframes fadeInScaleUp { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }


/* --- Media Queries --- */

/* Tablet & Smaller Desktops */
@media (max-width: 992px) {
  html { scroll-padding-top: 0; }
  h1 { font-size: 2.8em; } h2 { font-size: 2em; } h3 { font-size: 1.5em; }
  section { padding: 60px 0; } .container { padding: 0 20px; }
  .menu-toggle { display: block; }
  #main-nav { position: fixed; top: 0; right: 0; width: 85%; max-width: 320px; height: 100%; background-color: var(--primary-color); flex-direction: column; align-items: flex-start; padding: 80px 30px 30px 30px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); box-shadow: -5px 0 15px rgba(0,0,0,0.2); z-index: 1005; overflow-y: auto; }
  #main-nav.active { transform: translateX(0); }
  #main-nav ul { flex-direction: column; align-items: flex-start; width: 100%; }
  #main-nav ul li { margin: 0 0 15px 0; width: 100%; }
  #main-nav ul li a { color: var(--light-text-color); font-size: 1.2em; padding: 10px 0; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  #main-nav ul li a:hover:not(.cta-button) { color: var(--accent-color); background: none; padding-left: 5px; }
  #main-nav .cta-button-header { margin: 20px 0 0 0; width: 100%; text-align: center; padding: 12px 20px !important; font-size: 1.1em !important; background-color: var(--accent-color); }
  #main-nav .cta-button-header:hover { background-color: var(--accent-hover-color); color: #fff !important; }
  .menu-close { display: block; }
  body::after { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s 0.4s linear; z-index: 999; }
  body.no-scroll::after { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s linear; }
  body.no-scroll::after {
  pointer-events: auto;
}
  .impact-grid { gap: 30px; }
  .impact-item-content { padding: 20px 25px 25px 25px; }
  .impact-item-content h3 { font-size: 1.3em; }
  .impact-item-content p { font-size: 0.95em; }
  .donation-amount-options { grid-template-columns: repeat(2, 1fr); }
  #donation-box-outer { max-width: 600px; }

  /* NEW: Responsive per trust badges */
  .trust-badges {
    gap: 15px 20px;
    justify-content: center;
  }
  .secure-info, .deductible-info {
    flex-basis: auto; /* Lascia che gli elementi si adattino */
    width: auto; /* Rimuovi larghezza fissa se c'era */
  }

  /* Responsive per NUOVA Sezione 5x1000 */
.cpm-content-wrapper {
  flex-direction: column !important;
  gap: 25px;           /* riduci un po’ gli spazi orizzontali */
  text-align: center;  /* centra il testo */
}
.cpm-text-content,
.cpm-cf-wrapper {
  width: 100% !important;
  max-width: none !important;
}
  .cpm-title-revamped span { display: inline; }
  .cpm-title-revamped br { display: none; }
}

/* Mobile Phones */
@media (max-width: 767px) {
  h1 { font-size: 2.4em; } h2 { font-size: 1.9em; } h3 { font-size: 1.4em; }
  section { padding: 50px 0; }
  .hero { min-height: 80vh; } .hero h1 { font-size: 2.5em; } .hero .subtitle { font-size: 1.15em;} .cta-button-hero { font-size: 1.25em; padding: 16px 35px;}
  .section-title { font-size: 2em; } .section-subtitle { font-size: 1.05em; margin-bottom: 2.5em; }
  .impact-grid { grid-template-columns: 1fr; gap: 30px; }
  .impact-item { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .impact-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); border-top-color: transparent; } /* Rimuovi bordo colorato hover su mobile */
  .impact-item-image { aspect-ratio: 16 / 9; }
  .donation-section { padding: 60px 0; }
  #donation-box-outer { padding: 30px 20px; max-width: 95%; box-shadow: var(--shadow-medium); }
  .donation-header { max-width: 95%; margin-bottom: 2.5em; }
  .donation-section h2 { font-size: 2em; } .donation-section .donation-intro { font-size: 1.1em; } .step-label { font-size: 1.1em; }
  .donation-amount-options { grid-template-columns: 1fr; gap: 15px; }
  .amount-option-wrapper { padding: 12px; } .amount-button { font-size: 1.6em; } .amount-description { font-size: 0.9em; min-height: 0; }

  /* ==== MODIFIED Media Query Highlight ==== */
  .donation-impact-highlight {
    font-size: 1.05em;
    padding: 15px 18px;
    margin-top: 25px;
    margin-bottom: 15px;
    gap: 8px;
    text-align: left;
    justify-content: flex-start;
  }
  .donation-impact-highlight i {
    font-size: 1.4em;
  }
  .donation-impact-highlight.visible {
     display: none !important; /* Aumenta per testo a capo */
   }
  /* ==== Fine Modifiche Media Query Highlight ==== */

  #custom-amount { font-size: 1.2em; } .custom-amount-wrapper { padding: 6px 12px; }
  .donation-summary { font-size: 1.15em; } .donation-summary strong { font-size: 1.2em; }
  #paypal-button-container { max-width: 100%; } .donation-footer { margin-top: 40px; padding-top: 25px;}

  .donation-benefits { gap: 15px 20px; justify-content: center; text-align: center; margin-bottom: 25px; }
  .benefit-item { width: auto; padding: 8px 12px; font-size: 0.9em; } .benefit-item i { font-size: 1.4em; }

  /* NEW: Responsive per trust badges */
  .trust-badges {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }
  .secure-info, .deductible-info {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    justify-content: center; /* Centra contenuto nei box */
  }

  /* Responsive per NUOVA Sezione 5x1000 */
  .cpm-section-revamped { padding: 60px 0; }
  .cpm-title-revamped { font-size: 2.3em; }
  .cpm-subtitle-revamped { font-size: 1.1em; }
  .cpm-cf-box-revamped { padding: 30px 25px; }
  .cpm-code-revamped { font-size: 1.9em; letter-spacing: 2px; }
  .copy-cf-button { font-size: 0.85em; padding: 6px 12px; }
  .cpm-cta-text { font-size: 1em; }


  .city-selector-wrapper { flex-direction: column; align-items: flex-start; } /* Label sopra su mobile */
  .bank-details-container { padding: 25px 20px; } /* Padding ridotto wrapper IBAN */
  #city-select-iban { font-size: 1em; padding: 10px 12px; } /* Select leggermente più piccolo */
  .bank-details-content p { font-size: 0.9em;}
  .about-content { flex-direction: column; text-align: center; gap: 30px; }
  .about-image img { margin: 0 auto; max-width: 90%; } .about-text h2 { font-size: 1.8em; } .about-text p { font-size: 1em; }
  #sicily-map { height: 450px; } .leaflet-popup-content { max-width: 240px !important; font-size: 0.9em !important; } .leaflet-popup-content h5 { font-size: 1.05em;}
  .footer-columns { grid-template-columns: 1fr; text-align: center; gap: 35px; }
  .footer-column h4 { display: inline-block; } .social-links { margin-top: 10px; }
  

  
}


/* Very Small Mobile Phones */
@media (max-width: 480px) {
  .container { padding: 0 15px; }
  h1 { font-size: 2em; } h2 { font-size: 1.7em; } h3 { font-size: 1.3em; }
  .cta-button { padding: 10px 18px; font-size: 0.9em; } .cta-button-hero { font-size: 1.15em; padding: 14px 30px;}
  .logo img { max-width: 140px; } .menu-toggle { font-size: 1.8rem; } #main-nav { padding: 70px 20px 20px 20px; } #main-nav ul li a { font-size: 1.1em; } .menu-close { font-size: 1.6rem; top: 15px; right: 15px;}
  #donation-box-outer { padding: 25px 15px; } .step-label { font-size: 1em; }
  .type-button { font-size: 0.9em; padding: 14px 8px; gap: 4px; } .type-button i { font-size: 1.2em; }
  .amount-button { font-size: 1.5em; } .amount-description { font-size: 0.85em; }

  /* ==== MODIFIED Media Query Highlight ==== */
  .donation-impact-highlight {
    font-size: 1em;
    padding: 12px 15px;
  }
  .donation-impact-highlight i {
    font-size: 1.3em;
  }
   /* ==== Fine Modifiche Media Query Highlight ==== */

  .donation-summary { font-size: 1.05em; } .donation-summary strong { font-size: 1.1em; }
  .bank-details-container { padding: 25px 15px; }
  #city-select-iban { font-size: 0.95em; padding: 10px 12px; }
  .bank-details-content p { font-size: 0.9em;}
  .donation-success-message { padding: 30px 20px; } .donation-success-message h3 { font-size: 1.7em; } .donation-success-message p { font-size: 1em; } .donation-success-message i { font-size: 3.5em; }
  .footer-columns { gap: 30px; } .footer-column h4 { font-size: 1.2em; } .social-links a { font-size: 1.6em; margin-right: 12px;}

  /* Responsive per NUOVA Sezione 5x1000 */
  .cpm-title-revamped { font-size: 1.9em; }
  .cpm-subtitle-revamped { font-size: 1em; }
  .cpm-code-revamped { font-size: 1.6em; letter-spacing: 1px; }
  .cpm-label-revamped { font-size: 0.9em;}
  .impact-icon { display: none; }
}

/* Centra i pulsanti di condivisione */
.share-container {
  text-align: center;
  margin-top: 20px;
}
.whatsapp-share {
  display: inline-block;
  background-color: #25D366;
}
.whatsapp-share:hover {
  background-color: #1DA851;
}

/* === Hero 5×1000 === */
.five-per-thousand-hero {
  position: relative;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  padding: 120px 0;
  color: #fff;
}
.five-per-thousand-hero__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
}
.five-per-thousand-hero__content {
  position: relative;
  z-index: 1;
}
.five-per-thousand-hero h1 {
  font-size: 2.5rem; margin-bottom: 0.5rem;
}
.five-per-thousand-hero p {
  font-size: 1.1rem; margin-bottom: 1.5rem;
}
.btn--primary {
  background: #ff6600; color: #fff; border: none;
  padding: 0.75rem 1.5rem; font-size: 1rem;
  border-radius: 4px; transition: background 0.3s;
}
.btn--primary:hover { background: #e65c00; }
.btn--large { font-size: 1.1rem; }
.btn--primary.copied { background: #28a745; }

/* === Instructions === */
.instructions {
  padding: 80px 0;
  text-align: center;
}
.instructions__steps {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center; margin-top: 2rem;
}
.step {
  max-width: 220px;
}
.step i {
  font-size: 2.5rem; color: var(--primary-color);
}
.step h3 {
  margin: 1rem 0 0.5rem; font-size: 1.2rem;
}
.step p {
  color: var(--medium-text-color);
}

/* === Benefits === */
.five-per-thousand-benefits { padding: 80px 0; }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.benefit-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-soft); text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.benefit-card img {
  width: 100%; height: 160px; object-fit: cover;
}
.benefit-card h4 {
  margin: 1rem 0 0.5rem; color: var(--primary-color);
}
.benefit-card p {
  padding: 0 1rem 1rem; color: var(--medium-text-color);
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* === FAQ === */
.faq { padding: 80px 0; }
.faq__item { margin-bottom: 1.5rem; }
.faq__question {
  width: 100%;
  background: var(--light-bg);
  border: none; text-align: left;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.faq__answer {
    background: var(--very-light-bg);
    overflow: hidden;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
}

.faq__answer.active {
    max-height: 500px; /* Adatta questo valore se necessario, o calcola con JS */
    padding-top: 20px;   /* O il valore di padding che preferisci */
    padding-bottom: 20px;
}

.faq__answer p {
    /* Se il padding è gestito da .faq__answer.active, qui potresti non aver bisogno di padding-top/bottom */
    padding-left: 25px; 
    padding-right: 25px;
    margin: 0;
}

/* styles.css - Aggiunte/Verifiche per la pagina 5x1000 */

/* --- Stili per Sezione 'How it Works' (Instructions) --- */
.instructions {
    padding: 60px 0; /* Riduci padding se preferisci */
    text-align: center;
}
.instructions__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem; /* Spazio tra i box */
    justify-content: center;
    margin-top: 3rem;
}
.step {
    background-color: var(--very-light-bg); /* Sfondo bianco */
    padding: 25px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    max-width: 240px; /* Larghezza massima per step */
    flex: 1 1 200px; /* Flex per adattarsi */
    border-top: 4px solid var(--secondary-color); /* Bordo colorato sopra */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.step i {
    font-size: 2.8rem; /* Dimensione icona */
    color: var(--primary-color); /* Colore icona */
    margin-bottom: 15px;
    display: block; /* Assicura che l'icona sia su una riga sua */
}
.step h3 {
    margin: 0 0 0.5rem 0; /* Riduci margini */
    font-size: 1.25rem; /* Dimensione titolo step */
    color: var(--primary-color);
}
.step p {
    color: var(--medium-text-color);
    font-size: 0.95em;
    line-height: 1.6;
}

/* --- Stili per Sezione 'Benefits' --- */
.five-per-thousand-benefits {
    padding: 80px 0;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* Grid responsivo */
    gap: 30px; /* Spazio tra le card */
    margin-top: 2.5rem;
}
.benefit-card {
    background: var(--very-light-bg);
    border-radius: var(--border-radius-large); /* Usa angoli più stondati */
    overflow: hidden;
    box-shadow: var(--shadow-medium); /* Ombra media */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Allinea contenuto verticalmente */
    border: 1px solid var(--border-color);
}
.benefit-card img {
    width: 100%;
    height: 180px; /* Altezza fissa immagine */
    object-fit: cover; /* Mantiene proporzioni immagine */
    display: block;
    border-radius: 0; /* No bordi arrotondati all'immagine interna */
}
.benefit-card h4 {
    margin: 1.2rem 1rem 0.5rem 1rem; /* Spaziatura titolo */
    color: var(--primary-color);
    font-size: 1.3em; /* Dimensione titolo card */
    font-family: 'Poppins', sans-serif;
}
.benefit-card p {
    padding: 0 1.2rem 1.5rem 1.2rem; /* Padding testo */
    color: var(--medium-text-color);
    font-size: 0.98em;
    line-height: 1.65;
    flex-grow: 1; /* Fa sì che il testo occupi lo spazio rimanente */
}
.benefit-card:hover {
    transform: translateY(-8px); /* Effetto sollevamento */
    box-shadow: var(--shadow-strong); /* Ombra più forte */
}


/* --- Stili per Sezione FAQ --- */
.faq {
    padding: 80px 0;
    background-color: var(--very-light-bg); /* Sfondo bianco */
}
.faq__item {
    margin-bottom: 1rem; /* Spazio tra domande */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden; /* Per contenere la risposta */
}
.faq__question {
    width: 100%;
    background: var(--light-bg); /* Sfondo leggermente grigio per domanda */
    border: none;
    text-align: left;
    padding: 15px 20px; /* Padding domanda */
    font-size: 1.15em; /* Dimensione testo domanda */
    font-weight: 600; /* Grassetto leggero */
    color: var(--primary-color);
    cursor: pointer;
    position: relative; /* Per posizionare l'icona */
    display: flex; /* Per allineare testo e icona */
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}
.faq__question:hover {
    background-color: #e9ecef; /* Sfondo leggermente più scuro on hover */
}
.faq__question::after {
    content: "\f282";             /* UN solo backslash + codice esadecimale */
    font-family: 'bootstrap-icons';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    /* le tue proprietà */
}

.faq__question.active::after {
    transform: rotate(180deg); /* Ruota l'icona quando attivo */
}
.faq__answer {
    max-height: 0; /* Nascosto di default */
    overflow: hidden;
    transition: max-height 0.4s ease-out; /* Transizione fluida */
    background: var(--very-light-bg); /* Sfondo bianco per risposta */
}
.faq__answer p,
.faq__answer ul { /* Stili per contenuto risposta */
    padding: 20px 25px;
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color);
}
.faq__answer ul {
    padding-left: 45px; /* Indentazione per liste */
    margin-top: 10px;
}
.faq__answer li {
    margin-bottom: 8px;
}
.faq__answer strong {
    color: var(--primary-color);
}

/* Stile feedback bottone copia (se non già presente) */
.copy-cf-button.copied {
    background-color: var(--success-color) !important; /* Usa !important se necessario per sovrascrivere */
    border-color: var(--success-color) !important;
    color: #fff !important;
    cursor: default;
}
.copy-cf-button.copied i {
    color: #fff !important; /* Assicura icona bianca */
}


/* Assicurati che gli stili .cpm-* siano come li hai forniti */
/* Esempio di verifica per .cpm-code-revamped (già fornito) */
.cpm-code-revamped {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  user-select: all; -webkit-user-select: all; -moz-user-select: all;
  flex-grow: 1;
  text-align: center;
 }

/* Responsive - Assicurati che le media query coprano le nuove sezioni */
@media (max-width: 767px) {
    .instructions__steps {
        flex-direction: column; /* Passa a colonna su mobile */
        align-items: center; /* Centra gli step */
        gap: 1.5rem;
    }
    .step {
        max-width: 90%; /* Occupa più larghezza */
        flex-basis: auto;
    }
    .benefits-grid {
        grid-template-columns: 1fr; /* Una colonna su mobile */
        gap: 25px;
    }
    .faq__question {
        font-size: 1.05em;
        padding: 12px 15px;
    }
    .faq__answer p, .faq__answer ul {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    .cpm-code-revamped { /* Già presente nella tua CSS originale */
        font-size: 1.9em;
        letter-spacing: 2px;
    }
     .copy-cf-button { /* Già presente nella tua CSS originale */
        font-size: 0.85em;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
     .cpm-code-revamped { /* Già presente nella tua CSS originale */
        font-size: 1.6em;
        letter-spacing: 1px;
    }
    .faq__question {
        font-size: 1em;
    }
}

/* --- Fixed Bottom 5x1000 Bar --- */
.five-per-thousand-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Use a gradient similar to footer, or a solid color */
    background: linear-gradient(90deg, var(--primary-color) 0%, #002244 100%);
    color: var(--light-text-color);
    padding: 12px 0; /* Vertical padding, adjust height here */
    z-index: 990; /* Below mobile menu (1005), above most other content */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(0); /* Visible by default */
    transition: transform 0.4s ease-out, opacity 0.3s ease, max-height 0.3s ease;
    will-change: transform;
    border-top: 2px solid var(--accent-color);
}

/* State when hidden */
.five-per-thousand-fixed-bar.hidden {
    transform: translateY(100%); /* Slide down to hide */
    pointer-events: none; /* Disable clicks when hidden */
    opacity: 0;
    max-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    visibility: hidden !important;
}

.fixed-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* Space between text/actions and close button */
    position: relative; /* Needed for absolute positioning of close button */
}

.fixed-bar-text {
    flex-grow: 1; /* Allow text to take available space */
    margin-bottom: 0;
    font-size: 1.0em;
    line-height: 1.4;
    color: #ddd; /* Lighter text color */
}

.fixed-bar-text strong {
    color: var(--accent-color); /* Highlight CF and 'gratuito' */
    font-weight: 700;
    white-space: nowrap; /* Prevent CF from breaking */
}

.fixed-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between buttons */
    flex-shrink: 0; /* Prevent actions from shrinking */
}

/* Ensure the copy button in the bar is styled correctly */
.five-per-thousand-fixed-bar .copy-cf-button {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff !important;
    padding: 7px 12px; /* Smaller padding */
    font-size: 0.9em; /* Smaller font */
    font-weight: 600;
    gap: 5px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; /* Add transform transition */
    box-shadow: none; /* Remove default CTA button shadow */
}
.five-per-thousand-fixed-bar .copy-cf-button i {
     font-size: 1em; /* Adjust icon size */
}
.five-per-thousand-fixed-bar .copy-cf-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
     transform: translateY(0); /* Remove translateY effect from base CTA */
     box-shadow: none;
}
.five-per-thousand-fixed-bar .copy-cf-button:active {
     background-color: rgba(255, 255, 255, 0.35);
      transform: translateY(0);
}
.five-per-thousand-fixed-bar .copy-cf-button.copied {
    background-color: var(--success-color) !important;
    border-color: var(--success-color) !important;
    color: #fff !important;
    cursor: default;
}

/* Style for the primary action button in the bar */
.five-per-thousand-fixed-bar .cta-button:not(.copy-cf-button) {
     padding: 7px 15px; /* Match height with copy button */
     font-size: 0.9em;
     transform: translateY(0); /* Remove translateY effect from base CTA */
     box-shadow: none;
}
.five-per-thousand-fixed-bar .cta-button:not(.copy-cf-button):hover {
    transform: translateY(0); /* Remove translateY effect */
    box-shadow: none;
}


/* Style for the close button (positioned absolutely) */
.five-per-thousand-fixed-bar .close-bar {
    position: absolute;
    top: 50%;
    right: 0; /* Position from the right edge of .fixed-bar-content */
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3em; /* Size of the close icon */
    cursor: pointer;
    padding: 8px; /* Add padding for easier clicking */
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.five-per-thousand-fixed-bar .close-bar:hover {
    color: #fff;
    transform: translateY(-50%) rotate(90deg);
}

/* Adjust padding-bottom on body to prevent content being hidden by the bar */
/* This adds a space at the bottom equal to the bar's height */
/* Ensure this comes after your base body styles */
body {
    
    transition: padding-bottom 0.3s ease;
}
/* If the banner is hidden, remove the padding */
body.banner-hidden {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}


/* --- Media Queries for Fixed Bar --- */
@media (max-width: 992px) {
     .five-per-thousand-fixed-bar {
         padding: 10px 0;
     }
     .fixed-bar-text {
         font-size: 0.95em;
     }
     .five-per-thousand-fixed-bar .copy-cf-button,
     .five-per-thousand-fixed-bar .cta-button:not(.copy-cf-button) {
         padding: 6px 10px;
         font-size: 0.85em;
     }
     .fixed-bar-actions {
         gap: 6px;
     }
      .fixed-bar-close { /* Use class name */
         font-size: 1.2em;
         padding: 6px;
     }
      /* Adjust body padding for smaller bar height */
     body {
         padding-bottom: 50px; /* Adjust this */
     }
}


@media (max-width: 767px) {
    .fixed-bar-content {
        flex-direction: column; /* Stack content vertically */
        gap: 10px; /* Reduce gap */
        text-align: center;
        padding-right: 30px; /* Add padding to make space for the close button */
    }
    .fixed-bar-text {
        flex-basis: 100%; /* Allow text to take full width */
        order: 1; /* Order text first */
        text-align: center;
         color: #fff; /* Use pure white on mobile dark background */
    }
    .fixed-bar-actions {
        justify-content: center; /* Center buttons */
        gap: 8px;
        order: 2; /* Order actions second */
        flex-wrap: wrap; /* Allow buttons to wrap */
    }
     .five-per-thousand-fixed-bar .copy-cf-button span {
         display: none; /* Hide "Copia CF" text on very small screens */
     }
      .five-per-thousand-fixed-bar .copy-cf-button {
         padding: 8px; /* Make button square-ish with just icon */
         gap: 0;
     }

     .five-per-thousand-fixed-bar .close-bar {
         top: 10px; /* Adjust position */
         right: 10px;
         transform: none; /* No translateY on mobile */
          color: #fff; /* Ensure visible on dark background */
     }
      .five-per-thousand-fixed-bar .close-bar:hover {
         transform: none; /* No rotation on hover on mobile */
     }

     /* Adjust body padding for mobile bar height */
     body {
         padding-bottom: 80px; /* Estimate height needed for stacked content + padding */
     }
}

@media (max-width: 480px) {
      .fixed-bar-actions {
          gap: 6px;
      }
      .five-per-thousand-fixed-bar .cta-button:not(.copy-cf-button) {
           padding: 6px 10px;
           font-size: 0.8em;
      }
      body {
         padding-bottom: 90px; /* Maybe more padding needed */
     }
}

/* --- Map Section Styling --- */
.map-section {
    padding: 80px 0;
    background: linear-gradient(165deg, var(--map-section-bg) 0%, #eef3f8 100%); /* Gradiente leggero */
    border-top: 1px solid var(--border-color);
}

/* Aumenta lo spazio tra mappa e lista */
.map-content-wrapper {
    display: flex;
    gap: 50px; /* AUMENTATO: Più spazio verticale sotto la mappa */
    flex-wrap: wrap;
    align-items: flex-start;
}


#sicily-map-container {
    position: relative;
    flex-grow: 2; /* La mappa occupa più spazio */
    min-width: 320px; /* Larghezza minima della mappa */
    height: 550px; /* Altezza fissa mappa */
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-strong); /* Ombra più forte */
    border: 1px solid var(--medium-border-color);
    background-color: #e0e0e0; /* Fallback background */
}

#sicily-map {
     width: 100%;
     height: 100%; /* Occupa il 100% del contenitore */
     position: relative; /* Necessary for Leaflet */
}

/* Stili Loader (già buoni, verifica che siano così) */
.map-loader {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9); /* Sfondo semi-trasparente */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    z-index: 100;
    transition: opacity 0.5s ease-out;
    pointer-events: all; /* Permette di bloccare click durante il loading */
}
.map-loader .spinner {
    width: 45px; height: 45px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
.map-loader p {
    color: var(--primary-color);
    font-weight: 600;
}
/* Nascondi loader quando la mappa è pronta */
#sicily-map.loaded + .map-loader { /* Se usi il div loader DENTRO il map div */
     opacity: 0;
     pointer-events: none;
     display: none; /* Rimuovi per accessibilità se non visibile */
}
/* Oppure se il loader è un fratello del map-container, usa un selettore diverso */
/* Esempio: #sicily-map-container.loaded .map-loader { ... } */
/* Dato che l'HTML prevede il loader DENTRO #sicily-map, il primo selettore è corretto */


/* --- Stili per il nuovo elenco sedi --- */
/* Modifica il contenitore della lista per centrare gli elementi */
.location-list {
    flex-grow: 1;
    display: flex;
    gap: 10px; /* AUMENTATO: Più spazio tra i box */
    overflow-x: auto;
    padding-bottom: 15px;
    justify-content: center; /* AGGIUNTO: Centra i box orizzontalmente */
    padding-left: 15px;  /* Padding laterale per non far attaccare i box ai bordi durante lo scroll */
    padding-right: 15px;
	padding-top: 10px;

    /* Mantenuti da prima */
    overflow-y: hidden;
    max-height: none;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}
.location-list::-webkit-scrollbar {
    height: 8px;
    width: auto;
}
.location-list::-webkit-scrollbar-track {
    background: transparent;
}
.location-list::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 4px;
    border: 2px solid transparent;
}

.loading-locations-placeholder {
    text-align: center;
    color: var(--light-grey-text);
    font-style: italic;
    padding: 20px;
    width: 100%; /* Occupa tutta la larghezza se è l'unico elemento */
}

/* Modifica i singoli box */
.location-item {
    display: block;
    background-color: var(--very-light-bg);
    padding: 20px 25px; /* AUMENTATO: Più padding interno */
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-soft);
    text-align: left;
    flex: 0 0 auto;
    min-width: 300px; /* AUMENTATO: Larghezza minima box */
    appearance: none;
    outline: none;
}


.location-item:hover {
    background-color: #eef3f8;
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}
.location-item:active {
    background-color: #e7f0f7;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}
.location-item:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Modifica le dimensioni del testo */
.location-item h5 {
    font-size: 1.4em; /* AUMENTATO ANCORA: Titolo città più grande */
    color: var(--primary-color);
    margin-bottom: 12px; /* Leggermente più spazio sotto il titolo */
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}
.location-item p {
    font-size: 1.1em; /* AUMENTATO ANCORA: Testo dettagli più grande */
    color: var(--medium-text-color);
    margin-bottom: 8px;
    line-height: 1.65; /* Leggermente aumentata interlinea */
}
.location-item p i {
    color: var(--secondary-color);
    margin-right: 6px; /* Spazio icona */
}
.location-item a { /* Stili per eventuali link nel testo */
    color: var(--medium-text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.location-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


/* --- Responsive Adjustments (MODIFICATI) --- */
@media (max-width: 992px) {
    .map-content-wrapper {
        /* Ripristina gap verticale se 50px è troppo */
        gap: 20px;
        flex-direction: column;
    }
     #sicily-map-container {
        /* ... stili mappa invariati ... */
         width: 100%;
         height: 450px;
     }
     .location-list {
         /* ... ripristino layout verticale ... */
         display: block;
         overflow-x: hidden;
         overflow-y: auto;
         max-height: 400px;
         padding-bottom: 0;
         padding-left: 0; /* Reset padding */
         padding-right: 0; /* Reset padding */
         justify-content: initial; /* Reset centering */
         gap: 0;
         width: 100%;
		 padding-top: 20px;
     }
     .location-item {
         margin-bottom: 15px;
         width: 100%;
         min-width: auto; /* Reset min-width */
         flex: none;
     }
     .location-item:last-child {
        margin-bottom: 0;
     }
     /* Ripristina scrollbar verticale Webkit */
    .location-list::-webkit-scrollbar {
        width: 8px;
        height: auto;
    }
    /* Non serve ripristinare justify-content perché display: block */
}

@media (max-width: 767px) {
     #sicily-map-container {
        height: 350px;
     }
     .location-list {
        max-height: 300px;
     }
    /* Controlla dimensioni font su mobile e aggiusta se necessario */
    .location-item h5 {
        font-size: 1.25em; /* Esempio: leggermente ridotto per mobile */
    }
    .location-item p {
        font-size: 1.0em; /* Esempio: leggermente ridotto per mobile */
    }
}