/* ========== RESET ========== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* ========== HERO WRAPPER ========== */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-wrapper.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}
@supports (height: 100dvh) {
  .hero-wrapper {
    height: 100dvh;
    min-height: 100dvh;
  }
}

/* ========== HERO VIDEO ========== */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  background-color: #000;
}

/* Override per garden video: rispetta le dimensioni del contenitore */
#garden-video-media.hero-wrapper {
  height: auto;
  min-height: 0;
}
#garden-video-media .hero-video {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}

/* ========== HERO OVERLAY ========== */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  padding: 0 0px;
  text-align: center;

}

.hero-wrapper .colonna {
  position: relative;
  z-index: 2;
}

.hero-audio-btn {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translateX(-50%);
  z-index: 3;
  min-width: 70px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-audio-btn:hover {
  background: rgba(191, 159, 86, 0.9);
  border-color: rgba(191, 159, 86, 0.9);
}

.hero-audio-btn.is-active {
  background: rgba(191, 159, 86, 0.9);
  border-color: rgba(191, 159, 86, 0.9);
}

/* ========== CONTROLS (Volume + Prenota + Telefono) ========= */
.controls {
  position:fixed;
  top: 15px;          /* aumentato da 20px per non sovrapporsi al testo */
  right: 20px;
  display: flex;
  gap: 16px;
  pointer-events: auto;
  text-transform: uppercase;
  color:#000;
  z-index: 999;
  font-family: 'Julius Sans One';
}
.controls .volume-toggle,
.controls .book-link {
  background: none;
  color: #fff;
  padding: 10px;
  border: none;
  text-decoration: none; /* rimosse linee di sottolineatura */
  font-weight: bold;
  font-size: 0.85em;
  text-transform: none; /* nessun maiuscolo forzato */
  cursor: pointer;
}
.controls .volume-toggle i,
.controls .book-link i {
  font-size: 1.4em;
}

body.scrolled .controls,
html.scrolled .controls {
  position: fixed;
  top: 0px;
  right: 0px;
  width: 100%;
  background-color: #fff;
  height: 30px;
  text-align: right;
  padding: 20px;
}

body.scrolled .controls .volume-toggle,
body.scrolled .controls .book-link,
html.scrolled .controls .volume-toggle,
html.scrolled .controls .book-link {
  background: none;
  color: #000;
  padding: 10px;
  border: none;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85em;
  text-transform: none;
  cursor: pointer;
}

/* ========== SCROLL DOWN ========= */
.hero-overlay .scroll-down {
  position: absolute;
  bottom: 20px;
  left: calc(50% + 0px);
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85em;
  text-align: center;
  pointer-events: none;
}
.hero-overlay .scroll-down .arrow {
  display: block;
  font-size: 2em;
  margin-top: 4px;
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(10px); }
}

/* ========== MAIN CONTENT OFFSET per desktop ========= */
.main-content {
  padding-left: 0;
  transition: padding 0.3s ease;
} 

/* ========== MOBILE ADJUSTMENTS ========= */
@media (max-width: 768px) {
  .hero-wrapper {
    height: 80vh;
  }
  .main-content {
    padding-left: 0;
    padding-top: 0px;
  }
  /* nasconde i controlli su mobile */
  .hero-overlay .controls {
    display: none;
  }
  /* mantiene solo scroll-down */
	.hero-overlay .scroll-down {
	left: 50%;
  }
  .hero-overlay .scroll-down {
    font-size: 0.75em;
  }
  .hero-overlay .scroll-down .arrow {
    font-size: 1.5em;
  }
}

/* animazione pulse per il volume */
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.hero-overlay .volume-toggle {
  transition: transform 0.2s ease;
}

.hero-overlay .volume-toggle.pulse {
  animation: pulse 0.4s ease;
}
