/* =============================================
   CITTÀ DELLE PALME - Main Stylesheet
   Associazione Progetto Issacar CDP ETS
   ============================================= */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:       #1E3A2F;
  --green-forest:     #2D6A4F;
  --green-primary:    #8DC63F;
  --green-mid:        #40916C;
  --green-light:      #74C69D;
  --tortora-light:    #F0EAE0;
  --tortora:          #D8CFC4;
  --caffe:            #7B5038;
  --gold:             #C9A84C;
  --gold-dark:        #9E7B2D;
  --cream:            #F8F5EF;
  --white:            #FFFFFF;
  --text-dark:        #1C1C1C;
  --text-mid:         #4A4A4A;
  --text-light:       #888888;
  --border:           #DDD8CE;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height:  75px;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow:      0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.15);
  --transition:  0.3s ease;
  --container:   1180px;
  --sec-pad:     80px 24px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* === CONTAINER === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.25; color: var(--green-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--green-primary); color: var(--green-dark); border-color: var(--green-primary); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: var(--white); color: var(--green-dark); border-color: var(--white); }
.btn-caffe { background: var(--caffe); color: var(--white); border-color: var(--caffe); }
.btn-caffe:hover { background: #5c3a27; border-color: #5c3a27; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-green { background: transparent; color: var(--green-primary); border-color: var(--green-primary); }
.btn-outline-green:hover { background: var(--green-primary); color: var(--green-dark); }

/* === HEADER === */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 18px rgba(0,0,0,0.05);
}

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

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; color: var(--green-dark); flex-shrink: 0; }
.logo-img {
  width: 46px; height: 46px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--green-primary); line-height: 1.1; }
.logo-tagline { font-size: 0.65rem; color: var(--text-light); line-height: 1; margin-top: 2px; }

/* ── Nav ── */
nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 0; list-style: none; }

/* Link base */
.nav-links a {
  position: relative;
  color: var(--green-dark);
  font-size: 0.855rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  white-space: nowrap;
  transition: color 0.24s ease;
  background: transparent;
  border-radius: 0;
}

/* Sottolineatura animata */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 13px; right: 13px;
  height: 1.5px;
  background: var(--green-primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(.25,.8,.25,1);
}
.nav-links a:hover             { color: var(--green-primary); background: transparent; }
.nav-links a:hover::after      { transform: scaleX(1); }
.nav-links a.active            { color: var(--green-primary); font-weight: 600; }
.nav-links a.active::after     { transform: scaleX(1); }

/* "Diventa Volontario" – pill outline, separato con spazio */
.nav-links a[href="diventa-un-volontario.html"] {
  margin-left: 18px;
  padding: 6px 18px;
  border: 1.5px solid var(--green-primary);
  border-radius: 100px;
  color: var(--green-dark);
  font-weight: 600;
  letter-spacing: 0.015em;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}
.nav-links a[href="diventa-un-volontario.html"]::after { display: none; }
.nav-links a[href="diventa-un-volontario.html"]:hover  {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--green-dark);
}
.nav-links a[href="diventa-un-volontario.html"].active {
  background: rgba(141,198,63,0.12);
  border-color: var(--green-primary);
  color: var(--green-dark);
}

/* "Donazioni" – pill filled caffè */
.nav-links .btn-nav-donate {
  margin-left: 8px;
  padding: 7px 22px;
  background: var(--caffe);
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(110,62,35,0.18);
  transition: background 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}
.nav-links .btn-nav-donate::after { display: none; }
.nav-links .btn-nav-donate:hover  {
  background: #5c3a27;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(110,62,35,0.28);
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--green-dark); border-radius: 2px; transition: all var(--transition); }

/* === HERO SLIDER === */
.hero-slider {
  margin-top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
}

/* Singolo slide */
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }

/* Gradiente fallback per ogni slide (sostituire con vere immagini) */
.slide:nth-child(1) { background-color: #1E3A2F; }
.slide:nth-child(2) { background-color: #1A3028; }
.slide:nth-child(3) { background-color: #223520; }

/* Overlay scuro per leggibilità testo */
.slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,30,15,0.62) 0%, rgba(0,20,10,0.25) 100%);
  z-index: 1;
}

/* Contenuto testuale */
.slide-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 0 8% 0 7%;
  z-index: 2;
}

.slide-text-sm {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  margin-bottom: 6px;
  animation: slideIn 0.8s ease both;
}
.slide-text-lg {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
  animation: slideIn 0.9s 0.1s ease both;
}
.slide-text-md {
  color: rgba(255,255,255,0.88);
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 36px;
  animation: slideIn 1s 0.2s ease both;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Frecce prev / next */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.45);
  color: var(--white);
  font-size: 1.5rem; font-weight: 300;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  user-select: none;
}
.slider-btn:hover { background: rgba(255,255,255,0.35); border-color: var(--white); }
.slider-btn.prev { left: 24px; }
.slider-btn.next { right: 24px; }

/* Pallini / dots */
.slider-dots {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.38);
  cursor: pointer;
  transition: all var(--transition);
}
.dot.active { background: var(--white); transform: scale(1.25); }

/* === PAGE HERO (inner pages) === */
.page-hero {
  height: 260px; display: flex; align-items: center; justify-content: center;
  background: var(--green-primary);
  position: relative; overflow: hidden; margin-top: var(--nav-height);
  border-bottom: 4px solid var(--green-forest);
}
.page-hero-content { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.page-hero h1 { color: var(--green-dark); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero .section-label { color: rgba(30,58,47,0.70) !important; }
.page-hero .breadcrumb { color: rgba(30,58,47,0.60); font-size: 0.82rem; margin-top: 10px; }
.page-hero .breadcrumb a { color: var(--green-dark); text-decoration: underline; }
.page-hero .breadcrumb a:hover { opacity: 0.7; }

/* Page-hero con foto di sfondo */
.page-hero--photo {
  height: 630px;
  background-color: var(--green-dark);
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
  z-index: 0;
}
.page-hero--photo h1               { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.page-hero--photo .section-label   { color: rgba(255,255,255,0.70) !important; }
.page-hero--photo .breadcrumb      { color: rgba(255,255,255,0.60); }
.page-hero--photo .breadcrumb a    { color: rgba(255,255,255,0.85); }
.page-hero--photo .breadcrumb a:hover { opacity: 0.75; }

/* === SECTIONS === */
.section { padding: var(--sec-pad); }
.section-white  { background: var(--white); }
.section-cream  { background: var(--tortora-light); }
.section-green  { background: var(--tortora-light); }
.section-dark   { background: var(--green-dark); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 12px;
}
.section-title { margin-bottom: 14px; }
.section-desc { font-size: 1.05rem; max-width: 580px; margin: 0 auto; color: var(--text-mid); }
.section-title-xl { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 0; }

/* === WELCOME / VIDEO SECTION === */
.welcome-grid { gap: 60px; align-items: flex-start; }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
.welcome-text { padding-top: 4px; }

/* FB Video card */
.fb-video-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
}
.fb-video-card .video-wrapper {
  border-radius: 0;
  box-shadow: none;
}
.fb-video-card-top {
  background: #1877F2;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.fb-video-card-top i { font-size: 1.1rem; }
.fb-video-card-caption {
  background: var(--tortora-light);
  color: var(--text-mid);
  padding: 13px 20px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  line-height: 1.4;
}
.fb-video-card-caption i { color: var(--gold); font-size: 1rem; flex-shrink: 0; }

/* === FB VIDEO POSTER === */
.fb-poster {
  position: relative;
  padding-bottom: 56.25%;
  cursor: pointer;
  overflow: hidden;
  background-color: #8DC63F;
  background-size: cover;
  background-position: center;
}
.fb-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.06) 100%);
  transition: background 0.3s ease;
}
.fb-poster:hover .fb-poster-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.02) 100%);
}
.fb-poster-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; z-index: 1;
}
.fb-poster-btn {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.45);
  color: var(--white);
  font-size: 1.9rem;
  display: flex; align-items: center; justify-content: center;
  padding-left: 5px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.fb-poster:hover .fb-poster-btn {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}
.fb-poster-label {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === FB VIDEO MODAL === */
.fb-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}
.fb-modal.open { opacity: 1; visibility: visible; }
.fb-modal-inner {
  position: relative;
  width: 100%; max-width: 900px;
}
.fb-modal-close {
  position: absolute;
  top: -48px; right: 0;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 40px; height: 40px;
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.fb-modal-close:hover { background: rgba(255,255,255,0.25); }
.fb-modal-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0; overflow: hidden;
  border-radius: 14px;
  background: #000;
}
.fb-modal-video iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
.welcome-text h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: 20px; }

/* === DIVIDER === */
.divider { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 18px auto; }
.divider-left { margin: 18px 0; }

/* === GRID === */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* === CARDS === */
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 54px; height: 54px; background: var(--cream); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.5rem;
}
.card h3 { margin-bottom: 12px; }

/* === STATS === */
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item { background: var(--white); padding: 28px 20px; text-align: center; }
.stat-number {
  font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700;
  color: var(--green-primary); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 6px; }

/* === SOSTEGNO ACCORDION 3D === */
.section-sostegno { padding: 0; }

.sostegno-header {
  background: var(--green-primary);
  padding: 28px 24px;
  text-align: center;
}
.sostegno-header h2 { color: var(--green-dark); margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }

.acc-container {
  display: flex;
  height: 520px;
}

.acc-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.72s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.72s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s ease;
  transform: perspective(1400px) rotateY(6deg) scaleY(0.97);
  transform-origin: left center;
  border-right: 2px solid rgba(255,255,255,0.12);
}
.acc-panel:nth-child(2) {
  transform: perspective(1400px) rotateY(0deg) scaleY(0.97);
  transform-origin: center;
}
.acc-panel:last-child {
  transform: perspective(1400px) rotateY(-6deg) scaleY(0.97);
  transform-origin: right center;
  border-right: none;
}
.acc-panel.active {
  flex: 3.2;
  transform: perspective(1400px) rotateY(0deg) scaleY(1);
  box-shadow: 0 0 60px rgba(0,0,0,0.35);
  z-index: 2;
}

/* Fallback colori per slide senza immagine */
.acc-panel:nth-child(1) { background: #1E3A2F; }
.acc-panel:nth-child(2) { background: #2A5040; }
.acc-panel:nth-child(3) { background: #1A3028; }

.acc-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.5;
  transition: opacity 0.72s ease, transform 0.72s ease;
  transform: scale(1.06);
}
.acc-panel.active .acc-bg {
  opacity: 0.75;
  transform: scale(1);
}

/* Overlay gradiente */
.acc-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,10,5,0.82) 0%, rgba(0,20,10,0.35) 55%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.acc-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
}

.acc-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}
.acc-panel.active .acc-icon {
  opacity: 1;
  transform: translateY(0);
}

.acc-label {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.25;
  transition: transform 0.4s ease;
}
.acc-panel:not(.active) .acc-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin: 0 auto 0 0;
}

.acc-reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease 0.15s, opacity 0.45s ease 0.2s;
}
.acc-panel.active .acc-reveal {
  max-height: 180px;
  opacity: 1;
}
.acc-reveal p {
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  margin: 14px 0 18px;
}
.acc-btn { font-size: 0.85rem; padding: 10px 24px; }

/* === BROCHURE / DOCUMENTO DI BUONA CAUSA === */
.brochure-section { /* padding ereditato da .section → --sec-pad */ }
.brochure-grid { gap: 64px; align-items: center; }
.brochure-text h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.2; margin-bottom: 0; }
.brochure-text p { margin-bottom: 14px; }

.brochure-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.brochure-img {
  width: 100%; height: auto;
  display: block;
  transition: transform 0.6s ease;
  /* Placeholder finché non c'è l'immagine reale */
  min-height: 380px;
  background: linear-gradient(145deg, #e8f0ec 0%, #c8ddd2 100%);
  object-fit: cover;
}
.brochure-img-wrap:hover .brochure-img { transform: scale(1.03); }

/* === CISAP SECTION === */
.cisap-grid { gap: 64px; align-items: center; }

.cisap-logo-wrap { display: flex; align-items: center; justify-content: center; }

.cisap-logo {
  background: #1565C0;
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  max-width: 300px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(21,101,192,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.cisap-logo:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(21,101,192,0.45);
}
.cisap-name {
  display: block;
  font-family: var(--font-body);
  font-size: 3.6rem; font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 18px;
}
.cisap-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 700;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

/* === AIUTACI AD AIUTARE === */
.aiutaci-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}
.aiutaci-content {
  background: var(--tortora-light);
  padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.aiutaci-content h2 {
  color: var(--green-dark);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin-bottom: 0;
}
.aiutaci-content p { color: var(--text-mid); }
.aiutaci-content strong { color: var(--text-dark); }

.aiutaci-img {
  background-size: cover;
  background-position: center;
  background-color: var(--tortora);
  position: relative;
  overflow: hidden;
}
.aiutaci-img::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(240,234,224,0.35) 0%, transparent 55%);
}

/* === CTA BANNER === */
.cta-banner { background: var(--green-primary); padding: var(--sec-pad); text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p  { color: rgba(255,255,255,0.88); margin-bottom: 32px; }
.cta-banner .section-label { color: rgba(255,255,255,0.72); }
.cta-gold { background: var(--tortora-light); }
.cta-gold h2 { color: var(--text-dark) !important; }
.cta-gold p  { color: var(--text-mid) !important; }

.cta-light {
  background: var(--white);
  border-top: 1px solid var(--border);
}
.cta-light h2 { color: var(--green-dark) !important; }
.cta-light p  { color: var(--text-mid) !important; }

/* === INFO BOX === */
.info-box {
  background: var(--cream); border-left: 4px solid var(--green-primary);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 20px 0;
}
.info-box.gold { border-color: var(--gold); background: #FFF9EE; }
.info-box strong { display: block; margin-bottom: 4px; color: var(--text-dark); }

/* === FORMS === */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%; padding: 11px 15px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.92rem; color: var(--text-dark); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(141,198,63,0.15);
}
textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* === CONTACT INFO === */
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-icon {
  width: 42px; height: 42px; background: var(--cream); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.05rem;
}
.contact-item p { margin: 0; }
.contact-item a { color: var(--green-mid); }
.contact-item a:hover { text-decoration: underline; }

/* === DONATION BOX === */
.donation-box {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px;
  border: 2px solid var(--border); box-shadow: var(--shadow-sm);
}
.donation-box h3 { font-size: 1.3rem; margin-bottom: 8px; }
.donation-iban {
  font-family: 'Courier New', monospace; font-size: 1.1rem;
  background: var(--cream); padding: 12px 16px; border-radius: var(--radius);
  letter-spacing: 0.08em; color: var(--text-dark); margin: 12px 0;
  border: 1px solid var(--border);
}

/* === SERVICE LIST === */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 32px 0;
}
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-left-color var(--transition);
}
.service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-left-color: var(--green-primary);
}

/* Icona FA */
.si-icon {
  width: 46px; height: 46px;
  background: var(--green-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--green-dark);
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(141,198,63,0.30);
  transition: transform var(--transition);
}
.service-item:hover .si-icon {
  transform: scale(1.08) rotate(-4deg);
}

.si-body { flex: 1; }
.si-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.si-body p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.55;
}

/* === PARTNER / PROGRAMMA EUROPEO === */
.partner-section { border-top: 3px solid var(--border); }

.eu-logos-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 36px;
}
.fead-combo-img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.fead-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}
.fead-badge {
  background: linear-gradient(135deg, #003B8E 0%, #0053C8 100%);
  border-radius: var(--radius);
  padding: 18px 48px;
  box-shadow: 0 6px 24px rgba(0,59,142,0.28);
}
.fead-badge-label {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* === COMUNICAZIONE UE REG. 1060/2021 === */
.pn-comunicazione {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
}
.pn-com-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
  line-height: 1.5;
}
.pn-com-header i { margin-top: 2px; flex-shrink: 0; }
.pn-com-text {
  font-size: 0.79rem;
  line-height: 1.72;
  color: var(--text-mid);
  margin: 0 0 10px;
}
.pn-blank {
  border-bottom: 1.5px dashed var(--tortora);
  color: var(--text-light);
  padding: 0 2px;
  white-space: nowrap;
}
.pn-com-pending {
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-style: italic;
}

.banco-collab-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.banco-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}
.banco-logo-box img {
  max-height: 60px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}
.banco-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.banco-info-title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.banco-info-sub {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* =============================================
   ATTIVITÀ SOCIALI — GALLERY
   ============================================= */

.activity-gallery-section { padding-top: 48px; }

/* Grid: card featured (top, full) + 2 affiancate (bottom) */
.activity-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 420px 320px;
  gap: 16px;
}

/* Card base */
.act-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}
.act-card--featured {
  grid-column: 1 / -1; /* occupa tutta la larghezza */
}

/* Immagine di sfondo */
.act-card-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.act-card:hover .act-card-bg {
  transform: scale(1.06);
}

/* Overlay gradiente */
.act-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,10,5,0.88) 0%,
    rgba(0,20,10,0.45) 45%,
    rgba(0,0,0,0.1) 100%
  );
  z-index: 1;
  transition: opacity 0.4s ease;
}
.act-card:hover::before {
  opacity: 0.95;
}

/* Contenuto overlay */
.act-card-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
}

/* Tag categoria */
.act-card-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(201,168,76,0.22);
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
  width: fit-content;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

/* Titolo */
.act-card-title {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}
.act-card--featured .act-card-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

/* Excerpt — visibile solo su hover */
.act-card-excerpt {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease 0.1s;
}
.act-card:hover .act-card-excerpt {
  max-height: 120px;
  opacity: 1;
}

/* CTA buttons */
.act-card-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.act-card:hover .act-card-actions {
  opacity: 1; transform: translateY(0);
}

/* === STATS STRIP === */
.act-stats-strip {
  background: var(--tortora-light);
  padding: 48px 0;
}
.act-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.act-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px;
  border-right: 1px solid var(--tortora);
  text-align: center;
}
.act-stat:last-child { border-right: none; }
.act-stat-icon {
  color: var(--green-primary);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.act-stat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem; font-weight: 700;
  color: var(--green-primary); line-height: 1;
  margin-bottom: 6px;
}
.act-stat-lbl {
  font-size: 0.78rem; color: var(--text-mid);
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* === DETAIL SECTIONS === */
.act-steps-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-primary);
}
.act-step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.act-step:last-child { border-bottom: none; padding-bottom: 0; }
.act-step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--green-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark); font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(141,198,63,0.30);
}
.act-step strong { display: block; color: var(--text-dark); margin-bottom: 3px; }
.act-step p { font-size: 0.875rem; color: var(--text-light); margin: 0; }

/* Immagine dettaglio */
.act-img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream);
  min-height: 320px;
  display: flex; align-items: center;
}
.act-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.act-img-frame:hover img { transform: scale(1.04); }

/* === RESPONSIVE GALLERY === */
@media (max-width: 900px) {
  .activity-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 280px 280px;
  }
  .act-card--featured { grid-column: 1; }
  .act-card-excerpt { max-height: 80px; opacity: 1; }
  .act-card-actions { opacity: 1; transform: none; }
  .act-stats-grid { grid-template-columns: repeat(2,1fr); }
  .act-stat { border-right: none; border-bottom: 1px solid var(--tortora); }
  .act-stat:nth-child(odd) { border-right: 1px solid var(--tortora); }
}

@media (max-width: 480px) {
  .activity-gallery { grid-template-rows: 280px 240px 240px; }
  .act-card-overlay { padding: 20px; }
  .act-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* === FOOTER === */
/* =============================================
   FOOTER AVANZATO
   ============================================= */
footer {
  background: var(--green-dark);
  color: var(--white);
  position: relative;
}
/* Barra decorativa superiore */
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-primary) 0%, var(--green-mid) 55%, var(--gold) 100%);
}

/* === PRE-FOOTER STRIP === */
.footer-prefooter {
  background: var(--green-primary);
  border-bottom: none;
  padding: 30px 0;
}
.footer-prefooter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-pf-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 4px;
}
.footer-pf-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--white);
  margin: 0;
}
.footer-pf-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
/* Bottone outline nel pre-footer lime: bianco */
.footer-prefooter .btn-outline {
  border-color: var(--white);
  color: var(--white);
}
.footer-prefooter .btn-outline:hover {
  background: var(--white);
  color: var(--green-primary);
}

/* === CORPO PRINCIPALE === */
.footer-body { padding: 56px 0 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.7fr;
  gap: 48px;
}

/* Colonna brand */
.footer-brand .footer-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand p {
  color: var(--white);
  font-size: 0.84rem;
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 270px;
}

/* Social */
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.9rem;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.social-btn i { font-size: 0.95rem; }

/* Intestazioni colonne */
.footer-col-title {
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 26px; height: 2px;
  background: var(--green-primary);
}

/* Link navigazione */
.footer-nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.footer-nav a {
  color: var(--white);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0;
  transition: all 0.25s ease;
}
.footer-nav a::before {
  content: '›';
  color: var(--green-primary);
  font-size: 1.1rem;
  line-height: 1;
  margin-right: 7px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
}
.footer-nav a:hover { color: var(--white); padding-left: 4px; }
.footer-nav a:hover::before { opacity: 1; transform: translateX(0); }

/* Colonna contatti */
.footer-contact-items { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; }
.footer-ci-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(141,198,63,0.12);
  border: 1px solid rgba(141,198,63,0.22);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-primary);
  font-size: 0.8rem;
}
.footer-ci-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 2px;
}
.footer-contact-item p {
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}
.footer-contact-item a { color: var(--white); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }
.footer-cf {
  margin-top: 18px;
  font-size: 0.70rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
}

/* === BARRA DI FONDO === */
.footer-bottom-bar {
  background: rgba(0,0,0,0.22);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom {
  padding: 16px 0;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,0.28); font-size: 0.73rem; margin: 0; }
.footer-bottom-links { display: flex; gap: 16px; align-items: center; }
.footer-bottom-links a { color: rgba(255,255,255,0.30); font-size: 0.73rem; transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.70); }
.footer-bottom-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.12); }
.footer-back-top {
  width: 34px; height: 34px;
  background: rgba(141,198,63,0.12);
  border: 1px solid rgba(141,198,63,0.25);
  border-radius: 8px; cursor: pointer;
  color: var(--green-primary);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: 0.78rem;
  flex-shrink: 0;
}
.footer-back-top:hover { background: var(--green-primary); color: var(--green-dark); transform: translateY(-2px); }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--green-dark); color: var(--white);
  padding: 18px 24px; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(100%); transition: transform 0.5s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.85rem; color: rgba(255,255,255,0.82); margin: 0; }
.cookie-banner a { color: var(--green-light); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-accept {
  background: var(--gold); color: var(--white); border: none; cursor: pointer;
  padding: 9px 22px; border-radius: 0; font-size: 0.85rem; font-weight: 600;
  transition: background var(--transition);
}
.cookie-btn-accept:hover { background: var(--gold-dark); }
.cookie-btn-reject {
  background: transparent; color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; padding: 9px 18px; border-radius: 0; font-size: 0.85rem;
  transition: all var(--transition);
}
.cookie-btn-reject:hover { color: var(--white); border-color: rgba(255,255,255,0.6); }

/* === LEGAL PAGES === */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.legal-content h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--green-primary); }
.legal-content p  { margin-bottom: 14px; }
.legal-content ul { padding-left: 24px; margin-bottom: 14px; }
.legal-content ul li { margin-bottom: 6px; color: var(--text-mid); list-style: disc; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal-content table th,
.legal-content table td { padding: 12px 16px; border: 1px solid var(--border); font-size: 0.9rem; }
.legal-content table th { background: var(--cream); font-weight: 600; color: var(--text-dark); }
.legal-date { font-size: 0.82rem; color: var(--text-light); margin-bottom: 32px; }

/* === UTILITIES === */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green-primary); }
.highlight   { color: var(--green-mid); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.full-width { width: 100%; }

/* === SUCCESS MESSAGE === */
.success-msg {
  display: none; background: #EAF7EE; border: 1.5px solid var(--green-light);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 20px;
  color: var(--green-dark); font-size: 0.92rem; font-weight: 500;
}
.success-msg.show { display: block; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root { --sec-pad: 60px 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sec-pad: 48px 20px; }

  .hamburger { display: flex; }

  .nav-links {
    display: none; position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 12px 16px 20px; gap: 2px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 11px 14px; width: 100%;
    color: var(--green-dark); border-radius: 8px;
    font-size: 0.9rem;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: rgba(141,198,63,0.10); color: var(--green-dark); }
  .nav-links a.active { background: rgba(141,198,63,0.14); color: var(--green-dark); }
  /* reset pill styles on mobile */
  .nav-links a[href="diventa-un-volontario.html"],
  .nav-links .btn-nav-donate {
    margin-left: 0; margin-top: 6px;
    border-radius: 10px; padding: 11px 14px;
    text-align: left; box-shadow: none;
    transform: none !important;
  }
  .nav-links a[href="diventa-un-volontario.html"] {
    border-color: var(--green-primary); background: rgba(141,198,63,0.06);
  }
  .nav-links .btn-nav-donate { background: var(--caffe); color: var(--white); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  /* Footer responsive */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-prefooter-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .cookie-banner { flex-direction: column; }

  /* Partner strip mobile */
  .eu-logos-strip { padding: 20px 16px; }
  .fead-combo-img { max-height: 48px; }
  .fead-badge { padding: 14px 24px; }
  .fead-badge-label { font-size: 0.78rem; }
  .banco-collab-strip { padding: 20px 16px; gap: 18px; }

  /* CISAP mobile */
  .cisap-grid { gap: 36px; }
  .cisap-logo { max-width: 100%; }
  /* Aiutaci mobile: stack verticale */
  .aiutaci-section { grid-template-columns: 1fr; }
  .aiutaci-content { padding: 56px 28px; order: 2; }
  .aiutaci-img { min-height: 300px; order: 1; }
  .aiutaci-img::before { background: none; }

  /* Brochure mobile: immagine sopra, testo sotto */
  .brochure-grid { gap: 36px; }
  .brochure-text { order: 2; }
  .brochure-img-wrap { order: 1; }

  /* Accordion mobile */
  .acc-container { flex-direction: column; height: auto; }
  .acc-panel { flex: none !important; height: 80px; transform: none !important; border-right: none; border-bottom: 2px solid rgba(255,255,255,0.12); }
  .acc-panel.active { height: 340px; }
  .acc-panel:not(.active) .acc-label { writing-mode: horizontal-tb; transform: none; }
  .acc-inner { padding: 20px 24px; }

  /* Slider mobile */
  .slide-content { padding: 0 24px; }
  .slider-btn { width: 40px; height: 40px; font-size: 1.2rem; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }
}

/* =============================================
   NETWORK 3D (chi-siamo)
   ============================================= */
.network-section {
  background: var(--green-dark);
  overflow: hidden;
}
.network-section .section-label              { color: var(--green-primary) !important; }
.network-section .section-header h2          { color: var(--white); }
.network-section .section-header p,
.network-section .section-desc               { color: rgba(255,255,255,0.65); }
.network-section .divider                    { background: var(--green-primary); }

.network-wrap {
  width: 100%;
  height: 560px;
  margin-top: 0;
  position: relative;
}
#netCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
#netCanvas:active { cursor: grabbing; }
.network-hint {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.30);
  letter-spacing: 0.08em;
  margin-top: 8px;
  padding-bottom: 8px;
}
@media (max-width: 768px) {
  .network-wrap { height: 420px; }
}
@media (max-width: 480px) {
  .network-wrap { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-body { padding: 40px 0 32px; }
}

/* =============================================
   VOLONTARI – 2 colonne (testo | mosaico)
   ============================================= */
.volontari-layout {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 64px;
  align-items: center;
}

/* =============================================
   MOSAIC GALLERY – masonry 3D (colonna destra)
   ============================================= */
@keyframes mosaicIn {
  from {
    opacity: 0;
    transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))
               translateZ(var(--tz,0px)) translateY(22px);
  }
  to {
    opacity: 1;
    transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg))
               translateZ(var(--tz,0px)) translateY(0);
  }
}

/*
  Masonry 2×2:
  – alto-sinistra  img1  (240 px)
  – destra intera  img2  (spans 2 righe → 240+10+175 = 425 px)
  – basso-sinistra img3  (175 px)
*/
.mosaic-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 240px 175px;
  gap: 10px;
  perspective: 820px;
  perspective-origin: 50% 50%;
}

.mosaic-gallery .mosaic-item:nth-child(1) {
  grid-column: 1; grid-row: 1;
  --rx:  0deg; --ry:  6deg; --tz: -12px;
  animation-delay: 0.06s;
}
.mosaic-gallery .mosaic-item:nth-child(2) {
  grid-column: 2; grid-row: 1 / 3;
  --rx: -2deg; --ry: -5deg; --tz:  -8px;
  animation-delay: 0.18s;
}
.mosaic-gallery .mosaic-item:nth-child(3) {
  grid-column: 1; grid-row: 2;
  --rx:  3deg; --ry:  6deg; --tz: -12px;
  animation-delay: 0.30s;
}

.mosaic-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(var(--tz,0px));
  box-shadow: 0 8px 28px rgba(0,0,0,0.20), 0 2px 6px rgba(0,0,0,0.10);
  transition: transform 0.50s cubic-bezier(.25,.8,.25,1),
              box-shadow 0.50s ease;
  cursor: zoom-in;
  will-change: transform;
  animation: mosaicIn 0.65s cubic-bezier(.25,.8,.25,1) both;
}

.mosaic-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.55s ease;
}

/* shimmer luce – simula profondità */
.mosaic-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    138deg,
    rgba(255,255,255,0.10) 0%,
    transparent 42%,
    rgba(0,0,0,0.18) 100%
  );
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 0.38s ease;
}

.mosaic-item:hover {
  transform: rotateX(0deg) rotateY(0deg) translateZ(48px) scale(1.04) !important;
  box-shadow: 0 28px 60px rgba(0,0,0,0.34), 0 8px 18px rgba(0,0,0,0.16);
  z-index: 20;
}
.mosaic-item:hover img     { transform: scale(1.06); }
.mosaic-item:hover::before { opacity: 0; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,14,10,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1672px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.65);
  transform: scale(0.88);
  transition: transform 0.40s cubic-bezier(.25,.8,.25,1);
  display: block;
}
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.30s ease;
  line-height: 1;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.22);
  transform: rotate(90deg);
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .volontari-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mosaic-gallery {
    perspective: none;
  }
  .mosaic-gallery .mosaic-item {
    transform: none !important;
  }
}
@media (max-width: 560px) {
  .mosaic-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .mosaic-gallery .mosaic-item:nth-child(1),
  .mosaic-gallery .mosaic-item:nth-child(2),
  .mosaic-gallery .mosaic-item:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .cookie-buttons { width: 100%; flex-direction: column; }
  .cookie-btn-accept, .cookie-btn-reject { width: 100%; }
}
