/* =================================================
1. HERO SLIDER
================================================= */

.hero-slider {
  position: relative;
  height: 80vh;
  height: 80svh;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;

  overflow: hidden;
}

.hero-slider,
.trust,
.intro,
.apartments-preview,
.why,
.location,
.reviews,
.booking {
  animation: homeFadeUp 0.7s ease both;
}

.trust {
  animation-delay: 0.06s;
}

.intro {
  animation-delay: 0.1s;
}

.apartments-preview {
  animation-delay: 0.14s;
}

.why {
  animation-delay: 0.18s;
}

.reviews {
  animation-delay: 0.22s;
}

.booking {
  animation-delay: 0.26s;
}

@keyframes homeFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* overlay scuro */

.hero-slider::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* container slide */

.slides {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* singola slide */

.slide {
  position: absolute;
  width: 100%;
  height: 100%;

  background-size: cover;
  background-position: center;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;

  opacity: 0;
  transition: opacity 1.6s ease;
}

/* slide attiva */

.slide.active {
  opacity: 1;
}

/* contenuto hero */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 20px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* titolo */

.hero-slider h1 {
  font-size: var(--fs-h1-hero);
  margin-bottom: 20px;
  text-wrap: balance;
}

/* sottotitolo */

.hero-slider p {
  color: white;
  font-size: var(--fs-body-lg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* =================================================
  2. HERO BUTTONS
  ================================================= */

.hero-buttons {
  margin-top: 30px;

  display: flex;
  gap: 20px;

  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  background: linear-gradient(135deg, #cdaa5f, #b88d42);
  color: white;
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);

  transition: all 0.25s ease;
}

.hero-buttons .btn:hover {
  background: linear-gradient(135deg, #bf954b, #a97d37);
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
}

/* =================================================
TRUST SECTION
================================================= */

.trust {
  background: linear-gradient(180deg, #fbfaf7 0%, #f5f1e7 100%);
  padding: 30px 20px 12px;
}

.trust-container {
  max-width: 900px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* singolo elemento */

.trust-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  justify-content: stretch;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fcf7ec 100%);
  border: 1px solid rgba(191, 161, 101, 0.18);
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
  color: #2f2f2f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-align: center;
}

.trust-item span {
  display: block;
  text-align: center;
}

.trust-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(191, 161, 101, 0.12);
  color: #a88339;
  font-size: 15px;
}

.trust-item:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 164, 92, 0.34);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.09);
}

/* =================================================
  4. INTRO
  ================================================= */

.intro {
  max-width: 900px;

  margin: 62px auto 74px;

  text-align: center;
}

.intro h2 {
  margin-bottom: 15px;
}

.intro p {
  max-width: 650px;
  margin: auto;
}

.section-lead {
  max-width: 700px;
  margin: 0 auto 22px;
}

/* =================================================
  5. APPARTAMENTI
  ================================================= */

.apartments-preview {
  max-width: 1100px;

  margin: 74px auto 88px;

  text-align: center;
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 35px;

  margin-top: 35px;
}

/* card */

.apartment-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);

  border-radius: 24px;

  overflow: hidden;

  border: 1px solid rgba(191, 161, 101, 0.14);
  box-shadow: 0 18px 42px rgba(22, 18, 12, 0.08);

  transition: all 0.3s ease;
}

.apartment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 45%,
    rgba(248, 241, 224, 0.28) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.apartment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(22, 18, 12, 0.14);
}

.apartment-card:hover::after {
  opacity: 1;
}

.apartment-card img {
  width: 100%;
  height: 280px;

  object-fit: cover;
  transition: transform 0.5s ease;
}

.apartment-card:hover img {
  transform: scale(1.04);
}

.apartment-info {
  position: relative;
  z-index: 1;
  padding: 26px 26px 28px;
  text-align: left;
}

.apartment-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(191, 161, 101, 0.12);
  color: #9b7935;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.apartment-info h3 {
  margin-bottom: 12px;
  color: #212121;
}

.apartment-info p {
  color: #666155;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #8f6b2a;
  font-size: var(--fs-body-sm);
  font-weight: 700;
}

.card-link::after {
  content: "->";
  transition: transform 0.2s ease;
}

.apartment-card:hover .card-link::after {
  transform: translateX(4px);
}

/* =================================================
  6. WHY SECTION
  ================================================= */

.why {
  max-width: 1100px;

  margin: 88px auto 84px;

  text-align: center;
}

.why-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;

  gap: 28px;

  margin-top: 35px;
}

.why-grid div {
  width: 100%;
  height: 100%;
  background: white;

  padding: 30px;

  border-radius: 20px;

  border: 1px solid rgba(191, 161, 101, 0.14);
  box-shadow: 0 16px 34px rgba(22, 18, 12, 0.08);

  transition: all 0.25s ease;
}

.why-grid div:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

.why i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9f1df 0%, #f0debb 100%);
  color: #b68b3c;
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* =================================================
  7. LOCATION
  ================================================= */

.location {
  max-width: 1100px;

  margin: 84px auto 90px;

  text-align: center;
}

.location p {
  max-width: 650px;
  margin: auto;
}

.location .why-grid div {
  border-radius: 22px;
  border: 1px solid rgba(191, 161, 101, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f1 100%);
  box-shadow: 0 16px 34px rgba(22, 18, 12, 0.08);
}

.location .why-grid i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbf3e4 0%, #efdfbd 100%);
  color: #a88339;
  font-size: 23px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.location .why-grid h3 {
  margin-bottom: 12px;
}

/* =================================================
  8. REVIEWS
  ================================================= */

.reviews {
  max-width: 1100px;

  margin: 86px auto 92px;

  text-align: center;
}

.reviews-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;

  gap: 28px;

  margin-top: 35px;
}

.review-card {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);

  padding: 44px 28px 28px;

  border-radius: 22px;

  border: 1px solid rgba(191, 161, 101, 0.14);
  box-shadow: 0 16px 34px rgba(22, 18, 12, 0.08);

  transition: all 0.25s ease;
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 24px;
  color: rgba(191, 161, 101, 0.18);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.review-card p {
  position: relative;
  z-index: 1;
  color: #575247;
}

.review-meta {
  display: block;
  margin: 18px 0 8px;
  color: #8c8373;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 40px rgba(22, 18, 12, 0.14);
}

/* =================================================
  9. BOOKING
  ================================================= */

.booking {
  max-width: 900px;

  margin: 92px auto 86px;

  padding: 40px;

  text-align: center;

  background: white;

  border-radius: 14px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider,
  .trust,
  .intro,
  .apartments-preview,
  .why,
  .location,
  .reviews,
  .booking {
    animation: none;
  }
}

.booking p {
  margin-bottom: 50px;
}

.booking-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 760px);
  margin: 0 auto;
}

.booking-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  text-align: center;
  line-height: 1.25;
}
