:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f3ede6;
  --text: #1c1917;
  --muted: #6b6460;
  --primary: #7a5c3e;
  --primary-strong: #5e4430;
  --border: #e5ddd6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img,
iframe {
  max-width: 100%;
}

h1, h2, h3 {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

#program .container {
  width: min(1260px, 96%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 245, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand span {
  display: inline-block;
}

.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-header .site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}

.site-header .site-nav a:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.site-header .menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  font-size: 1.15rem;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 4.9rem 0 2.7rem;
  overflow: hidden;
  min-height: 715px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: calc(100% + 15px);
  margin-top: -7.5px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(8, 7, 6, 0.84) 0%,
      rgba(8, 7, 6, 0.54) 38%,
      rgba(8, 7, 6, 0.12) 72%
    ),
    linear-gradient(
      to bottom,
      rgba(8, 7, 6, 0.06) 0%,
      rgba(8, 7, 6, 0.33) 62%,
      rgba(8, 7, 6, 0.82) 100%
    ),
    radial-gradient(
      circle at 64% 8%,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.06) 40%,
      transparent 70%
    );
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 35%, rgba(0,0,0,0.18) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 1rem;
}

.hero-main {
  grid-column: 1;
  grid-row: 2;
  max-width: 620px;
}

.hero-logo {
  display: block;
  height: 130px;
  width: auto;
  margin-bottom: 0.35rem;
  filter: brightness(0) invert(1);
}

.hero-main h1 {
  font-size: clamp(2.35rem, 6.6vw, 5.1rem);
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #f7f4ef;
  text-shadow: 0 8px 38px rgba(0,0,0,0.45);
}

.hero-subtitle {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: 1.03rem;
  line-height: 1.55;
  color: rgba(247, 242, 236, 0.92);
}

.hero-cta {
  margin-top: 1.3rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}

.hero-btn:hover {
  transform: translateY(-1px);
}

.hero-btn-primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 88%, #ffffff 12%),
    var(--primary-strong)
  );
}

.hero-btn-primary:hover {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary-strong) 85%, var(--primary) 15%),
    color-mix(in srgb, var(--primary-strong) 95%, #000 5%)
  );
}

.hero-btn-ghost {
  border-color: rgba(245, 238, 229, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #f3ede3;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-btn-ghost:hover {
  border-color: rgba(245, 238, 229, 0.52);
  background: rgba(255, 255, 255, 0.14);
}

.hero-verse-day {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  max-width: 360px;
  color: rgba(245, 239, 232, 0.9);
  text-align: right;
  font-style: italic;
  line-height: 1.5;
  font-size: 1.1rem;
  text-shadow: 0 6px 24px rgba(0,0,0,0.5);
}

.hero-verse-day p {
  margin: 0;
}

.hero-verse-day span {
  display: block;
  margin-top: 0.45rem;
  font-style: normal;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(227, 208, 186, 0.95);
}

.section {
  padding: 3.75rem 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  /* kept for compatibility — same background as regular sections */
  background: transparent;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin-top: 0;
}

.section > .container > h2,
.section-head h2,
.featured-video-head h2,
.map-label h2,
.fb-header h2 {
  margin: 0 auto;
  font-size: clamp(1.7rem, 2.9vw, 2.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1b1816;
  position: relative;
  display: block;
  width: fit-content;
  text-align: center;
  padding-bottom: 0.52rem;
}

.section > .container > h2::after,
.section-head h2::after,
.featured-video-head h2::after,
.map-label h2::after,
.fb-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 62px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 78%, #ffffff 22%),
    color-mix(in srgb, var(--primary) 30%, transparent)
  );
}

.section > .container > h2 + .muted,
.section-head .muted,
.featured-video-head .muted,
.map-label .muted,
.fb-header .muted {
  margin-top: 0.62rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 64ch;
  font-size: 0.98rem;
  line-height: 1.58;
  text-align: center;
  color: #635c57;
}

.cards,
.schedule,
.contact-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.program-layout {
  margin-top: 1.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 1rem;
}

.schedule {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(138px, 1fr));
  gap: 0.8rem;
  align-items: start;
  position: relative;
  padding: 0.2rem 0.25rem 0.65rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.schedule::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  right: 0.3rem;
  top: 2.1rem;
  height: 2px;
  background: color-mix(in srgb, var(--border) 78%, transparent);
}

.card,
.schedule-item,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.timeline-item {
  display: grid;
  justify-items: center;
  grid-template-rows: auto auto auto;
  gap: 0.45rem;
  min-width: 138px;
}

.timeline-day {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #9a8470;
  background: var(--surface);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 3px var(--bg);
}

.timeline-tip {
  --timeline-tip-bg: transparent;
  margin-top: 0.2rem;
  background: var(--timeline-tip-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 0.62rem;
  font-size: 0.88rem;
  line-height: 1.24;
  text-align: center;
  width: 100%;
  min-height: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  position: relative;
}

.timeline-item.active .timeline-day {
  color: var(--text);
}

.timeline-item.active .timeline-dot {
  background: var(--primary);
}

.timeline-item.active .timeline-tip {
  --timeline-tip-bg: rgba(243, 237, 230, 0.55);
  border-color: #b09a86;
  background: var(--timeline-tip-bg);
}

.timeline-item.active .timeline-tip::before,
.timeline-item.next-event .timeline-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  transform: translateX(-50%);
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid #b09a86;
}

.timeline-item.active .timeline-tip::after,
.timeline-item.next-event .timeline-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid var(--timeline-tip-bg);
}

.timeline-item:not(.active) .timeline-tip {
  --timeline-tip-bg: transparent;
  background: transparent;
  border-style: solid;
  color: var(--muted);
  min-height: 46px;
  font-weight: 500;
  box-shadow: none;
}

.timeline-item:not(.active) .timeline-tip {
  display: none;
}

.timeline-item:not(.active) {
  grid-template-rows: auto auto;
}

.timeline-item.today .timeline-day {
  color: var(--text);
}

.timeline-item.today .timeline-dot {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--primary) 24%, transparent);
}

.timeline-item.next-event .timeline-tip {
  --timeline-tip-bg: rgba(243, 237, 230, 0.55);
  border-color: #b3a08d;
  background: var(--timeline-tip-bg);
}

.timeline-summary,
.timeline-badge {
  display: none;
}

.timeline-assist {
  margin-top: 0.75rem;
  border-top: 0;
  padding-top: 0;
  display: flex;
  justify-content: center;
}

.timeline-assist-actions {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.calendar-actions-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
}

.timeline-assist-title {
  margin: 0 0 0.38rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}

.timeline-assist-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.28rem;
}

.timeline-actions-title {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-actions {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.calendar-btn:hover {
  border-color: var(--primary);
  background: var(--surface-alt);
  transform: translateY(-1px);
}

.muted {
  color: var(--muted);
}

.fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.fb-header h2 {
  margin-bottom: 0.2rem;
}

.fb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.fb-post {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

.fb-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.fb-post-img {
  position: relative;
  background: linear-gradient(135deg, #f0e8de, #e2d0be);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-post-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-post-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1877f2;
  z-index: 1;
}

.fb-post-icon svg {
  width: 18px;
  height: 18px;
}

.fb-post-body {
  padding: 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fb-post-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.fb-post-body span, .fb-post-body code {
  font-size: 0.76rem;
  color: var(--muted);
}

.fb-post-body code {
  background: var(--surface-alt);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-family: monospace;
}

/* Cântări */
.songs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.song-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.18s;
}

.song-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

.song-card summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.song-card summary::-webkit-details-marker { display: none; }

.song-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.7;
  min-width: 22px;
}

.song-title {
  flex: 1;
  font-weight: 700;
  font-size: 0.95rem;
}

.song-arrow {
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 0.2s;
}

.song-card[open] .song-arrow {
  transform: rotate(180deg);
}

.song-card[open] summary {
  border-bottom: 1px solid var(--border);
}

.song-body {
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

.song-body p {
  margin: 0 0 0.75rem;
}

.song-body p:last-child { margin-bottom: 0; }

.song-body em {
  color: var(--primary);
  font-weight: 600;
  font-style: normal;
}

@media (max-width: 700px) {
  .songs-grid {
    grid-template-columns: 1fr;
  }
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-featured-video {
  padding-top: 2.1rem;
}

.featured-video-wrap {
  display: block;
}

.featured-video-head h2 {
  margin: 0.35rem auto 0;
}

.featured-video-head h2::after {
  content: none;
}

.featured-video-head .muted {
  margin: 0 auto 0.95rem;
}

.map-label,
.featured-video-head,
.fb-header {
  text-align: center;
}

.video-controls {
  justify-content: center;
}

.featured-video-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 0;
  background: #000;
  aspect-ratio: 16 / 9;
}

.featured-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-controls {
  display: flex;
  gap: 0.5rem;
}

.video-nav-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-alt));
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 0;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}

.video-nav-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.video-nav-btn {
  border-color: #d9cdbf;
  background: linear-gradient(180deg, #ffffff, var(--surface-alt));
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(94, 68, 48, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.16s, border-color 0.16s, background 0.16s, color 0.16s, box-shadow 0.16s;
}

.video-nav-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 8px 18px rgba(94, 68, 48, 0.28);
}

.video-nav-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 3px 8px rgba(94, 68, 48, 0.2);
}

.video-nav-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.video-slider-shell {
  position: relative;
  margin-top: 0.8rem;
  padding: 0.2rem 1.55rem 0.65rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32));
}

.video-slider-shell::before,
.video-slider-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  pointer-events: none;
  z-index: 2;
}

.video-slider-shell::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(250, 248, 245, 0) 100%);
}

.video-slider-shell::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, rgba(250, 248, 245, 0) 100%);
}

.video-slider {
  margin-top: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (0.9rem * 3)) / 4);
  gap: 0.95rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.65rem;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-padding-left: 2px;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.video-slider::-webkit-scrollbar {
  display: none;
}

.video-slider.dragging {
  cursor: grabbing;
}

.video-card {
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 9 / 16;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Events Carousel ── */
.ev-carousel-wrap {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: transparent;
  margin-top: 2rem;
}

.ev-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  overscroll-behavior: auto;
}
.ev-carousel:active { cursor: grabbing; }

.ev-carousel-item {
  --items: 6;
  --w: clamp(190px, 30vw, 320px);
  --h: clamp(270px, 42vw, 440px);
  --x: calc(var(--active) * 700%);
  --y: calc(var(--active) * 160%);
  --rot: calc(var(--active) * 110deg);
  --opacity: calc(var(--zIndex) / var(--items) * 3 - 2);
  overflow: hidden;
  position: absolute;
  z-index: var(--zIndex);
  width: var(--w);
  height: var(--h);
  margin: calc(var(--h) * -0.5) 0 0 calc(var(--w) * -0.5);
  border-radius: 14px;
  top: 50%;
  left: 50%;
  background: transparent;
  pointer-events: all;
  transform: translate(var(--x), var(--y)) rotate(var(--rot));
  transition: transform .8s cubic-bezier(0, 0.02, 0, 1);
}

.ev-carousel-box {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
  box-shadow: 0 12px 48px 8px rgba(0,0,0,0.28);
  opacity: var(--opacity);
  transition: opacity .8s cubic-bezier(0, 0.02, 0, 1);
}
.ev-carousel-box::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.46),
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,.68)
  );
}

.ev-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* hint bar below carousel */
.ev-carousel-hint {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  padding: .55rem 0 .6rem;
  background: transparent;
  letter-spacing: .04em;
}

@media (max-width: 600px) {
  .ev-carousel-wrap { height: 430px; }

  .ev-carousel-item {
    --w: clamp(220px, 68vw, 300px);
    --h: clamp(320px, 88vw, 430px);
  }
}

.section-map {
  position: relative;
  padding-top: 2.5rem;
  padding-bottom: 0;
  margin-bottom: 0;
}

.map-label {
  padding-bottom: 1rem;
}

.section-map iframe,
.map-iframe {
  display: block;
  width: 100%;
  border: 0;
}

.map-mobile-open {
  display: none;
}

@media (max-width: 900px) {
  .section-map iframe {
    pointer-events: none;
  }

  .map-mobile-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 460px;
    z-index: 2;
  }
}

.contact-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

/* ── Footer ── */
.site-footer {
  background: #1a1613;
  color: #8a807a;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.footer-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #9a908a;
  text-decoration: none;
  font-size: 0.84rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: #f0e6de;
  background: rgba(255, 255, 255, 0.06);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: 0;
  color: #9a908a;
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
}

.social-link:hover {
  color: #f0e6de;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.social-link svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.footer-copy {
  margin: 0;
  color: #5a504a;
  font-size: 0.78rem;
  white-space: nowrap;
}

.site-footer a {
  color: #9a908a;
  text-decoration: none;
}

.site-footer a:hover {
  color: #f0e6de;
  text-decoration: none;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0;
  }

  .footer-nav {
    flex: none;
    justify-content: center;
  }

  .footer-brand::after {
    display: none;
  }

  .footer-brand {
    display: none;
  }

  .footer-right {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-copy {
    font-size: 0.72rem;
    text-align: center;
  }

  .footer-address {
    display: none;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(1120px, 94%);
  }

  #program .container {
    width: min(1260px, 97%);
  }

  .section {
    padding: 3.1rem 0;
  }

  .cards,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .schedule {
    grid-template-columns: repeat(7, minmax(160px, 1fr));
    gap: 0.7rem;
    padding-bottom: 0.4rem;
  }

  .program-layout {
    padding: 0.85rem;
  }

  .timeline-assist {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    text-align: center;
  }

  .calendar-actions {
    gap: 0.45rem;
    justify-content: center;
  }

  .hero {
    min-height: 635px;
    padding-top: 4.4rem;
  }

  .hero-shell {
    /* Stessa larghezza della pagina cantari */
    width: calc((100% - 20px) * 0.95 - 8px);
    min-height: 540px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 1.4rem;
  }

  .hero-main {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    text-align: center;
  }

  .hero-logo {
    display: none;
  }

  .hero-main h1 {
    font-size: clamp(2rem, 10vw, 3.6rem);
  }

  .hero-subtitle {
    font-size: 0.98rem;
    max-width: 33rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-verse-day {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
    max-width: 100%;
    font-size: 1rem;
  }

  .video-slider {
    grid-auto-columns: calc((100% - 0.75rem) / 2);
    gap: 0.75rem;
  }

  .video-slider-shell {
    padding: 0.15rem 0.55rem 0.55rem;
  }

  .video-slider-shell::before,
  .video-slider-shell::after {
    display: none;
  }

  .featured-video-wrap {
    display: block;
  }

  .featured-video-frame {
    aspect-ratio: 16 / 9;
  }

  .hero-bg-fade {
    background: linear-gradient(
      to right,
      rgba(8, 7, 6, 0.76) 0%,
      rgba(8, 7, 6, 0.42) 60%,
      rgba(8, 7, 6, 0.12) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(8, 7, 6, 0.12) 0%,
      rgba(8, 7, 6, 0.62) 100%
    );
  }

  .section-head {
    margin-bottom: 1.15rem;
    gap: 0.75rem;
  }

  .video-controls {
    width: 100%;
  }

  .fb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header .site-nav {
    position: absolute;
    right: 4%;
    top: 82px;
    background: rgba(250, 248, 245, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    width: min(220px, 92vw);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
  }

  .site-header .site-nav.open {
    display: flex;
  }

  .site-header .menu-btn {
    display: block;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 1.7rem 0;
  }

  .program-layout {
    padding-bottom: 0.2rem;
  }

  /* Video in evidenza nascosto su mobile */
  .section-featured-video {
    display: none;
  }

  .hero {
    min-height: 560px;
    padding-top: 4.2rem;
  }

  .hero-shell {
    min-height: 500px;
    gap: 1rem;
  }

  .hero-btn {
    width: 100%;
    padding: 0.72rem 1rem;
  }

  .section > .container > h2,
  .section-head h2,
  .featured-video-head h2,
  .map-label h2,
  .fb-header h2 {
    font-size: clamp(1.52rem, 8vw, 2rem);
  }

  #video-shorturi .section-head {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #video-shorturi .section-head .muted {
    text-align: justify;
    text-align-last: center;
    text-wrap: pretty;
    hyphens: auto;
  }

  .video-slider {
    grid-auto-columns: 100%;
  }

  .video-nav-btn {
    width: 38px;
    height: 38px;
  }

  .calendar-actions {
    width: 100%;
  }

  .calendar-btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 140px;
  }

  .timeline-tip {
    font-size: 0.84rem;
  }

  .fb-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .schedule {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.2rem 0.1rem 0.35rem;
    overflow-x: visible;
  }

  .schedule::before {
    display: none;
  }

  .timeline-item {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
    padding-bottom: 0.15rem;
  }

  .timeline-item:not(.active) {
    display: none;
  }

  .timeline-day {
    text-align: center;
  }

  .timeline-dot {
    margin-top: 0.05rem;
  }

  .timeline-tip {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    text-align: center;
  }

  .timeline-item:not(.active) .timeline-tip {
    display: none;
  }

  .timeline-item .timeline-tip::before {
    content: none;
  }

  .timeline-item .timeline-tip::after {
    content: none;
  }
}

/* ── Program: elenco a righe (mobile e desktop) ── */
.schedule {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 0.2rem 0 0.4rem;
  overflow: visible;
}

.schedule::before {
  display: none;
}

.schedule .timeline-item,
.schedule .timeline-item:not(.active) {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: center;
  justify-items: start;
  gap: 0 1rem;
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.schedule .timeline-item:not(.active) {
  display: none;
}

.schedule .timeline-item.today {
  background: rgba(243, 237, 230, 0.7);
  border-color: #b09a86;
}

.schedule .timeline-dot {
  display: none;
}

.schedule .timeline-day {
  margin: 0;
  text-align: left;
  color: var(--primary);
}

.schedule .timeline-item .timeline-tip,
.schedule .timeline-item:not(.active) .timeline-tip {
  display: block;
  margin: 0;
  padding: 0;
  min-height: 0;
  width: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
}

.schedule .timeline-item .timeline-tip::before,
.schedule .timeline-item .timeline-tip::after {
  content: none;
}

@media (max-width: 560px) {
  .schedule .timeline-item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.9rem;
    text-align: center;
  }

  .schedule .timeline-day {
    text-align: center;
  }

  .schedule .timeline-item .timeline-tip {
    font-size: 0.9rem;
    text-align: center;
  }
}

/* ── Donate FAB + popup ── */
.donate-fab {
  display: none;
}

/* Mobile burger menu donate item — hidden on desktop */
.nav-donate-item {
  display: block;
}

.nav-donate-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.58) !important;
  color: #1a1714 !important;
  font-weight: 400 !important;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  letter-spacing: inherit;
}

.nav-donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav-donate-btn .donate-icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.nav-donate-btn:hover {
  background: var(--surface-alt) !important;
}

@media (min-width: 901px) {
  .nav-donate-item {
    display: none;
  }

  /* "Aggiungi al calendario": solo da mobile */
  .timeline-assist {
    display: none;
  }
}

@media (min-width: 768px) {
  .donate-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    cursor: pointer;
    z-index: 900;
    padding: 0;
    transition: transform 0.18s, box-shadow 0.18s;
  }

  .donate-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  }

  /* icona nera con alfa → colorata con --primary tramite mask */
  .donate-fab-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* ── Donate popup ── */
.donate-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.donate-box {
  background: #fff;
  border-radius: 18px;
  padding: 2.4rem 2rem 2rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  position: relative;
}

.donate-box h3 {
  margin: 0 0 1.2rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #3b2a1a;
  text-align: center;
}

.donate-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a7060;
  margin: 1rem 0 0.4rem;
}

.donate-bank-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.donate-bank-label {
  font-size: 0.82rem;
  color: #8a7060;
  white-space: nowrap;
  min-width: 80px;
}

.donate-bank-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-all;
  flex: 1;
  text-align: right;
}

.donate-or {
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
  margin: 1.1rem 0;
  position: relative;
}

.donate-or::before,
.donate-or::after {
  content: '';
  display: inline-block;
  width: 38%;
  height: 1px;
  background: #e0d8d0;
  vertical-align: middle;
  margin: 0 0.5rem;
}

.donate-paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #0070ba;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}

.donate-paypal-btn:hover {
  background: #005a96;
}

.donate-close-btn {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 0.2rem 0.4rem;
}

.donate-close-btn:hover {
  color: #333;
}

.donate-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #d0c4b8;
  border-radius: 6px;
  padding: 3px 5px;
  cursor: pointer;
  color: #8a7060;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  margin-left: auto;
}

.donate-copy-btn:hover {
  border-color: #9c7c5a;
  color: #5a3e28;
  background: #f5ede4;
}

.donate-copy-btn.donate-copy-btn--done {
  border-color: #27ae60;
  color: #27ae60;
  background: #eafaf1;
}
.donate-fab {
  transition: opacity 0.2s, transform 0.2s;
}

.donate-fab.donate-fab--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* Donazioni su mobile: etichetta sopra, valore in grassetto sotto, copia solo icona */
@media (max-width: 600px) {
  .donate-bank-row {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 0.5rem;
    row-gap: 0.1rem;
    align-items: center;
    margin-bottom: 0.85rem;
  }

  .donate-bank-label {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
    font-size: 0.78rem;
  }

  .donate-bank-value {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    word-break: normal;
    overflow-wrap: anywhere;
    font-size: 0.95rem;
  }

  .donate-copy-btn {
    grid-column: 2;
    grid-row: 2;
    margin-left: 0;
    border: none;
    background: none;
    padding: 6px;
  }

  .donate-copy-btn:hover,
  .donate-copy-btn.donate-copy-btn--done {
    border: none;
    background: none;
  }

  .donate-copy-btn.donate-copy-btn--done {
    color: #27ae60;
  }

  .donate-copy-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Margini laterali dei testi descrittivi su mobile / tablet stretto */
@media (max-width: 700px) {
  #program .container > .muted,
  #invitatii .section-head .muted {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-wrap: pretty;
  }
}
