/* ================================================================
   PROGETTO BAGATA ONLUS — Design System
   Modern, emotional, professional NGO website
   ================================================================ */

/* --- Custom Properties ---------------------------------------- */
:root {
  --green-dark:    #1e5c42;
  --green-mid:     #2d7a57;
  --green-light:   #e8f5ee;
  --amber:         #d4784a;
  --amber-light:   #fdf0e8;
  --cream:         #faf8f5;
  --white:         #ffffff;
  --dark:          #1a2530;
  --gray-700:      #374151;
  --gray-500:      #6b7280;
  --gray-300:      #d1d5db;
  --gray-100:      #f3f4f6;

  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);

  --transition:    0.3s cubic-bezier(.4,0,.2,1);
  --max-w:         1200px;
}

/* --- Reset & Base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--gray-700);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography ----------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* --- Layout --------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}
.section-sm { padding: 4rem 0; }
.section-alt { background: var(--green-light); }
.section-dark {
  background: var(--dark);
  color: var(--cream);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.8); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-mid);
  margin-bottom: .75rem;
}
.section-header .eyebrow.amber { color: var(--amber); }
.section-header p {
  max-width: 600px;
  margin: 1rem auto 0;
  color: var(--gray-500);
}

.divider {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--green-mid);
  margin: 1rem auto 0;
  box-shadow: 0 2px 10px rgba(45,122,87,.45);
}
.divider.amber {
  background: var(--amber);
  box-shadow: 0 2px 10px rgba(212,120,74,.45);
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-mid);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(45,122,87,.35);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,122,87,.45);
}
.btn-amber {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(212,120,74,.35);
}
.btn-amber:hover {
  background: #bc6338;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,120,74,.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn-outline-green {
  background: transparent;
  color: var(--green-mid);
  border: 2px solid var(--green-mid);
}
.btn-outline-green:hover {
  background: var(--green-mid);
  color: var(--white);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.25rem; font-size: .85rem; }

/* --- Navbar --------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.nav-logo .logo-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
}
.nav-logo .logo-name strong { color: var(--amber); }
.nav-logo .logo-tagline {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-500);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--green-dark);
  background: var(--green-light);
}
.nav-menu > li.cta > a {
  background: var(--amber);
  color: var(--white);
  padding: .5rem 1.2rem;
}
.nav-menu > li.cta > a:hover {
  background: #bc6338;
}

/* Dropdown */
.nav-menu .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  border: 1px solid var(--gray-100);
}
.nav-menu .has-dropdown:hover .dropdown,
.nav-menu .has-dropdown:focus-within .dropdown {
  display: block;
}
.nav-menu .dropdown li a {
  display: block;
  padding: .6rem 1rem;
  font-size: .88rem;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-menu .dropdown li a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,37,48,.75) 0%,
    rgba(30,92,66,.55) 60%,
    rgba(26,37,48,.3) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 8rem 0 6rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.hero h1 {
  color: var(--white);
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, #b8e8cc 0%, #f5c09a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}
.hero-scroll .scroll-line {
  width: 40px; height: 1px;
  background: rgba(255,255,255,.4);
}

/* Hero badge */
.hero-badge {
  position: absolute;
  bottom: 3rem;
  right: 3rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  color: var(--white);
  text-align: center;
}
.hero-badge .badge-year {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}
.hero-badge p {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  margin: .3rem 0 0;
}

/* --- Page Hero (inner pages) ---------------------------------- */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,92,66,.82) 0%, rgba(26,37,48,.65) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,.8); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { font-size: .7rem; }

/* --- Stats Bar ------------------------------------------------ */
.stats-bar {
  background: var(--green-dark);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {
  color: var(--white);
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.15);
  transition: transform var(--transition);
}
.stat-item:hover { transform: translateY(-4px); }
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  transition: color var(--transition);
}
.stat-item:hover .stat-number { color: var(--amber); }
.stat-number span.sup { font-size: 1.4rem; vertical-align: super; }
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .5rem;
}

/* --- Cards ---------------------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.75rem; }
.card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-mid);
  background: var(--green-light);
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.card-tag.amber {
  color: var(--amber);
  background: var(--amber-light);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--gray-500); font-size: .95rem; }

/* --- Feature Block -------------------------------------------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }
.feature-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.feature-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.feature-media:hover img {
  transform: scale(1.04);
}
.feature-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: .85rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.feature-badge .badge-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.feature-text .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--green-mid);
  margin-bottom: .75rem;
}
.feature-text .eyebrow.amber { color: var(--amber); }
.feature-text h2 { margin-bottom: 1.25rem; }
.feature-text p { color: var(--gray-500); margin-bottom: 1rem; }
.feature-text .btn { margin-top: .5rem; }

/* Checklist */
.checklist {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--gray-700);
}
.checklist li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  font-size: .75rem;
  margin-top: .15rem;
}

/* --- Team ----------------------------------------------------- */
.team-card {
  text-align: center;
}
.team-photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transition: transform var(--transition);
}
.team-card:hover .team-photo { transform: scale(1.05); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.team-card .role {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: .6rem;
}
.team-card p { font-size: .9rem; color: var(--gray-500); }

/* --- Quote ---------------------------------------------------- */
.blockquote-section {
  background: var(--green-dark);
  padding: 5rem 0;
  text-align: center;
}
.big-quote {
  max-width: 800px;
  margin: 0 auto;
  color: var(--white);
  position: relative;
  padding: 0 2rem;
}
.big-quote::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 14rem;
  line-height: .5;
  color: rgba(255,255,255,.18);
  position: absolute;
  top: -1.5rem; left: -1rem;
  pointer-events: none;
  user-select: none;
}
.big-quote::after {
  content: '\201D';
  font-family: var(--font-serif);
  font-size: 14rem;
  line-height: .5;
  color: rgba(255,255,255,.18);
  position: absolute;
  bottom: -5.5rem; right: -1rem;
  pointer-events: none;
  user-select: none;
}
.big-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.big-quote .attribution {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-style: normal;
}
.big-quote .attribution strong {
  color: var(--amber);
  font-style: normal;
  display: block;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
}

/* --- Gallery -------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,92,66,.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.gallery-item:hover .overlay {
  background: rgba(30,92,66,.45);
}
.gallery-item .overlay svg {
  color: var(--white);
  opacity: 0;
  transform: scale(.6);
  transition: var(--transition);
}
.gallery-item:hover .overlay svg {
  opacity: 1;
  transform: scale(1);
}
.gallery-item.wide  { grid-column: span 2; }
.gallery-item.tall  { grid-row:    span 2; }

/* Gallery nav (switch tra galleria ospedale/orfanotrofio) */
.gallery-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Gallery tabs */
.gallery-tabs {
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.tab-btn {
  padding: .6rem 1.75rem;
  border-radius: 50px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-500);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

/* --- Lightbox ------------------------------------------------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: opacity .2s ease;
}
.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: .8;
  transition: var(--transition);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-nav.prev { left: -4rem; }
.lightbox-nav.next { right: -4rem; }

/* --- Contribuisci section ------------------------------------- */
.donate-block {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  height: 100%;
}
.donate-block h3 {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--green-light);
}
.donate-block h3 .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.iban-card {
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--green-mid);
}
.iban-card .bank-name {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-mid);
  margin-bottom: .4rem;
}
.iban-card .iban-num {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .06em;
}
.iban-card .iban-note {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: .3rem;
}

/* 5x1000 banner */
.x1000-banner {
  background: linear-gradient(135deg, var(--amber) 0%, #c4603a 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: var(--white);
  text-align: center;
}
.x1000-banner .big-num {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .5rem;
}
.x1000-banner h3 { color: var(--white); margin-bottom: .75rem; }
.x1000-banner p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; font-size: .95rem; }
.x1000-banner .cf-code {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: .5rem 1.25rem;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .1em;
}

/* --- Contact form --------------------------------------------- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--dark);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,122,87,.15);
  background: var(--white);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-info-card {
  background: var(--green-dark);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: var(--white);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-info-card h2 { color: var(--white); margin-bottom: .5rem; }
.contact-info-card > p { color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail .cd-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail .cd-text strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  margin-bottom: .2rem;
}
.contact-detail .cd-text p {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  margin: 0;
}
.contact-detail .cd-text a {
  color: rgba(255,255,255,.9);
  transition: var(--transition);
}
.contact-detail .cd-text a:hover { color: var(--amber); }
.social-links {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
}
.social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: var(--amber);
  transform: translateY(-2px);
}

/* --- Documents page ------------------------------------------- */
.doc-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.doc-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.doc-info .doc-name {
  font-weight: 600;
  color: var(--dark);
  font-size: .95rem;
  margin-bottom: .2rem;
}
.doc-info .doc-desc {
  font-size: .82rem;
  color: var(--gray-500);
}
.doc-card .doc-arrow {
  margin-left: auto;
  color: var(--gray-300);
  transition: var(--transition);
  flex-shrink: 0;
}
.doc-card:hover .doc-arrow { color: var(--green-mid); transform: translateX(3px); }

/* --- Footer --------------------------------------------------- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand .logo-name strong { color: var(--amber); }
.footer-brand p {
  margin: .75rem 0 1.5rem;
  font-size: .88rem;
  line-height: 1.7;
}
.footer-col h5 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: .82rem;
}
.footer-bottom a {
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--white); }
.footer-bottom .sep { margin: 0 .5rem; opacity: .4; }

/* --- Scroll to top -------------------------------------------- */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(45,122,87,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(45,122,87,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,122,87,0); }
}
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px; height: 48px;
  background: var(--green-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 500;
  text-decoration: none;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
  animation: pulse-ring 2.5s ease infinite;
}
.scroll-top:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  animation: none;
}

/* --- Utility -------------------------------------------------- */
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-green  { color: var(--green-mid); }
.text-amber  { color: var(--amber); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* --- Animations ----------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* === DONATE / CONTRIBUISCI ==================================== */

.donate-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.iban-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.iban-card:hover { box-shadow: var(--shadow-md); }

.iban-bank {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--green-light);
}

.iban-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  margin-top: 1.1rem;
  margin-bottom: .2rem;
}
.iban-value {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 500;
}
.iban-value.code {
  font-family: 'Courier New', monospace;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--green-dark);
  font-weight: 700;
  background: var(--green-light);
  padding: .35rem .6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: .15rem;
}

/* 5×1000 banner */
.x1000-banner {
  background: var(--green-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
}
.x1000-content {
  padding: 3.5rem 3rem;
  color: white;
}
.x1000-content h2 {
  color: white;
  font-size: 2rem;
  margin: .75rem 0 1.25rem;
}
.x1000-content p {
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
}
.x1000-cf {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.75rem;
  display: inline-flex;
  flex-direction: column;
  gap: .35rem;
}
.cf-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.65);
}
.cf-value {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--amber);
}
.x1000-visual {
  overflow: hidden;
}
.x1000-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === DOCUMENTS ================================================ */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.doc-card {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.doc-icon {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.doc-body h3 {
  font-size: 1.1rem;
  margin: .5rem 0;
}
.doc-body p {
  font-size: .9rem;
  color: var(--gray-500);
  flex: 1;
}
.doc-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.doc-tag {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-mid);
  font-weight: 600;
}

/* === CONTACT ================================================== */

.contact-info-card {
  background: var(--green-dark);
  color: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
}
.contact-info-card h2 {
  color: white;
  margin-bottom: 1rem;
}
.contact-info-card p {
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.contact-detail-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-bottom: .25rem;
}
.contact-detail-value {
  color: var(--amber);
  font-weight: 600;
  font-size: 1rem;
  transition: opacity var(--transition);
}
.contact-detail-value:hover { opacity: .8; }

/* Contact form */
.contact-form {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: .5rem;
}
.form-group .required {
  color: var(--amber);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,122,87,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { cursor: pointer; }

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-note {
  font-size: .8rem;
  color: var(--gray-500);
  line-height: 1.6;
}
.form-note a { color: var(--green-mid); text-decoration: underline; }

.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-weight: 600;
  margin-top: .5rem;
}

/* page-hero smaller variant */
.page-hero.page-hero-sm {
  padding: 7rem 0 3rem;
}
.page-hero.page-hero-sm .page-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

/* btn-outline-white */
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,.7);
  color: white;
}
.btn-outline-white:hover {
  background: white;
  color: var(--dark);
  border-color: white;
}

/* btn-sm */
.btn-sm {
  padding: .5rem 1rem;
  font-size: .85rem;
  gap: .4rem;
}

/* === RESPONSIVE =============================================== */

/* --- Tablet landscape ----------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stat-item:nth-child(2n) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .feature-block { gap: 3rem; }
  .x1000-banner { grid-template-columns: 1fr; }
  .x1000-visual { max-height: 280px; overflow: hidden; }
}

/* --- Mobile --------------------------------------------------- */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .section-sm { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }
  .container { padding: 0 1.25rem; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 2rem;
    gap: 0;
    transform: translateY(-110%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    overflow-y: auto;
    max-height: calc(100vh - 72px);
    z-index: 999;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu > li > a {
    padding: .75rem .5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-menu > li.cta > a {
    border-radius: 50px;
    margin-top: .5rem;
    justify-content: center;
    border: none;
  }
  .nav-menu .has-dropdown { position: static; }
  .nav-menu .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--green-light);
    border-radius: var(--radius-sm);
    margin: .5rem 0;
    padding: .25rem .5rem;
  }

  /* Grids */
  .grid-2, .feature-block { grid-template-columns: 1fr; gap: 2rem; }
  .feature-block.reverse { direction: ltr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item.tall { grid-row: span 1; }

  /* Stats */
  .stats-bar { padding: 2rem 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); padding: .75rem; }
  .stat-item:nth-child(2n) { border-bottom: none; }
  .stat-item:last-child { border-bottom: none; }
  .stat-number { font-size: 2.2rem; }

  /* Hero */
  .hero-badge { display: none; }
  .hero-scroll { display: none; }
  .hero-content { padding: 6rem 0 4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* Feature */
  .feature-block { gap: 1.5rem; }
  .feature-media { aspect-ratio: 16/9; border-radius: var(--radius-lg); }

  /* Quote */
  .big-quote::after { display: none; }
  .big-quote { padding: 0 .5rem; }
  .blockquote-section { padding: 3rem 0; }

  /* Footer */
  .footer { padding: 3.5rem 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }

  /* Inner pages */
  .page-hero { padding: 7rem 0 3rem; }

  /* Contribuisci / Documenti / Contatti */
  .donate-block { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .x1000-banner { grid-template-columns: 1fr; }
  .x1000-visual { max-height: 220px; overflow: hidden; }
  .x1000-content { padding: 2.5rem 2rem; }
  .contact-form, .contact-info-card { padding: 2rem 1.5rem; border-radius: var(--radius-lg); }
  .form-row { grid-template-columns: 1fr; }

  /* Gallery nav — pulsanti impilati su mobile */
  .gallery-nav { flex-direction: column; align-items: stretch; margin-bottom: 2rem; }
  .gallery-nav .btn { justify-content: center; }

  /* Gallery tabs — non escono dal container */
  .gallery-tabs { flex-wrap: wrap; gap: .5rem; }
  .tab-btn { flex: 1; min-width: 0; padding: .5rem 1rem; font-size: .82rem; text-align: center; white-space: normal; line-height: 1.2; }

  /* Lightbox — frecce rimangono visibili dentro l'immagine */
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; background: rgba(0,0,0,.45); }
  .lightbox-nav.prev { left: .75rem; }
  .lightbox-nav.next { right: .75rem; }
}

/* --- Mobile piccolo ------------------------------------------- */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }

  /* Navbar */
  .navbar .container { height: 64px; }
  .nav-menu { top: 64px; max-height: calc(100vh - 64px); }

  /* Hero */
  .hero-content { padding: 5rem 0 3rem; }
  .hero-eyebrow { font-size: .72rem; padding: .35rem .8rem; }
  .hero-actions .btn-lg { padding: .85rem 1.5rem; font-size: .95rem; }

  /* Stats */
  .stat-number { font-size: 1.9rem; }

  /* Feature */
  .feature-badge { font-size: .78rem; padding: .65rem .9rem; gap: .4rem; }
  .feature-badge .badge-icon { width: 28px; height: 28px; font-size: .85rem; }

  /* Quote */
  .big-quote p { font-size: 1.2rem; }
  .big-quote::before { font-size: 9rem; }

  /* Grids */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  /* Contribuisci */
  .x1000-content { padding: 2rem 1.25rem; }
  .x1000-banner { padding: 0; }
  .contact-form, .contact-info-card { padding: 1.5rem 1rem; }
  .iban-card { padding: 1.5rem 1.25rem; }
  .donate-block > .iban-card { border-radius: var(--radius-md); }

  /* Lightbox */
  .lightbox-nav { width: 36px; height: 36px; font-size: .85rem; }
  .lightbox-nav.prev { left: .25rem; }
  .lightbox-nav.next { right: .25rem; }
  .lightbox-close { font-size: 1.5rem; }

  /* Inner pages */
  .page-hero { padding: 5.5rem 0 2.5rem; }
  .page-hero.page-hero-sm { padding: 5.5rem 0 2rem; }
  .breadcrumb { font-size: .76rem; }
}
