/* ==========================================================================
   MANI DI PACE ODV - Stili Ufficiali con Colori Originali
   Palette:
   - Turchese / Cyan primario: #5bc8c7
   - Lilla / Malva secondario: #b287b7
   - Oro / Giallo caldo accento: #f4c542
   - Viola scuro / Prugna: #4c2d50
   - Sfondo lavanda tenue: #f9f6fe
   ========================================================================== */

:root {
  --color-primary: #5bc8c7;
  --color-primary-hover: #48b7b6;
  --color-primary-light: #e8f9f9;
  --color-primary-rgb: 91, 200, 199;

  --color-secondary: #b287b7;
  --color-secondary-hover: #9e6fa4;
  --color-secondary-light: #f7eff8;
  --color-secondary-rgb: 178, 135, 183;

  --color-accent: #f4c542;
  --color-accent-hover: #e0b029;
  --color-accent-light: #fef8e7;

  --color-dark: #4c2d50;
  --color-dark-deep: #2a142d;
  --color-dark-soft: #633e68;

  --color-bg: #ffffff;
  --color-bg-alt: #f9f6fe;
  --color-bg-card: #ffffff;

  --color-text: #2d3748;
  --color-text-muted: #67768e;
  --color-border: #ebdff0;

  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 4px rgba(76, 45, 80, 0.05);
  --shadow-md: 0 4px 12px rgba(76, 45, 80, 0.08);
  --shadow-lg: 0 10px 25px rgba(76, 45, 80, 0.12);
  --shadow-xl: 0 20px 40px rgba(76, 45, 80, 0.16);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header & Top Bar */
.top-bar {
  background: var(--color-dark);
  color: #f7eff8;
  font-size: 0.8125rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(76, 45, 80, 0.05);
  border-bottom: 1px solid rgba(178, 135, 183, 0.18);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.main-header.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.main-header.header-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 30px rgba(76, 45, 80, 0.10);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-contain: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-dark);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-link.active {
  color: var(--color-dark);
  background: var(--color-secondary-light);
  border: 1px solid var(--color-secondary);
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-dark-deep);
  font-weight: 800;
  font-size: 0.875rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(244, 197, 66, 0.35);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-donate:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(244, 197, 66, 0.45);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.15s ease;
  z-index: 1001;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  font-size: 1.5rem;
}

.mobile-toggle:hover,
.mobile-toggle:focus-visible {
  background: rgba(91, 200, 199, 0.15);
  outline: none;
}

.mobile-toggle:active {
  transform: scale(0.92);
}

/* Animated Hamburger to X */
.hamburger-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2.5px;
  background-color: var(--color-dark, #4c2d50);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, top 0.26s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -7px;
  left: 0;
}

.hamburger-inner::after {
  content: '';
  top: 7px;
  left: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger-inner {
  background-color: transparent !important;
}

.mobile-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--color-primary, #5bc8c7);
}

.mobile-toggle[aria-expanded="true"] .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: var(--color-primary, #5bc8c7);
}

/* Page Header / Banner */
/* ==========================================================================
   Page Headers / Hero Banners (Unified High-Impact Frosted Glass)
   ========================================================================== */
.page-banner {
  position: relative;
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-deep) 100%);
  color: #fff;
  min-height: 440px;
  padding: 120px 0 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.page-banner.page-banner-team {
  background: url('../media/Wall002.jpg') center top / cover no-repeat;
}

.page-banner.page-banner-progetti {
  background: url('../media/Asilo2.jpg') center 40% / cover no-repeat;
}

.page-banner.page-banner-sostienici {
  background: url('../media/Headers005.jpg') center 30% / cover no-repeat;
}

.page-banner.page-banner-galleria {
  background: url('../media/Wall003.jpg') center 35% / cover no-repeat;
}

.page-banner.page-banner-contattaci {
  background: url('../media/Wall005.jpg') center 40% / cover no-repeat;
}

.page-banner.page-banner-privacy {
  background: url('../media/Headers005.jpg') center 30% / cover no-repeat;
}

.page-banner.page-banner-404 {
  background: url('../media/Wall003.jpg') center 35% / cover no-repeat;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 20, 45, 0.40) 0%, rgba(42, 20, 45, 0.65) 55%, rgba(30, 15, 33, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}

.team-banner-card,
.project-banner-card,
.sostienici-banner-card,
.gallery-banner-card,
.contact-banner-card,
.banner-glass-card {
  position: relative;
  z-index: 2;
  background: rgba(42, 20, 45, 0.70) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 28px !important;
  padding: 28px 44px !important;
  max-width: 720px !important;
  margin: 40px auto 0 !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
}

.page-banner .page-title {
  color: #ffffff !important;
  font-size: 2.8rem !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  margin-bottom: 8px !important;
}

.page-banner .page-subtitle {
  color: #f7e6f8 !important;
  font-size: 1.15rem !important;
  font-weight: 300 !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
}

.page-banner .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.page-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(91, 200, 199, 0.2);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.page-title {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: #e2d9e6;
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 300;
}

/* ==========================================================================
   Homepage Hero with Native Background Video
   ========================================================================== */
.hero-video-section {
  position: relative;
  background: #2a142d url('../media/hero-video-poster.jpg') center center / cover no-repeat;
  color: #ffffff;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 150px 20px 150px;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38, 16, 42, 0.72) 0%, rgba(68, 36, 74, 0.52) 50%, rgba(32, 14, 36, 0.76) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-video-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffe58f;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-video-title {
  color: #ffffff;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.hero-video-quote {
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  color: #f7f3f9;
  margin: 0 auto 34px;
  max-width: 720px;
  font-weight: 300;
  line-height: 1.65;
  font-style: italic;
  border: none;
  padding: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-video-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn-main {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  padding: 16px 42px !important;
  border-radius: 50px !important;
  box-shadow: 0 10px 30px rgba(244, 197, 66, 0.45) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-btn-main:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 14px 38px rgba(244, 197, 66, 0.6) !important;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1.8px solid rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 15px 32px !important;
  border-radius: 50px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
}

.hero-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-wave-bottom svg {
  display: block;
  width: calc(100% + 2px);
  position: relative;
  left: -1px;
  height: 60px;
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .hero-video-section {
    min-height: 520px;
    padding: 120px 16px 110px;
  }
  .hero-wave-bottom svg {
    height: 40px;
  }
  .hero-btn-main, .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Wave Divider */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 35px;
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--color-secondary-light);
  color: var(--color-secondary-hover);
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.15rem;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Signature Dashed Box (The iconic Mani di Pace Elementor style) */
.dashed-box {
  background: #ffffff;
  border: 2px dashed var(--color-secondary);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(76, 45, 80, 0.06);
  transition: all 0.3s ease;
}

.dashed-box:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(76, 45, 80, 0.12);
}

.dashed-box-cyan {
  border-color: var(--color-primary);
  background: linear-gradient(180deg, rgba(91, 200, 199, 0.04) 0%, #ffffff 100%);
}

.dashed-box-cyan:hover {
  border-color: #086e6d;
  box-shadow: 0 8px 24px rgba(91, 200, 199, 0.25);
}

.dashed-box-gold {
  border-color: var(--color-accent);
}

.grid-3 > .dashed-box {
  display: flex;
  flex-direction: column;
}

/* Event & Discover Section (Original Elementor Overlapping Collage Layout) */
.events-section-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 56px;
}

.events-collage {
  position: relative;
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.events-collage-main {
  width: 86%;
  border-radius: 28px;
  border: 4px solid var(--color-accent);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(76, 45, 80, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.events-collage-main img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.events-collage-overlap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 53%;
  border-radius: 22px;
  border: 4px solid var(--color-accent);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(76, 45, 80, 0.18);
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.events-collage-overlap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.events-collage:hover .events-collage-main {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(76, 45, 80, 0.16);
}

.events-collage:hover .events-collage-overlap {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 48px rgba(76, 45, 80, 0.22);
}

.events-collage:hover img {
  transform: scale(1.03);
}

.events-eyebrow {
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: inline-block;
  text-transform: uppercase;
}

.events-title {
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.25;
  margin-bottom: 18px;
}

.events-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 26px;
}

.events-handshake-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.events-handshake-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  fill: var(--color-secondary);
  transition: transform 0.3s ease;
}

.events-handshake-row:hover .events-handshake-icon {
  transform: scale(1.08);
}

.events-handshake-text {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-dark);
  line-height: 1.4;
}

.events-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 34px;
}

.events-feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.events-feature-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: var(--color-primary);
  margin-top: 2px;
}

.events-feature-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-dark);
  margin-bottom: 4px;
  line-height: 1.35;
}

.events-feature-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.btn-secondary-pill {
  background-color: var(--color-secondary);
  color: #ffffff !important;
  border-radius: var(--radius-full);
  padding: 12px 36px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(178, 135, 183, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-pill:hover {
  background-color: var(--color-secondary-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(178, 135, 183, 0.45);
}

@media (max-width: 900px) {
  .events-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .events-collage {
    margin-bottom: 30px;
  }
}

@media (max-width: 600px) {
  .events-features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Modern Donation Code Blocks */
.donation-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}

.donation-badge-purple {
  background: rgba(178, 135, 183, 0.15);
  color: var(--color-dark);
  border: 1px solid rgba(178, 135, 183, 0.4);
}

.donation-badge-gold {
  background: rgba(244, 197, 66, 0.18);
  color: #8c6b04;
  border: 1px solid rgba(244, 197, 66, 0.45);
}

.donation-badge-cyan {
  background: rgba(91, 200, 199, 0.16);
  color: #076261;
  border: 1px solid rgba(91, 200, 199, 0.45);
}

.donation-code-block {
  background: #fbf9fd;
  border: 1.5px solid rgba(178, 135, 183, 0.28);
  border-radius: 18px;
  padding: 16px 14px;
  margin: 18px 0;
  text-align: center;
  transition: all 0.2s ease;
}

.donation-code-block:hover {
  border-color: var(--color-secondary);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(178, 135, 183, 0.15);
}

.donation-code-block.donation-code-gold {
  background: #fffdf5;
  border-color: rgba(244, 197, 66, 0.35);
}

.donation-code-block.donation-code-gold:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(244, 197, 66, 0.2);
}

.donation-code-block.donation-code-cyan {
  background: #f4fafb;
  border-color: rgba(91, 200, 199, 0.35);
}

.donation-code-block.donation-code-cyan:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(91, 200, 199, 0.25);
}

.code-meta-label {
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.code-value-display {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-weight: 800;
  color: var(--color-dark);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  line-height: 1.45;
  margin-bottom: 14px;
  user-select: all;
}

.code-value-display.cf-value {
  font-size: 1.45rem;
  letter-spacing: 2px;
  color: #7a5c02;
}

.code-value-display.paypal-value {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #076261;
}

.btn-copy-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-dark);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(76, 45, 80, 0.2);
  text-decoration: none;
}

.btn-copy-wide:hover {
  background: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 200, 199, 0.35);
  color: #ffffff;
}

.btn-copy-wide.btn-copy-gold {
  background: #f4c542;
  color: #3f3100;
  box-shadow: 0 2px 6px rgba(244, 197, 66, 0.3);
}

.btn-copy-wide.btn-copy-gold:hover {
  background: #e2b22d;
  color: #2a2000;
  box-shadow: 0 4px 12px rgba(244, 197, 66, 0.45);
}

.btn-copy-wide.btn-paypal-cyan {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(91, 200, 199, 0.35);
}

.btn-copy-wide.btn-paypal-cyan:hover {
  background: #086e6d;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(91, 200, 199, 0.5);
}

.copy-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.paypal-svg-icon {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
}

.donation-card-footer {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(178, 135, 183, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 200, 199, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(91, 200, 199, 0.45);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(178, 135, 183, 0.35);
}

.btn-secondary:hover {
  background: var(--color-secondary-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--color-dark-deep);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-dark);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Project Cards (Legacy fallback) */
.project-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #ebdff0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* ==============================================================================
   ELEGANT MODERN PROJECT GRID & CARDS (Home & Progetti)
   ============================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.project-grid-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.22);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(76, 45, 80, 0.05), 0 2px 6px rgba(76, 45, 80, 0.02);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-grid-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 42px rgba(76, 45, 80, 0.12), 0 6px 14px rgba(91, 200, 199, 0.10);
}

.project-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7eff8 0%, #e8f9f9 100%);
  border-bottom: 3.5px solid var(--color-accent);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-grid-card:hover .project-card-media img {
  transform: scale(1.06);
}

.project-card-badge-area {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.project-card-badge-status {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge-attivo {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.status-badge-condiviso {
  background: var(--color-accent);
  color: #6b4d02;
  box-shadow: 0 4px 12px rgba(244, 197, 66, 0.35);
}

.status-badge-concluso {
  background: rgba(76, 45, 80, 0.88);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(76, 45, 80, 0.35);
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-sector {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-secondary-hover);
  margin-bottom: 8px;
  display: block;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.project-grid-card:hover .project-card-title {
  color: #087d7b;
}

.project-card-divider {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  margin-bottom: 12px;
}

.project-card-excerpt {
  font-size: 0.92rem;
  color: #554859;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(178, 135, 183, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card-cta-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary-hover);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}

.project-grid-card:hover .project-card-cta-label {
  color: #087d7b;
}

.project-card-arrow-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-grid-card:hover .project-card-arrow-circle {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateX(4px) scale(1.05);
  box-shadow: 0 4px 14px rgba(91, 200, 199, 0.45);
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Smooth Anchor Scrolling & Offset for Sticky Header */
#progetti-content,
#prodotti-section,
#donazione-section,
.project-tabs-container,
[id^="tab-"],
[id^="project-"] {
  scroll-margin-top: 110px;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.badge-attivo {
  background: var(--color-primary);
}

.badge-condiviso {
  background: var(--color-secondary);
}

.badge-concluso {
  background: var(--color-dark-soft);
}

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.project-excerpt {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ==============================================================================
   Projects Interactive Tabs & Horizontal Card System (Elevated Modern NGO UI)
   ============================================================================== */
.project-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.project-tabs-nav {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px;
  border-radius: 999px;
  border: 1.5px solid rgba(178, 135, 183, 0.28);
  box-shadow: 0 8px 25px rgba(76, 45, 80, 0.08);
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-tab-btn {
  background: transparent;
  color: var(--color-dark);
  border: none;
  border-radius: 999px;
  padding: 11px 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.project-tab-btn .tab-badge {
  background: rgba(76, 45, 80, 0.08);
  color: var(--color-dark);
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.project-tab-btn:hover {
  background: rgba(244, 197, 66, 0.16);
  color: #7a5a02;
}

.project-tab-btn.active {
  background: linear-gradient(135deg, var(--color-primary), #41b5b4);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(91, 200, 199, 0.45);
  font-weight: 800;
}

.project-tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.project-tab-pane {
  display: none;
}

.project-tab-pane.active {
  display: block;
  animation: fadeInPane 0.35s ease;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Horizontal Project Stack (Narrower & Sleeker NGO UI) */
.project-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.project-card-horizontal {
  position: relative;
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.26);
  border-radius: 24px;
  box-shadow: 0 8px 24px -4px rgba(76, 45, 80, 0.06), 0 2px 8px -2px rgba(76, 45, 80, 0.02);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card-horizontal:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 18px 36px -6px rgba(76, 45, 80, 0.12), 0 6px 14px -4px rgba(76, 45, 80, 0.05);
}

.project-card-horizontal:hover .btn-primary {
  background: var(--color-primary-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 14px rgba(91, 200, 199, 0.45);
}

.project-thumb-box {
  flex: 0 0 215px;
  width: 215px;
  height: 160px;
  border: 3px solid var(--color-accent); /* #F4C542 Oro */
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #fbf7fd, #edfbfb);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  position: relative;
}

.project-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.project-card-horizontal:hover .project-thumb-box img {
  transform: scale(1.06);
}

.project-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.project-tag-pill {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-secondary-hover);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-info-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: color 0.25s ease;
}

.project-card-horizontal:hover .project-info-title {
  color: #087d7b;
}

.project-divider-line {
  height: 3px;
  width: 55px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  margin-bottom: 10px;
}

.project-info-excerpt {
  font-size: 0.9375rem;
  color: #524755;
  line-height: 1.55;
  margin-bottom: 14px;
}

.project-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(178, 135, 183, 0.16);
}

.project-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.project-badge-pill.pill-attivo {
  background: rgba(91, 200, 199, 0.12);
  color: #086e6d;
  border: 1.5px solid var(--color-primary);
}

.project-badge-pill.pill-concluso {
  background: rgba(76, 45, 80, 0.08);
  color: var(--color-dark);
  border: 1.5px solid rgba(76, 45, 80, 0.6);
}

.project-badge-pill.pill-condiviso {
  background: rgba(244, 197, 66, 0.18);
  color: #8c6b04;
  border: 1.5px solid var(--color-accent);
}

@media (max-width: 860px) {
  .project-card-horizontal {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 22px;
  }

  .project-thumb-box {
    flex: 0 0 auto;
    width: 100%;
    max-width: 340px;
    height: 220px;
    margin: 0 auto;
  }

  .project-meta-row {
    justify-content: center;
  }

  .project-divider-line {
    margin-left: auto;
    margin-right: auto;
  }

  .project-footer-row {
    justify-content: center;
  }
}

/* Product Cards (Clickable in every point) */
.product-card {
  background: #fff;
  border: 2px dashed var(--color-secondary);
  border-radius: 24px;
  overflow: hidden;
  padding: 22px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 30px rgba(76, 45, 80, 0.12);
}

.product-card:hover .product-title {
  color: var(--color-primary);
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-card:hover .btn-product-action {
  background: var(--color-dark);
  transform: translateY(-1px);
}

.product-card-footer {
  margin-top: auto;
  padding-top: 14px;
}

.btn-product-action {
  width: 100%;
  padding: 10px 20px;
  font-size: 0.875rem;
  border-radius: 999px;
  pointer-events: none;
}

/* ==============================================================================
   Product Detail Page Revamp (Artisanal Solidarity Boutique UI)
   ============================================================================== */
.product-detail-banner {
  background: linear-gradient(135deg, #381a3b 0%, #251027 60%, #190a1b 100%);
  padding: 46px 0 38px;
  color: #ffffff;
  position: relative;
}

.product-detail-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.product-detail-subtitle {
  font-size: 1.125rem;
  color: #ebdcee;
  max-width: 820px;
  line-height: 1.6;
  margin: 0;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
}

.product-detail-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.product-hero-showcase {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 3.5px solid var(--color-accent);
  box-shadow: 0 14px 36px rgba(76, 45, 80, 0.12);
  background: #fdfafd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  min-height: 380px;
}

.product-hero-showcase img {
  max-height: 360px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-hero-showcase:hover img {
  transform: scale(1.05);
}

.product-quality-ribbon {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(42, 20, 45, 0.85);
  color: #ffd859;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(244, 197, 66, 0.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-secondary-gallery {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.product-thumb-item {
  width: 100px;
  height: 90px;
  border-radius: 14px;
  border: 2px solid rgba(178, 135, 183, 0.35);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
  cursor: pointer;
}

.product-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-quote-card {
  background: linear-gradient(135deg, rgba(91, 200, 199, 0.1) 0%, rgba(178, 135, 183, 0.12) 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 18px 18px 0;
  padding: 20px 24px;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-dark);
  line-height: 1.65;
  box-shadow: 0 4px 14px rgba(76, 45, 80, 0.04);
}

.product-quote-author {
  display: block;
  font-style: normal;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.product-story-card {
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.2);
  border-radius: 24px;
  padding: 32px 34px;
  box-shadow: 0 4px 20px rgba(76, 45, 80, 0.05);
}

.product-lead-p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-dark);
  font-weight: 600;
  margin-bottom: 18px;
}

.product-body-p {
  font-size: 1.025rem;
  line-height: 1.78;
  color: #382c3c;
  margin-bottom: 20px;
}

.product-specs-box {
  background: #fbf9fd;
  border: 1.5px dashed rgba(178, 135, 183, 0.35);
  border-radius: 20px;
  padding: 24px 26px;
  margin: 26px 0 10px;
}

.product-specs-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.product-spec-bullet {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.product-spec-text strong {
  color: var(--color-dark);
  font-weight: 700;
}

.product-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 100px;
}

.product-order-card {
  background: #ffffff;
  border: 2px solid var(--color-secondary);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 28px rgba(76, 45, 80, 0.08);
}

.product-order-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.product-order-badge {
  display: inline-block;
  background: rgba(244, 197, 66, 0.2);
  color: #8c6b04;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.product-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.885rem;
  color: var(--color-text);
}

.product-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-btn-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(91, 200, 199, 0.4);
}

.product-btn-order:hover {
  background: #086e6d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(91, 200, 199, 0.55);
}

.product-alt-donate-card {
  background: linear-gradient(180deg, #fffcf5 0%, #ffffff 100%);
  border: 1.5px dashed var(--color-accent);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
}

.sidebar-related-products {
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.2);
  border-radius: 20px;
  padding: 20px;
}

.sidebar-related-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 14px;
}

.sidebar-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(178, 135, 183, 0.15);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.sidebar-product-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-product-row:hover .sidebar-prod-name {
  color: var(--color-primary);
}

.sidebar-prod-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.sidebar-prod-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sidebar-prod-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.sidebar-prod-tag {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 2px;
}

@media (max-width: 960px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .product-sidebar {
    position: static;
  }
}

.product-img-box {
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--color-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 16px;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-title {
  font-size: 1.15rem;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ==============================================================================
   Modern Editorial Team Cards (2x2 Balanced Grid - High-End NGO UI)
   ============================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto;
}

.team-card-modern {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(178, 135, 183, 0.22);
  border-radius: 28px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -4px rgba(76, 45, 80, 0.06), 0 4px 12px -2px rgba(76, 45, 80, 0.03);
  overflow: hidden;
}

/* Subtle top colored accent strip */
.team-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 28px 28px 0 0;
}

.team-card-modern.accent-gold::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

.team-card-modern.accent-cyan::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.team-card-modern.accent-lilac::before {
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
}

.team-card-modern.accent-dark::before {
  background: linear-gradient(90deg, var(--color-dark), var(--color-primary));
}

.team-card-modern:hover {
  transform: translateY(-5px);
  border-color: rgba(91, 200, 199, 0.6);
  box-shadow: 0 22px 42px -8px rgba(76, 45, 80, 0.12), 0 8px 16px -4px rgba(76, 45, 80, 0.05);
}

/* Header: Avatar + Identity */
.team-card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(178, 135, 183, 0.16);
}

.team-avatar-frame {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 6px 16px rgba(76, 45, 80, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.team-card-modern:hover .team-avatar-frame {
  transform: scale(1.05);
}

.team-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 21px;
  overflow: hidden;
  background: linear-gradient(145deg, #f7f1fa 0%, #eaf8f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-identity {
  flex: 1;
  min-width: 0;
}

.team-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0 0 6px;
  line-height: 1.25;
}

.team-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(91, 200, 199, 0.12);
  color: #0b7070;
  border: 1px solid rgba(91, 200, 199, 0.45);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Featured Lead Quote */
.team-highlight-quote {
  background: #fbf9fd;
  border-left: 3px solid var(--color-secondary);
  border-radius: 0 14px 14px 0;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.55;
  font-weight: 500;
}

/* Bio Stories */
.team-story-body {
  flex: 1;
  font-size: 0.95rem;
  color: #4a424d;
  line-height: 1.75;
}

.team-story-body p {
  margin-bottom: 12px;
}

.team-story-body p:last-child {
  margin-bottom: 0;
}

.team-story-body strong {
  color: var(--color-dark);
  font-weight: 700;
}

@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .team-card-modern {
    padding: 24px 20px;
  }
}

/* Legacy Team Cards */
.team-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1060px;
  margin: 0 auto;
}

.team-card-horizontal {
  position: relative;
  background: #ffffff;
  border: 2px solid rgba(178, 135, 183, 0.35);
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(76, 45, 80, 0.06);
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 38px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.team-card-horizontal:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 45px rgba(76, 45, 80, 0.12);
}

.team-photo-box {
  flex: 0 0 260px;
  width: 260px;
  height: 310px;
  border: 4px solid var(--color-accent); /* #F4C542 Oro Astra */
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(145deg, #faf5fc 0%, #ebf8f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  position: relative;
}

.team-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.team-card-horizontal:hover .team-photo-box img {
  transform: scale(1.03);
}

.team-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.team-pill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(178, 135, 183, 0.22);
}

.team-pill-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.team-pill-role {
  background: rgba(91, 200, 199, 0.12);
  color: #0b7070;
  border: 1.5px solid var(--color-primary);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.team-bio-rich {
  font-size: 1.02rem;
  color: #403842;
  line-height: 1.75;
}

.team-bio-rich p {
  margin-bottom: 14px;
}

.team-bio-rich p:last-child {
  margin-bottom: 0;
}

.team-bio-rich strong {
  color: var(--color-dark-deep);
  font-weight: 700;
}

@media (max-width: 860px) {
  .team-card-horizontal {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 22px;
  }
  
  .team-photo-box {
    flex: 0 0 auto;
    width: 220px;
    height: 270px;
    margin: 0 auto;
  }

  .team-pill-header {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid rgba(178, 135, 183, 0.22);
  }

  .team-bio-rich {
    text-align: left;
  }
}

.team-card {
  background: #fff;
  border-radius: 24px;
  border: 2px dashed var(--color-secondary);
  padding: 28px;
  transition: all 0.3s ease;
}

.team-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.team-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.team-photo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--color-primary);
  background: var(--color-bg-alt);
}

.team-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
}

.team-name {
  font-size: 1.25rem;
  color: var(--color-dark);
}

.team-role {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-secondary-light);
  color: var(--color-secondary-hover);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 4px;
}

.team-bio {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-style: italic;
  line-height: 1.6;
}

/* Donation Boxes */
.donate-box {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-top: 6px solid var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.donate-box.featured {
  border-top-color: var(--color-accent);
  background: linear-gradient(180deg, #fffcf2 0%, #ffffff 100%);
  border: 2px dashed var(--color-accent);
  border-top: 6px solid var(--color-accent);
}

.copy-input-group {
  display: flex;
  align-items: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 16px 0;
  gap: 10px;
}

.copy-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1.05rem;
  word-break: break-all;
  flex-grow: 1;
}

.btn-copy {
  background: var(--color-dark);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: var(--color-primary);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(76, 45, 80, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(91, 200, 199, 0.45);
  border: 1px solid rgba(91, 200, 199, 0.85);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-badge-link.gallery-badge-general {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: #f7eff9;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(42, 20, 45, 0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 28px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(76, 45, 80, 0.7);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 30px;
}

/* In-Site PayPal Donation Modal */
.modal-donation-dialog {
  background: #ffffff;
  border-radius: 28px;
  max-width: 500px;
  width: 100%;
  padding: 34px 30px;
  position: relative;
  box-shadow: 0 20px 60px rgba(42, 20, 45, 0.4);
  animation: modalScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-donation-header {
  text-align: center;
  margin-bottom: 22px;
}

.modal-donation-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(91, 200, 199, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.amount-selector-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
  text-align: center;
}

.amount-pills-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.amount-pill {
  border: 1.5px solid rgba(178, 135, 183, 0.35);
  background: #ffffff;
  color: var(--color-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.amount-pill:hover {
  border-color: var(--color-primary);
  background: rgba(91, 200, 199, 0.08);
}

.amount-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(91, 200, 199, 0.35);
}

.amount-pill .pill-rec {
  display: inline-block;
  font-size: 0.65rem;
  background: #f4c542;
  color: #3f3100;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 4px;
  font-weight: 800;
  vertical-align: middle;
}

.amount-pill.active .pill-rec {
  background: #ffffff;
  color: #076261;
}

.donation-impact-box {
  background: #fbf9fd;
  border: 1px dashed rgba(178, 135, 183, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 18px 0;
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-proceed-paypal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(91, 200, 199, 0.4);
  transition: all 0.25s ease;
}

.btn-proceed-paypal:hover {
  background: #086e6d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 200, 199, 0.55);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--color-dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--color-primary);
  display: none;
  animation: toastSlide 0.3s ease;
}

@keyframes toastSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: #f7eff8;
  padding: 70px 0 30px;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #dfd4e2;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8125rem;
  color: #c9bed0;
}

/* ==============================================================================
   Project Detail Page Revamp (Elevated Editorial NGO UI)
   ============================================================================== */
.project-detail-banner {
  background: linear-gradient(135deg, #3d1b40 0%, #2a132c 60%, #1c0c1e 100%);
  padding: 48px 0 40px;
  color: #ffffff;
  position: relative;
}

.project-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.project-breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-breadcrumbs a:hover {
  color: var(--color-accent);
}

.project-breadcrumbs .crumb-sep {
  color: rgba(255, 255, 255, 0.4);
}

.project-breadcrumbs .current-crumb {
  color: #ffffff;
  font-weight: 600;
}

.project-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* High-Contrast Badges on Dark Banner */
.project-detail-banner .project-badge-pill {
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 6px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.project-detail-banner .project-badge-pill.pill-attivo {
  background: rgba(91, 200, 199, 0.24);
  color: #5cf5f3;
  border: 1.8px solid #5bc8c7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.project-detail-banner .project-badge-pill.pill-concluso {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1.8px solid rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.project-detail-banner .project-badge-pill.pill-condiviso {
  background: rgba(244, 197, 66, 0.25);
  color: #ffe685;
  border: 1.8px solid #f4c542;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.project-detail-banner .project-tag-pill {
  color: #ffd859 !important;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.project-detail-banner .banner-sector-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

/* Returning Focus Pulse Animation */
@keyframes projectPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 200, 199, 0.8);
    border-color: var(--color-primary);
    transform: translateY(-2px);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(91, 200, 199, 0.3);
    border-color: var(--color-primary);
    transform: translateY(-4px);
  }
  100% {
    box-shadow: 0 8px 24px -4px rgba(76, 45, 80, 0.06);
    transform: translateY(0);
  }
}

.project-card-horizontal.project-highlight-pulse {
  animation: projectPulse 1.8s ease;
}

.project-detail-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.project-detail-subtitle {
  font-size: 1.125rem;
  color: #eeddf1;
  max-width: 820px;
  line-height: 1.6;
  margin: 0;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
}

.project-detail-main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.project-hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 3.5px solid var(--color-accent);
  box-shadow: 0 14px 36px rgba(76, 45, 80, 0.12);
  aspect-ratio: 16 / 10;
  max-height: 440px;
  background: #2a132c;
}

.project-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-fact-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.project-fact-chip {
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.22);
  border-radius: 16px;
  padding: 13px 16px;
  box-shadow: 0 4px 12px rgba(76, 45, 80, 0.03);
  display: flex;
  align-items: center;
  gap: 12px;
}

.fact-chip-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.fact-chip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-muted);
  font-weight: 700;
  display: block;
}

.fact-chip-val {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-top: 2px;
  display: block;
}

.project-story-card {
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.22);
  border-radius: 26px;
  padding: 42px 40px;
  box-shadow: 0 10px 32px rgba(76, 45, 80, 0.05);
}

.story-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-lead {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.8;
  color: #241728;
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(90deg, rgba(91, 200, 199, 0.09) 0%, rgba(91, 200, 199, 0.02) 100%);
  padding: 18px 24px;
  border-radius: 0 16px 16px 0;
  margin-bottom: 28px;
}

.story-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #382c3c;
}

.story-body p {
  margin-bottom: 22px;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-feature-card {
  background: #fdfafc;
  border: 1.5px solid rgba(178, 135, 183, 0.24);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(76, 45, 80, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.story-feature-card:hover {
  border-color: var(--color-primary);
}

.story-feature-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-feature-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #443748;
}

.story-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(91, 200, 199, 0.06);
  border: 1px solid rgba(91, 200, 199, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 1.03rem;
  line-height: 1.65;
  color: #2b202f;
}

.story-list-item .list-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.3;
}

.story-meta-pillbox {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1.5px dashed rgba(178, 135, 183, 0.25);
}

.story-meta-pill {
  background: #f6f1f8;
  border: 1px solid rgba(178, 135, 183, 0.3);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-detail-gallery {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(178, 135, 183, 0.2);
}

.project-detail-gallery h3 {
  font-size: 1.25rem;
  color: var(--color-dark);
  font-weight: 800;
  margin-bottom: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 2.5px solid var(--color-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
  background: #eee;
}

.gallery-thumb:hover {
  transform: scale(1.03);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-detail-sidebar {
  position: sticky;
  top: 95px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-donate-card {
  background: linear-gradient(145deg, #ffffff 0%, #fdf9fe 100%);
  border: 2px dashed var(--color-secondary);
  border-radius: 24px;
  padding: 26px 22px;
  box-shadow: 0 8px 24px rgba(76, 45, 80, 0.06);
  text-align: center;
}

.sidebar-donate-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.sidebar-donate-desc {
  font-size: 0.9375rem;
  color: #554a59;
  line-height: 1.55;
  margin-bottom: 18px;
}

.sidebar-copy-box {
  background: rgba(91, 200, 199, 0.08);
  border: 1px solid rgba(91, 200, 199, 0.4);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: left;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sidebar-copy-box.gold {
  background: rgba(244, 197, 66, 0.12);
  border-color: rgba(244, 197, 66, 0.5);
}

.sidebar-box {
  background: #ffffff;
  border: 1px solid rgba(178, 135, 183, 0.22);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(76, 45, 80, 0.03);
}

.sidebar-box-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-mini-project {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(178, 135, 183, 0.15);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.sidebar-mini-project:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-mini-project:hover {
  transform: translateX(3px);
}

.sidebar-mini-thumb {
  width: 54px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 54px;
  border: 1.5px solid var(--color-accent);
}

.sidebar-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-mini-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
}

@media (max-width: 960px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
  }
  .project-detail-sidebar {
    position: static;
  }
  .project-detail-title {
    font-size: 2.15rem;
  }
  .project-fact-chips {
    grid-template-columns: 1fr 1fr;
  }
}

/* Responsive Nav & Mobile Drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 27, 46, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s ease;
  z-index: 998;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

body.mobile-menu-active {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px 20px 24px;
    box-shadow: 0 18px 40px rgba(76, 45, 80, 0.16);
    border-bottom: 3px solid var(--color-primary);
    border-radius: 0 0 24px 24px;
    gap: 6px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.26s ease;
    pointer-events: none;
    z-index: 1000;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    box-sizing: border-box;
    min-height: 46px;
  }

  .nav-menu .btn-donate {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 14px;
    min-height: 48px;
    box-sizing: border-box;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Contact Page Styles (Clean, Spacious & Elegant)
   ========================================================================== */
.contact-form-card {
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.22);
  border-radius: 26px;
  padding: 40px 38px;
  box-shadow: 0 14px 40px rgba(76, 45, 80, 0.05);
  position: relative;
}

.contact-prefill-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(244, 197, 66, 0.2), rgba(91, 200, 199, 0.14));
  border: 1.5px solid #f4c542;
  border-radius: 16px;
  padding: 14px 20px;
  margin-bottom: 24px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 680px) {
  .contact-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-card {
    padding: 28px 20px;
  }
}

.contact-input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 7px;
}

.contact-input-field,
.contact-textarea-field {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(76, 45, 80, 0.16);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-dark);
  background: #faf8fc;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.contact-select-field {
  width: 100%;
  padding: 13px 44px 13px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(76, 45, 80, 0.16);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--color-dark);
  background-color: #faf8fc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234c2d50' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.contact-select-field:hover {
  border-color: rgba(91, 200, 199, 0.6);
  background-color: #ffffff;
}

.contact-input-field:focus,
.contact-select-field:focus,
.contact-textarea-field:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(91, 200, 199, 0.2);
}

.contact-map-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(178, 135, 183, 0.25);
  margin: 14px 0 12px;
  box-shadow: 0 4px 14px rgba(76, 45, 80, 0.06);
}

.social-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.social-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.social-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.social-btn-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff !important;
}
.social-btn-fb {
  background: #1877f2;
  color: #ffffff !important;
}

.btn-send-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(76, 45, 80, 0.14);
  background: #ffffff;
  color: var(--color-dark);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  text-decoration: none;
  box-sizing: border-box;
}
.btn-send-choice:hover {
  border-color: var(--color-primary);
  background: rgba(91, 200, 199, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 200, 199, 0.2);
}
.btn-send-choice.primary-choice {
  background: linear-gradient(135deg, #5bc8c7, #48b4b3);
  color: #ffffff;
  border: none;
}
.btn-send-choice.primary-choice:hover {
  background: linear-gradient(135deg, #48b4b3, #389e9d);
}

.banner-divider-plane {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.banner-divider-plane::before,
.banner-divider-plane::after {
  content: "";
  display: block;
  height: 1.5px;
  width: 60px;
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Contact Security & Anti-Spam Elements
   ========================================================================== */
.contact-security-box {
  background: #faf8fc;
  border: 1.5px solid rgba(178, 135, 183, 0.22);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.captcha-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 200, 199, 0.16);
  border: 1.5px solid var(--color-primary);
  color: #086e6d;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 10px;
  user-select: none;
  letter-spacing: 0.5px;
}

.contact-success-card {
  background: linear-gradient(135deg, rgba(91, 200, 199, 0.14), rgba(40, 167, 69, 0.10));
  border: 1.8px solid #28a745;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 24px;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-error-banner {
  background: rgba(220, 53, 69, 0.1);
  border: 1.5px solid #dc3545;
  color: #721c24;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spinLoader 0.7s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 1.85rem;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar {
    display: none;
  }
}

/* ==============================================================================
   MOBILE AUDIT OPTIMIZATIONS (iOS Zoom, Safe Areas, Touch Targets, Pill-Scroll)
   ============================================================================== */

/* iOS Safari Auto-Zoom Fix (<16px causes auto-zoom on focus) */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="search"],
  select,
  textarea,
  .contact-input-field,
  .contact-select-field,
  .contact-textarea-field {
    font-size: 16px !important;
  }
}

/* Lightbox Mobile & Safe Area Enhancements */
.lightbox-close-btn {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: max(16px, env(safe-area-inset-right, 16px));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(42, 20, 45, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--color-primary);
  transform: scale(1.08);
}

.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42, 20, 45, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev-btn {
  left: max(16px, env(safe-area-inset-left, 16px));
}

.lightbox-next-btn {
  right: max(16px, env(safe-area-inset-right, 16px));
}

@media (max-width: 600px) {
  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    background: rgba(42, 20, 45, 0.88);
  }
  .lightbox-prev-btn {
    left: 8px;
  }
  .lightbox-next-btn {
    right: 8px;
  }
}

/* Document Cards & PDF Mobile Fallback */
.doc-download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  gap: 16px;
}

.pdf-mobile-preview {
  display: none;
}

@media (max-width: 768px) {
  .pdf-desktop-embed {
    display: none;
  }
  .pdf-mobile-preview {
    display: block;
    background: #ffffff;
    border: 1.5px dashed rgba(178, 135, 183, 0.45);
    border-radius: 20px;
    padding: 26px 20px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(76, 45, 80, 0.05);
  }
  .pdf-mobile-preview-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    display: inline-block;
  }
}

@media (max-width: 540px) {
  .doc-download-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 16px 18px;
    gap: 14px;
  }
  .doc-download-card .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
  }
}

/* Project Tabs Smooth Horizontal Scroll on Mobile */
@media (max-width: 680px) {
  .project-tabs-container {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 16px 14px;
    margin-left: -16px;
    margin-right: -16px;
    scrollbar-width: none;
  }
  .project-tabs-container::-webkit-scrollbar {
    display: none;
  }
  .project-tabs-nav {
    display: inline-flex;
    flex-wrap: nowrap;
    max-width: none;
    width: auto;
    white-space: nowrap;
    border-radius: 999px;
  }
  .project-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 0.85rem;
    min-height: 44px;
  }
}

/* Small Screens (320px - 420px) Branding & Touch Safeguards */
@media (max-width: 420px) {
  .logo-img {
    height: 38px;
  }
  .logo-title {
    font-size: 1.125rem;
  }
  .logo-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }
  .navbar {
    padding: 10px 0;
  }
  .events-collage-main {
    border-width: 3px;
  }
  .events-collage-overlap {
    border-width: 3px;
  }
  .contact-security-box input#f-captcha {
    max-width: 100% !important;
    width: 100%;
    box-sizing: border-box;
  }
  .amount-pills-row {
    gap: 6px;
  }
  .amount-pill {
    padding: 8px 10px;
    font-size: 0.825rem;
  }
}

/* ==============================================================================
   ELEGANT & NATIVE ANIMATION SUITE (Mani di Pace ODV)
   Hardware-accelerated CSS3 transitions, GPU layers & 60 FPS performance
   ============================================================================== */

/* 1. Scroll Reading Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary, #5bc8c7), #f4c542, #7042ba);
  z-index: 99999;
  transition: width 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(91, 200, 199, 0.6);
}

/* 2. Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  right: max(20px, env(safe-area-inset-right, 20px));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-dark, #4c2d50);
  color: #ffffff;
  border: 1.8px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 26px rgba(76, 45, 80, 0.25);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.88);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s,
              background-color 0.25s,
              box-shadow 0.25s;
  user-select: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--color-primary, #5bc8c7);
  color: var(--color-dark, #4c2d50);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 32px rgba(91, 200, 199, 0.45);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* 3. Scroll Reveal Engine (Data attributes & Classes) */
[data-animate],
.reveal {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations Variants */
[data-animate="fade-up"],
.reveal-up {
  transform: translateY(32px);
}

[data-animate="fade-down"],
.reveal-down {
  transform: translateY(-24px);
}

[data-animate="fade-scale"],
.reveal-scale {
  transform: scale(0.93);
}

[data-animate="fade-left"],
.reveal-left {
  transform: translateX(-32px);
}

[data-animate="fade-right"],
.reveal-right {
  transform: translateX(32px);
}

[data-animate="fade-in"],
.reveal-fade {
  transform: none;
}

/* Triggered State */
[data-animate].is-revealed,
.reveal.is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Stagger Delays for Grids and Child Elements */
[data-delay="80"],  .stagger-1 { transition-delay: 0.08s; }
[data-delay="150"], .stagger-2 { transition-delay: 0.16s; }
[data-delay="220"], .stagger-3 { transition-delay: 0.24s; }
[data-delay="300"], .stagger-4 { transition-delay: 0.32s; }
[data-delay="380"], .stagger-5 { transition-delay: 0.40s; }
[data-delay="460"], .stagger-6 { transition-delay: 0.48s; }

/* 4. Hero Section Fluid Entrance Sequence */
@keyframes heroEntranceBadge {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroEntranceTitle {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroEntranceQuote {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroEntranceCta {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softGlowPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(244, 197, 66, 0.42);
  }
  50% {
    box-shadow: 0 14px 40px rgba(244, 197, 66, 0.68);
  }
}

.hero-video-badge {
  animation: heroEntranceBadge 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.hero-video-title {
  animation: heroEntranceTitle 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.24s both;
}

.hero-video-quote {
  animation: heroEntranceQuote 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.hero-video-cta {
  animation: heroEntranceCta 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

.hero-btn-main {
  animation: softGlowPulse 3.8s ease-in-out infinite 1.2s;
}

/* Secondary Hero / Page Banners Entrance */
.project-banner-card,
.sostienici-banner-card {
  animation: heroEntranceTitle 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* 5. Refined Card & Micro-interactions */
.dashed-box {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease !important;
}

.dashed-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(76, 45, 80, 0.10);
}

.dashed-box img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashed-box:hover img {
  transform: scale(1.04);
}

/* Subtle magnetic arrow movement on buttons */
.hero-btn-secondary span:last-child,
.project-card .btn-primary,
.product-card .btn-product-action,
.btn-primary svg {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-secondary:hover span:last-child {
  transform: translateX(4px);
}

.project-card:hover .btn-primary {
  transform: translateX(3px);
}

.product-card:hover .btn-product-action {
  transform: translateY(-2px);
}

/* Spring feedback for Copy Buttons */
.btn-copy-wide:active,
.btn-outline:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Tab panes smooth switch */
.project-tab-pane {
  animation: tabFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Lightbox subtle scale-in */
#gallery-lightbox.open .lightbox-modal {
  animation: modalScaleIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stat numbers count-up accent */
.counter-accent {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ==============================================================================
   INTERACTIVE 3D FLIPBOOK VIEWER (Cataloghi & Volantini Mani di Pace ODV)
   Realistic book rendering, 3D page curls, GPU acceleration & gesture controls
   ============================================================================== */

/* Catalog Switcher on Public volantini.html */
.catalog-selector-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.catalog-selector-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.35);
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(76, 45, 80, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-selector-pill:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 200, 199, 0.2);
}

.catalog-selector-pill.active {
  background: linear-gradient(135deg, var(--color-brand-primary, #4c2d50), #6a3e70);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(76, 45, 80, 0.25);
}

.catalog-selector-pill .pill-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
}

.catalog-selector-pill.active .pill-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.flipbook-section {
  padding: 40px 0 80px;
  background: radial-gradient(circle at 50% 15%, rgba(91, 200, 199, 0.08), rgba(255, 255, 255, 0) 70%);
}

.flipbook-card {
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.22);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(76, 45, 80, 0.08), 0 2px 10px rgba(0, 0, 0, 0.02);
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}

/* Toolbar */
.flipbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(247, 243, 248, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(178, 135, 183, 0.2);
  border-radius: 18px;
  margin-bottom: 24px;
}

.flipbook-page-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
}

.indicator-badge {
  background: var(--color-primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(91, 200, 199, 0.35);
}

.flipbook-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-flip-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--color-dark);
  border: 1px solid rgba(178, 135, 183, 0.3);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-flip-tool:hover {
  background: rgba(91, 200, 199, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-flip-tool:active {
  transform: scale(0.96);
}

.btn-flip-tool.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(91, 200, 199, 0.3);
}

.btn-flip-download {
  background: linear-gradient(135deg, var(--color-accent), #f7d468);
  color: #3b2a00;
  border: none;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(244, 197, 66, 0.35);
}

.btn-flip-download:hover {
  background: linear-gradient(135deg, #f7d468, var(--color-accent));
  color: #2b1f00;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 197, 66, 0.45);
}

/* Stage & 3D Perspective */
.flipbook-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  perspective: 2200px;
  user-select: none;
  padding: 24px 64px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(244, 238, 246, 0.55) 100%);
  border-radius: 22px;
  border: 1px dashed rgba(178, 135, 183, 0.28);
  margin-bottom: 20px;
}

/* Floating Navigation Arrows */
.flip-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-dark);
  border: 2px solid rgba(178, 135, 183, 0.35);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(76, 45, 80, 0.14);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.flip-nav-arrow:hover:not(:disabled) {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 28px rgba(91, 200, 199, 0.4);
}

.flip-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
  box-shadow: none;
}

.flip-prev {
  left: 14px;
}

.flip-next {
  right: 14px;
}

/* Book Container with Realistic Multi-layer Thickness */
.book-container {
  position: relative;
  width: 100%;
  max-width: 860px;
  aspect-ratio: 1410 / 1182;
  box-shadow:
    -6px 0 18px rgba(0, 0, 0, 0.08),
    10px 14px 40px rgba(76, 45, 80, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.04),
    4px 4px 0 -1px #fcfbfa,
    5px 5px 0 -1px #d6cbd8,
    8px 8px 0 -2px #faf7fa,
    9px 9px 0 -2px #bdaabd; /* Paper stack edge illusion */
  border-radius: 8px 18px 18px 8px;
  background: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

/* Spine Shadow on Left */
.book-spine-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.06) 50%, transparent 100%);
  z-index: 15;
  pointer-events: none;
  border-radius: 8px 0 0 8px;
}

/* Page Corner Curl Hint */
.page-corner-hint {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, transparent 50%, rgba(91, 200, 199, 0.35) 50%, rgba(244, 197, 66, 0.6) 100%);
  border-radius: 0 0 18px 0;
  z-index: 16;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.75;
}

.book-container:hover .page-corner-hint {
  transform: scale(1.15);
  opacity: 1;
}

/* Pages Stack */
.book-pages {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px 18px 18px 8px;
  overflow: hidden;
  background: #ffffff;
}

.book-page-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.4s ease,
              visibility 0.65s;
  will-change: transform, opacity;
  background: #ffffff;
}

.book-page-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Active Page */
.book-page-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
  transform: rotateY(0deg);
}

/* Flipping Forward Transition (3D Page Peel to Left) */
.book-page-item.flipping-out-forward {
  opacity: 1;
  visibility: visible;
  z-index: 12;
  animation: pageFlipForward 0.65s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.book-page-item.flipping-in-forward {
  opacity: 1;
  visibility: visible;
  z-index: 9;
}

/* Flipping Backward Transition */
.book-page-item.flipping-out-backward {
  opacity: 1;
  visibility: visible;
  z-index: 9;
}

.book-page-item.flipping-in-backward {
  opacity: 1;
  visibility: visible;
  z-index: 12;
  animation: pageFlipBackward 0.65s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes pageFlipForward {
  0% {
    transform: rotateY(0deg);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  50% {
    box-shadow: -20px 10px 40px rgba(0,0,0,0.35);
  }
  100% {
    transform: rotateY(-90deg) scale(0.98);
    opacity: 0;
  }
}

@keyframes pageFlipBackward {
  0% {
    transform: rotateY(-90deg) scale(0.98);
    opacity: 0;
  }
  50% {
    box-shadow: -20px 10px 40px rgba(0,0,0,0.35);
  }
  100% {
    transform: rotateY(0deg);
    opacity: 1;
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
}

/* Progress bar under book */
.flipbook-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(178, 135, 183, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 24px;
}

.flipbook-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Thumbnails Tray */
.flipbook-thumbs-tray {
  padding-top: 10px;
}

.thumbs-scroll {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px;
  scrollbar-width: thin;
}

.thumb-item {
  position: relative;
  flex: 0 0 110px;
  aspect-ratio: 1410 / 1182;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(178, 135, 183, 0.3);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(76, 45, 80, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(43, 27, 46, 0.82);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

.thumb-item:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(91, 200, 199, 0.35);
}

.thumb-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 200, 199, 0.35), 0 8px 20px rgba(91, 200, 199, 0.3);
  transform: translateY(-2px);
}

.thumb-item.active .thumb-badge {
  background: var(--color-primary);
}

/* Fullscreen Mode */
:fullscreen .flipbook-card,
:-webkit-full-screen .flipbook-card {
  border-radius: 0;
  border: none;
  padding: 20px;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #1c131e;
}

:fullscreen .flipbook-stage,
:-webkit-full-screen .flipbook-stage {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 0 80px;
}

:fullscreen .flipbook-toolbar,
:-webkit-full-screen .flipbook-toolbar {
  background: rgba(43, 27, 46, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

:fullscreen .flipbook-page-indicator,
:-webkit-full-screen .flipbook-page-indicator {
  color: #ffffff;
}

:fullscreen .btn-flip-tool,
:-webkit-full-screen .btn-flip-tool {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

:fullscreen .btn-flip-tool:hover,
:-webkit-full-screen .btn-flip-tool:hover {
  background: var(--color-primary);
}

/* High-Res Zoom Lightbox Modal */
.flipbook-zoom-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 14, 25, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.flipbook-zoom-modal.open {
  display: flex;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.flipbook-zoom-img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  cursor: zoom-out;
}

/* Mobile Responsiveness for Flipbook */
@media (max-width: 768px) {
  .flipbook-card {
    padding: 16px 12px;
    border-radius: 20px;
  }
  .flipbook-stage {
    padding: 10px 4px;
    min-height: auto;
  }
  .flip-nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
  }
  .flip-prev {
    left: 4px;
  }
  .flip-next {
    right: 4px;
  }
  .book-container {
    border-radius: 6px 12px 12px 6px;
    box-shadow: 0 10px 28px rgba(76, 45, 80, 0.15);
  }
  .thumbs-scroll {
    justify-content: flex-start;
  }
  .thumb-item {
    flex: 0 0 85px;
  }
  .tool-label {
    display: none;
  }
  .btn-flip-tool {
    padding: 8px 10px;
  }
}

/* ==============================================================================
   BILANCI INTERACTIVE ACCORDION & DROPDOWN VIEWER (Mani di Pace ODV)
   ============================================================================== */
.bilancio-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.bilancio-accordion-item {
  background: #ffffff;
  border: 1.5px solid rgba(178, 135, 183, 0.28);
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(76, 45, 80, 0.04);
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.bilancio-accordion-item:hover {
  border-color: rgba(91, 200, 199, 0.6);
  box-shadow: 0 10px 30px rgba(76, 45, 80, 0.08);
}

.bilancio-accordion-item.open {
  border-color: var(--color-primary);
  box-shadow: 0 14px 40px rgba(91, 200, 199, 0.18), 0 4px 16px rgba(76, 45, 80, 0.06);
}

/* Header Trigger */
.bilancio-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background 0.2s ease;
  user-select: none;
}

.bilancio-accordion-item.open .bilancio-accordion-header {
  background: linear-gradient(135deg, rgba(91, 200, 199, 0.08), rgba(244, 197, 66, 0.05));
  border-bottom: 1px solid rgba(178, 135, 183, 0.18);
}

.bilancio-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-grow: 1;
}

.bilancio-year-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(91, 200, 199, 0.35);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.bilancio-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bilancio-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0;
}

.bilancio-meta-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.bilancio-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(91, 200, 199, 0.15);
  color: #0d6e6d;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.775rem;
}

.bilancio-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bilancio-action-hint {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-block;
}

.bilancio-chevron {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(178, 135, 183, 0.14);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s;
}

.bilancio-accordion-header:hover .bilancio-chevron {
  background: var(--color-primary);
  color: #ffffff;
}

.bilancio-accordion-item.open .bilancio-chevron {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: #ffffff;
}

/* Accordion Body */
.bilancio-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.bilancio-accordion-item.open .bilancio-accordion-body {
  max-height: 900px;
}

.bilancio-body-inner {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bilancio-notes-bar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(247, 243, 248, 0.8);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 14px 14px 0;
  padding: 12px 18px;
}

.bilancio-notes-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.bilancio-notes-text {
  font-size: 0.925rem;
  color: var(--color-text);
  line-height: 1.55;
  margin: 0;
}

.bilancio-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bilancio-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 800;
  border-radius: 14px;
}

.bilancio-btn-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 700;
  border-radius: 14px;
}

.bilancio-preview-box {
  background: #fbf9fc;
  border: 1px solid rgba(178, 135, 183, 0.25);
  border-radius: 16px;
  padding: 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.03);
}

.bilancio-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.bilancio-preview-iframe {
  width: 100%;
  height: 440px;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  .bilancio-accordion-header {
    padding: 16px;
    gap: 12px;
  }
  .bilancio-header-left {
    gap: 12px;
  }
  .bilancio-year-badge {
    font-size: 1.05rem;
    padding: 8px 12px;
    border-radius: 10px;
  }
  .bilancio-title {
    font-size: 1.05rem;
  }
  .bilancio-action-hint {
    display: none;
  }
  .bilancio-body-inner {
    padding: 18px 16px;
  }
  .bilancio-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bilancio-btn-download, .bilancio-btn-view {
    width: 100%;
    justify-content: center;
  }
  .bilancio-preview-box {
    display: none;
  }
}

/* 6. Accessibility: Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate],
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-progress-bar {
    display: none !important;
  }
  .back-to-top {
    transition: none !important;
  }
}
