:root {
  --home-ink: #2f3033;
  --home-muted: #6f7480;
  --home-ruby: #ab274f;
  --home-ruby-dark: #861d3d;
  --home-soft: #f8f3f5;
  --home-line: #e8dce1;
  --home-white: #ffffff;
  --home-shadow: 0 18px 45px rgba(47, 48, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  background: var(--home-white);
  color: var(--home-ink);
  line-height: 1.75;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  height: 92px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--home-white);
  border-bottom: 1px solid var(--home-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--home-ruby);
  font-weight: 700;
  line-height: 1.2;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border: 2px solid var(--home-ruby);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.main-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 0.92rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--home-ink);
  position: relative;
  padding: 12px 0;
}

.main-nav a.active {
  color: var(--home-ruby);
  font-weight: 700;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--home-ruby);
}

.donate-btn,
.primary-btn {
  background: var(--home-ruby);
  color: var(--home-white);
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .25s ease;
}

.donate-btn:hover,
.primary-btn:hover {
  background: var(--home-ruby-dark);
  transform: translateY(-2px);
}

.hero {
  min-height: 485px;
  display: flex;
  align-items: center;
  padding: 70px 14%;
  background:
    linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.78) 42%, rgba(255,255,255,.08) 72%),
    url("hero-sofia.jpg") center right/cover no-repeat;
}

.hero-text {
  max-width: 520px;
}

.kicker {
  color: var(--home-ink);
  font-size: 1.1rem;
}

.hero h1 {
  margin: 20px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--home-ruby);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  font-weight: 500;
}

.hero p {
  margin: 0;
  color: var(--home-ink);
  font-size: 1.45rem;
  max-width: 460px;
}

.hero small {
  color: var(--home-ink);
  font-size: 1rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--home-ruby);
  margin: 28px 0 20px;
  width: 240px;
}

.divider span {
  height: 1px;
  flex: 1;
  background: var(--home-ruby);
}

.content {
  width: min(1140px, 90%);
  margin: 0 auto;
  padding: 28px 0 70px;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
}

.sidebar {
  display: grid;
  gap: 22px;
  align-content: start;
}

.photo-card,
.quote-card,
.candle-card,
.message-card,
.hands-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--home-white);
  box-shadow: var(--home-shadow);
  border: 1px solid rgba(232, 220, 225, .65);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.quote-card {
  padding: 34px;
  background: linear-gradient(145deg, var(--home-white), var(--home-soft));
}

.quote-mark {
  color: var(--home-ruby);
  font-size: 3.4rem;
  line-height: .6;
  font-family: Georgia, serif;
}

.quote-card blockquote {
  margin: 10px 0 14px;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.45;
}

.quote-card cite {
  color: var(--home-muted);
  font-style: normal;
  font-size: .9rem;
}

.candle-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--home-soft);
}

.candle-img img {
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.candle-card h3 {
  color: var(--home-ruby);
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.candle-card p {
  margin: 0 0 16px;
  color: var(--home-muted);
  font-size: .95rem;
}

.outline-btn {
  display: inline-flex;
  border: 1px solid var(--home-ruby);
  color: var(--home-ruby);
  border-radius: 8px;
  padding: 9px 25px;
  text-decoration: none;
  font-weight: 700;
  transition: .25s ease;
}

.outline-btn:hover {
  background: var(--home-ruby);
  color: var(--home-white);
}

.main-content {
  padding-top: 28px;
}

.section-line {
  width: 54px;
  height: 2px;
  background: var(--home-ruby);
  display: block;
  margin-bottom: 14px;
}

h2 {
  margin: 0 0 25px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--home-ruby);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.18;
  font-weight: 500;
}

.story p,
.message-card p,
.final-cta p {
  color: var(--home-ink);
  margin: 0 0 10px;
}


.story p {
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
  line-height: 1.85;
  margin-bottom: 18px;
}
.timeline-section {
  margin-top: 55px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  position: relative;
  margin-top: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--home-ruby);
  opacity: .75;
}

.timeline-item {
  position: relative;
  text-align: center;
  z-index: 1;
}

.timeline-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--home-soft);
  border: 1px solid var(--home-line);
  color: var(--home-ruby);
  font-size: 1.8rem;
}

.timeline-item strong {
  color: var(--home-ink);
  font-size: .92rem;
}

.timeline-item p {
  color: var(--home-muted);
  font-size: .9rem;
  margin: 10px 0 0;
  line-height: 1.55;
}

.family-message {
  margin-top: 70px;
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 26px;
}

.message-card {
  padding: 34px;
  position: relative;
  background: linear-gradient(145deg, var(--home-white), var(--home-soft));
}

.message-card strong {
  color: var(--home-ruby);
  display: block;
  text-align: right;
  margin-top: 22px;
}

.heart-doodle {
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: var(--home-ruby);
  font-size: 2.5rem;
}

.hands-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta {
  width: min(1180px, 94%);
  min-height: 260px;
  margin: 0 auto 30px;
  border-radius: 18px;
  padding: 55px 90px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248,243,245,.98) 0%, rgba(248,243,245,.84) 42%, rgba(248,243,245,.08) 70%),
    url("mani-cuore.jpg") center right/cover no-repeat;
}

.final-cta-text {
  max-width: 440px;
}

.final-cta h2 {
  margin-bottom: 18px;
}

.memorial-footer {
  text-align: center;
  color: var(--home-muted);
  padding: 0 20px 34px;
  font-size: .95rem;
}

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }

  .content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(3, 1fr);
  }

  .candle-card {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    display: none;
  }

  .message-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: auto;
    padding: 18px 20px;
    gap: 15px;
  }

  .donate-btn {
    padding: 11px 16px;
  }

  .hero {
    min-height: 560px;
    padding: 70px 7%;
    align-items: flex-end;
    background:
      linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.82) 48%, rgba(255,255,255,.1) 100%),
      url("hero-sofia.jpg") center/cover no-repeat;
  }

  .hero h1 {
    font-size: 4.3rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .content {
    gap: 32px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 42px 28px;
    background:
      linear-gradient(rgba(248,243,245,.94), rgba(248,243,245,.94)),
      url("mani-cuore.jpg") center/cover no-repeat;
  }
}
.candle-counter {
  margin: 18px 0;
  padding: 16px;
  text-align: center;
  background: var(--home-white);
  border: 1px solid var(--home-line);
  border-radius: 14px;
}

.candle-number {
  color: var(--home-ruby);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.candle-label {
  margin-top: 6px;
  color: var(--home-muted);
  font-size: 0.9rem;
}

.candle-message {
  display: none;
  margin-top: 14px;
  color: var(--home-ruby);
  font-weight: 600;
}

.candle-message.show {
  display: block;
}
.message-card{
    align-self:start;
}
.message-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:40px;

}

.message-footer strong{

    color:var(--home-ruby);

    font-size:1.2rem;

}

.heart-doodle{

    font-size:2.4rem;

    color:var(--home-ruby);

    line-height:1;

}