/* ══════════════════════════════
   HOME
══════════════════════════════ */

/* ── Hero ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Slideshow */
.hero-slides {
  position: absolute;
  inset: -30% 0;
  overflow: hidden;
  will-change: transform;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4,0,0.2,1);
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
@keyframes slideZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.0); }
}
.hero-slide.active img {
  animation: slideZoom 8s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,8,5,0.48) 0%,
    rgba(10,8,5,0.35) 35%,
    rgba(10,8,5,0.42) 60%,
    rgba(10,8,5,0.70) 100%
  );
  z-index: 1;
}


/* Logo centrato hero */
.hero-logo {
  position: relative;
  z-index: 3;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.2s var(--slow) 0.5s forwards;
}
.hero-logo img {
  height: 280px;
  width: auto;
  max-width: 640px;
  object-fit: contain;
  display: inline-block;
  filter: invert(1) brightness(10) drop-shadow(0 4px 32px rgba(0,0,0,0.7));
  transform: scale(1.15);
  transform-origin: center;
}

/* Subtitle sotto logo */
.hero-sub {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeIn 1s var(--slow) 1s forwards;
}

.hero-desc {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
  line-height: 1.7;
  max-width: 480px;
  opacity: 0;
  animation: fadeIn 1s var(--slow) 1.2s forwards;
}
@media (max-width: 768px) {
  .hero-desc { display: none; }
}

/* Mobile-only hero text */
.hero-mobile-text {
  display: none;
}
.booking-bar--desktop { display: flex; }

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--slow) 1.8s forwards;
}
.hero-scroll span {
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%      { opacity: 0.3; transform: scaleY(0.5); transform-origin: bottom; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Booking bar ── */
@keyframes bbSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes bbGlow {
  0%, 100% { box-shadow: 0 8px 40px rgba(0,0,0,0.18); }
  50%       { box-shadow: 0 12px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.4); }
}

.booking-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 11;
  display: flex;
  justify-content: center;
  padding: 0 4vw 2.5rem;
  opacity: 0;
  animation: bbSlideUp 1s var(--slow) 1.4s forwards;
}

.booking-bar-inner {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 100px;
  display: flex;
  align-items: stretch;
  padding: 0.6rem 0.6rem 0.6rem 0;
  gap: 0;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  max-width: 820px;
  width: 100%;
  min-height: 74px;
  animation: bbGlow 4s ease-in-out 3s infinite;
  transition: box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
}
.booking-bar-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.22);
  animation: none;
}

.bb-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  padding: 0 2rem;
  border-right: 1px solid var(--beige-3);
  min-width: 0;
  cursor: pointer;
  position: relative;
  transition: background 0.25s var(--ease);
  border-radius: 100px 0 0 100px;
}
.bb-field:last-of-type { border-right: none; border-radius: 0; }
.bb-field--ospiti { border-radius: 0; }
.bb-field:hover { background: rgba(245,240,232,0.6); }
.bb-field:has(input:focus), .bb-field:has(select:focus) {
  background: rgba(245,240,232,0.9);
}

.bb-field label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
  white-space: nowrap;
  line-height: 1;
  margin-bottom: 0.35rem;
  transition: color 0.2s;
}
.bb-field:hover label { color: var(--brown-2); }

/* Valore visibile */
.bb-val {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--stone);
  white-space: nowrap;
  line-height: 1;
  transition: color 0.2s;
  pointer-events: none;
}
.bb-val.has-value { color: var(--brown); font-weight: 400; }

/* Input date nascosto ma cliccabile */
.bb-field input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
}
.bb-field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Select ospiti */
.bb-field select {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--stone);
  padding: 0;
  cursor: pointer;
  width: 100%;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
}

/* Bottone */
.bb-book {
  flex-shrink: 0;
  background: var(--brown);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 1.8rem;
  height: 54px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-left: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bb-book::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  background-size: 400px 100%;
  background-repeat: no-repeat;
  background-position: -400px 0;
  transition: background-position 0s;
}
.bb-book:hover::before {
  animation: shimmer 0.6s ease forwards;
}
.bb-book:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(46,38,32,0.35);
}
.bb-book:active { transform: scale(0.98); }
.bb-book-arrow {
  width: 13px; height: 13px;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.bb-book:hover .bb-book-arrow { transform: translateX(3px); }

/* ── Intro ── */
.intro {
  padding: 9rem 6vw;
  background: var(--white);
}
.intro-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: center;
}

.intro-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 1.4rem;
}
.intro-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  font-weight: 300;
  color: var(--brown);
  line-height: 1.1;
}
.intro-title em { font-style: italic; }
.intro-body {
  margin-top: 2rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.85;
  max-width: 460px;
}
.intro-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--beige-2);
}
.stat-val { font-family: var(--serif); font-size: 3.2rem; font-weight: 300; color: var(--brown); display: block; line-height: 1; }
.stat-lbl { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); display: block; margin-top: 0.5rem; }

.intro-cta { margin-top: 2.8rem; }
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: all 0.35s var(--ease);
  text-decoration: none;
}
.btn-pill svg { width: 13px; height: 13px; transition: transform 0.3s; flex-shrink: 0; }
.btn-pill:hover svg { transform: translateX(4px); }

.btn-dark { background: var(--brown); color: var(--white); }
.btn-dark:hover { background: var(--brown-2); transform: scale(1.05) translateY(-2px); box-shadow: 0 8px 24px rgba(46,38,32,0.22); }
.btn-outline { background: transparent; color: var(--brown); border: 1px solid var(--beige-3); }
.btn-outline:hover { border-color: var(--brown); transform: scale(1.05) translateY(-2px); }
.btn-white { background: var(--white); color: var(--brown); }
.btn-white:hover { background: var(--beige); transform: scale(1.05) translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.btn-outline-white { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); transform: scale(1.05) translateY(-2px); }

/* Intro visual */
.intro-visual {
  position: relative;
  height: 600px;
}
.iv-main {
  position: absolute;
  top: 0; right: 0;
  width: 84%; height: 78%;
  overflow: hidden;
  border-radius: 4px;
}
.iv-main img { transition: transform 1s var(--slow); }
.iv-main:hover img { transform: scale(1.04); }

.iv-secondary {
  position: absolute;
  bottom: 0; left: 0;
  width: 54%; height: 46%;
  overflow: hidden;
  border-radius: 4px;
  outline: 10px solid var(--white);
  box-shadow: 0 16px 50px rgba(0,0,0,0.1);
}
.iv-secondary img { transition: transform 1s var(--slow); }
.iv-secondary:hover img { transform: scale(1.05); }

/* ── Why direct ── */
.why {
  background: var(--beige);
  padding: 5rem 6vw;
}
.why-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--beige-3);
}
.why-item {
  background: var(--beige);
  padding: 2.8rem 2.4rem;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.why-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stone), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease);
}
.why-item:hover { background: #ede5d5; }
.why-item:hover::before { transform: scaleX(1); }
.why-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--beige-3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.why-item:hover .why-icon { border-color: var(--stone); transform: scale(1.12) rotate(-6deg); }
.why-icon svg { width: 17px; height: 17px; stroke: var(--stone); fill: none; stroke-width: 1.5; }
.why-item h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; color: var(--brown); margin-bottom: 0.6rem; }
.why-item p { font-size: 0.95rem; font-weight: 300; color: var(--stone); line-height: 1.8; }

/* ── Services ── */
.services {
  padding: 9rem 6vw;
  background: var(--white);
}
.services-inner { max-width: 1380px; margin: 0 auto; }

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4.5rem;
  gap: 2rem;
}
.services-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 1rem;
}
.services-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 300;
  color: var(--brown);
  line-height: 1.12;
}
.services-title em { font-style: italic; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--beige-2);
}

.scard {
  background: var(--white);
  display: block;
  overflow: hidden;
  position: relative;
  transition: background 0.4s var(--ease);
  will-change: transform;
}
.scard:hover { background: var(--beige); }

.scard-img {
  height: 300px;
  overflow: hidden;
}
.scard-img img { transition: transform 1.1s var(--slow); }
.scard:hover .scard-img img { transform: scale(1.06); }

.scard-body { padding: 2rem 2.2rem 2.4rem; }
.scard-eyebrow {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 0.6rem;
}
.scard-body h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--brown);
  margin-bottom: 0.7rem;
  line-height: 1.2;
}
.scard-body p {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}
.scard-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.67rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  transition: gap 0.3s;
}
.scard-arrow svg { width: 12px; height: 12px; stroke: var(--brown); fill: none; transition: transform 0.3s; }
.scard:hover .scard-arrow { gap: 0.8rem; }
.scard:hover .scard-arrow svg { transform: translateX(3px); }

/* ── Fullbleed CTA ── */
.fullbleed {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fullbleed-img {
  position: absolute;
  inset: 0;
}
.fullbleed-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,10,5,0.52);
}
.fullbleed-body {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  padding: 0 4vw;
}
.fullbleed-eyebrow {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-bottom: 1.4rem;
}
.fullbleed-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.fullbleed-title em { font-style: italic; }
.fullbleed-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.fullbleed-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .why-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .intro-inner { grid-template-columns: 1fr; gap: 4rem; }
  .intro-visual { height: 420px; }
}

@media (max-width: 768px) {
  .hero-mobile-text {
    display: block;
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 1.2rem;
    padding: 0 1.4rem;
  }
  .hero-mobile-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.6rem;
    margin-bottom: 2rem;
    width: 100%;
  }
  .hero-mobile-text h1 {
    font-family: var(--serif);
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.05;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    margin-bottom: 0.6rem;
  }
  .hero-mobile-location {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    margin-bottom: 1.4rem;
  }
  .hero-mobile-sub {
    font-family: var(--sans);
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255,255,255,0.82);
    line-height: 1.7;
    text-shadow: 0 1px 12px rgba(0,0,0,0.4);
    margin-bottom: 2rem;
  }
  .hero-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--white);
    color: var(--brown);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 1.1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    margin-bottom: 0.8rem;
  }
  .hero-mobile-cta--outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.7);
    box-shadow: none;
  }

  .booking-bar--desktop { display: none; }

  .booking-bar {
    padding: 0 1.4rem 1.8rem;
  }
  .booking-bar-inner {
    border-radius: 20px;
    flex-direction: column;
    align-items: center;
    padding: 1.8rem 1.6rem;
    gap: 0;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    max-width: 100%;
  }
  .bb-field {
    border-right: none;
    border-bottom: 1px solid var(--beige-2);
    padding: 1rem 0;
    width: 100%;
    align-items: center;
  }
  .bb-field:last-of-type { border-bottom: none; }
  .bb-field input[type="date"] { text-align: center; }
  .bb-field span { text-align: center; width: 100%; }
  .bb-book {
    margin-left: 0;
    margin-top: 1.4rem;
    width: 100%;
    max-width: 320px;
    height: 56px;
    justify-content: center;
    font-size: 0.72rem;
  }

  .hero { height: 100svh; min-height: 600px; }
  .hero-logo { display: none; }
  .hero-sub { display: none; }
  .hero-scroll { display: none; }

  .why-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .intro-visual { height: 320px; }
}
