/* =========================================================
   DIMORA BAGNI — Home page (Modern redesign)
   ========================================================= */

/* ---- Hero --------------------------------------------- */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-crema);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 8, 6, 0.10) 0%,
    rgba(10, 8, 6, 0.40) 45%,
    rgba(10, 8, 6, 0.82) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-md) clamp(3rem, 8vh, 6rem);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.hero__eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-oro);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s ease both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--color-crema);
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.9s 0.12s ease both;
  max-width: 14ch;
}

.hero__rule {
  width: 48px;
  height: 1px;
  background: var(--color-oro);
  border: none;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s 0.22s ease both;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: rgba(250, 247, 242, 0.75);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.9s 0.32s ease both;
  max-width: 40ch;
}

.hero__cta {
  animation: fadeUp 0.9s 0.44s ease both;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 247, 242, 0.5);
  font-size: 1.2rem;
  animation: bounce 2.2s 1.4s ease-in-out infinite;
  z-index: 1;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ---- Marquee strip ------------------------------------ */
.marquee-strip {
  background: var(--color-dark);
  overflow: hidden;
  padding: 1.1rem 0;
  user-select: none;
}

.marquee-strip__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee-strip__track:hover { animation-play-state: paused; }

.marquee-strip__segment {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-strip__item {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.55);
}

.marquee-strip__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-oro);
  flex-shrink: 0;
}

/* ---- Intro statement ---------------------------------- */
.intro-statement {
  padding-block: clamp(5rem, 10vh, 9rem);
  text-align: center;
}

.intro-statement__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--color-dark);
  line-height: 1.55;
  max-width: 820px;
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 0;
}

.intro-statement__quote::before {
  content: '\201C';
  position: absolute;
  top: -0.35em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 11rem);
  font-style: normal;
  color: rgba(184, 151, 58, 0.07);
  line-height: 1;
  pointer-events: none;
  z-index: -1;
  user-select: none;
}

.intro-statement__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-oro);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: gap var(--transition);
  text-decoration: none;
}
.intro-statement__link:hover { gap: 1.1rem; }

/* ---- Gallery strip ------------------------------------ */
.gallery-section {
  padding-bottom: clamp(4rem, 8vh, 7rem);
}

.gallery-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--space-md);
}

.gallery-section__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 300;
}

.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 var(--space-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.gallery-strip:active { cursor: grabbing; }
.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-strip .gallery-item {
  flex: 0 0 auto;
  width: clamp(280px, 36vw, 500px);
  height: clamp(340px, 55vw, 640px);
  scroll-snap-align: start;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-strip .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}
.gallery-strip .gallery-item:hover img { transform: scale(1.04); }

/* ---- Spaces feature (alternating full-bleed) ---------- */
.spaces-features { background: var(--color-dark); }

.space-feat {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 65vh;
}

.space-feat--reverse {
  grid-template-columns: 42% 58%;
}

.space-feat__img {
  overflow: hidden;
  position: relative;
}

.space-feat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}
.space-feat:hover .space-feat__img img { transform: scale(1.04); }

.space-feat__text {
  background: var(--color-dark-2);
  color: var(--color-crema);
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.space-feat--reverse .space-feat__text {
  background: var(--color-dark);
  order: -1;
}

.space-feat__label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-oro);
  margin-bottom: 1.2rem;
}

.space-feat__title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--color-crema);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.space-feat__cap {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-salvia);
  margin-bottom: 1.5rem;
}

.space-feat__desc {
  font-size: var(--text-sm);
  color: rgba(250, 247, 242, 0.6);
  line-height: 1.8;
  max-width: 42ch;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .space-feat,
  .space-feat--reverse {
    grid-template-columns: 1fr;
    grid-template-rows: 56vw auto;
    min-height: unset;
  }
  .space-feat--reverse .space-feat__text { order: 0; }
  .space-feat__img { height: 56vw; }
  .space-feat__text { padding: 3rem 2rem; }
}

/* ---- Mobile overrides (≤ 600px) ----------------------- */
@media (max-width: 600px) {
  /* Fix 8: hero content padding — prevent scroll arrow from overlapping CTA */
  .hero__content {
    padding-bottom: clamp(4rem, 10vh, 7rem);
  }

  /* Fix 3: intro statement — smaller font and tighter padding */
  .intro-statement {
    padding-block: clamp(3rem, 8vh, 6rem);
  }

  .intro-statement__quote {
    font-size: 1.25rem;
  }

  /* Fix 4: CTA heading — cap size on mobile */
  .cta-section__heading {
    font-size: clamp(2rem, 7vw, 5rem);
  }

  /* Fix 6: space features — taller image on mobile */
  .space-feat,
  .space-feat--reverse {
    grid-template-rows: min(60vw, 260px) auto;
  }

  .space-feat__img {
    height: min(60vw, 260px);
  }
}

/* ---- Calendar section --------------------------------- */
.cal-section { background: var(--color-crema); }

.cal-section__inner {
  max-width: 520px;
  margin-inline: auto;
}

/* ---- Calendar card ------------------------------------ */
.cal {
  background: #fff;
  border: 1px solid rgba(184, 151, 58, 0.15);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 2px 24px rgba(15, 13, 10, 0.06);
}

/* Header: ← Month Year → */
.cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cal__month-label {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 400;
  color: var(--color-dark);
  letter-spacing: 0.02em;
}

.cal__nav {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(184, 151, 58, 0.3);
  color: var(--color-oro);
  background: none;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.cal__nav:hover {
  background: var(--color-oro);
  color: #fff;
  border-color: var(--color-oro);
}

/* ---- 7-column CSS Grid -------------------------------- */
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 4px;
  justify-items: center;   /* centre cells in their track */
}

/* Weekday labels */
.cal__weekday {
  width: 100%;
  text-align: center;
  padding-bottom: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(107, 91, 69, 0.45);
  user-select: none;
}

/* Day cell — fixed square, centred in its column */
.cal__cell {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cal__cell--empty {
  visibility: hidden;
  pointer-events: none;
}

/* Past — very muted */
.cal__cell--past {
  color: rgba(107, 91, 69, 0.25);
  cursor: default;
}

/* Available — dark text, tiny green dot */
.cal__cell--available {
  color: var(--color-dark);
}
.cal__cell--available::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-salvia);
  opacity: 0.65;
}
.cal__cell--available:hover {
  background: var(--color-dark);
  color: #fff;
}
.cal__cell--available:hover::after { opacity: 0; }

/* Booked — terracotta, disabled */
.cal__cell--booked {
  background: var(--color-booked);
  color: #fff;
  cursor: not-allowed;
}

/* Today — gold inset ring */
.cal__cell--today {
  box-shadow: inset 0 0 0 1.5px var(--color-oro);
  font-weight: 700;
  color: var(--color-oro);
}
.cal__cell--today.cal__cell--past {
  color: rgba(184, 151, 58, 0.35);
  box-shadow: inset 0 0 0 1px rgba(184, 151, 58, 0.25);
}

/* Selected — solid gold */
.cal__cell--selected {
  background: var(--color-oro) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.cal__cell--selected::after { opacity: 0 !important; }

/* Number */
.cal__day-num {
  display: block;
  line-height: 1;
  pointer-events: none;
}

/* ---- Legend ------------------------------------------- */
.cal__legend {
  display: flex;
  gap: clamp(1rem, 4vw, 2rem);
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(184, 151, 58, 0.1);
  flex-wrap: wrap;
}

.cal__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-mid);
}

.cal__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal__legend-item--available .cal__dot { background: var(--color-salvia); }
.cal__legend-item--booked   .cal__dot { background: var(--color-booked); }
.cal__legend-item--past     .cal__dot { background: rgba(107, 91, 69, 0.25); }

/* ---- Selection banner --------------------------------- */
.cal__selection {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: rgba(184, 151, 58, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cal__sel-label {
  font-size: var(--text-sm);
  color: var(--color-dark);
}

.cal__sel-link {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-oro);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color var(--transition);
}
.cal__sel-link:hover { color: var(--color-dark); }

/* ---- Admin hint --------------------------------------- */
.cal__admin-hint {
  font-size: var(--text-xs);
  color: var(--color-booked);
  background: rgba(198, 93, 42, 0.07);
  border-left: 2px solid var(--color-booked);
  padding: 6px 10px;
  margin-bottom: 1rem;
}

/* Small phones — shrink cells */
@media (max-width: 400px) {
  .cal { padding: 1rem; }
  .cal__cell { width: 36px; height: 36px; font-size: 0.8rem; }
}

/* ---- FAQ ---------------------------------------------- */
.faq-list {
  max-width: 680px;
  margin: var(--space-md) auto 0;
}

details.faq-item {
  border-bottom: 1px solid rgba(15, 13, 10, 0.1);
  transition: border-color var(--transition);
}

details.faq-item[open] {
  border-bottom-color: var(--color-oro);
}

details.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  gap: var(--space-sm);
  transition: color var(--transition);
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item[open] > summary { color: var(--color-oro); }

details.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-oro);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
details.faq-item[open] summary::after {
  content: '+';
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 0 1.5rem;
  color: var(--color-mid);
  font-size: var(--text-base);
  line-height: 1.8;
  max-width: 62ch;
}

/* ---- CTA section (editorial dark) --------------------- */
.cta-section {
  background: var(--color-dark);
  padding-block: clamp(6rem, 12vh, 10rem);
  text-align: center;
}

.cta-section__heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--color-crema);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  max-width: 16ch;
  margin-inline: auto;
}

.cta-section__sub {
  font-size: var(--text-base);
  color: rgba(250, 247, 242, 0.5);
  margin: 0 auto var(--space-lg);
  max-width: 42ch;
}
