/* ════════════════════════════════════════════════════════════
   PROGETTO FULGIONE  –  style.css
   ════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ─────────────────────────────────────────────── */
:root {
  --blue: #486ED9;
  --light: #C7DCF3;
  --orange: #F39819;
  --cream: #F6F7E4;
  --dark: #1E2E5B;

  --f-title: "bricolage-grotesque", "Inter", sans-serif;
  --f-cursive: "alkaline", "Caveat", cursive;

  --hdr: 64px;
  /* header height        */
  --r: 2.6em;
  /* card border-radius   */
  --lap: 3em;
  /* overlap between cards */

  --ease: cubic-bezier(.25, .8, .25, 1);
}

/* ── 2. RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--hdr);
}

body {
  font-family: var(--f-title);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ── 3. SCROLL REVEAL ───────────────────────────────────────── */
/* Progressive enhancement: hide elements only if JavaScript is ready and running */
body.js-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

body.js-ready .scroll-reveal.active {
  opacity: 1;
  transform: none;
}

/* ── 4. HEADER ──────────────────────────────────────────────── */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hdr);
  background: var(--cream);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .07);
  z-index: 900;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2em;
  display: flex;
  align-items: center;
  /* nav and donation button grouped and centered */
  justify-content: center;
  gap: 3.5em;
  position: relative;
}

/* Navigation – horizontally centred */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 2.5em;
}

.nav-link {
  font-weight: 700;
  font-size: 1em;
  color: var(--orange);
  position: relative;
  padding-bottom: .25em;
  transition: color .25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width .3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* DONA ORA button */
.btn-dona-header {
  background: var(--orange);
  color: #fff;
  padding: .55em 1.3em;
  border-radius: 50px;
  font-weight: 800;
  font-size: .9em;
  display: flex;
  align-items: center;
  gap: .4em;
  box-shadow: 0 4px 16px rgba(243, 152, 25, .4);
  transition: transform .25s var(--ease), box-shadow .25s;
}

.btn-dona-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(243, 152, 25, .6);
}

.heart-icon {
  width: 1em;
  height: 1em;
  animation: pulse 1.6s infinite;
}

/* Hamburger – hidden on desktop */
.menu-toggle {
  display: none;
  position: absolute;
  left: 1.5em;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 950;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background: var(--blue);
  border-radius: 4px;
  transition: var(--ease) .3s;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── 5. CARD STACK (overlapping sections) ───────────────────── */
/*
   Each .card is position:sticky so it stays visible as you scroll
   and the next card slides up over it – true parallax card effect.
 */
.card {
  position: relative;
  /* Hardware acceleration for buttery-smooth mobile scrolling and blurs */
  transform: translate3d(0,0,0);
  will-change: transform;
}

/* Base styles for slider dots (hidden on desktop) */
.slider-dots {
  display: none;
}

/* ── 6. HERO ────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #739eff 0%, #486ed9 100%);
  padding-top: var(--hdr);
  display: flex;
  align-items: center;
  border-bottom-left-radius: var(--r);
  border-bottom-right-radius: var(--r);
  z-index: 1;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -15%;
  width: 450px;
  height: 450px;
  background: var(--orange);
  filter: blur(140px);
  opacity: 0.12;
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--light);
  filter: blur(160px);
  opacity: 0.12;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2em 3em 6em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── LOGO ── */
.logo-wrap {
  margin-bottom: 1.6em;
  width: 100%;
  max-width: 900px;
}

.logo-svg {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
}

/* Hero subtitle */
.hero-sub {
  font-size: 2.1em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 2.2em;
}

.cursive-orange {
  font-family: var(--f-cursive);
  color: var(--orange);
  font-size: 1.5em;
  font-weight: 700 !important;
  font-style: normal;
  display: block;
  margin-bottom: 0.1em;
}

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: var(--orange);
  color: #fff;
  padding: 1em 2.2em;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.25em;
  letter-spacing: .04em;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease), box-shadow .25s;
}

.btn-cta svg {
  width: 1.3em;
  height: 1.3em;
  animation: bounce 2s infinite;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}

/* ── 7. BIO SECTION ─────────────────────────────────────────── */
.bio-section {
  position: relative;
  background: var(--cream);
  border-radius: var(--r);
  margin-top: calc(-1 * var(--r));
  z-index: 2;
  min-height: auto;
  padding-bottom: 6em;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--r) + 2.5em) 3em 2.5em;
}

/* Photo stack */
.photo-stack {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  height: 32em;
  margin-bottom: 3.5em;
}

.photo {
  position: absolute;
  border-radius: 1.4em;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
  opacity: 1; /* Instantly visible without entrance animations */
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo--left {
  width: 22em;
  height: 17em;
  left: 0;
  transform: rotate(-7deg) translateX(3em) scale(1);
  z-index: 1;
}

.photo--center {
  width: 26em;
  height: 21em;
  z-index: 3;
  border: 4px solid var(--cream);
  transform: translateY(-1.5em) scale(1);
}

.photo--right {
  width: 22em;
  height: 17em;
  right: 0;
  transform: rotate(7deg) translateX(-3em) scale(1);
  z-index: 2;
}

/* Snappy hover states relative to their position */
.photo:hover {
  z-index: 10;
  transition: transform .35s var(--ease), box-shadow .35s;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .28);
}

.photo--left:hover {
  transform: rotate(-3deg) translateX(3em) scale(1.06);
}

.photo--center:hover {
  transform: translateY(-2.2em) scale(1.06);
}

.photo--right:hover {
  transform: rotate(3deg) translateX(-3em) scale(1.06);
}

/* Bio text */
.bio-title {
  font-size: 2.3em;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.6em;
  font-style: normal;
  position: relative;
}

.bio-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--orange);
  margin-top: 0.4em;
  border-radius: 2px;
}

.bio-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 1.2em;
  color: var(--dark);
}

.hl {
  color: var(--orange);
}

/* ── 8. EVENT SECTION ───────────────────────────────────────── */
.event-section {
  background: var(--orange);
  border-radius: var(--r);
  margin-top: calc(-1 * var(--r));
  z-index: 3;
  text-align: center;
  color: #fff;
  padding-bottom: 5em;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: var(--blue);
  color: #fff;
  padding: .9em 2.2em;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3em;
  margin-bottom: 1.2em;
}

.event-badge svg {
  width: 1.3em;
  height: 1.3em;
  flex-shrink: 0;
}

.event-title {
  font-size: 2.6em;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  margin-bottom: .6em;
}

.event-date {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--cream);
}

/* ── 9. DONATION SECTION ────────────────────────────────────── */
.dona-section {
  background: radial-gradient(ellipse at center, #739eff 0%, #486ed9 100%);
  border-radius: var(--r);
  margin-top: calc(-1 * var(--r));
  z-index: 4;
  min-height: 100vh;
  padding-bottom: 8em;
  position: relative;
  overflow: clip;
}

.dona-section::before {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--orange);
  filter: blur(140px);
  opacity: 0.15;
  border-radius: 50%;
  pointer-events: none;
}

.dona-section::after {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: var(--light);
  filter: blur(130px);
  opacity: 0.12;
  border-radius: 50%;
  pointer-events: none;
}

.dona-section .section-inner {
  display: flex;
  flex-direction: column;
  gap: 1.6em;
  max-width: 1000px;
  position: relative;
  z-index: 2;
}

.dona-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.8em;
  padding: 3em 2.8em;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  position: relative;
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}

.dona-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px rgba(0, 0, 0, .35);
}

/* Box arancione – ONLINE */
.dona-card--orange {
  background: var(--orange);
  border: none;
}

.dona-card--orange:hover {
  border-color: transparent;
}

.dona-card--orange .dona-label {
  color: rgba(255, 255, 255, 0.9);
}

.dona-card--orange .dona-label strong {
  color: #fff;
}

/* Box bianco – BONIFICO */
.dona-card--white {
  background: var(--cream);
  border: none;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
}

.dona-card--white:hover {
  border-color: transparent;
}

.dona-card--white .dona-label {
  color: var(--dark);
}

.dona-card--white .dona-label strong {
  color: var(--dark);
}

/* Header area with custom style (no background, white text) */
.dona-header {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.dona-header:hover {
  transform: none !important;
  box-shadow: none !important;
}

.dona-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  width: 100%;
}

.dona-header-content h2 {
  font-size: 2.4em;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.heart-icon-dona {
  width: 2.2em;
  height: 2.2em;
  color: var(--orange);
  flex-shrink: 0;
  animation: pulse 1.4s infinite;
}

/* Dona card label */
.dona-label {
  font-size: 1.25em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.4em;
  line-height: 1.6;
  text-align: center;
}

.dona-label strong {
  font-size: 1.3em;
  color: #fff;
}

.orange {
  color: var(--orange) !important;
}

/* Online CTA – sul box arancione diventa bianco */
.btn-online {
  display: inline-block;
  background: #fff;
  color: var(--dark);
  padding: .75em 2.4em;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}

.btn-online:hover {
  background: var(--dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}

/* Bank details */
.detail-row {
  display: flex;
  flex-direction: column;
  gap: .25em;
  text-align: left;
  margin-bottom: 1.2em;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: .9em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--orange);
}

.detail-val {
  font-size: 1.15em;
  font-weight: 700;
  color: var(--dark);
  word-break: break-word;
  line-height: 1.6;
}

.iban-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: .65em 1.2em;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  gap: .6em;
}

.iban-val {
  font-family: monospace;
  font-size: 1em;
  color: var(--dark);
}

.copy-val {
  font-family: var(--f-title);
  font-size: 1.02em;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--light);
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  padding: .3em;
  transition: color .2s, transform .2s;
}

.btn-copy:hover {
  color: var(--orange);
  transform: scale(1.15);
}

.tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--dark);
  color: #fff;
  padding: .3em .7em;
  border-radius: 4px;
  font-size: .72em;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--dark);
}

.btn-copy:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 10. BACK TO TOP ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 1.8em;
  right: 1.8em;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--blue);
  transform: scale(1.1);
}

/* ── 11. KEYFRAMES ──────────────────────────────────────────── */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.12);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(6px);
  }

  70% {
    transform: translateY(3px);
  }
}

/* ── 12. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  :root {
    --r: 2em;
    --hdr: 60px;
  }

  /* Header: hamburger left, dona right, no nav visible initially */
  .menu-toggle {
    display: flex;
  }

  .btn-dona-header {
    position: absolute;
    right: 2em;
  }

  .nav-menu {
    position: fixed;
    top: var(--hdr);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--hdr));
    background: var(--cream);
    padding: 3em 2em;
    transition: left .35s var(--ease);
    z-index: 800;
  }

  .nav-menu.open {
    left: 0;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 2em;
  }

  .nav-link {
    font-size: 1.5em;
  }

  /* Photo stack → slider on mobile */
  .photo-stack {
    flex-direction: row;
    justify-content: flex-start;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.2em;
    padding: 1.5em 1.5em 2em;
    margin: 0 -1.5em 0; /* Full-bleed horizontally */
    scrollbar-width: none; /* Hide scrollbars (Firefox) */
  }

  .photo-stack::-webkit-scrollbar {
    display: none; /* Hide scrollbars (Chrome/Safari) */
  }

  .photo {
    position: relative;
    scroll-snap-align: center;
    flex-shrink: 0;
    width: 82%;
    height: 20em;
    opacity: 1 !important; /* Keep visible in slider */
    transform: none !important;
    margin: 0;
  }

  .photo--center {
    height: 20em;
    border-width: 3px;
  }

  /* Slider Dots Styles on mobile */
  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.6em;
    margin-top: 0.5em;
    margin-bottom: 2.5em;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(30, 46, 91, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
  }

  .dot.active {
    background: var(--orange);
    transform: scale(1.2);
  }

  .hero-inner {
    padding: 1.5em 1.5em 5em;
  }

  .section-inner {
    padding: calc(var(--r) + 2em) 1.5em 2em;
  }

  /* Event */
  .event-badge {
    font-size: 1.05em;
    padding: 0.75em 1.5em;
    gap: 0.5em;
  }

  .event-badge svg {
    width: 1.45em !important;
    height: 1.45em !important;
  }

  .event-title {
    font-size: 2em;
  }

  .event-date {
    font-size: 1.7em;
  }

  /* Donation Header */
  .dona-header-content h2 {
    font-size: 2em;
  }

  .heart-icon-dona {
    width: 2em;
    height: 2em;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 14px;
  }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  font-size: .9em;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3.5em 2em 2.5em;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .5em;
  max-width: 340px;
}

.footer-logo-text {
  font-family: var(--f-cursive);
  font-size: 1.8em;
  color: var(--orange);
  line-height: 1;
}

.footer-tagline {
  font-size: .95em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

/* Link legali */
.footer-links {
  display: flex;
  align-items: center;
  gap: .75em;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.25);
}

/* Striscia crediti */
.footer-credits {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.2em 2em;
  display: flex;
  justify-content: center;
  text-align: center;
}

.footer-credits p {
  font-size: .82em;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.footer-credits a {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  transition: color .2s;
}

.footer-credits a:hover {
  color: var(--orange);
}

/* Mobile footer */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    max-width: 100%;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ── LEGAL MODALS ───────────────────────────────────────────── */
.legal-modal {
  border: none;
  border-radius: 20px;
  background: var(--cream);
  color: var(--dark);
  max-width: 720px;
  width: 90%;
  max-height: 80vh;
  margin: auto;
  box-shadow: 0 24px 60px rgba(30, 46, 91, 0.25);
  overflow: hidden;
  padding: 0;

  /* Animazione moderna nativa per l'apertura/chiusura */
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), display 0.3s var(--ease) allow-discrete;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
}

.legal-modal[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .legal-modal[open] {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
}

.legal-modal::backdrop {
  background: rgba(30, 46, 91, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease), display 0.3s var(--ease) allow-discrete;
}

.legal-modal[open]::backdrop {
  background-color: rgba(30, 46, 91, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@starting-style {
  .legal-modal[open]::backdrop {
    background-color: rgba(30, 46, 91, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

.modal-content {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em 2em;
  background: var(--cream);
  border-bottom: 1px solid rgba(30, 46, 91, 0.08);
  position: sticky;
  top: 0;
  z-index: 2;
}

.modal-header h2 {
  font-family: var(--f-title);
  font-size: 1.4em;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  padding-right: 1.5em;
  line-height: 1.2;
}

.modal-close {
  background: rgba(30, 46, 91, 0.05);
  border: none;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--dark);
  cursor: pointer;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  background: var(--orange);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.2em 2em;
  overflow-y: auto;
  font-size: 0.95em;
  line-height: 1.6;
}

.modal-body h3 {
  font-size: 1.15em;
  color: var(--orange);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 700;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 1.2em;
  color: rgba(30, 46, 91, 0.85);
}

.modal-body ul {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.modal-body li {
  margin-bottom: 0.6em;
  color: rgba(30, 46, 91, 0.85);
}

.modal-body a {
  color: var(--blue);
  text-decoration: underline;
  transition: color 0.2s;
}

.modal-body a:hover {
  color: var(--orange);
}

/* Prevent background scrolling */
body.modal-open {
  overflow: hidden;
}

/* ── DONATION TABS & STRIPE WRAPPER ────────────────────────── */
.dona-tabs {
  display: flex;
  gap: 6px;
  margin: 0 auto -2px auto;
  padding: 0;
  max-width: 700px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.dona-tab {
  flex: 1;
  text-align: center;
  background: rgba(30, 46, 91, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 16px 16px 0 0;
  transition: background 0.25s, color 0.25s, transform 0.25s;
  font-family: var(--f-title);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dona-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
}

.dona-tab[data-tab="online"].active,
.dona-tab[data-tab="bonifico"].active {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  z-index: 12;
}

/* Connect active tab cards seamlessly like a file folder (Flat top edge, rounded bottom edge) */
.dona-tab-panel .dona-card--white {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: var(--r) !important;
  border-bottom-right-radius: var(--r) !important;
  margin-top: 0 !important;
}

.dona-tab-panel .dona-card--white:hover {
  transform: none !important;
}

/* Styled and enlarged centered labels for premium look on panna background */
.dona-card--white .dona-label {
  font-size: 1.4em !important;
  color: rgba(30, 46, 91, 0.6) !important;
  text-align: center !important;
  margin-bottom: 1.4em !important;
  line-height: 1.4 !important;
}

.dona-card--white .dona-label strong {
  font-size: 1.3em !important;
  color: var(--orange) !important;
  font-weight: 800 !important;
  display: inline-block;
  margin-top: 4px;
}

.stripe-wrapper {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}