:root {
  --green: #8b7561;
  --deep: #3f352e;
  --sage: #b5a38f;
  --cream: #f5f0e8;
  --sand: #ddcfbc;
  --ink: #302923;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(48, 39, 32, .84) 0%, rgba(72, 59, 48, .42) 55%, rgba(72, 59, 48, .10) 100%);
}

.hero .overline { color: #eadfce; }
.services { background: #40362f; }
.address-card { background: #8b7561; }
.booking { background: #ddcfbc; }
footer { background: #302823; }

.site-header {
  animation: header-in .9s cubic-bezier(.22, 1, .36, 1) both;
}

.hero > img {
  animation: hero-zoom 1.8s cubic-bezier(.22, 1, .36, 1) both;
}

.hero-content .overline,
.hero-content h1,
.hero-content > p:not(.overline),
.hero-actions,
.scroll {
  opacity: 0;
  animation: hero-copy-in .9s cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-content .overline { animation-delay: .18s; }
.hero-content h1 { animation-delay: .32s; }
.hero-content > p:not(.overline) { animation-delay: .46s; }
.hero-actions { animation-delay: .6s; }
.scroll { animation-delay: .85s; }

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
              transform .8s cubic-bezier(.22, 1, .36, 1);
}

.motion-ready .reveal.reveal-left { transform: translateX(-34px); }
.motion-ready .reveal.reveal-right { transform: translateX(34px); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.motion-ready .reveal-delay-1 { transition-delay: .1s; }
.motion-ready .reveal-delay-2 { transition-delay: .2s; }
.motion-ready .reveal-delay-3 { transition-delay: .3s; }

.room-card { overflow: hidden; }
.room-card img {
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.room-card:hover img { transform: scale(1.025); }
.room-photo {
  min-height: 520px;
  background-image: url("recovered-assets/camere-reali-dimora-calatina.png");
  background-repeat: no-repeat;
  background-size: 205% auto;
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.real-room-one { background-position: left 47%; }
.real-room-two { background-position: right 47%; }
.room-card.reverse .room-photo { order: 2; }
.room-card:hover .room-photo { transform: scale(1.018); }

.service-grid > div {
  transition: background-color .35s ease, transform .35s ease;
}
.service-grid > div:hover {
  background: rgba(255, 255, 255, .045);
  transform: translateY(-4px);
}

.button,
.nav-cta {
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.button:hover,
.nav-cta:hover { transform: translateY(-2px); }

/* Stronger visual identity for the rooms section */
.rooms {
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(219, 202, 180, .3), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(245, 235, 220, .12), transparent 30%),
    linear-gradient(145deg, #8b7867 0%, #6d5c4e 58%, #4a3e35 100%);
}

.rooms::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(120deg, transparent 0 49.8%, rgba(255, 255, 255, .2) 50%, transparent 50.2%);
  background-size: 150px 150px;
  pointer-events: none;
}

.rooms .section-heading .overline { color: #e5d4be; }
.rooms .section-heading > p:last-child { color: #eee5da; }
.rooms .room-card {
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(42, 32, 25, .28);
}

.heritage {
  padding: 115px 7vw 125px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 7vw;
  align-items: start;
  color: #f3ece3;
  background: #382f29;
}
.heritage-copy { position: sticky; top: 55px; }
.heritage-copy .overline { color: #cdb89f; }
.heritage-copy h2 {
  margin: 18px 0 30px;
  font: 500 clamp(42px, 4vw, 64px)/1 "Cormorant Garamond", serif;
}
.heritage-copy > p:not(.overline) {
  color: #ddd1c4;
  font-size: 13px;
  line-height: 1.9;
}
.heritage-gallery { display: grid; gap: 38px; }
.heritage-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e8e0d4;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .26);
}
.heritage-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  filter: sepia(.08) contrast(1.04);
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.heritage-photo:hover img { transform: scale(1.018); }
.heritage-photo figcaption {
  padding: 22px 25px;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 15px;
  color: var(--ink);
}
.heritage-photo figcaption span {
  color: var(--green);
  font: 500 22px "Cormorant Garamond", serif;
}
.heritage-photo figcaption p {
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .04em;
}
.heritage-photo figcaption strong {
  display: block;
  font: 500 24px "Cormorant Garamond", serif;
  letter-spacing: 0;
}
.heritage-landmark img { aspect-ratio: 1.55 / 1; }
.reggia-photo img {
  aspect-ratio: 1.65 / 1;
  object-position: center bottom;
}
.heritage-distance {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 12px 16px;
  color: #fff;
  background: rgba(58, 47, 39, .9);
  font: 500 24px "Cormorant Garamond", serif;
  backdrop-filter: blur(8px);
}

.apartment-visual {
  min-height: 520px;
  padding: clamp(42px, 6vw, 85px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background:
    linear-gradient(rgba(67, 53, 42, .16), rgba(67, 53, 42, .42)),
    radial-gradient(circle at 75% 20%, #c5ad91 0, transparent 28%),
    linear-gradient(135deg, #a68d73, #4d4036);
}

.apartment-visual p {
  margin: 0 0 22px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
}

.apartment-visual strong {
  max-width: 600px;
  font: 500 clamp(44px, 5vw, 72px)/.98 "Cormorant Garamond", serif;
}

.apartment-visual span {
  margin-top: 35px;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f0e5d7;
}

.map-card {
  grid-column: 1 / -1;
  margin-top: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 65px rgba(72, 55, 42, .14);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 46vw, 560px);
  border: 0;
  filter: saturate(.75) contrast(1.04);
}

.map-caption {
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.map-caption p { margin: 0 0 8px; }
.map-caption strong {
  font: 500 24px "Cormorant Garamond", serif;
}
.map-caption a {
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .apartment-visual { min-height: 390px; }
  .map-caption { align-items: flex-start; flex-direction: column; }
  .heritage { grid-template-columns: 1fr; padding: 90px 24px; }
  .heritage-copy { position: static; }
  .room-photo { min-height: 420px; }
  .room-card.reverse .room-photo { order: 0; }
}

@media (max-width: 560px) {
  .room-photo { min-height: 310px; }
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-zoom {
  from { opacity: .65; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header,
  .hero > img,
  .hero-content .overline,
  .hero-content h1,
  .hero-content > p:not(.overline),
  .hero-actions,
  .scroll {
    animation: none;
    opacity: 1;
  }
  .motion-ready .reveal,
  .motion-ready .reveal.reveal-left,
  .motion-ready .reveal.reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .room-card img,
  .service-grid > div,
  .button,
  .nav-cta { transition: none; }
}
