/* ===== houseboat.css: pagina Houseboat (hero e nav come Regala, stesso parallax) ===== */
/* Dipende da display.css. */

body.page-houseboat {
  position: relative;
  min-height: 100vh;
  background: #1a1a1a;
}

/* Sfondo fisso: stessa immagine e trattamento della pagina Regala */
body.page-houseboat::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/regala/regala_parallax.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.page-houseboat::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

/* ----- Hero: come .regala-hero (30vh, sfondo bianco, titolo + descrizione scuri) ----- */
.houseboat-hero {
  height: 30vh;
  min-height: 180px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height, 80px) + 2rem) 1.5rem 2rem;
  text-align: center;
  background: #fff;
}

.houseboat-hero__head {
  max-width: 560px;
}

.houseboat-hero__title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
}

.houseboat-hero__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* ----- Sezioni split: testo + immagine (stile Floating Dream / Regala CTA) ----- */
.houseboat-split {
  position: relative;
  z-index: 1;
  background: transparent;
}

.houseboat-split__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3.5rem;
  align-items: center;
}

.houseboat-split--img-right .houseboat-split__text {
  order: 1;
}

.houseboat-split--img-right .houseboat-split__media {
  order: 2;
}

.houseboat-split--img-left .houseboat-split__media {
  order: 1;
}

.houseboat-split--img-left .houseboat-split__text {
  order: 2;
}

.houseboat-split__text {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  align-items: flex-start;
}

.houseboat-split__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.houseboat-split__subtitle {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(127, 155, 143, 0.95);
}

.houseboat-split__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
}

.houseboat-split__cta-wrap {
  margin: 0.75rem 0 0;
}

.houseboat-cta {
  display: inline-block;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(47, 126, 167, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.houseboat-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 126, 167, 0.45);
  opacity: 0.95;
}

.houseboat-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.houseboat-split__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.houseboat-split__frame {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  border: 3px solid rgba(47, 126, 167, 0.5);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.houseboat-split__frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ----- Disponibilità: transizione verso footer bianco (come regala-section-5) ----- */
.houseboat-availability {
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 0%, #ffffff 40%);
  scroll-margin-top: calc(var(--header-height, 80px) + 1rem);
}

.houseboat-availability__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
  box-sizing: border-box;
  text-align: center;
}

.houseboat-availability__title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
}

.houseboat-availability__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(30, 35, 40, 0.78);
}

.houseboat-avail-cal-wrap {
  margin-top: 2rem;
  text-align: left;
  width: 100%;
  max-width: 100%;
}

/* Calendario pubblico – stile Unlimited / Floating Dream */
.fd-avail-cal {
  border-radius: 18px;
  border: 1px solid rgba(47, 126, 167, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 251, 0.98) 100%);
  box-shadow: 0 8px 32px rgba(47, 126, 167, 0.12);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fd-avail-cal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(47, 126, 167, 0.1) 0%, rgba(127, 155, 143, 0.08) 100%);
  border-bottom: 1px solid rgba(47, 126, 167, 0.15);
}

.fd-avail-cal__title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent, #2f7ea7);
}

.fd-avail-cal__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 126, 167, 0.35);
  background: #fff;
  color: var(--accent, #2f7ea7);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.fd-avail-cal__btn:hover,
.fd-avail-cal__btn:focus-visible {
  background: linear-gradient(135deg, var(--accent, #2f7ea7) 0%, var(--accent-2, #7f9b8f) 100%);
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}

.fd-avail-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  background: rgba(47, 126, 167, 0.06);
  border-bottom: 1px solid rgba(47, 126, 167, 0.12);
  width: 100%;
}

.fd-avail-cal__weekdays span {
  padding: 0.45rem 0.25rem;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(30, 35, 40, 0.55);
}

.fd-avail-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  width: 100%;
}

/* Celle calendario: solo numero; FULL o click per dettaglio */
.fd-avail-cal__cell {
  min-height: 3.25rem;
  border-right: 1px solid rgba(47, 126, 167, 0.1);
  border-bottom: 1px solid rgba(47, 126, 167, 0.1);
  padding: 0.35rem 0.25rem 0.4rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.fd-avail-cal__grid > *:nth-child(7n) {
  border-right: 0;
}

.fd-avail-cal__cell--empty {
  min-height: 3.25rem;
  background: rgba(240, 244, 243, 0.45);
}

.fd-avail-cal__cell--day.fd-avail-cal__cell--full {
  cursor: default;
  background: rgba(30, 35, 40, 0.04);
}

.fd-avail-cal__full {
  display: block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(30, 35, 40, 0.42);
  margin-bottom: 0.15rem;
  line-height: 1;
}

.fd-avail-cal__cell--open {
  margin: 0;
  width: 100%;
  min-height: 3.25rem;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(47, 126, 167, 0.1);
  border-bottom: 1px solid rgba(47, 126, 167, 0.1);
  padding: 0.45rem 0.25rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.fd-avail-cal__cell--open:hover {
  background: linear-gradient(180deg, rgba(47, 126, 167, 0.08) 0%, rgba(127, 155, 143, 0.06) 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 126, 167, 0.25);
}

.fd-avail-cal__cell--open:focus-visible {
  background: linear-gradient(180deg, rgba(47, 126, 167, 0.08) 0%, rgba(127, 155, 143, 0.06) 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 126, 167, 0.25);
  outline: 2px solid var(--accent, #2f7ea7);
  outline-offset: -2px;
}

.fd-avail-cal__num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}

/* Modale disponibilità – Floating Dream */
body.fd-avail-modal-open {
  overflow: hidden;
}

.fd-avail-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.fd-avail-modal[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.fd-avail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 16, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fd-avail-modal__panel {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: min(92vw, 560px);
  min-width: min(92vw, 380px);
  max-height: 90vh;
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.35rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 251, 0.99) 100%);
  border: 1px solid rgba(47, 126, 167, 0.38);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 1px 0 rgba(127, 155, 143, 0.2) inset;
  overflow-y: auto;
  box-sizing: border-box;
}

.fd-avail-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 126, 167, 0.12);
  color: var(--accent, #2f7ea7);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.fd-avail-modal__close:hover,
.fd-avail-modal__close:focus-visible {
  background: linear-gradient(135deg, var(--accent, #2f7ea7), var(--accent-2, #7f9b8f));
  color: #fff;
  outline: none;
}

.fd-avail-modal__title {
  margin: 0 2rem 1rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  font-family: "Playfair Display", Georgia, serif;
}

.fd-avail-modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fd-avail-modal__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(47, 126, 167, 0.06);
  border: 1px solid rgba(47, 126, 167, 0.14);
}

.fd-avail-modal__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e2328;
}

.fd-avail-modal__status {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fd-avail-modal__status--free {
  color: var(--accent, #2f7ea7);
}

.fd-avail-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #2f7ea7) 0%, var(--accent-2, #7f9b8f) 100%);
  box-shadow: 0 2px 10px rgba(47, 126, 167, 0.35);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fd-avail-modal__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(47, 126, 167, 0.42);
  opacity: 0.96;
}

.fd-avail-modal__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(47, 126, 167, 0.42);
  opacity: 0.96;
  outline: 2px solid var(--accent, #2f7ea7);
  outline-offset: 2px;
}

.fd-avail-modal__status--busy {
  color: rgba(30, 35, 40, 0.45);
}

/* Modale prenotazione – Floating Dream */
body.fd-book-modal-open {
  overflow: hidden;
}

.fd-book-modal {
  position: fixed;
  inset: 0;
  z-index: 12100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.fd-book-modal[aria-hidden="false"] {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.fd-book-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 16, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fd-book-modal__panel {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: min(92vw, 760px);
  min-width: min(92vw, 420px);
  max-height: min(90vh, 90dvh);
  border-radius: 20px;
  padding: 1.55rem 1.45rem 1.3rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 251, 0.99) 100%);
  border: 1px solid rgba(47, 126, 167, 0.38);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 1px 0 rgba(127, 155, 143, 0.2) inset;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
  min-width: 0;
}

.fd-book-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 126, 167, 0.12);
  color: var(--accent, #2f7ea7);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.fd-book-modal__close:hover,
.fd-book-modal__close:focus-visible {
  background: linear-gradient(135deg, var(--accent, #2f7ea7), var(--accent-2, #7f9b8f));
  color: #fff;
  outline: none;
}

.fd-book-modal__title {
  margin: 0 2rem 1rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  font-family: "Playfair Display", Georgia, serif;
}

.fd-book-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.fd-book-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.fd-book-row--2 .fd-book-field {
  flex: 1 1 240px;
}

.fd-book-form .fd-book-row--2:has(input[type="date"]) {
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
}

.fd-book-form .fd-book-field:has(input[type="date"]) {
  flex: 0 1 11.5rem;
  max-width: min(11.5rem, 100%);
  min-width: 0;
}

.fd-book-form .fd-book-field:has(input[type="date"]) .fd-book-input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.fd-book-row--cta {
  justify-content: center;
}

.fd-book-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}

.fd-book-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(30, 35, 40, 0.72);
}

.fd-book-input,
.fd-book-textarea {
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(47, 126, 167, 0.22);
  background: rgba(248, 249, 251, 0.7);
  padding: 0.75rem 0.85rem;
  color: var(--text, #1e2328);
  outline: none;
  box-sizing: border-box;
  min-width: 0;
}

.fd-book-input:focus,
.fd-book-textarea:focus {
  border-color: rgba(47, 126, 167, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 126, 167, 0.12);
}

.fd-book-textarea {
  resize: vertical;
  min-height: 110px;
}

.fd-book-form__msg {
  min-height: 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(30, 35, 40, 0.72);
}

.fd-book-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(47, 126, 167, 0.5);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(47, 126, 167, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fd-book-submit:hover,
.fd-book-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(47, 126, 167, 0.33), 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: rgba(47, 126, 167, 0.65);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive: blocca overflow e sovrapposizioni nel form prenotazione */
@media (max-width: 767px) {
  .fd-book-modal__panel {
    padding: 1.15rem 1.05rem 0.95rem;
  }

  .fd-book-row--2 .fd-book-field {
    flex: 1 1 100%;
  }

  .fd-book-textarea {
    min-height: 95px;
  }

  .fd-book-row--cta .fd-book-submit {
    width: 100%;
    max-width: 18rem;
  }
}

@media (min-width: 768px) and (max-width: 1360px) and (orientation: landscape) {
  .fd-book-modal__panel {
    padding: 1.1rem 1.05rem 0.95rem;
  }

  .fd-book-row--2 .fd-book-field {
    flex: 1 1 100%;
  }

  .fd-book-textarea {
    min-height: 100px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .fd-book-modal__panel {
    padding: 1.1rem 1.05rem 0.95rem;
  }

  .fd-book-row--2 .fd-book-field {
    flex: 1 1 100%;
  }

  .fd-book-textarea {
    min-height: 100px;
  }

  .fd-book-row--cta .fd-book-submit {
    width: 100%;
    max-width: 18rem;
  }
}

/* Reveal (come Regala / Punti di interesse) */
.houseboat-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.houseboat-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.page-houseboat .footer {
  background: #fff;
}

@media (max-width: 767px) {
  .houseboat-hero {
    height: auto;
    min-height: 60vh;
    padding: calc(var(--header-height, 80px) + 1.5rem) 1.25rem 1.5rem;
  }

  .houseboat-hero__title {
    font-size: 1.5rem;
  }

  .houseboat-split__inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 3rem;
    gap: 1.75rem;
  }

  .houseboat-split--img-right .houseboat-split__text {
    order: 1;
  }

  .houseboat-split--img-right .houseboat-split__media {
    order: 2;
  }

  .houseboat-split--img-left .houseboat-split__media {
    order: 1;
  }

  .houseboat-split--img-left .houseboat-split__text {
    order: 2;
  }

  .houseboat-split__text {
    text-align: center;
    align-items: center;
  }

  .houseboat-split__title {
    font-size: 1.25rem;
  }

  .houseboat-split__frame {
    max-width: 100%;
  }

  .houseboat-availability__inner {
    padding: 2rem 1.25rem 3.5rem;
  }

  .fd-avail-cal__cell,
  .fd-avail-cal__cell--open {
    min-height: 2.85rem;
  }

  .fd-avail-cal__full {
    font-size: 0.5rem;
  }

  .fd-avail-cal__num {
    font-size: 0.85rem;
  }
}
