/* =============================================
   ASSOCIAZIONE SENZA FRONTIERE PADOVA
   Design System — v2.0
   ============================================= */

/* === VARIABLES === */
:root {
  --c-bg:           #fafaf8;
  --c-white:        #ffffff;
  --c-primary:      #ea580c;
  --c-primary-dark: #c2410c;
  --c-accent:       #f59e0b;
  --c-accent-dark:  #d97706;
  --c-text:         #1c0a00;
  --c-muted:        #78716c;
  --c-border:       #e7e5e4;
  --c-dark:         #0f1923;
  --c-dark2:        #0d2b2b;
  --c-dark3:        #18100a;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 28px rgba(0,0,0,.12);
  --shadow-lg:  0 24px 56px rgba(0,0,0,.18);
  --shadow-xl:  0 40px 80px rgba(0,0,0,.25);
  --r-sm: 8px;
  --r:    16px;
  --r-lg: 24px;
  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .25s;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
/* Full-width mobile: prevent overflow */
main, section, .container, .nav-wrapper, .hero-body, .footer-grid, .footer-bottom-inner { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* === SCROLL PROGRESS === */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  z-index: 9999;
  transition: width .08s linear;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-width: 0;
}

/* === REVEAL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* stagger siblings */
.events-grid       .reveal:nth-child(2),
.activities-grid   .reveal:nth-child(2),
.support-grid      .reveal:nth-child(2),
.testimonials-grid .reveal:nth-child(2) { transition-delay: .14s; }
.events-grid       .reveal:nth-child(3),
.activities-grid   .reveal:nth-child(3),
.support-grid      .reveal:nth-child(3),
.testimonials-grid .reveal:nth-child(3) { transition-delay: .28s; }
.gallery-grid .reveal:nth-child(2) { transition-delay: .07s; }
.gallery-grid .reveal:nth-child(3) { transition-delay: .14s; }
.gallery-grid .reveal:nth-child(4) { transition-delay: .21s; }
.gallery-grid .reveal:nth-child(5) { transition-delay: .28s; }
.gallery-grid .reveal:nth-child(6) { transition-delay: .35s; }

/* === SECTION BASE === */
.section { padding: 5.5rem 0; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: .5rem;
}
.eyebrow.light { color: var(--c-accent); }

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: .5rem;
}
.section-title.center { text-align: center; }
.section-title.light  { color: #fff; }
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 99px;
  margin-top: .75rem;
}
.section-title.center::after { margin: .75rem auto 0; }
.section-title.left::after   { margin-left: 0; }

.section-intro {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 38rem;
  margin: .5rem auto 0;
  text-align: center;
}
.section-intro.light { color: rgba(255,255,255,.65); }

.section-header { margin-bottom: 3.5rem; text-align: center; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--t) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  box-shadow: 0 8px 22px rgba(234,88,12,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(234,88,12,.5);
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-sm {
  padding: .45rem .95rem;
  font-size: .82rem;
  background: var(--c-primary);
  color: #fff;
  border-radius: 99px;
  font-weight: 600;
  border: none;
}
.btn-sm:hover { background: var(--c-primary-dark); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              padding var(--t) var(--ease);
}
.site-header.scrolled {
  background: rgba(250,250,248,.96);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 4px 24px rgba(0,0,0,.07);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  gap: 1rem;
}
.site-header.scrolled .nav-wrapper { padding: .65rem 1.5rem; }

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 50px;
  width: auto;
  transition: height var(--t) var(--ease);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}
.site-header.scrolled .logo-img { height: 42px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: .9rem;
  font-weight: 500;
}
.main-nav a {
  color: rgba(255,255,255,.9);
  position: relative;
  transition: color var(--t);
}
.site-header.scrolled .main-nav a { color: var(--c-muted); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 99px;
  transition: width var(--t) var(--ease);
}
.main-nav a:hover::after { width: 100%; }
.main-nav a:hover { color: var(--c-accent); }
.site-header.scrolled .main-nav a:hover { color: var(--c-primary); }

.nav-cta {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent)) !important;
  color: #fff !important;
  padding: .45rem 1.1rem;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(234,88,12,.45);
  transition: transform var(--t), box-shadow var(--t);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(234,88,12,.55); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  z-index: 600;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
  transition: all var(--t) var(--ease);
}
.site-header.scrolled .hamburger span { background: var(--c-text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}
.hero-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12,20,30,.9)   0%,
    rgba(28,10,0,.78)  50%,
    rgba(12,20,30,.88) 100%
  );
}
.hero-shapes {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hshape {
  position: absolute;
  border-radius: 50%;
  opacity: .07;
  animation: hfloat 9s ease-in-out infinite;
}
.hshape-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--c-primary), transparent 70%);
  top: -200px; right: -150px;
  animation-delay: 0s;
}
.hshape-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--c-accent), transparent 70%);
  bottom: -150px; left: -120px;
  animation-delay: -3s;
}
.hshape-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,.8), transparent 70%);
  top: 35%; left: 38%;
  animation-delay: -6s;
}
@keyframes hfloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-22px) rotate(4deg); }
  66%       { transform: translateY(12px) rotate(-2deg); }
}

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 2rem;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  padding: .4rem 1.1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.9);
  width: fit-content;
  margin-bottom: 1.6rem;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 1.3rem;
}
.hero-title-gradient {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 60%, #ff6b35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 36rem;
  line-height: 1.75;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Stats bar */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.6rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: .4rem 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  letter-spacing: .04em;
  margin-top: .3rem;
}

.hero-scroll {
  position: absolute;
  bottom: 5.5rem;
  right: 2.5rem;
  z-index: 2;
  color: rgba(255,255,255,.45);
  animation: scrollBounce 2.2s ease-in-out infinite;
  transition: color var(--t);
}
.hero-scroll:hover { color: rgba(255,255,255,.8); }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(9px); }
}

/* === MISSION === */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.mission-img-stack { position: relative; }
.mission-img-main {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
}
.mission-float-card {
  position: absolute;
  bottom: -1.4rem;
  right: -1.4rem;
  background: #fff;
  border-radius: var(--r);
  padding: .9rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
  border: 1px solid var(--c-border);
}
.mfc-icon { font-size: 1.4rem; }
.mission-lead {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1rem 0;
  color: var(--c-text);
  line-height: 1.7;
}
.mission-body { color: var(--c-muted); margin-bottom: 1.5rem; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-top: 1.5rem;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.1rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.value-item:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.value-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.value-item strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.value-item p { font-size: .8rem; color: var(--c-muted); }

/* === EVENTS === */
.section-dark { background: var(--c-dark); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.event-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t);
}
.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,158,11,.4);
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
}
.event-img-wrap {
  position: relative;
  height: 195px;
  overflow: hidden;
}
.event-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.event-card:hover .event-img-wrap img { transform: scale(1.08); }

.event-date-badge {
  position: absolute;
  top: .9rem; left: .9rem;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  border-radius: var(--r-sm);
  padding: .4rem .7rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(234,88,12,.5);
}
.edb-day   { display: block; font-size: 1.4rem; font-weight: 900; line-height: 1; }
.edb-month { display: block; font-size: .63rem; font-weight: 700; letter-spacing: .08em; }

.event-body { padding: 1.4rem; }
.event-tag {
  display: inline-block;
  background: rgba(245,158,11,.15);
  color: var(--c-accent);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 99px;
  padding: .18rem .65rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.event-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.event-body p {
  font-size: .88rem;
  color: rgba(255,255,255,.58);
  line-height: 1.6;
  margin-bottom: .9rem;
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}

/* === ACTIVITIES — SPLIT ROWS === */
.section-attivita { background: var(--c-bg); overflow: hidden; }

.act-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
  background: var(--c-white);
  transition: box-shadow var(--t) var(--ease);
}
.act-row:last-child { margin-bottom: 0; }
.act-row:hover { box-shadow: var(--shadow-xl); }

/* Reverse layout for row 2 */
.act-row-alt { direction: rtl; }
.act-row-alt > * { direction: ltr; }

/* Image side */
.act-img-side {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.act-img-side img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}
.act-row:hover .act-img-side img { transform: scale(1.04); }

.act-stat-badge {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-radius: var(--r);
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid rgba(255,255,255,.8);
}
.act-stat-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.act-stat-lbl {
  display: block;
  font-size: .72rem;
  color: var(--c-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* Text side */
.act-text-side {
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  background: var(--c-white);
  position: relative;
}
.act-text-dark {
  background: linear-gradient(145deg, #1a0c02, #2d1305);
}

.act-count {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(234,88,12,.09);
  position: absolute;
  top: 1.5rem; right: 2rem;
  pointer-events: none;
  user-select: none;
}
.act-text-dark .act-count { color: rgba(245,158,11,.1); }

.act-icon {
  font-size: 2rem;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #fff3e0, #fef9f5);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(234,88,12,.18);
  border: 1px solid rgba(234,88,12,.1);
  flex-shrink: 0;
}
.act-text-dark .act-icon {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.15);
  box-shadow: none;
}

.act-text-side h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
}
.act-text-dark h3 { color: #fff; }

.act-text-side p {
  font-size: .93rem;
  color: var(--c-muted);
  line-height: 1.75;
}
.act-text-dark p { color: rgba(255,255,255,.65); }

/* Feature list */
.act-features {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 0;
}
.act-features li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-text);
}
.act-features-light li { color: rgba(255,255,255,.85); }
.act-check {
  width: 20px; height: 20px;
  flex-shrink: 0;
}

/* CTA link */
.act-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
  margin-top: .5rem;
  transition: gap var(--t) var(--ease), color var(--t);
  width: fit-content;
}
.act-link:hover { gap: .75rem; color: var(--c-primary-dark); }
.act-link-light { color: var(--c-accent); }
.act-link-light:hover { color: #fff; }

/* === GALLERY === */
.section-gallery-bg { background: #f2f1ec; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
}
.gallery-tall  { grid-row: span 2; }
.gallery-wide  { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  opacity: 0;
  transition: opacity var(--t);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-size: .88rem; font-weight: 600; }
.gallery-overlay svg { color: rgba(255,255,255,.8); flex-shrink: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 800;
  background: rgba(0,0,0,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lb-content { max-width: 90vw; max-height: 85vh; text-align: center; }
.lb-content img {
  max-height: 80vh;
  max-width: 85vw;
  object-fit: contain;
  border-radius: var(--r);
}
#lbCaption { color: rgba(255,255,255,.65); font-size: .88rem; margin-top: .9rem; }
.lb-close {
  position: absolute;
  top: max(1.25rem, env(safe-area-inset-top, 1.25rem));
  right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
  color: #fff;
  font-size: 1.4rem;
  padding: .45rem .8rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.1);
  transition: background var(--t);
  border: none; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  padding: 1rem .9rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  line-height: 1;
  border: none; cursor: pointer;
  transition: background var(--t);
}
.lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* === DIALOGUE === */
.section-dialogo { background: var(--c-dark2); color: #fff; }

.dialogo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.dialogo-lead {
  font-size: 1.02rem;
  color: rgba(255,255,255,.7);
  margin: .8rem 0 2rem;
  line-height: 1.75;
}
.dialogo-list { display: flex; flex-direction: column; gap: 1.2rem; }
.dialogo-item { display: flex; align-items: flex-start; gap: 1rem; }
.dialogo-num {
  font-size: .72rem;
  font-weight: 800;
  color: var(--c-accent);
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--r-sm);
  padding: .22rem .5rem;
  flex-shrink: 0;
  letter-spacing: .06em;
}
.dialogo-item strong { display: block; font-size: .92rem; color: #fff; margin-bottom: .15rem; }
.dialogo-item p { font-size: .83rem; color: rgba(255,255,255,.48); }

.quote-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: .5;
  color: var(--c-accent);
}
.quote-card p {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
  margin: .6rem 0 1.4rem;
}
.quote-author { display: flex; align-items: center; gap: .8rem; }
.quote-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-accent);
}
.quote-author strong { display: block; font-size: .9rem; color: #fff; }
.quote-author span   { font-size: .78rem; color: rgba(255,255,255,.45); }
.dialogo-img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 56px rgba(0,0,0,.35);
}

/* === SUPPORT === */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.support-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--t) var(--ease), box-shadow var(--t);
}
.support-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.support-card-featured {
  background: linear-gradient(145deg, #1c0a00, #3a1800);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
}
.support-card-featured h3 { color: #fff; }
.support-card-featured p  { color: rgba(255,255,255,.65); }
.support-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.support-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .7rem; }
.support-card p  { font-size: .9rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.donation-box {
  background: rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.donation-box p {
  font-size: .8rem;
  color: rgba(255,255,255,.65) !important;
  margin-bottom: .25rem !important;
}
.donation-box strong { color: rgba(255,255,255,.9); }

/* === TESTIMONIALS === */
.section-testimonials { background: var(--c-dark3); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.testimonial-card:hover {
  border-color: rgba(245,158,11,.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
}
.t-stars {
  color: var(--c-accent);
  font-size: 1rem;
  letter-spacing: .12em;
  margin-bottom: .9rem;
}
.testimonial-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.t-author { display: flex; align-items: center; gap: .75rem; }
.t-author img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
}
.t-author strong { display: block; font-size: .88rem; color: #fff; }
.t-author span   { font-size: .78rem; color: rgba(255,255,255,.42); }

/* === CONTACTS === */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: flex-start;
  min-width: 0;
}
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-width: 0;
}
.contact-info-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  min-width: 0;
}
.contact-info-card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.cic-icon  { font-size: 1.7rem; margin-bottom: .5rem; }
.contact-info-card h4 {
  font-size: .8rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: .35rem;
}
.contact-info-card a, .contact-info-card p {
  font-size: .88rem;
  color: var(--c-text);
}
.contact-info-card a { color: var(--c-primary); }
.contact-info-card a:hover { text-decoration: underline; }

.contact-form {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.contact-form h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.form-group label { font-size: .82rem; font-weight: 600; }
.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: .7rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--t), box-shadow var(--t);
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(234,88,12,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #bbb; }
.form-success {
  display: none;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: var(--r-sm);
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-top: .9rem;
  font-weight: 500;
}
.form-success.visible { display: block; }

.form-error {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: #fff5f0;
  border: 1px solid rgba(234, 88, 12, 0.25);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: .9rem;
  line-height: 1.55;
}
.form-error p { margin: 0 0 .5rem 0; }
.form-error p:last-child { margin-bottom: 0; }
.form-error a {
  color: var(--c-primary);
  font-weight: 600;
  word-break: break-all;
}
.form-error a:hover { text-decoration: underline; }
.form-error-note {
  font-size: .8rem;
  color: var(--c-muted);
  margin-top: .75rem !important;
  padding-top: .75rem;
  border-top: 1px solid rgba(234, 88, 12, 0.15);
}
.form-error code {
  font-size: .85em;
  background: rgba(0,0,0,.06);
  padding: .15rem .4rem;
  border-radius: 4px;
}

/* === FOOTER === */
.footer-top {
  background: linear-gradient(145deg, #0c1520 0%, #180c04 100%);
  padding: 4.5rem 0 3.5rem;
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 3rem;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: .88rem;
  line-height: 1.65;
  max-width: 22rem;
  margin-bottom: 1.4rem;
}
.footer-social { display: flex; gap: .7rem; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  transition: all var(--t);
}
.social-btn:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-links h4,
.footer-newsletter h4 {
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1.2rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.48); font-size: .88rem; transition: color var(--t); }
.footer-links a:hover { color: var(--c-accent); }

.footer-newsletter p {
  color: rgba(255,255,255,.48);
  font-size: .85rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}
.nl-form {
  display: flex;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.nl-form input {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: none;
  padding: .65rem 1rem;
  font-size: .84rem;
  color: #fff;
  font-family: inherit;
}
.nl-form input::placeholder { color: rgba(255,255,255,.32); }
.nl-form input:focus { outline: none; }
.nl-form button {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  padding: .65rem 1.2rem;
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity var(--t);
}
.nl-form button:hover { opacity: .88; }

.footer-bottom { background: #070c12; padding: 1.2rem 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: .78rem; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 960px) {
  /* Hamburger */
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12,18,26,.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.15rem;
    z-index: 550;
  }
  .main-nav.open { display: flex; }
  .main-nav a { color: rgba(255,255,255,.85) !important; font-size: 1.1rem; }
  .main-nav a:hover { color: #fff !important; }
  .main-nav .nav-cta { font-size: 1.05rem; }

  .mission-grid       { grid-template-columns: 1fr; gap: 3rem; }
  .mission-img-stack  { max-width: 500px; margin: 0 auto; }
  .events-grid        { grid-template-columns: 1fr 1fr; }
  .act-row, .act-row-alt { grid-template-columns: 1fr; direction: ltr; }
  .act-row-alt .act-img-side { order: -1; }
  .act-img-side       { min-height: 280px; }
  .act-text-side      { padding: 2.2rem 2rem; }
  .support-grid       { grid-template-columns: 1fr 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr 1fr; }
  .dialogo-grid       { grid-template-columns: 1fr; }
  .contacts-grid      { grid-template-columns: 1fr; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.1); }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-tall { grid-row: span 2; }
}

@media (max-width: 640px) {
  /* Padding uniforme mobile: 1.25rem + safe area */
  .container {
    padding-left: max(1.25rem, env(safe-area-inset-left, 1.25rem));
    padding-right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
    width: 100%;
    max-width: 100vw;
  }
  .nav-wrapper {
    padding-left: max(1.25rem, env(safe-area-inset-left, 1.25rem));
    padding-right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .site-header { padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }
  .hero-body {
    padding-top: 5.5rem;
    padding-bottom: 1.5rem;
    padding-left: max(1.25rem, env(safe-area-inset-left, 1.25rem));
    padding-right: max(1.25rem, env(safe-area-inset-right, 1.25rem));
  }
  .hero-stats-bar .container { padding-left: max(1.25rem, env(safe-area-inset-left, 1.25rem)); padding-right: max(1.25rem, env(safe-area-inset-right, 1.25rem)); }
  .footer-top, .footer-bottom { padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }
  .footer-grid .container, .footer-bottom-inner { padding-left: max(1.25rem, env(safe-area-inset-left, 1.25rem)); padding-right: max(1.25rem, env(safe-area-inset-right, 1.25rem)); }

  /* Sezioni: padding verticale proporzionato */
  .section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  .eyebrow { font-size: .7rem; margin-bottom: .4rem; }
  .section-title { font-size: clamp(1.45rem, 5.5vw, 1.85rem); margin-bottom: .4rem; }
  .section-title::after { width: 36px; height: 3px; margin-top: .5rem; }
  .section-intro { font-size: .9375rem; margin-top: .4rem; line-height: 1.6; }

  /* Pulsanti proporzionati */
  .btn { padding: .65rem 1.25rem; font-size: .875rem; }
  .btn-sm { padding: .4rem .85rem; font-size: .8rem; }

  /* Hero: dimensioni proporzionate */
  .hero-title { font-size: clamp(2rem, 8.5vw, 2.75rem); margin-bottom: 1rem; line-height: 1.1; }
  .hero-badge { padding: .35rem .9rem; font-size: .7rem; margin-bottom: 1.2rem; }
  .hero-desc { font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.65; }
  .hero-actions { gap: .75rem; }
  .hero-scroll { display: none; }

  /* Stats bar */
  .hero-stats-bar { padding: 1.1rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { padding: .35rem .5rem; border-right: none; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.1); }
  .stat-num { font-size: clamp(1.5rem, 5vw, 1.85rem); }
  .stat-label { font-size: .68rem; margin-top: .2rem; }

  /* Missione */
  .mission-grid { gap: 2rem; }
  .mission-img-stack { max-width: 100%; margin: 0; }
  .mission-float-card { padding: .65rem .9rem; font-size: .8rem; right: 0; bottom: -0.75rem; }
  .mfc-icon { font-size: 1.2rem; }
  .mission-lead { font-size: .9375rem; margin: .75rem 0; }
  .mission-body { font-size: .875rem; margin-bottom: 1.25rem; }
  .values-grid { gap: .6rem; margin-top: 1.25rem; }
  .value-item { padding: .8rem .9rem; gap: .6rem; }
  .value-icon { font-size: 1.2rem; }
  .value-item strong { font-size: .85rem; }
  .value-item p { font-size: .75rem; }

  /* Eventi */
  .events-grid { grid-template-columns: 1fr; gap: 1rem; }
  .event-img-wrap { height: 165px; }
  .event-body { padding: 1rem 1.25rem; }
  .event-date-badge { top: .65rem; left: .65rem; padding: .3rem .55rem; }
  .edb-day { font-size: 1.15rem; }
  .edb-month { font-size: .58rem; }
  .event-tag { font-size: .65rem; padding: .15rem .5rem; margin-bottom: .5rem; }
  .event-body h3 { font-size: 1rem; margin-bottom: .4rem; }
  .event-body p { font-size: .8125rem; margin-bottom: .65rem; }
  .event-meta { font-size: .72rem; }

  /* Attività */
  .act-row, .act-row-alt { grid-template-columns: 1fr; direction: ltr; margin-bottom: 1.75rem; }
  .act-row-alt .act-img-side { order: -1; }
  .act-img-side { min-height: 220px; }
  .act-text-side {
    padding: 1.5rem 1.25rem;
    gap: .75rem;
  }
  .act-count { font-size: 2.75rem; top: 1rem; right: 1rem; }
  .act-icon { font-size: 1.5rem; width: 46px; height: 46px; }
  .act-text-side h3 { font-size: 1.35rem; }
  .act-text-side p { font-size: .875rem; }
  .act-features li { font-size: .8125rem; gap: .5rem; }
  .act-stat-badge { bottom: 1rem; left: 1rem; padding: .6rem .85rem; }
  .act-stat-num { font-size: 1.5rem; }
  .act-stat-lbl { font-size: .65rem; }

  /* Galleria */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
    gap: 0.5rem;
  }
  .gallery-tall { grid-row: span 1; }
  .gallery-wide { grid-column: span 2; }
  .gallery-overlay { padding: .75rem 1rem; }
  .gallery-overlay span { font-size: .8rem; }

  /* Dialogo */
  .dialogo-grid { gap: 2rem; }
  .dialogo-lead { font-size: .9375rem; margin: .6rem 0 1.5rem; }
  .dialogo-list { gap: 1rem; }
  .dialogo-item { gap: .75rem; }
  .dialogo-num { font-size: .65rem; padding: .18rem .4rem; }
  .dialogo-item strong { font-size: .85rem; }
  .dialogo-item p { font-size: .78rem; }
  .quote-card { padding: 1.5rem 1.25rem; margin-bottom: 1.25rem; }
  .quote-mark { font-size: 3rem; }
  .quote-card p { font-size: .9375rem; margin: .5rem 0 1rem; }
  .quote-avatar { width: 40px; height: 40px; }
  .quote-author strong { font-size: .85rem; }
  .quote-author span { font-size: .72rem; }

  /* Sostienici */
  .support-grid { grid-template-columns: 1fr; gap: 1rem; }
  .support-card { padding: 1.5rem 1.25rem; }
  .support-icon { font-size: 2.25rem; margin-bottom: .75rem; }
  .support-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
  .support-card p { font-size: .875rem; margin-bottom: 1.25rem; }
  .donation-box { padding: .65rem .9rem; margin-bottom: 1.25rem; }
  .donation-box p { font-size: .75rem; word-break: break-word; }

  /* Contatti: layout e contenuti responsive */
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }
  .contact-info {
    min-width: 0;
    width: 100%;
  }
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
  }
  .contact-info-card {
    padding: 1rem 1.1rem;
    min-width: 0;
    width: 100%;
  }
  .contact-info-card a,
  .contact-info-card p {
    font-size: .8125rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .contact-info-card a { display: inline-block; max-width: 100%; }
  .cic-icon { font-size: 1.5rem; margin-bottom: .4rem; }
  .contact-info-card h4 { font-size: .72rem; }
  .contact-form {
    padding: 1.5rem 1.25rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group { margin-bottom: .75rem; }
  .form-group input,
  .form-group textarea {
    padding: .6rem .9rem;
    font-size: .875rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .form-success, .form-error { font-size: .875rem; padding: .65rem .9rem; }
  .btn-full { width: 100%; box-sizing: border-box; }

  /* Footer */
  .footer-top { padding: 2.5rem 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 1; }
  .footer-logo { height: 44px; margin-bottom: .9rem; }
  .footer-brand p { font-size: .8125rem; margin-bottom: 1rem; line-height: 1.6; }
  .footer-links h4, .footer-newsletter h4 { font-size: .72rem; margin-bottom: 1rem; }
  .footer-links ul { gap: .5rem; }
  .footer-links a { font-size: .8125rem; }
  .footer-newsletter p { font-size: .8rem; margin-bottom: .85rem; }
  .nl-form input { padding: .55rem .9rem; font-size: .8rem; }
  .nl-form button { padding: .55rem 1rem; font-size: .8rem; }
  .footer-bottom { padding: 1rem 0; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: .5rem; }
  .footer-bottom p { font-size: .72rem; }

  /* Logo header mobile */
  .logo-img { height: 42px; }
  .site-header.scrolled .logo-img { height: 36px; }

  /* Nessun overflow */
  .mission-img-main, .act-img-side img, .gallery-item img, .dialogo-img { max-width: 100%; }
}

@media (max-width: 480px) {
  .container {
    padding-left: max(1rem, env(safe-area-inset-left, 1rem));
    padding-right: max(1rem, env(safe-area-inset-right, 1rem));
  }
  .nav-wrapper {
    padding-left: max(1rem, env(safe-area-inset-left, 1rem));
    padding-right: max(1rem, env(safe-area-inset-right, 1rem));
  }
  .hero-body {
    padding-top: 5rem;
    padding-left: max(1rem, env(safe-area-inset-left, 1rem));
    padding-right: max(1rem, env(safe-area-inset-right, 1rem));
  }
  .section { padding: 2.25rem 0; }
  .section-title { font-size: clamp(1.35rem, 5vw, 1.7rem); }
  .hero-title { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .act-text-side { padding: 1.35rem 1rem; }
  .support-card { padding: 1.35rem 1rem; }
  .contact-form { padding: 1.35rem 1rem; }
  .footer-grid .container, .footer-bottom-inner {
    padding-left: max(1rem, env(safe-area-inset-left, 1rem));
    padding-right: max(1rem, env(safe-area-inset-right, 1rem));
  }
}

@media (max-width: 400px) {
  .contact-cards-grid { grid-template-columns: 1fr; }
  .container {
    padding-left: max(0.875rem, env(safe-area-inset-left, 0.875rem));
    padding-right: max(0.875rem, env(safe-area-inset-right, 0.875rem));
  }
  .nav-wrapper {
    padding-left: max(0.875rem, env(safe-area-inset-left, 0.875rem));
    padding-right: max(0.875rem, env(safe-area-inset-right, 0.875rem));
  }
  .hero-body {
    padding-left: max(0.875rem, env(safe-area-inset-left, 0.875rem));
    padding-right: max(0.875rem, env(safe-area-inset-right, 0.875rem));
  }
  .section { padding: 2rem 0; }
  .section-header { margin-bottom: 1.75rem; }
  .btn { padding: .6rem 1.1rem; font-size: .8125rem; }
  .gallery-grid { grid-auto-rows: 120px; gap: 0.4rem; }
  .footer-grid .container, .footer-bottom-inner {
    padding-left: max(0.875rem, env(safe-area-inset-left, 0.875rem));
    padding-right: max(0.875rem, env(safe-area-inset-right, 0.875rem));
  }
}
