:root {
  --damask: #974c36;
  --damask-dark: #712d1d;
  --plaster: #c7c0bf;
  --stone: #ad9990;
  --earth: #584839;
  --gold: #e2b76b;
  --gold-bright: #ffd98b;
  --dark: #241b16;
  --ink: #fff8eb;
  --muted: #d7c9bd;
  --shadow: rgba(12, 7, 4, 0.38);
  --radius: 8px;
  --page-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(36, 27, 22, 0.98), rgba(65, 45, 33, 0.94)),
    var(--dark);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("assets/damasco.jpg");
  background-size: 420px auto;
  opacity: 0.075;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 20% 8%, rgba(226, 183, 107, 0.18), transparent 28rem),
    radial-gradient(circle at 78% 32%, rgba(151, 76, 54, 0.16), transparent 24rem);
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  padding: 0.7rem 1rem;
  color: var(--dark);
  background: var(--gold-bright);
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1.1rem, calc((100% - var(--page-max)) / 2));
  background: rgba(36, 27, 22, 0.88);
  border-bottom: 1px solid rgba(226, 183, 107, 0.22);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.brand span {
  min-width: 0;
}

.brand-logo {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  border: 1px solid rgba(226, 183, 107, 0.75);
  border-radius: 50%;
  object-fit: cover;
  background: #f4eee4;
  box-shadow: 0 0 22px rgba(226, 183, 107, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  max-width: 20rem;
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.55rem 0.62rem;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(226, 183, 107, 0.12);
  outline: none;
}

.hero {
  position: relative;
  min-height: 720px;
  isolation: isolate;
  overflow: hidden;
}

.hero-home {
  display: grid;
  align-items: end;
  background-image: url("assets/hero-santuario.jpg");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(27, 20, 17, 0.94) 0%, rgba(36, 27, 22, 0.66) 42%, rgba(36, 27, 22, 0.26) 100%),
    linear-gradient(0deg, rgba(36, 27, 22, 0.95) 0%, rgba(36, 27, 22, 0.28) 42%, rgba(36, 27, 22, 0.54) 100%);
}

.hero-content {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 8rem 1.25rem 7rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  font-weight: 700;
}

h1 {
  max-width: 13ch;
  font-size: 4.6rem;
  text-wrap: balance;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

.hero-subtitle {
  max-width: 44rem;
  margin-top: 1rem;
  color: #f4eadc;
  font-size: 1.35rem;
}

.hero-actions,
.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #23160f;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 14px 28px rgba(226, 183, 107, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 32px rgba(226, 183, 107, 0.34);
}

.button-secondary,
.button-ghost {
  color: var(--ink);
  background: rgba(255, 248, 235, 0.07);
  border-color: rgba(255, 248, 235, 0.26);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 248, 235, 0.13);
  border-color: rgba(226, 183, 107, 0.52);
}

.button-wide {
  width: 100%;
}

.section {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 5.5rem 1.25rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(18rem, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  overflow: hidden;
  min-height: 100%;
  background: rgba(255, 248, 235, 0.075);
  border: 1px solid rgba(226, 183, 107, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 22px 40px var(--shadow);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

.feature-card div {
  padding: 1.25rem;
}

.feature-card p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 0.9rem;
  color: var(--gold-bright);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.feature-card-texture img {
  filter: saturate(0.95) contrast(1.08);
}

.light-callout {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(18rem, 1fr);
  gap: 0;
  align-items: stretch;
  padding-top: 0;
}

.callout-media {
  min-height: 28rem;
  background:
    linear-gradient(0deg, rgba(36, 27, 22, 0.18), rgba(36, 27, 22, 0.18)),
    url("assets/luce-traccia-home.jpg");
  background-position: center 56%;
  background-size: cover;
  border-radius: var(--radius) 0 0 var(--radius);
  border: 1px solid rgba(226, 183, 107, 0.2);
  border-right: 0;
}

.callout-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: 2.25rem;
  background:
    linear-gradient(135deg, rgba(113, 45, 29, 0.94), rgba(65, 45, 33, 0.94)),
    url("assets/damasco.jpg");
  background-size: cover;
  border: 1px solid rgba(226, 183, 107, 0.24);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout-content p:not(.eyebrow) {
  max-width: 38rem;
  color: #f2e5d5;
  font-size: 1.2rem;
}

.callout-content .button {
  width: fit-content;
}

.donation-page {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

.story-page {
  min-height: calc(100vh - 5rem);
  background: #0e0907;
}

.timeline-page {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5.5rem;
}

.timeline-hero {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.timeline-hero h1 {
  max-width: 12ch;
  font-size: 3.55rem;
}

.timeline-hero p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.timeline::before {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: clamp(9.5rem, 20vw, 16rem);
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(226, 183, 107, 0.72), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(8rem, 0.42fr) minmax(0, 1fr) minmax(10rem, 0.46fr);
  gap: 1rem;
  align-items: stretch;
  min-height: 12rem;
}

.timeline-item::before {
  position: absolute;
  top: 1.5rem;
  left: clamp(9.15rem, 20vw, 15.65rem);
  z-index: 1;
  width: 0.72rem;
  height: 0.72rem;
  content: "";
  background: var(--gold-bright);
  border: 3px solid var(--dark);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(226, 183, 107, 0.56);
}

.timeline-date,
.timeline-body,
.timeline-media {
  border-radius: var(--radius);
}

.timeline-date {
  padding: 1.2rem 1rem;
  text-align: right;
}

.timeline-date span,
.timeline-date strong {
  display: block;
}

.timeline-date span {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.05;
}

.timeline-date strong {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-body {
  padding: 1.2rem;
  background: rgba(255, 248, 235, 0.075);
  border: 1px solid rgba(226, 183, 107, 0.18);
  box-shadow: 0 22px 40px var(--shadow);
}

.timeline-body h2 {
  font-size: 1.45rem;
}

.timeline-body p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.timeline-media {
  min-height: 100%;
}

.media-thumb,
.media-doc,
.media-placeholder {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  min-height: 12rem;
  height: 100%;
  color: var(--ink);
  background: rgba(255, 248, 235, 0.075);
  border: 1px solid rgba(226, 183, 107, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 22px 40px var(--shadow);
  text-align: center;
  text-decoration: none;
}

.media-thumb img,
.media-thumb video,
.media-video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-thumb img,
.media-thumb video {
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 220ms ease, filter 220ms ease;
}

.media-thumb video {
  opacity: 0;
}

.media-thumb video.is-preview-ready {
  opacity: 1;
}

.media-video-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(226, 183, 107, 0.26), transparent 34%),
    linear-gradient(135deg, rgba(113, 45, 29, 0.58), rgba(36, 27, 22, 0.95));
  transition: transform 220ms ease, filter 220ms ease;
}

.media-video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 248, 235, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 248, 235, 0.045) 1px, transparent 1px);
  background-size: 1.15rem 1.15rem;
  opacity: 0.55;
}

.media-video-icon {
  position: relative;
  z-index: 1;
  width: 4rem;
  height: 4rem;
  filter: drop-shadow(0 0 1.6rem rgba(226, 183, 107, 0.42));
}

.media-video-icon circle {
  fill: rgba(36, 27, 22, 0.82);
  stroke: var(--gold-bright);
  stroke-width: 1.5;
}

.media-video-icon path {
  fill: var(--gold-bright);
}

.media-image-placeholder .media-image-frame {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.5;
}

.media-image-placeholder .media-image-shape {
  fill: var(--gold-bright);
}

.media-thumb span,
.media-placeholder span {
  position: relative;
  z-index: 1;
  padding: 0.55rem 0.75rem;
  background: rgba(36, 27, 22, 0.82);
  border: 1px solid rgba(226, 183, 107, 0.28);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.media-thumb:hover img,
.media-thumb:focus-visible img,
.media-thumb:hover video,
.media-thumb:focus-visible video,
.media-thumb:hover .media-video-placeholder,
.media-thumb:focus-visible .media-video-placeholder {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.08);
}

.timeline-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.timeline-media-grid .media-thumb {
  min-height: 5.7rem;
}

.timeline-media-grid .media-thumb span {
  padding: 0.35rem 0.45rem;
  font-size: 0.68rem;
}

.timeline-load-status {
  color: var(--muted);
}

.media-thumb:focus-visible,
.media-doc:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.media-doc {
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
}

.media-doc-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.65rem 0.8rem;
  color: var(--gold-bright);
  background: rgba(255, 248, 235, 0.06);
  border: 1px solid rgba(226, 183, 107, 0.18);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.media-doc-link:hover,
.media-doc-link:focus-visible {
  background: rgba(226, 183, 107, 0.12);
  outline: none;
}

.is-video-modal-open {
  overflow: hidden;
}

.timeline-video-modal[hidden] {
  display: none;
}

.timeline-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.timeline-video-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(12, 8, 6, 0.78);
  border: 0;
  cursor: pointer;
}

.timeline-video-panel {
  position: relative;
  z-index: 1;
  width: min(58rem, 100%);
  padding: 1rem;
  background: rgba(36, 27, 22, 0.96);
  border: 1px solid rgba(226, 183, 107, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.timeline-video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.timeline-video-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.timeline-video-close {
  flex: 0 0 auto;
  padding: 0.62rem 0.85rem;
  color: var(--ink);
  background: rgba(255, 248, 235, 0.09);
  border: 1px solid rgba(226, 183, 107, 0.28);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.timeline-video-close:hover,
.timeline-video-close:focus-visible {
  background: rgba(226, 183, 107, 0.16);
  outline: 3px solid rgba(226, 183, 107, 0.28);
  outline-offset: 2px;
}

.timeline-video-player {
  display: block;
  width: 100%;
  max-height: min(72vh, 42rem);
  background: #000;
  border-radius: calc(var(--radius) - 2px);
}

.timeline-video-status {
  min-height: 1.35rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-card .text-link + .text-link {
  margin-left: 0.85rem;
}

.doc-mark {
  display: inline-grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  color: #23160f;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 50%;
  font-weight: 900;
}

.media-doc small {
  color: var(--muted);
}

.media-placeholder {
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(88, 72, 57, 0.66), rgba(36, 27, 22, 0.8)),
    url("assets/damasco.jpg");
  background-size: cover;
}

.media-placeholder-gold {
  background:
    linear-gradient(135deg, rgba(151, 76, 54, 0.72), rgba(88, 72, 57, 0.84)),
    url("assets/damasco.jpg");
  background-size: cover;
}

.timeline-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 1rem;
  scroll-margin-top: 6.5rem;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-divider::before,
.timeline-divider::after {
  height: 1px;
  content: "";
  background: rgba(226, 183, 107, 0.38);
}

.timeline-item-future .timeline-body,
.timeline-item-future .timeline-date {
  background: rgba(226, 183, 107, 0.07);
}

.story-stage {
  position: relative;
  min-height: calc(100vh - 5rem);
  overflow: hidden;
  isolation: isolate;
  background: #0e0907;
}

.story-stage.is-audio-on {
  height: calc(100vh - 5rem);
}

.story-stage::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: url("assets/madonna-del-rio-1910.jpg");
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.16) brightness(0.62);
  transform: scale(1.05);
}

.story-stage::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(14, 9, 7, 0.98), transparent 22%, transparent 76%, rgba(14, 9, 7, 0.98)),
    linear-gradient(90deg, rgba(14, 9, 7, 0.86), transparent 30%, transparent 70%, rgba(14, 9, 7, 0.86));
}

.story-stage:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: -6px;
}

.story-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(226, 183, 107, 0.1), rgba(14, 9, 7, 0.78) 66%),
    linear-gradient(180deg, rgba(14, 9, 7, 0.98) 0%, rgba(14, 9, 7, 0.45) 46%, rgba(14, 9, 7, 0.98) 100%);
}

.story-toolbar {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  right: max(1rem, calc((100% - var(--page-max)) / 2));
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.story-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  color: var(--ink);
  cursor: pointer;
  background: rgba(36, 27, 22, 0.78);
  border: 1px solid rgba(226, 183, 107, 0.34);
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.story-icon-button[hidden] {
  display: none;
}

.story-icon-button:hover,
.story-icon-button:focus-visible {
  color: var(--dark);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}

.story-icon-button:focus-visible {
  outline: 3px solid rgba(226, 183, 107, 0.38);
  outline-offset: 4px;
}

.story-icon-button::after {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: max-content;
  padding: 0.38rem 0.55rem;
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  content: attr(data-tooltip);
  background: var(--gold-bright);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.story-icon-button:hover::after,
.story-icon-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.story-icon {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.35;
}

.icon-play,
.icon-volume-on {
  display: none;
}

.icon-play path {
  fill: currentColor;
  stroke: none;
}

.story-stage.is-paused #storyPlaybackButton .icon-pause,
.story-stage.is-audio-on #storyAudioButton .icon-volume-off {
  display: none;
}

.story-stage.is-paused #storyPlaybackButton .icon-play,
.story-stage.is-audio-on #storyAudioButton .icon-volume-on {
  display: block;
}

.story-perspective {
  position: relative;
  z-index: 3;
  width: min(100%, 58rem);
  min-height: calc(100vh - 5rem);
  margin: 0 auto;
  padding: clamp(7.5rem, 14vh, 10rem) 1.5rem 5rem;
  overflow: visible;
}

.story-stage.is-audio-on .story-perspective {
  position: absolute;
  inset: 6.2rem max(1rem, calc((100% - 58rem) / 2)) 2.6rem;
  display: flex;
  justify-content: center;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
}

.story-perspective:focus-visible {
  outline: 3px solid rgba(226, 183, 107, 0.55);
  outline-offset: -5px;
}

.story-crawl {
  --story-start: 720px;
  --story-end: -3200px;
  --story-cycle-duration: 155s;
  width: min(100%, 50rem);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  font-weight: 500;
  line-height: 1.78;
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

.story-stage.is-audio-on .story-crawl {
  margin: 0;
  transform: translateY(var(--story-start));
  animation: storyRoll var(--story-cycle-duration) linear infinite;
}

.story-crawl h1 {
  max-width: none;
  margin-bottom: 1.45rem;
  color: #fff8eb;
  font-size: clamp(2.45rem, 5.4vw, 4.8rem);
  text-align: center;
  text-wrap: balance;
}

.story-crawl p {
  margin: 0 0 1.35rem;
}

.story-kicker,
.story-source {
  text-align: center;
}

.story-kicker {
  color: var(--gold-bright);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.78em;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-source {
  color: #e8d0ad;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0;
}

.story-stage.is-paused .story-crawl {
  animation-play-state: paused;
}

.story-history-action {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0 1rem 5rem;
}

.story-stage.is-audio-on .story-history-action {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes storyRoll {
  0% {
    transform: translateY(var(--story-start));
  }

  92% {
    transform: translateY(var(--story-end));
  }

  100% {
    transform: translateY(var(--story-end));
  }
}

.place-page {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5.5rem;
}

.place-intro {
  margin-bottom: 2rem;
}

.place-heading {
  align-items: center;
}

.place-heading h1 {
  max-width: 12ch;
  font-size: 3.5rem;
}

.video-frame {
  overflow: hidden;
  background: rgba(17, 11, 9, 0.92);
  border: 1px solid rgba(226, 183, 107, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 24px 44px var(--shadow);
}

.place-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #100b09;
}

.place-map-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
  align-items: stretch;
  margin: 1.25rem 0 4rem;
}

.map-copy,
.map-frame,
.detail-card {
  background: rgba(255, 248, 235, 0.075);
  border: 1px solid rgba(226, 183, 107, 0.18);
  border-radius: var(--radius);
  box-shadow: 0 22px 40px var(--shadow);
}

.map-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.4rem;
}

.map-copy p:not(.eyebrow) {
  color: var(--muted);
}

.map-copy .button {
  width: fit-content;
}

.map-frame {
  display: grid;
  place-items: stretch;
  overflow: hidden;
  min-height: 24rem;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  border: 0;
  filter: saturate(0.82) contrast(0.96);
}

.map-consent {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  line-height: 1.65;
}

.map-consent a {
  color: #ffd98a;
  text-underline-offset: 0.2em;
}

.map-close { margin: 0.75rem; }

.map-frame [hidden] { display: none; }

.place-details {
  padding-top: 0.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  padding: 1.2rem;
}

.detail-card p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.friends-page {
  min-height: calc(100vh - 5rem);
}

.friends-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(38rem, 68vh);
  isolation: isolate;
  overflow: hidden;
  background-image: url("assets/hero-santuario.jpg");
  background-position: center 42%;
  background-size: cover;
}

.friends-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, rgba(25, 17, 13, 0.96), rgba(36, 27, 22, 0.26) 72%, rgba(36, 27, 22, 0.58));
}

.friends-hero-content {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4rem;
}

.friends-hero-content h1 {
  max-width: 12ch;
  font-size: 3.8rem;
}

.friends-hero-content > p:last-child {
  max-width: 43rem;
  margin-top: 1rem;
  color: #f4eadc;
  font-size: 1.18rem;
}

.friends-directory {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 4rem 1.25rem 5.5rem;
}

.friends-list {
  display: grid;
  gap: 1rem;
}

.friends-list .friend-entry {
  margin-top: 0;
}

.friend-entry {
  display: grid;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  margin-top: 2rem;
  background: rgba(255, 248, 235, 0.075);
  border: 1px solid rgba(226, 183, 107, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 24px 44px var(--shadow);
}

.friend-visual {
  position: relative;
  overflow: hidden;
  min-height: 23rem;
  background:
    linear-gradient(135deg, rgba(113, 45, 29, 0.18), rgba(36, 27, 22, 0.3)),
    url("assets/abside.jpg") center / cover;
}

.friend-visual img {
  display: block;
  width: 100%;
  min-height: 23rem;
  height: 100%;
  object-fit: cover;
}

.friend-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.friend-copy h2 {
  max-width: 20ch;
  margin-top: 0.5rem;
  font-size: 2.15rem;
}

.friend-copy > p:not(.eyebrow):not(.friend-domain) {
  max-width: 43rem;
  margin-top: 1rem;
  color: var(--muted);
}

.friend-domain {
  margin: 1.2rem 0 1.35rem;
  color: var(--gold-bright);
  font-weight: 800;
}

.friend-domain a {
  color: inherit;
  text-decoration: none;
}

.friend-domain a:hover,
.friend-domain a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.events-page {
  min-height: calc(100vh - 5rem);
  padding: 7.5rem max(1.25rem, calc((100% - var(--page-max)) / 2)) 5rem;
  background:
    linear-gradient(rgba(36, 27, 22, 0.88), rgba(36, 27, 22, 0.97)),
    url("assets/damasco.jpg") center top / 620px auto;
}

.events-intro {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.events-intro h1 {
  max-width: none;
  font-size: 3.8rem;
}

.events-intro p:last-child {
  max-width: 44rem;
  margin-top: 0.75rem;
  color: #f0e2d2;
  font-size: 1.12rem;
}

.event-newsletter {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(24rem, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto 3rem;
  padding: clamp(1.35rem, 3vw, 2rem) 0;
  border-top: 1px solid rgba(226, 183, 107, 0.28);
  border-bottom: 1px solid rgba(226, 183, 107, 0.28);
}

.event-newsletter-copy h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.event-newsletter-copy p:last-child {
  margin-top: 0.7rem;
  color: #e4d5c7;
  line-height: 1.65;
}

.event-newsletter-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
  background: rgba(23, 15, 12, 0.5);
  border-left: 3px solid var(--gold);
}

.event-newsletter-form > label:first-child {
  color: var(--gold-bright);
  font-weight: 800;
}

.event-newsletter-fields {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  gap: 0.7rem;
}

.event-newsletter-fields input {
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.78rem 0.9rem;
  color: #fff9ef;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(226, 183, 107, 0.42);
  border-radius: 6px;
  font: inherit;
}

.event-newsletter-fields input::placeholder {
  color: #c2b4a8;
}

.event-newsletter-fields input:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

.event-newsletter-fields .button {
  min-width: 12rem;
}

.event-newsletter-consent {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  color: #ddd0c4;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.event-newsletter-consent input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.1rem 0 0;
  accent-color: var(--gold);
}

.event-newsletter-consent:focus-within {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
  background: rgba(226, 183, 107, 0.08);
}

.event-newsletter-consent a,
.newsletter-back-link {
  color: var(--gold-bright);
}

.newsletter-honeypot {
  position: fixed;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-status {
  min-height: 1.5rem;
  color: #e8dacd;
  line-height: 1.5;
}

.newsletter-status[data-type="success"] {
  color: #ffe09a;
  font-weight: 700;
}

.newsletter-status[data-type="error"] {
  color: #ffb5a5;
  font-weight: 700;
}

.newsletter-manage-page {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  padding: 7rem 1.25rem 4rem;
  background:
    linear-gradient(rgba(36, 27, 22, 0.9), rgba(36, 27, 22, 0.97)),
    url("assets/damasco.jpg") center / 620px auto;
}

.newsletter-manage-card {
  width: min(42rem, 100%);
  padding: clamp(1.6rem, 5vw, 3rem);
  background: rgba(55, 38, 29, 0.92);
  border: 1px solid rgba(226, 183, 107, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.newsletter-manage-card h1 {
  margin-top: 0.55rem;
  font-size: clamp(2.2rem, 6vw, 3.7rem);
}

.newsletter-manage-card > p:not(.eyebrow) {
  margin: 1rem 0 1.4rem;
  color: #eadbcd;
  font-size: 1.08rem;
  line-height: 1.65;
}

.newsletter-manage-card .newsletter-status {
  margin-top: 1rem;
}

.newsletter-back-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 700;
}

.next-event-container {
  display: grid;
  gap: 3rem;
  max-width: var(--page-max);
  margin: 0 auto;
}

.next-event {
  scroll-margin-top: 6.5rem;
  overflow: hidden;
  background: rgba(255, 248, 235, 0.075);
  border: 1px solid rgba(226, 183, 107, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 24px 52px rgba(10, 7, 5, 0.42);
}

.event-feature {
  display: grid;
  grid-template-columns: minmax(23rem, 1.08fr) minmax(20rem, 0.92fr);
  min-height: 31rem;
  border-bottom: 1px solid rgba(226, 183, 107, 0.22);
}

.event-feature-media {
  position: relative;
  overflow: hidden;
  min-height: 31rem;
  padding: 0;
  color: inherit;
  background:
    url("assets/logo-amici-santuario.png") center / min(36%, 13rem) no-repeat,
    rgba(22, 15, 12, 0.88);
  border: 0;
  border-right: 1px solid rgba(226, 183, 107, 0.22);
  cursor: zoom-in;
}

.event-feature-media:disabled {
  cursor: default;
}

.event-feature-media img,
.event-feature-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 31rem;
  object-fit: cover;
}

.event-feature-media:focus-visible,
.event-gallery-item:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: -4px;
}

.event-feature-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: rgba(67, 43, 33, 0.72);
}

.event-feature-copy h2 {
  max-width: 17ch;
  margin-top: 0.8rem;
  font-size: clamp(2.25rem, 4vw, 3.8rem);
}

.event-date {
  margin-top: 1.2rem;
  color: var(--gold-bright);
  font-weight: 800;
}

.event-summary {
  max-width: 40rem;
  margin-top: 1rem;
  color: #f2e5d6;
  font-size: 1.16rem;
  line-height: 1.72;
}

.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 3.5rem);
}

.event-description {
  display: grid;
  gap: 2rem;
}

.event-copy-section h2,
.event-gallery-section h2,
.event-facts h2 {
  margin-bottom: 0.8rem;
  font-size: 1.75rem;
}

.event-copy-section p {
  color: #eee0d1;
  line-height: 1.8;
  white-space: pre-line;
}

.event-facts {
  align-self: start;
  padding: 1.4rem;
  background: rgba(20, 13, 10, 0.5);
  border: 1px solid rgba(226, 183, 107, 0.2);
  border-radius: var(--radius);
}

.event-fact {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(226, 183, 107, 0.17);
}

.event-fact strong {
  color: var(--gold-bright);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-fact span {
  color: #f2e6d8;
  line-height: 1.55;
  white-space: pre-line;
}

.event-fact a {
  color: #ffd98a;
  overflow-wrap: anywhere;
}

.event-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.event-actions .button {
  width: 100%;
  text-align: center;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.event-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #17100c;
  border: 1px solid rgba(226, 183, 107, 0.22);
  border-radius: var(--radius);
  cursor: zoom-in;
}

.event-gallery-item img,
.event-gallery-item video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-media-label {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.35rem 0.55rem;
  color: #21150f;
  background: var(--gold-bright);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 900;
}

.event-empty-state {
  display: grid;
  place-items: center;
  min-height: 26rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: rgba(255, 248, 235, 0.07);
  border: 1px solid rgba(226, 183, 107, 0.22);
  border-radius: var(--radius);
}

.event-empty-state h2 {
  max-width: 28ch;
  margin: 0.7rem auto 0;
}

.event-empty-state p:last-child {
  margin-top: 0.8rem;
  color: var(--muted);
}

.event-media-dialog {
  width: min(94vw, 76rem);
  max-width: none;
  padding: 0;
  overflow: visible;
  background: #100b09;
  border: 1px solid rgba(226, 183, 107, 0.42);
  border-radius: var(--radius);
}

.event-media-dialog::backdrop {
  background: rgba(10, 7, 5, 0.9);
}

.event-media-dialog img,
.event-media-dialog video {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.event-media-close {
  position: absolute;
  z-index: 2;
  top: -1rem;
  right: -1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #241b16;
  background: var(--gold-bright);
  border: 0;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
}

.about-card-grid {
  margin-bottom: 1rem;
}

.about-card {
  min-height: auto;
}

.about-card div {
  min-height: 100%;
}

.about-contact-card {
  margin-top: 1rem;
}

.association-facts {
  padding-bottom: 1.5rem;
}

.association-facts h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.association-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 2rem;
  margin: 1.2rem 0;
}

.association-facts-grid > div {
  min-width: 0;
  border-top: 1px solid rgba(226, 183, 107, 0.25);
  padding-top: 0.5rem;
}

.association-facts-grid dt {
  font-size: 0.85rem;
  color: var(--gold-bright);
  font-weight: 700;
}

.association-facts-grid dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.association-document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
}

@media (max-width: 600px) {
  .association-facts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }
}

.about-visual {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(226, 183, 107, 0.38), transparent 31%),
    linear-gradient(135deg, rgba(113, 45, 29, 0.68), rgba(36, 27, 22, 0.94)),
    url("assets/abside.jpg") center / cover;
}

.about-visual::after {
  width: min(58%, 16rem);
  aspect-ratio: 1;
  content: "";
  background: url("assets/logo-amici-santuario.png") center / contain no-repeat;
  filter: drop-shadow(0 0 2rem rgba(226, 183, 107, 0.38));
}

.admin-operations-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: #f0eee6;
  color: #241b16;
  border-bottom: 2px solid #d6c8ba;
}
.admin-operations-bar > div { display: grid; gap: 0.3rem; flex: 1 1 18rem; }
.admin-operations-bar.is-maintenance { background: #ffe5c4; border-color: #a33e1d; }
.admin-operations-bar span { font-size: 0.92rem; line-height: 1.5; }
.admin-operations-bar .button { color: #241b16; border-color: #79563d; }
#initialAdministrators, #startupAdminStatus { overflow-wrap: anywhere; }

.privacy-page {
  min-height: 100vh;
  padding: 7.5rem max(1.25rem, calc((100% - var(--page-max)) / 2)) 4rem;
  background:
    linear-gradient(180deg, rgba(36, 27, 22, 0.8), rgba(36, 27, 22, 0.97)),
    url("assets/damasco.jpg");
  background-size: cover, 560px auto;
}

.privacy-hero {
  max-width: 58rem;
  margin-bottom: 2rem;
}

.privacy-hero h1 {
  max-width: none;
}

.privacy-hero p {
  color: #f1e3d3;
  font-size: 1.08rem;
  line-height: 1.7;
}

.privacy-content {
  display: grid;
  gap: 1rem;
  max-width: 66rem;
}

.privacy-content article {
  padding: 1.25rem;
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(226, 183, 107, 0.2);
  border-radius: var(--radius);
}

.privacy-content h2 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.privacy-content p {
  color: #efe2d4;
  line-height: 1.68;
}

.privacy-content p + p {
  margin-top: 0.7rem;
}

.privacy-content a,
.site-footer a {
  color: #ffd98a;
  font-weight: 800;
  text-underline-offset: 0.22em;
}

.privacy-content a { overflow-wrap: anywhere; }

.donation-layout {
  display: grid;
  grid-template-columns: minmax(19rem, 0.72fr) minmax(0, 1.5fr);
  gap: 1.25rem;
  align-items: start;
}

.donation-panel,
.sanctuary-board {
  border: 1px solid rgba(226, 183, 107, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 24px 44px var(--shadow);
}

.donation-panel {
  position: sticky;
  top: 6rem;
  padding: 1.35rem;
  background:
    linear-gradient(150deg, rgba(113, 45, 29, 0.86), rgba(36, 27, 22, 0.94)),
    url("assets/damasco.jpg");
  background-size: 520px auto;
}

.donation-panel h1 {
  max-width: none;
  font-size: 3rem;
}

.donation-panel > p {
  margin-top: 1rem;
  color: #f2e5d5;
}

.amounts {
  margin: 1.5rem 0;
}

.amounts h2 {
  margin-bottom: 0.75rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.amount-option {
  min-height: 3rem;
  padding: 0.65rem 0.7rem;
  color: var(--ink);
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(255, 248, 235, 0.22);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.amount-option:hover,
.amount-option:focus-visible,
.amount-option.is-selected {
  color: #23160f;
  background: var(--gold);
  border-color: var(--gold-bright);
  outline: none;
}

.amount-free {
  grid-column: 1 / -1;
}

.custom-amount-field {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
  color: #f7ead9;
  font-size: 0.9rem;
  font-weight: 800;
}

.custom-amount-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: rgba(255, 248, 235, 0.12);
  border: 1px solid rgba(255, 248, 235, 0.24);
  border-radius: var(--radius);
  font: inherit;
}

.custom-amount-field input:focus {
  border-color: var(--gold-bright);
  outline: 3px solid rgba(226, 183, 107, 0.24);
}

.custom-amount-field input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.custom-amount-field small {
  color: #decaa8;
  font-weight: 500;
  line-height: 1.35;
}

.payment-methods {
  margin: 1.5rem 0;
}

.payment-methods h2,
.payment-methods h3 {
  margin-bottom: 0.75rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-grid {
  display: grid;
  gap: 0.55rem;
}

.payment-option {
  display: grid;
  gap: 0.2rem;
  min-height: 4.5rem;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 248, 235, 0.07);
  border: 1px solid rgba(255, 248, 235, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
}

.payment-option:hover,
.payment-option:focus-visible,
.payment-option.is-selected {
  color: #24170f;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: rgba(255, 248, 235, 0.72);
  outline: none;
}

.payment-option[hidden],
.payment-success-actions .button[hidden] {
  display: none !important;
}

#paymentConfirmationBank {
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.payment-option span {
  font-weight: 900;
}

.payment-option small {
  color: currentColor;
  opacity: 0.82;
  line-height: 1.25;
}

.donor-fields {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.donor-fields h2 {
  margin-bottom: 0.1rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donor-visibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.donor-visibility {
  min-height: 2.75rem;
  padding: 0.55rem 0.45rem;
  color: var(--ink);
  background: rgba(255, 248, 235, 0.07);
  border: 1px solid rgba(255, 248, 235, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.donor-visibility:hover,
.donor-visibility:focus-visible,
.donor-visibility.is-selected {
  color: #24170f;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: rgba(255, 248, 235, 0.72);
  outline: none;
}

.donor-privacy-hint {
  margin: 0.1rem 0 0.2rem;
  color: #eedcc8;
  font-size: 0.85rem;
  line-height: 1.45;
}

.donor-fields label {
  display: grid;
  gap: 0.3rem;
  color: #f7ead9;
  font-size: 0.9rem;
  font-weight: 800;
}

.donor-fields input,
.donor-fields textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: rgba(255, 248, 235, 0.12);
  border: 1px solid rgba(255, 248, 235, 0.24);
  border-radius: var(--radius);
  font: inherit;
}

.donor-fields textarea {
  resize: vertical;
}

.donor-fields input:focus,
.donor-fields textarea:focus {
  border-color: var(--gold-bright);
  outline: 3px solid rgba(226, 183, 107, 0.24);
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.55rem;
  padding: 0.72rem;
  background: rgba(20, 14, 11, 0.38);
  border: 1px solid rgba(255, 248, 235, 0.18);
  border-radius: var(--radius);
}

.consent-check[hidden] {
  display: none;
}

.consent-check input {
  width: 1.15rem;
  min-height: auto;
  height: 1.15rem;
  margin-top: 0.12rem;
  accent-color: var(--gold);
}

.consent-check span {
  color: #f7ead9;
  font-size: 0.9rem;
  line-height: 1.42;
}

.consent-check a {
  color: #ffd98a;
  text-underline-offset: 0.18em;
}

.demo-note {
  margin-top: 0.85rem;
  color: #f1d5a1;
  font-size: 0.92rem;
}

.sanctuary-board {
  padding: 1.25rem;
  background: rgba(20, 14, 11, 0.72);
}

.board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.board-header h2 {
  font-size: 2rem;
}

.light-counter {
  min-width: 8.25rem;
  padding: 0.7rem 0.85rem;
  text-align: right;
  background: rgba(255, 248, 235, 0.07);
  border: 1px solid rgba(226, 183, 107, 0.18);
  border-radius: var(--radius);
}

.light-counter strong {
  color: var(--gold-bright);
  font-size: 2rem;
  line-height: 1;
}

.light-counter small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-wrap {
  margin-bottom: 1rem;
}

.progress-bar {
  height: 0.85rem;
  overflow: hidden;
  background: rgba(255, 248, 235, 0.1);
  border: 1px solid rgba(226, 183, 107, 0.16);
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(226, 183, 107, 0.55);
  transition: width 320ms ease;
}

#progressText {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 183, 107, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 14%, rgba(226, 183, 107, 0.1), transparent 22rem),
    #19110e;
}

.plan-shell.is-selecting {
  border-color: rgba(255, 217, 139, 0.68);
  box-shadow: inset 0 0 0 2px rgba(226, 183, 107, 0.15), 0 0 28px rgba(226, 183, 107, 0.18);
}

.church-plan {
  width: 100%;
  height: auto;
  min-height: 36rem;
}

.plan-shadow {
  fill: rgba(0, 0, 0, 0.45);
  transform: translate(10px, 16px);
}

.plan-wall {
  fill: url(#stoneGradient);
  stroke: rgba(255, 248, 235, 0.36);
  stroke-width: 4;
}

.plan-floor {
  fill: rgba(48, 35, 28, 0.98);
  stroke: rgba(226, 183, 107, 0.2);
  stroke-width: 2;
}

.plan-line,
.path-line {
  fill: none;
  stroke: rgba(199, 192, 191, 0.28);
  stroke-width: 3;
  stroke-linecap: round;
}

.path-line {
  stroke-dasharray: 9 10;
}

.plan-door,
.plan-altar,
.side-room {
  fill: rgba(173, 153, 144, 0.22);
  stroke: rgba(226, 183, 107, 0.2);
  stroke-width: 2;
}

.plan-label {
  fill: rgba(255, 248, 235, 0.66);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.light-point {
  fill: #7f684f;
  stroke: rgba(255, 248, 235, 0.35);
  stroke-width: 8;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 230ms ease, stroke 230ms ease, filter 230ms ease, transform 230ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.light-hit {
  fill: transparent;
  cursor: pointer;
  pointer-events: all;
}

.light-point:hover,
.light-point:focus-visible {
  fill: #a17a4d;
  stroke: var(--gold-bright);
  outline: none;
}

.light-point.is-lit {
  fill: var(--gold-bright);
  stroke: #fff3c8;
  filter: url(#softGlow);
  animation: lightPulse 620ms ease-out;
}

.light-point.is-lit:hover,
.light-point.is-lit:focus-visible {
  fill: #fff2bf;
}

.light-point.is-choice {
  stroke: var(--gold-bright);
  stroke-width: 5;
}

@keyframes lightPulse {
  0% {
    transform: scale(0.68);
    opacity: 0.55;
  }

  55% {
    transform: scale(1.34);
    opacity: 1;
  }

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

.status-message {
  min-height: 2rem;
  margin-top: 1rem;
  color: #f5e2bd;
}

.status-message.is-success {
  color: var(--gold-bright);
}

.status-message.is-warning {
  color: #f4c2aa;
}

.payment-success-dialog {
  width: min(calc(100% - 2rem), 40rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  color: #fff9ef;
  background: #2d211b;
  border: 1px solid rgba(226, 183, 107, 0.72);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72), 0 0 44px rgba(226, 183, 107, 0.2);
}

.payment-success-dialog::backdrop {
  background: rgba(20, 14, 11, 0.88);
  backdrop-filter: blur(4px);
}

.payment-success-dialog.is-bank-request .payment-success-content {
  padding: 1.5rem;
}

.payment-success-dialog.is-bank-request h2 {
  font-size: 2rem;
}

.payment-success-dialog.is-bank-request .payment-success-actions {
  grid-template-columns: minmax(0, 1fr);
}

.payment-success-content {
  display: grid;
  justify-items: center;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  text-align: center;
}

.payment-success-icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  color: #fff;
  background: #486a4d;
  border: 2px solid #bad8bd;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(72, 106, 77, 0.2), 0 0 32px rgba(186, 216, 189, 0.24);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.payment-success-content .eyebrow {
  margin: 0;
  color: #d3ead5;
}

.payment-success-content h2 {
  margin-top: 0.25rem;
  font-size: clamp(2rem, 6vw, 2.8rem);
}

.payment-success-content > p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: #f7ead9;
  font-size: 1.06rem;
  line-height: 1.6;
}

.payment-success-content .payment-success-note {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold-bright);
  text-align: left;
}

.payment-success-content .payment-success-note + .payment-success-note {
  margin-top: 0.45rem;
}

.payment-success-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.4rem;
}

.payment-success-actions .button {
  width: 100%;
  min-height: 3.4rem;
}

.experimental-donation-page {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.experimental-donation-layout {
  display: grid;
  grid-template-columns: minmax(19.5rem, 21rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.experimental-donation-layout > * {
  min-width: 0;
}

.experimental-panel,
.rendering-board {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(226, 183, 107, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 44px var(--shadow);
}

.experimental-panel {
  position: sticky;
  top: 6rem;
  padding: 1.35rem;
  background:
    linear-gradient(150deg, rgba(113, 45, 29, 0.82), rgba(36, 27, 22, 0.95)),
    url("assets/damasco.jpg");
  background-size: 520px auto;
}

.experimental-panel h1 {
  max-width: 9ch;
  font-size: 2.65rem;
}

.experimental-panel > p {
  margin-top: 1rem;
  color: #f2e5d5;
}

.experimental-panel .restoration-goal-note {
  padding: 0.8rem 0.9rem;
  color: #f6e8ce;
  background: rgba(36, 27, 22, 0.4);
  border-left: 3px solid var(--gold-bright);
}

.restoration-goal-note strong {
  color: var(--gold-bright);
}

.experimental-zones {
  margin: 1.5rem 0;
}

.experimental-zones h2 {
  margin-bottom: 0.75rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zone-choice-grid {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.zone-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.75rem;
  align-items: center;
  min-height: 4.1rem;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 248, 235, 0.07);
  border: 1px solid rgba(255, 248, 235, 0.2);
  border-radius: var(--radius);
  cursor: pointer;
}

.zone-choice:hover,
.zone-choice:focus-visible,
.zone-choice.is-selected {
  color: #24170f;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: rgba(255, 248, 235, 0.72);
  outline: none;
}

.zone-choice span {
  overflow-wrap: anywhere;
  font-weight: 800;
  line-height: 1.2;
}

.zone-choice strong {
  min-width: 5.4rem;
  text-align: right;
  font-size: 0.94rem;
}

.zone-choice i {
  grid-column: 1 / -1;
  display: block;
  height: 0.35rem;
  overflow: hidden;
  background: rgba(255, 248, 235, 0.14);
  border-radius: 999px;
}

.zone-choice i b {
  display: block;
  width: 0%;
  height: 100%;
  background: currentColor;
  opacity: 0.78;
  border-radius: inherit;
  transition: width 260ms ease;
}

.experimental-actions {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.rendering-action-card .experimental-actions {
  margin-top: 0.85rem;
}

.experimental-actions .button {
  white-space: normal;
  text-align: center;
}

.paypal-sandbox-box,
.stripe-sandbox-box,
.satispay-info-box {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
  padding: 0.8rem;
  overflow: visible;
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(226, 183, 107, 0.24);
  border-radius: var(--radius);
}

.paypal-online-box {
  margin-top: 0;
}

.online-payments-notice {
  padding: 1rem;
  background: rgba(255, 248, 235, 0.08);
  border: 1px solid rgba(226, 183, 107, 0.3);
  border-left: 3px solid var(--gold-bright);
  border-radius: var(--radius);
}

.online-payments-notice strong {
  color: var(--gold-bright);
  font-size: 1rem;
  line-height: 1.4;
}

.online-payments-notice p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.online-payments-notice[hidden] {
  display: none;
}

.paypal-online-box strong {
  color: var(--gold-bright);
  font-size: 1rem;
  line-height: 1.2;
}

.payment-methods-compact {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(226, 183, 107, 0.22);
}

.payment-methods-compact h3 {
  margin-top: 0;
  color: var(--gold-bright);
  line-height: 1.3;
}

.payment-methods-compact .payment-option {
  min-height: 3.85rem;
  padding: 0.6rem 0.7rem;
}

.paypal-sandbox-box[hidden],
.stripe-sandbox-box[hidden],
.satispay-info-box[hidden] {
  display: none;
}

.paypal-sandbox-box p,
.stripe-sandbox-box p,
.satispay-info-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.stripe-sandbox-box strong,
.satispay-info-box strong {
  color: var(--gold-bright);
  overflow-wrap: anywhere;
}

#paypalButtonContainer {
  width: 100%;
  min-width: 0;
  min-height: 10.8rem;
  overflow: visible;
}

#paypalButtonContainer[hidden] {
  display: none;
}

.bank-reference-card {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  color: #fff4e5;
  background: rgba(25, 14, 10, 0.48);
  border-left: 3px solid var(--gold);
  border-radius: 0;
}

.bank-reference-card[hidden] {
  display: none;
}

.bank-reference-card span {
  color: var(--gold-bright);
  font-size: 0.875rem;
  font-weight: 600;
}

.bank-reference-card small {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
}

.bank-reference-card strong + span {
  margin-top: 0.6rem;
}

.bank-method-description {
  display: grid;
  gap: 0.25rem;
  color: #fff4e5;
}

.bank-method-description span {
  font-weight: 700;
}

.bank-method-description small {
  font-size: 0.9rem;
  line-height: 1.5;
}

.bank-reference-card strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.rendering-board {
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 4%, rgba(226, 183, 107, 0.1), transparent 25rem),
    rgba(20, 14, 11, 0.76);
}

.rendering-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rendering-header h2 {
  font-size: 2rem;
}

.rendering-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(7rem, 1fr));
  gap: 0.65rem;
  min-width: 25rem;
}

.rendering-stats span {
  padding: 0.68rem 0.8rem;
  color: var(--muted);
  text-align: right;
  background: rgba(255, 248, 235, 0.07);
  border: 1px solid rgba(226, 183, 107, 0.18);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.rendering-stats strong {
  display: block;
  color: var(--gold-bright);
  font-size: 1.75rem;
  line-height: 1;
}

.experimental-progress {
  margin-bottom: 1rem;
}

.experimental-progress p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.rendering-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16.5rem, 18rem);
  gap: 1rem;
  align-items: start;
}

.rendering-action-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 0.95rem;
  background: rgba(255, 248, 235, 0.07);
  border: 1px solid rgba(226, 183, 107, 0.18);
  border-radius: var(--radius);
}

.restoration-stage {
  --veil-opacity: 0.84;
  --image-brightness: 0.24;
  --image-saturation: 0.48;
  --image-contrast: 0.88;
  --altare-glow: 0;
  --altare-scale: 1;
  --altare-glare: 0;
  --abside-glow: 0;
  --abside-scale: 1;
  --abside-glare: 0;
  --navata-glow: 0;
  --navata-scale: 1;
  --navata-glare: 0;
  --altare-sinistro-glow: 0;
  --altare-sinistro-scale: 1;
  --altare-sinistro-glare: 0;
  --altare-destro-glow: 0;
  --altare-destro-scale: 1;
  --altare-destro-glare: 0;
  --pareti-glow: 0;
  --pareti-scale: 1;
  --pareti-glare: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1672 / 941;
  width: 100%;
  align-self: start;
  min-height: 0;
  background: #080503;
  border: 1px solid rgba(226, 183, 107, 0.2);
  border-radius: var(--radius);
  isolation: isolate;
}

.render-expand-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  color: #fff8eb;
  background: rgba(36, 27, 22, 0.86);
  border: 1px solid rgba(255, 217, 139, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(8, 5, 3, 0.35);
  cursor: pointer;
  font-weight: 800;
}

.render-expand-button:hover,
.render-expand-button:focus-visible {
  color: #241b16;
  background: var(--gold-bright);
  outline: none;
}

.render-expand-button [aria-hidden="true"] {
  font-size: 1.35rem;
  line-height: 1;
}

.rendering-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 1rem;
  overflow: hidden;
  color: var(--ink);
  background: #080503;
  border: 0;
}

.rendering-dialog::backdrop {
  background: rgba(8, 5, 3, 0.94);
}

.rendering-dialog-content {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.rendering-dialog .restoration-stage-expanded {
  width: min(calc(100vw - 2rem), calc((100dvh - 5rem) * 1.7779));
  max-width: none;
  border-color: rgba(255, 217, 139, 0.48);
}

.rendering-dialog-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 6;
  min-height: 2.8rem;
  padding: 0.55rem 0.9rem;
  color: #241b16;
  background: var(--gold-bright);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.restoration-render {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    brightness(var(--image-brightness))
    saturate(var(--image-saturation))
    contrast(var(--image-contrast));
  transition: filter 520ms ease;
}

.render-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 62%, rgba(226, 183, 107, 0.2), transparent 17rem),
    linear-gradient(180deg, rgba(8, 5, 3, 0.35), rgba(8, 5, 3, 0.95));
  opacity: var(--veil-opacity);
  transition: opacity 520ms ease;
}

.zone-glow {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(9px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.zone-glow::before,
.zone-glow::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 50%;
}

.zone-glow::before {
  background:
    radial-gradient(ellipse at center, rgba(255, 247, 205, 0.98) 0%, rgba(255, 213, 125, 0.58) 28%, rgba(226, 183, 107, 0.18) 58%, transparent 74%);
}

.zone-glow::after {
  background: radial-gradient(ellipse at center, rgba(255, 255, 238, 1), rgba(255, 244, 186, 0.32) 32%, transparent 62%);
}

.zone-glow-altare {
  left: 50%;
  top: 61%;
  width: 17%;
  height: 34%;
  opacity: var(--altare-glow);
  transform: translate(-50%, -50%) scale(var(--altare-scale));
}

.zone-glow-altare::after {
  opacity: var(--altare-glare);
}

.zone-glow-abside {
  left: 50%;
  top: 42%;
  width: 28%;
  height: 32%;
  opacity: var(--abside-glow);
  transform: translate(-50%, -50%) scale(var(--abside-scale));
}

.zone-glow-abside::after {
  opacity: var(--abside-glare);
}

.zone-glow-navata {
  left: 50%;
  top: 82%;
  width: 48%;
  height: 33%;
  opacity: var(--navata-glow);
  transform: translate(-50%, -50%) scale(var(--navata-scale));
}

.zone-glow-navata::after {
  opacity: var(--navata-glare);
}

.zone-glow-altare-sinistro {
  left: 15%;
  top: 61%;
  width: 20%;
  height: 50%;
  opacity: var(--altare-sinistro-glow);
  transform: translate(-50%, -50%) scale(var(--altare-sinistro-scale));
}

.zone-glow-altare-sinistro::after {
  opacity: var(--altare-sinistro-glare);
}

.zone-glow-altare-destro {
  left: 85%;
  top: 61%;
  width: 20%;
  height: 50%;
  opacity: var(--altare-destro-glow);
  transform: translate(-50%, -50%) scale(var(--altare-destro-scale));
}

.zone-glow-altare-destro::after {
  opacity: var(--altare-destro-glare);
}

.zone-glow-pareti {
  left: 50%;
  top: 26%;
  width: 84%;
  height: 54%;
  opacity: var(--pareti-glow);
  transform: translate(-50%, -50%) scale(var(--pareti-scale));
}

.zone-glow-pareti::after {
  opacity: var(--pareti-glare);
}

/* Area amministrativa: interfaccia operativa, separata dalla navigazione pubblica. */
.admin-body {
  min-height: 100vh;
  color: #312a26;
  background: #f2f0ec;
}

.admin-body::before,
.admin-body::after {
  display: none;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem max(1rem, calc((100% - 1320px) / 2));
  color: var(--ink);
  background: #241b16;
  border-bottom: 1px solid #5b493c;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.admin-main {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 2.25rem 1rem 5rem;
}

.admin-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d4ccc4;
}

.admin-titlebar h1 {
  margin: 0.15rem 0 0.35rem;
  color: #241b16;
  font-size: 2.75rem;
}

.admin-titlebar p:not(.eyebrow) {
  max-width: 52rem;
  margin: 0;
  color: #675c55;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-dashboard-card {
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  min-height: 18rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #d4ccc4;
  border-left: 4px solid #974c36;
  border-radius: 6px;
  box-shadow: 0 16px 36px rgba(36, 27, 22, 0.08);
}

.admin-dashboard-card.is-disabled {
  border-left-color: #8c837b;
  background: #f8f6f3;
}

.admin-dashboard-card h2 {
  margin: 0.2rem 0 0.65rem;
  color: #241b16;
  font-size: 1.55rem;
}

.admin-dashboard-card p:not(.eyebrow) {
  margin: 0;
  color: #675c55;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.admin-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.admin-access-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-access-form > div,
.admin-access-form > button,
.admin-access-form > .admin-help {
  grid-column: 1 / -1;
}

.admin-access-form label,
.admin-access-filter {
  display: grid;
  gap: 0.4rem;
  color: #493d35;
  font-weight: 700;
}

.admin-access-form label span small {
  color: #766a62;
  font-weight: 400;
}

.admin-access-form input,
.admin-access-filter select {
  min-height: 3rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  color: #241b16;
  background: #fff;
  border: 1px solid #b9aea5;
  border-radius: 5px;
  font: inherit;
}

.admin-access-form input:focus,
.admin-access-filter select:focus {
  border-color: #974c36;
  outline: 3px solid rgba(151, 76, 54, 0.18);
}

.admin-access-form .admin-help {
  margin: 0;
  color: #675c55;
  font-size: 0.92rem;
}

.admin-access-guide ol {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.3rem;
  color: #51453e;
}

.admin-access-guide p {
  margin: 0;
  color: #675c55;
}

.admin-access-list-section {
  margin-top: 1.5rem;
  padding: 1.15rem;
  background: #fff;
  border: 1px solid #d4ccc4;
  border-radius: 6px;
}

.admin-access-list-section .admin-section-heading h2 {
  margin: 0.15rem 0 0;
  color: #241b16;
}

.admin-access-filter {
  min-width: 13rem;
  font-size: 0.9rem;
}

.admin-access-list {
  display: grid;
  gap: 0.7rem;
}

.admin-access-row {
  display: grid;
  grid-template-columns: minmax(16rem, 1.1fr) minmax(17rem, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #fbfaf8;
  border: 1px solid #d9d1ca;
  border-left: 4px solid #974c36;
  border-radius: 5px;
}

.admin-access-row.is-revoked {
  border-left-color: #8c837b;
  background: #f3f1ee;
}

.admin-access-identity,
.admin-access-details {
  display: grid;
  gap: 0.3rem;
}

.admin-access-identity strong {
  overflow-wrap: anywhere;
  color: #241b16;
  font-size: 1.05rem;
}

.admin-access-identity > span:not(.admin-badge),
.admin-access-details span {
  overflow-wrap: anywhere;
  color: #675c55;
  font-size: 0.9rem;
}

.admin-access-identity .admin-badge {
  justify-self: start;
}

.admin-donations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.admin-donation-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #d4ccc4;
  border-radius: 6px;
}

.admin-donation-panel-wide {
  grid-column: 1 / -1;
}

.admin-donation-panel h2 {
  margin: 0;
  color: #2d251f;
  font-size: 1.25rem;
}

.admin-donation-panel p {
  margin: 0;
  color: #675c55;
}

.admin-donation-list,
.admin-donation-events {
  display: grid;
  gap: 0.55rem;
}

.admin-donation-metric,
.admin-donation-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0.75rem;
  background: #f7f4f0;
  border: 1px solid #ded6cf;
  border-left: 3px solid #974c36;
  border-radius: 4px;
}

.admin-donation-event-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-donation-metric span,
.admin-donation-event span {
  color: #3b312c;
  font-weight: 800;
}

.admin-donation-metric strong,
.admin-donation-event strong {
  color: #712d1d;
  text-align: right;
}

.admin-donation-metric small,
.admin-donation-event small {
  grid-column: 1 / -1;
  color: #71665e;
  line-height: 1.35;
}

.admin-donation-note {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  padding: 0.55rem 0.65rem;
  color: #3b312c;
  line-height: 1.4;
  background: #fffaf2;
  border: 1px solid #e2d2bd;
  border-radius: 4px;
}

.admin-diary-filter {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #4d423b;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-diary-filter select {
  min-height: 2.7rem;
  padding: 0.55rem 0.7rem;
  color: #241b16;
  background: #fff;
  border: 1px solid #bfb5ad;
  border-radius: 4px;
}

.admin-diary-event.is-hidden {
  border-left-color: #8c837b;
  background: #f4f2ef;
}

.admin-diary-event.is-archived {
  border-left-color: #7e2d26;
  background: #f3e8e6;
}

.admin-diary-status {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.admin-diary-status .admin-badge {
  color: #4d423b;
  font-weight: 800;
}

.admin-badge.is-danger {
  color: #7b241d;
  background: #f3deda;
  border-color: #d8aaa4;
}

.admin-donation-revision {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  color: #675c55;
  font-size: 0.82rem;
  font-style: italic;
}

.admin-diary-actions {
  padding-top: 0.35rem;
  border-top: 1px solid #ddd4cc;
}

.donation-admin-dialog {
  width: min(94vw, 60rem);
}

.admin-dialog-note {
  margin: 0;
  padding: 0.85rem 1rem;
  color: #5a4c43;
  background: #fff4d9;
  border-left: 4px solid #c38b2d;
}

.admin-revoke-summary {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  color: #3b312c;
  background: #f7f4f0;
  border: 1px solid #ded6cf;
  border-radius: 4px;
}

.admin-revoke-summary strong {
  color: #712d1d;
  font-size: 1.15rem;
}

.admin-revoke-choice {
  align-self: auto;
  padding: 1rem;
  color: #3b312c;
  background: #fff4d9;
  border: 1px solid #dfc58e;
  border-radius: 4px;
}

.admin-revoke-reason {
  display: grid;
  gap: 0.35rem;
  color: #4d423b;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-revoke-reason textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  color: #241b16;
  background: #fff;
  border: 1px solid #bfb5ad;
  border-radius: 4px;
  font: inherit;
  resize: vertical;
}

.admin-danger-button {
  color: #fff;
  background: #8a2e26;
  border-color: #6e221c;
}

.admin-danger-button:hover,
.admin-danger-button:focus-visible {
  background: #6e221c;
}

.admin-reset-panel .admin-check-field {
  align-self: auto;
}

.admin-manual-donation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-manual-donation-form label {
  display: grid;
  gap: 0.32rem;
  color: #4d423b;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-manual-donation-form input,
.admin-manual-donation-form select,
.admin-manual-donation-form textarea,
#thankYouEmailPanel input,
#thankYouEmailPanel textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  color: #241b16;
  background: #fff;
  border: 1px solid #bfb5ad;
  border-radius: 4px;
  font: inherit;
}

.admin-manual-donation-form textarea,
#thankYouEmailPanel textarea {
  resize: vertical;
}

.admin-manual-donation-form .button {
  align-self: end;
}

#thankYouEmailPanel label {
  display: grid;
  gap: 0.32rem;
  color: #4d423b;
  font-size: 0.82rem;
  font-weight: 800;
}

.donation-diary-page {
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.donation-diary-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.donation-diary-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  gap: 1.25rem;
  align-items: end;
  margin: 1.5rem 0 1rem;
  padding: 1.15rem 1.25rem;
  color: var(--ink);
  background: rgba(36, 27, 22, 0.62);
  border: 1px solid rgba(226, 183, 107, 0.28);
  border-radius: var(--radius);
}

.donation-diary-progress h2 {
  margin-top: 0.15rem;
  font-size: 1.5rem;
}

.donation-diary-progress h2 strong {
  color: var(--gold-bright);
}

.donation-diary-progress > div:last-child {
  display: grid;
  gap: 0.35rem;
}

.donation-diary-progress > div:last-child > span {
  color: var(--gold-bright);
  text-align: right;
  font-size: 1.35rem;
  font-weight: 900;
}

.donation-diary-entry {
  display: grid;
  grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  padding: 1rem;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 248, 235, 0.08), rgba(36, 27, 22, 0.28)),
    rgba(36, 27, 22, 0.62);
  border: 1px solid rgba(226, 183, 107, 0.22);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}

.donation-diary-entry time {
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.donation-diary-entry h2 {
  margin: 0.3rem 0 0.4rem;
  font-size: 1.4rem;
}

.donation-diary-entry p {
  margin: 0;
  color: var(--muted);
}

.donation-diary-entry small {
  display: block;
  margin-top: 0.55rem;
  color: #ead7c5;
  line-height: 1.45;
}

.donation-diary-figure {
  margin: 0;
}

.donation-diary-preview {
  width: 100%;
  border-color: rgba(226, 183, 107, 0.34);
}

.donation-diary-figure figcaption {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.admin-notice {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  color: #3d342f;
  background: #e9e4dd;
  border-left: 4px solid #76675c;
}

.admin-notice[data-type="success"] {
  color: #193d2c;
  background: #e1eee6;
  border-left-color: #2f7653;
}

.admin-notice[data-type="warning"] {
  color: #5c4314;
  background: #fff1cf;
  border-left-color: #bb8424;
}

.admin-notice[data-type="error"] {
  color: #6e221c;
  background: #f5dfdc;
  border-left-color: #a33c32;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1.25rem;
  color: #3a312c;
  background: #e5e0da;
  border: 1px solid #d0c8bf;
}

.admin-stats div {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-right: 1px solid #d0c8bf;
}

.admin-stats div:last-child {
  border-right: 0;
}

.admin-stats strong {
  color: #712d1d;
  font-size: 1.45rem;
}

.admin-stats span {
  color: #675c55;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) minmax(11rem, 0.45fr) minmax(12rem, 0.5fr);
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.admin-toolbar-compact {
  grid-template-columns: minmax(15rem, 1fr) minmax(11rem, 0.35fr);
}

.admin-toolbar label,
.admin-form-grid label {
  display: grid;
  gap: 0.32rem;
  color: #4d423b;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-toolbar input,
.admin-toolbar select,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  color: #241b16;
  background: #fff;
  border: 1px solid #bdb3aa;
  border-radius: 4px;
}

.admin-form-grid textarea {
  min-height: 9rem;
  resize: vertical;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
  border-color: #712d1d;
  outline: 3px solid rgba(151, 76, 54, 0.2);
}

.admin-feedback {
  min-height: 1.6rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.admin-feedback[data-type="success"] {
  color: #246044;
}

.admin-feedback[data-type="error"] {
  color: #8a2e26;
}

.admin-timeline-list {
  display: grid;
  gap: 0.75rem;
}

.admin-entry {
  display: grid;
  grid-template-columns: 3.25rem minmax(20rem, 1fr) 10.5rem 9.5rem;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid #d4ccc4;
  border-left: 4px solid #974c36;
  border-radius: 6px;
}

.admin-friend-entry {
  grid-template-columns: 3.25rem minmax(20rem, 1fr) 9rem 10rem;
}

.admin-event-entry {
  grid-template-columns: 7.5rem minmax(20rem, 1fr) 9rem 10rem;
}

.admin-newsletter-summary {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.4rem;
  background: #fffaf3;
  border-left: 4px solid #b06a35;
  box-shadow: 0 8px 24px rgba(65, 44, 31, 0.08);
}

.admin-newsletter-summary h2 {
  margin: 0.25rem 0 0.35rem;
  color: #34251d;
  font-size: 1.55rem;
}

.admin-newsletter-summary p:last-child {
  max-width: 48rem;
  color: #6b5c52;
  line-height: 1.55;
}

.admin-newsletter-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(7.5rem, 1fr));
  border: 1px solid #d7c2ae;
}

.admin-newsletter-counts span {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  color: #69584d;
  text-align: center;
  border-left: 1px solid #d7c2ae;
}

.admin-newsletter-counts span:first-child {
  border-left: 0;
}

.admin-newsletter-counts strong {
  color: #7a3827;
  font-size: 1.45rem;
}

.admin-event-date-box {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.admin-event-date-box strong {
  color: #5e2f22;
  font-size: 0.92rem;
  line-height: 1.25;
}

.admin-event-date-box span,
.admin-event-location {
  color: #6b625b;
}

.admin-event-dialog {
  width: min(96vw, 68rem);
}

.admin-entry.is-hidden {
  border-left-color: #8c837b;
  background: #f7f6f4;
}

.admin-entry.is-archived {
  border-left-color: #5b5550;
  opacity: 0.82;
}

.admin-entry-order,
.admin-entry-actions,
.admin-media-actions {
  display: grid;
  gap: 0.4rem;
}

.admin-entry-order {
  align-self: stretch;
  grid-template-rows: repeat(2, 1fr);
}

.admin-action,
.admin-icon-button {
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.65rem;
  color: #3b312c;
  background: #f5f2ee;
  border: 1px solid #c7bdb4;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-action:hover,
.admin-action:focus-visible,
.admin-icon-button:hover,
.admin-icon-button:focus-visible {
  color: #241b16;
  background: #e8dfd6;
  border-color: #8c6f5d;
  outline: 2px solid rgba(151, 76, 54, 0.22);
}

.admin-action.is-danger {
  color: #812c24;
  background: #fff6f4;
  border-color: #d9a69f;
}

.admin-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.entry-text-link {
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.admin-entry-content .entry-text-link {
  color: #155a79;
}

.entry-text-link:hover {
  text-decoration-thickness: 2px;
}

.entry-text-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.admin-entry-content {
  min-width: 0;
}

.admin-entry-content h2 {
  margin: 0.35rem 0 0.25rem;
  color: #2e2622;
  font-size: 1.15rem;
}

.admin-entry-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #665b54;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.admin-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-badge,
.admin-counter {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.2rem 0.45rem;
  color: #5b4e46;
  background: #eee9e4;
  border: 1px solid #d7cec6;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-badge.is-success {
  color: #24533d;
  background: #e5f1e9;
  border-color: #b9d6c4;
}

.admin-badge.is-muted {
  color: #6d6560;
  background: #ecebea;
  border-color: #d2cfcc;
}

.admin-entry-media {
  display: grid;
  gap: 0.4rem;
  color: #6a5f58;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-friend-image-box {
  align-content: center;
}

.admin-friend-thumb {
  display: grid;
  width: 100%;
  min-height: 5.2rem;
  overflow: hidden;
  place-items: center;
  color: #796d64;
  background: #efeae5;
  border: 1px solid #cfc6bd;
  border-radius: 4px;
  font-size: 0.72rem;
  text-align: center;
}

.admin-friend-thumb img {
  width: 100%;
  height: 5.2rem;
  object-fit: cover;
}

.admin-thumb-group {
  display: grid;
  grid-template-columns: repeat(2, 3.2rem);
  grid-auto-rows: 2.65rem;
  gap: 0.25rem;
  min-height: 2.65rem;
  align-items: center;
}

.admin-thumb-group img,
.admin-thumb-group video {
  width: 3.2rem;
  height: 2.65rem;
  object-fit: cover;
  background: #ded8d1;
  border: 1px solid #c6bdb5;
  border-radius: 3px;
}

.admin-empty {
  padding: 2rem;
  color: #665c55;
  background: #fff;
  border: 1px dashed #bbb1a8;
  text-align: center;
}

.admin-dialog {
  width: min(56rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  color: #312a26;
  background: #fbfaf8;
  border: 1px solid #8e8178;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(22, 14, 10, 0.42);
}

.admin-dialog::backdrop {
  background: rgba(24, 17, 13, 0.72);
}

.admin-dialog form {
  overflow: auto;
  max-height: calc(100vh - 2rem);
}

.admin-dialog-header,
.admin-dialog-actions,
.admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1rem 1.25rem;
  color: var(--ink);
  background: #2c211b;
  border-bottom: 1px solid #5d493c;
}

.admin-dialog-header h2 {
  margin: 0.1rem 0 0;
  font-size: 1.45rem;
}

.admin-dialog-header .admin-icon-button {
  color: var(--ink);
  background: transparent;
  border-color: #776457;
  font-size: 1.45rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
}

.admin-form-wide {
  grid-column: 1 / -1;
}

.admin-check-field {
  display: flex !important;
  align-items: center;
  align-self: end;
  min-height: 2.8rem;
  padding: 0.6rem 0.75rem;
  background: #eee9e4;
  border: 1px solid #d2c8bf;
  border-radius: 4px;
}

.admin-check-field[hidden] {
  display: none !important;
}

.admin-check-field input {
  width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
}

.admin-media-editor {
  padding: 1.25rem;
  border-top: 1px solid #d6cec6;
}

.admin-section-heading h3,
.admin-section-heading p {
  margin: 0;
}

.admin-section-heading h3 {
  color: #2e2622;
  font-size: 1.08rem;
}

.admin-section-heading p {
  color: #6d625b;
  font-size: 0.82rem;
}

.admin-friend-image-editor {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 1rem;
}

.admin-friend-image-preview {
  display: grid;
  min-height: 13rem;
  overflow: hidden;
  place-items: center;
  color: #6f645d;
  background:
    linear-gradient(135deg, rgba(113, 45, 29, 0.08), rgba(36, 27, 22, 0.04)),
    #ede7e1;
  border: 1px solid #cfc6bd;
  border-radius: 5px;
  font-size: 0.9rem;
  text-align: center;
}

.admin-friend-image-preview img {
  width: 100%;
  height: 100%;
  min-height: 13rem;
  object-fit: cover;
}

.admin-friend-image-controls {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.admin-friend-image-controls p {
  margin: 0;
  color: #5f554e;
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-media-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.admin-media-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem;
  background: #fff;
  border: 1px solid #d5cdc5;
  border-radius: 5px;
}

.admin-media-item.is-hidden,
.admin-media-item.is-archived {
  opacity: 0.62;
}

.admin-media-item img,
.admin-media-item video {
  width: 5.5rem;
  height: 4rem;
  object-fit: cover;
  background: #ded8d1;
  border-radius: 3px;
}

.admin-media-item strong,
.admin-media-item span {
  display: block;
  overflow-wrap: anywhere;
}

.admin-media-item span {
  color: #73675f;
  font-size: 0.78rem;
}

.admin-media-actions {
  grid-template-columns: repeat(2, auto);
}

.admin-upload {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.9rem;
  padding: 1rem;
  color: #4d4039;
  background: #efeae5;
  border: 1px dashed #9c8a7c;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 800;
}

.admin-upload:hover,
.admin-upload:focus-within {
  background: #e8dfd6;
  border-color: #712d1d;
}

.admin-upload small {
  color: #756860;
  font-weight: 500;
}

.admin-upload input {
  margin-top: 0.55rem;
}

.admin-pending-media {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.admin-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.55rem;
  background: #f5f0e9;
  border-left: 3px solid #bb8424;
}

.admin-dialog-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: flex-end;
  padding: 0.9rem 1.25rem;
  background: #f3efea;
  border-top: 1px solid #d2c8bf;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 2rem max(1.25rem, calc((100% - var(--page-max)) / 2));
  color: var(--muted);
  background: rgba(16, 10, 8, 0.82);
  border-top: 1px solid rgba(226, 183, 107, 0.18);
}

.site-footer strong {
  color: var(--ink);
}

/* Percorso guidato della pagina donazioni. */
.donation-experience {
  width: 100%;
}

.donation-experience-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(25rem, 31rem);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.donation-experience-header h1 {
  max-width: none;
  margin-top: 0.25rem;
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.donation-experience-header > div:first-child > p:last-child {
  max-width: 46rem;
  margin-top: 0.45rem;
  color: #eadbc9;
  font-size: 1.05rem;
}

.donation-progress-summary {
  display: grid;
  gap: 0.7rem;
}

.donation-progress-summary .rendering-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.donation-progress-summary .rendering-stats span {
  text-align: left;
}

.donation-progress-summary .experimental-progress {
  margin: 0;
}

.donation-progress-summary .experimental-progress p {
  margin-top: 0.35rem;
}

.donation-experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(23.5rem, 0.65fr);
  gap: 1.25rem;
  align-items: start;
}

.donation-visual,
.donation-wizard {
  min-width: 0;
  border: 1px solid rgba(226, 183, 107, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 24px 44px var(--shadow);
}

.donation-visual {
  position: sticky;
  top: 6rem;
  padding: 1rem;
  background: rgba(20, 14, 11, 0.78);
}

.donation-visual-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.donation-visual-heading h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.donation-diary-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  color: var(--gold-bright);
  font-weight: 800;
  text-underline-offset: 0.22em;
}

.donation-wizard {
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(113, 45, 29, 0.76), rgba(36, 27, 22, 0.96)),
    url("assets/damasco.jpg");
  background-size: 520px auto;
}

.donation-step-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(226, 183, 107, 0.24);
}

.donation-step-nav button {
  min-height: 3.7rem;
  padding: 0.55rem 0.35rem;
  color: #d9c9b8;
  background: rgba(20, 14, 11, 0.42);
  border: 0;
  border-right: 1px solid rgba(226, 183, 107, 0.18);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.donation-step-nav button:last-child {
  border-right: 0;
}

.donation-step-nav button span {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.25rem;
  color: #24170f;
  background: var(--gold);
  border-radius: 50%;
}

.donation-step-nav button.is-active {
  color: #24170f;
  background: var(--gold-bright);
}

.donation-step-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.donation-step-nav button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -4px;
}

.donation-step-panel {
  padding: 1.15rem;
}

.donation-step-panel[hidden] {
  display: none;
}

.donation-step-kicker {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.donation-step-panel > h2 {
  margin-top: 0.2rem;
  font-size: 2rem;
}

.donation-step-panel .amounts,
.donation-step-panel .experimental-zones,
.donation-step-panel .donor-fields {
  margin: 1rem 0;
}

.donation-step-panel .amounts h3,
.donation-step-panel .experimental-zones h3,
.donation-step-panel .donor-fields h3,
.donation-step-panel .payment-methods h3 {
  margin-bottom: 0.6rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.donation-step-panel .amount-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.donation-step-panel .amount-free {
  grid-column: 1 / -1;
}

.donation-step-panel .amount-option {
  min-height: 2.8rem;
}

.donation-step-panel .custom-amount-field {
  margin-top: 0.55rem;
}

.donation-step-panel .custom-amount-field input {
  min-height: 2.75rem;
}

.donation-step-panel .zone-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.donation-step-panel .zone-choice {
  display: flex;
  min-height: 3.2rem;
  padding: 0.6rem 0.7rem;
}

.donation-choice-summary {
  display: grid;
  gap: 0.15rem;
  margin: 1rem 0;
  padding: 0.75rem 0.85rem;
  color: #f5e6d5;
  background: rgba(20, 14, 11, 0.5);
  border-left: 3px solid var(--gold-bright);
}

.donation-choice-summary span {
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.donation-choice-summary strong {
  font-size: 1rem;
  line-height: 1.4;
}

.donation-choice-summary b {
  color: #fff3d8;
}

.donation-choice-summary-compact {
  margin-bottom: 0.8rem;
}

.donor-name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.donor-name-fields[hidden] {
  display: none;
}

.donor-fields label > span small {
  color: #decaa8;
  font-weight: 500;
}

.donor-note-details {
  padding: 0.65rem 0;
  color: #f7ead9;
  border-top: 1px solid rgba(255, 248, 235, 0.16);
  border-bottom: 1px solid rgba(255, 248, 235, 0.16);
}

.donor-note-details summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.donor-note-details label {
  margin-top: 0.7rem;
}

.consent-check-required {
  position: relative;
  padding: 0.85rem;
  background: rgba(226, 183, 107, 0.12);
  border-color: rgba(255, 217, 139, 0.5);
}

.consent-check-required span strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--gold-bright);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.consent-check.is-invalid {
  background: rgba(151, 76, 54, 0.34);
  border-color: #ffc6ae;
  box-shadow: 0 0 0 3px rgba(255, 198, 174, 0.12);
}

.consent-inline-error {
  margin-top: -0.35rem;
  color: #ffd0bd;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.consent-inline-error[hidden] {
  display: none;
}

.donation-step-actions {
  display: grid;
  grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.donation-step-actions .button {
  width: 100%;
}

.donation-step-actions-single {
  grid-template-columns: 1fr;
  margin-top: 0.75rem;
}

.donation-step-panel .experimental-actions .button[hidden] {
  display: none;
}

.donation-step-panel .paypal-sandbox-box {
  margin: 0;
  padding: 0.8rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(226, 183, 107, 0.22);
  border-radius: 0;
}

.donation-step-panel .payment-methods-compact {
  margin-top: 0.8rem;
  padding-top: 0;
  border-top: 0;
}

.donation-step-panel .payment-option {
  min-height: 3.4rem;
}

.donation-step-panel .status-message {
  min-height: 0;
  margin-top: 0.75rem;
}

.donation-step-panel .demo-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .hero {
    min-height: 620px;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(27, 20, 17, 0.96) 0%, rgba(36, 27, 22, 0.44) 72%, rgba(36, 27, 22, 0.64) 100%);
  }

  .hero-content {
    padding-top: 6.25rem;
    padding-bottom: 5rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section-heading,
  .feature-grid,
  .light-callout,
  .donation-layout,
  .experimental-donation-layout,
  .place-map-section {
    grid-template-columns: 1fr;
  }

  .friend-entry {
    grid-template-columns: 1fr;
  }

  .event-feature,
  .event-detail-layout,
  .event-newsletter,
  .admin-newsletter-summary {
    grid-template-columns: 1fr;
  }

  .event-newsletter {
    gap: 1.2rem;
  }

  .admin-newsletter-counts {
    width: 100%;
  }

  .event-feature-media {
    min-height: 24rem;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 183, 107, 0.22);
  }

  .event-feature-media img,
  .event-feature-media video {
    min-height: 24rem;
    max-height: 34rem;
  }

  .friend-visual {
    min-height: 19rem;
  }

  .friend-visual img {
    min-height: 19rem;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .timeline-date {
    padding: 0;
    text-align: left;
  }

  .timeline-date span {
    font-size: 1.55rem;
  }

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

  .callout-media {
    min-height: 20rem;
    border-right: 1px solid rgba(226, 183, 107, 0.2);
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .callout-content {
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .donation-panel,
  .experimental-panel {
    position: static;
  }

  .rendering-header {
    flex-direction: column;
  }

  .rendering-stats {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rendering-main {
    grid-template-columns: 1fr;
  }

  .donation-diary-progress {
    grid-template-columns: 1fr;
  }

  .donation-diary-progress > div:last-child > span {
    text-align: left;
  }

  .admin-entry {
    grid-template-columns: 3.25rem minmax(0, 1fr) 9.5rem;
  }

  .admin-friend-entry {
    grid-template-columns: 3.25rem minmax(0, 1fr) 9.5rem;
  }

  .admin-event-entry {
    grid-template-columns: 7.5rem minmax(0, 1fr) 9.5rem;
  }

  .admin-entry-media {
    grid-column: 2;
  }

  .admin-entry-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .admin-access-row {
    grid-template-columns: minmax(14rem, 1fr) minmax(15rem, 1fr);
  }

  .admin-access-row .admin-entry-actions {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a {
    min-height: 2.75rem;
    padding-inline: 0.7rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 4rem 1rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero-subtitle,
  .callout-content p:not(.eyebrow) {
    font-size: 1.08rem;
  }

  .story-perspective {
    padding: 7rem 1rem 4rem;
  }

  .story-stage.is-audio-on .story-perspective {
    inset: 8.2rem 1rem 2rem;
    padding: 0;
  }

  .story-crawl {
    width: min(100%, 34rem);
    font-size: 1.06rem;
    line-height: 1.68;
  }

  .story-toolbar {
    top: 1rem;
    right: 1rem;
    left: auto;
    justify-content: flex-end;
  }

  .story-icon-button {
    width: 3rem;
    height: 3rem;
  }

  .hero-actions,
  .board-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 3.25rem;
  }

  .section,
  .donation-page,
  .experimental-donation-page,
  .place-page,
  .timeline-page,
  .events-page,
  .friends-directory,
  .friends-hero-content {
    padding-inline: 1rem;
  }

  .events-page {
    padding-top: 3rem;
  }

  .events-intro h1 {
    font-size: 2.65rem;
  }

  .event-newsletter-fields,
  .admin-newsletter-counts {
    grid-template-columns: 1fr;
  }

  .event-newsletter-form {
    padding: 1rem;
  }

  .admin-newsletter-counts span {
    border-top: 1px solid #d7c2ae;
    border-left: 0;
  }

  .admin-newsletter-counts span:first-child {
    border-top: 0;
  }

  .event-feature {
    min-height: 0;
  }

  .event-feature-media,
  .event-feature-media img,
  .event-feature-media video {
    min-height: 18rem;
  }

  .event-feature-copy {
    padding: 1.35rem;
  }

  .event-feature-copy h2 {
    font-size: 2.15rem;
  }

  .event-detail-layout {
    gap: 1.25rem;
    padding: 1.1rem;
  }

  .event-gallery {
    grid-template-columns: 1fr;
  }

  .event-gallery-item {
    aspect-ratio: 16 / 10;
  }

  .event-media-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .friends-hero {
    min-height: 30rem;
  }

  .friends-hero-content h1 {
    font-size: 2.65rem;
  }

  .friend-copy {
    padding: 1.35rem;
  }

  .friend-copy h2 {
    font-size: 1.8rem;
  }

  .timeline-hero h1 {
    font-size: 2.65rem;
  }

  .place-heading h1 {
    font-size: 2.65rem;
  }

  .map-copy .button {
    width: 100%;
  }

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

  .board-header {
    flex-direction: column;
  }

  .light-counter {
    width: 100%;
    text-align: left;
  }

  .church-plan {
    min-height: 30rem;
  }

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

  .donor-visibility-grid {
    grid-template-columns: 1fr;
  }

  .experimental-panel h1 {
    font-size: 2.25rem;
  }

  .rendering-header h2 {
    font-size: 1.62rem;
  }

  .rendering-stats {
    grid-template-columns: 1fr;
  }

  .admin-donations-grid {
    grid-template-columns: 1fr;
  }

  .admin-donation-metric,
  .admin-donation-event {
    grid-template-columns: 1fr;
  }

  .admin-donation-metric strong,
  .admin-donation-event strong {
    text-align: left;
  }

  .admin-manual-donation-form {
    grid-template-columns: 1fr;
  }

  .rendering-board {
    padding: 0.85rem;
  }

  .render-expand-button span:last-child {
    display: none;
  }

  .donation-diary-entry {
    grid-template-columns: 1fr;
  }

  .donation-diary-figure {
    max-width: 26rem;
  }

  .rendering-action-card {
    padding: 0.75rem;
  }

  .restoration-stage {
    width: 100%;
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .admin-header,
  .admin-titlebar,
  .admin-dialog-header,
  .admin-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header {
    position: static;
  }

  .admin-main {
    padding: 1.25rem 0.75rem 4rem;
  }

  .admin-header-actions,
  .admin-card-actions {
    justify-content: stretch;
  }

  .admin-header-actions .button,
  .admin-card-actions .button {
    flex: 1 1 11rem;
    text-align: center;
  }

  .admin-titlebar h1 {
    font-size: 2.25rem;
  }

  .admin-titlebar {
    gap: 1rem;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stats div:nth-child(2) {
    border-right: 0;
  }

  .admin-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid #d0c8bf;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-access-layout,
  .admin-access-form,
  .admin-access-row {
    grid-template-columns: 1fr;
  }

  .admin-access-form > div,
  .admin-access-form > button,
  .admin-access-form > .admin-help {
    grid-column: auto;
  }

  .admin-access-filter {
    min-width: 0;
  }

  .admin-access-row .admin-entry-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-form-grid,
  .admin-entry {
    grid-template-columns: 1fr;
  }

  .admin-entry {
    gap: 0.75rem;
  }

  .admin-entry-order {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
  }

  .admin-entry-media,
  .admin-entry-actions {
    grid-column: auto;
    grid-row: auto;
  }

  .admin-entry-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-action {
    min-height: 2.8rem;
  }

  .admin-form-wide {
    grid-column: auto;
  }

  .admin-dialog {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .admin-dialog form {
    max-height: 100vh;
  }

  .admin-dialog-header {
    flex-direction: row;
    align-items: center;
  }

  .admin-friend-image-editor {
    grid-template-columns: 1fr;
  }

  .admin-media-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .admin-media-item img,
  .admin-media-item video {
    width: 4.5rem;
    height: 3.5rem;
  }

  .admin-media-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .donation-experience-header,
  .donation-experience-grid {
    grid-template-columns: 1fr;
  }

  .donation-experience-header {
    gap: 1rem;
  }

  .donation-progress-summary {
    max-width: 34rem;
  }

  .donation-visual {
    position: static;
  }
}

@media (max-width: 640px) {
  .experimental-donation-page {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .donation-experience-header h1 {
    font-size: 2.55rem;
  }

  .donation-progress-summary .rendering-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donation-progress-summary .rendering-stats strong {
    font-size: 1.45rem;
  }

  .donation-visual {
    padding: 0.7rem;
  }

  .donation-visual-heading {
    display: block;
    margin-bottom: 0.5rem;
  }

  .donation-visual-heading .eyebrow {
    display: none;
  }

  .donation-visual-heading h2 {
    font-size: 1.45rem;
  }

  .donation-visual .restoration-stage {
    aspect-ratio: 2 / 1;
  }

  .donation-diary-link {
    width: 100%;
    min-height: 2.5rem;
    margin-top: 0.45rem;
    justify-content: center;
  }

  .donation-step-nav button {
    min-height: 3.9rem;
    font-size: 0.72rem;
  }

  .donation-step-nav button span {
    display: grid;
    margin: 0 auto 0.2rem;
  }

  .donation-step-panel {
    padding: 1rem;
  }

  .donation-step-panel .amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donation-step-panel .zone-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donation-step-panel .zone-choice {
    min-height: 3.75rem;
    padding-inline: 0.55rem;
    font-size: 0.9rem;
  }

  .donation-step-panel .donor-visibility-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .donation-step-panel .donor-visibility {
    padding-inline: 0.3rem;
    font-size: 0.78rem;
  }

  .donor-name-fields,
  .donation-step-actions {
    grid-template-columns: 1fr;
  }

  .donation-step-actions .button {
    min-height: 3.1rem;
  }

  .payment-success-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Locandina A4 del prossimo evento. */
.event-poster-body {
  min-height: 100vh;
  padding: 5.5rem 1rem 2rem;
  color: #241b16;
  background: #d8d2cc;
}

.event-poster-body::before,
.event-poster-body::after {
  display: none;
}

.event-poster-toolbar {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #241b16;
  box-shadow: 0 4px 18px rgba(20, 12, 8, 0.28);
}

.event-poster-status {
  max-width: 42rem;
  margin: 3rem auto;
  padding: 1rem;
  color: #4c4038;
  text-align: center;
  background: #fff;
  border: 1px solid #c7bdb4;
  border-radius: var(--radius);
}

.event-poster-status.is-warning {
  color: #7a2922;
  border-color: #b9665d;
}

.event-poster {
  width: min(210mm, calc(100vw - 2rem));
  min-width: 320px;
  height: 297mm;
  margin: 0 auto;
  overflow: hidden;
  color: #241b16;
  background: #f6f0e5;
  box-shadow: 0 22px 56px rgba(28, 18, 12, 0.34);
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.event-poster[hidden] {
  display: none;
}

.event-poster-brand {
  display: flex;
  align-items: center;
  gap: 4mm;
  height: 20mm;
  padding: 2.5mm 9mm;
  color: #fff8eb;
  background: #241b16;
}

.event-poster-brand img {
  width: 14mm;
  height: 14mm;
  object-fit: contain;
}

.event-poster-brand div {
  display: grid;
  line-height: 1.18;
}

.event-poster-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15pt;
}

.event-poster-brand span {
  color: #e2b76b;
  font-size: 8.5pt;
  font-weight: 800;
  text-transform: uppercase;
}

.event-poster-image {
  height: 78mm;
  overflow: hidden;
  background: #584839;
}

.event-poster-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-poster-title-block {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  height: 67mm;
  padding: 7mm 12mm;
  color: #fff8eb;
  background:
    linear-gradient(rgba(113, 45, 29, 0.94), rgba(113, 45, 29, 0.94)),
    url("assets/damasco.jpg") center / 95mm auto;
  border-top: 1.5mm solid #e2b76b;
}

.event-poster-title-block > p:first-child {
  margin: 0 0 2.5mm;
  color: #ffd98b;
  font-size: 9pt;
  font-weight: 900;
  text-transform: uppercase;
}

.event-poster-title-block h1 {
  max-width: 185mm;
  margin: 0;
  color: #fff8eb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37pt;
  line-height: 1.02;
}

.event-poster-title-block h1.is-long {
  font-size: 31pt;
}

.event-poster-title-block h1.is-very-long {
  font-size: 25pt;
}

.event-poster-date {
  margin: 4mm 0 0;
  color: #ffd98b;
  font-size: 15pt;
  font-weight: 900;
}

.event-poster-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52mm;
  gap: 8mm;
  height: 116mm;
  padding: 8mm 10mm 6mm 12mm;
  background:
    linear-gradient(rgba(246, 240, 229, 0.96), rgba(246, 240, 229, 0.96)),
    url("assets/damasco.jpg") center / 110mm auto;
}

.event-poster-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.event-poster-summary {
  margin: 0;
  color: #3f342e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14pt;
  line-height: 1.42;
}

.event-poster-program {
  margin-top: 5mm;
  padding-top: 4mm;
  border-top: 0.4mm solid #cdbb9d;
}

.event-poster-program[hidden] {
  display: none;
}

.event-poster-program h2,
.event-poster-place h2 {
  margin: 0 0 1.2mm;
  color: #712d1d;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 9pt;
  text-transform: uppercase;
}

.event-poster-program p {
  margin: 0;
  color: #3f342e;
  font-size: 9.5pt;
  line-height: 1.42;
  white-space: pre-line;
}

.event-poster-place {
  margin-top: auto;
  padding-top: 4mm;
  border-top: 0.4mm solid #cdbb9d;
}

.event-poster-place p {
  margin: 0;
  color: #3f342e;
  font-size: 11pt;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-line;
}

.event-poster-qr {
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 1.5mm;
  padding: 4mm;
  text-align: center;
  background: #fff;
  border: 0.6mm solid #e2b76b;
}

.event-poster-qr > div {
  width: 42mm;
  height: 42mm;
}

.event-poster-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.event-poster-qr strong {
  color: #712d1d;
  font-size: 9.5pt;
}

.event-poster-qr span {
  color: #584839;
  font-size: 7.5pt;
  line-height: 1.25;
}

.event-poster-qr small {
  color: #241b16;
  font-size: 7.5pt;
  font-weight: 900;
}

.event-poster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6mm;
  height: 16mm;
  padding: 0 12mm;
  color: #fff8eb;
  background: #241b16;
  font-size: 9pt;
}

.event-poster-footer strong {
  color: #ffd98b;
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body.event-poster-body {
    width: 210mm;
    height: 297mm;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .event-poster-toolbar,
  .event-poster-status {
    display: none !important;
  }

  .event-poster {
    width: 210mm;
    min-width: 210mm;
    height: 297mm;
    margin: 0;
    box-shadow: none;
    break-after: avoid;
    break-inside: avoid;
  }
}

@media screen and (max-width: 640px) {
  .event-poster-body {
    padding-top: 9rem;
  }

  .event-poster-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
