:root {
  --light-gold: #d6b85a;
  --black: #0d0d0d;
  --soft-black: #171717;
  --off-white: #f7f4ec;
}

/* Main section */

.ilsole-heritage {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 150px) 0;
  background-color: var(--off-white);
  color: var(--black);
}

.ilsole-heritage::before,
.ilsole-heritage::after {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(214, 184, 90, 0.16);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.ilsole-heritage::before {
  top: -230px;
  left: -200px;
}

.ilsole-heritage::after {
  right: -220px;
  bottom: -220px;
}

/* Introduction */

.heritage-introduction {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto clamp(70px, 9vw, 120px);
}

.heritage-eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: #927824;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.heritage-introduction h2 {
  margin-bottom: 28px;
  color: var(--black);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.08;
}

.heritage-introduction h2 span {
  color: #927824;
}

.heritage-introduction p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(13, 13, 13, 0.7);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.9;
}

/* Decorative divider */

.heritage-divider {
  display: flex;
  max-width: 240px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto 30px;
}

.heritage-divider > span:not(.heritage-sun) {
  width: 80px;
  height: 1px;
  background-color: var(--light-gold);
}

.heritage-sun {
  color: var(--light-gold);
  font-size: 20px;
}

/* Vertical timeline */

.heritage-timeline {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.heritage-timeline::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--light-gold) 8%,
    var(--light-gold) 92%,
    transparent
  );
  content: '';
  transform: translateX(-50%);
}

/* Heritage entry */

.heritage-entry {
  position: relative;
  padding-top: 75px;
}

.heritage-entry + .heritage-entry {
  margin-top: clamp(55px, 7vw, 95px);
}

.heritage-number {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  background-color: var(--soft-black);
  color: var(--light-gold);
  border: 5px solid var(--off-white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--light-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  transform: translateX(-50%);
}

/* Story card */

.heritage-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 70px);
  background-color: #fff;
  border: 1px solid rgba(214, 184, 90, 0.3);
  box-shadow: 0 18px 55px rgba(13, 13, 13, 0.07);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.heritage-card::before {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border: 1px solid rgba(214, 184, 90, 0.18);
  content: '';
  pointer-events: none;
}

.heritage-card:hover {
  transform: translateY(-6px);
  border-color: var(--light-gold);
  box-shadow: 0 24px 65px rgba(13, 13, 13, 0.11);
}

.heritage-card-label {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  color: #927824;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.heritage-card h3 {
  position: relative;
  margin-bottom: 25px;
  color: var(--black);
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
}

.heritage-card p {
  position: relative;
  max-width: 680px;
  margin: 0 auto 18px;
  color: rgba(13, 13, 13, 0.68);
  font-size: 16px;
  line-height: 1.9;
}

.heritage-card p:last-child {
  margin-bottom: 0;
}

/* Closing message */

.heritage-closing {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: clamp(90px, 12vw, 160px) auto 0;
}

.heritage-quote-mark {
  display: block;
  height: 55px;
  color: var(--light-gold);
  font-family: Georgia, serif;
  font-size: 90px;
  line-height: 1;
}

.heritage-closing blockquote {
  margin: 0 auto 18px;
  color: var(--black);
  font-family: Georgia, serif;
  font-size: clamp(25px, 4vw, 40px);
  font-style: italic;
  line-height: 1.45;
}

.heritage-closing p {
  margin-bottom: 35px;
  color: #927824;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Button */

.heritage-button {
  display: inline-block;
  padding: 15px 34px;
  background-color: var(--soft-black);
  color: var(--off-white);
  border: 1px solid var(--soft-black);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.heritage-button:hover {
  background-color: var(--light-gold);
  color: var(--black);
  border-color: var(--light-gold);
}

/* Mobile */

@media (max-width: 767.98px) {
  .ilsole-heritage {
    padding: 70px 0;
  }

  .ilsole-heritage .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .heritage-introduction {
    margin-bottom: 70px;
  }

  .heritage-entry {
    padding-top: 65px;
  }

  .heritage-entry + .heritage-entry {
    margin-top: 55px;
  }

  .heritage-number {
    width: 50px;
    height: 50px;
    border-width: 4px;
  }

  .heritage-card {
    padding: 40px 25px;
  }

  .heritage-card::before {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .heritage-closing {
    margin-top: 90px;
  }
}
