:root {
  --ink: #1c1a17;
  --muted: #6d675f;
  --line: #e6e1d8;
  --paper: #fbf9f5;
  --card: #ffffff;
  --accent: #9a7b4f;
  --accent-dark: #7c6238;
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 249, 245, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  letter-spacing: .04em;
}
.header-cta {
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s ease;
}
.header-cta:hover { background: var(--accent-dark); }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas:
    "media donate"
    "lead  donate";
  gap: 40px 48px;
  align-items: start;
}
.hero-media { grid-area: media; }
.lead { grid-area: lead; }
.donate-card { grid-area: donate; }

/* Cornice attorno alla foto */
.hero-media {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 18px 50px rgba(28, 26, 23, .12);
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background:
    url("hero.jpg") center center / cover no-repeat,
    linear-gradient(135deg, #d9cfc0, #b8a285);
  box-shadow: inset 0 0 0 1px rgba(28, 26, 23, .08);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  color: var(--accent-dark);
  margin: 0 0 14px;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.claim {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 18px 0 24px;
}
.organizer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: var(--muted);
}
.organizer .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Donate card */
.donate-card {
  position: sticky;
  top: 88px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(28, 26, 23, .08);
}
.donate-card h2 { font-size: 1.7rem; }
.donate-sub {
  font-size: .92rem;
  color: var(--muted);
  margin: 0 0 20px;
}
.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.amount {
  font-family: inherit;
  font-size: .95rem;
  padding: 12px 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s ease;
  color: var(--ink);
}
.amount:hover { border-color: var(--accent); }
.amount.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.amount-free { font-style: italic; }

.custom-label {
  display: block;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
#customAmount {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
  background: var(--paper);
}
#customAmount:focus {
  outline: none;
  border-color: var(--accent);
}

.donate-btn {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: .04em;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.donate-btn:hover { background: var(--accent-dark); }

.ff-note {
  font-size: .82rem;
  color: var(--muted);
  margin: 16px 0 0;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ff-note strong { color: var(--ink); font-weight: 500; }

.secure {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

/* Story */
.story { padding: 56px 0; border-top: 1px solid var(--line); }
.story-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.story-text h2 { font-size: 2.2rem; }
.story-text p { color: #3c3833; max-width: 60ch; margin: 0 0 16px; }
.signature {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--accent-dark);
}

.event-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.event-card h3 { font-size: 1.5rem; }
.event-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.event-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.event-card li:last-child { border-bottom: none; }
.event-card span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.event-card strong { font-weight: 400; }
.event-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  padding: 13px;
  border-radius: 10px;
  transition: background .2s ease;
}
.event-cta:hover { background: var(--accent-dark); }

/* Share */
.share { padding: 48px 0 64px; border-top: 1px solid var(--line); text-align: center; }
.share h2 { font-size: 2rem; }
.share p { color: var(--muted); margin: 0 0 24px; }
.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.share-buttons a,
.share-buttons button {
  font-family: inherit;
  font-size: .92rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent-dark);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
}
.share-buttons a:hover,
.share-buttons button:hover {
  background: var(--accent);
  color: #fff;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "lead"
      "donate";
    gap: 28px;
  }
  .donate-card { position: static; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Didascalie centrate su smartphone */
  .lead { text-align: center; }
  .claim { margin-left: auto; margin-right: auto; }
  .organizer { justify-content: center; }
}
