:root {
  --hero-video-height: calc(100vh - 80px);
  --hero-video-overlay: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.page-hero-video {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
  /* Fondamentale per il posizionamento dei figli */
  display: flex;
  align-items: flex-end;
}

/* --- 1. DESKTOP LARGE (>= 1920px): COVER --- */
@media (min-width: 1920px) {
  .page-hero-video {
    height: var(--hero-video-height);
  }
  .page-hero-video__media iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.78vh);
    height: max(56.25vw, 100%);
    transform: translate(-50%, -50%);
    object-fit: cover;
  }
}

/* --- 2. BREAKPOINT INFERIORI (< 1920px): PROPORZIONALE --- */
@media (max-width: 1919.98px) {
  .page-hero-video {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .page-hero-video__media iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* --- 3. PULSANTE RELOAD: CENTRO PERFETTO SEMPRE --- */
.page-hero-video__reload {
  appearance: none;
  border: none;
  background: url("/easyPages/video/play_colibri_360.png") no-repeat center center;
  background-size: contain;
  /* Dimensione adattiva */
  width: clamp(60px, 10vw, 110px);
  height: clamp(60px, 10vw, 110px);
  /* Posizionamento assoluto rispetto a .page-hero-video */
  position: absolute;
  top: 50%;
  left: 50%;
  /* Il translate corregge l'ingombro dell'elemento stesso centrandolo sul punto 50/50 */
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: pointer;
  font-size: 0;
  color: transparent;
  transition: transform 0.2s ease-in-out;
  outline: none;
  display: none;
}

.page-hero-video__reload:hover {
  /* Mantiene la centratura aggiungendo lo scale */
  transform: translate(-50%, -50%) scale(1.1);
}

/* --- 4. MEDIA E OVERLAY --- */
.page-hero-video__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-video__media iframe {
  border: 0;
  pointer-events: none;
}

.page-hero-video__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  /*background: var(--hero-video-overlay);*/
  pointer-events: none;
}

.page-hero-video__overlay {
  position: relative;
  z-index: 5;
  width: 100%;
  padding: clamp(1.5rem, 5vh, 4rem) clamp(1rem, 5vw, 3rem);
  pointer-events: none;
}

.page-hero-video__content {
  /* max-width: 800px; */
  color: #fff;
  pointer-events: auto;
}

/* --- 5. TIPOGRAFIA --- */
.page-hero-video__content h1 {
  margin: 0 0 0.5rem;
  /* font-size: clamp(1.8rem, 4.5vw, 4.5rem); 
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.02em; */
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: 0.005em;
  display: none;
}

.page-hero-video__content .lead,
.page-hero-video__content h2 {
  margin: 0;
  /* font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9); */
  /* max-width: 600px; */
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  font-style: normal;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  display: none;
}

#hero-mobile {
  /* titolo per il mobile  */
  color: #fff;
  background-color: #364c5a;
}
#hero-mobile .librotitolo{
  position: relative;
  bottom:inherit;
  padding-bottom: 1rem;
  padding-top: 1rem;
}
/* #hero-mobile h1{
  font-size: clamp(1.8rem, 4.5vw, 4.5rem); 
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.02em;
}
#hero-mobile h2{
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
} */

#hero-mobile h1 {
  /* Mobile: ~8vw | Desktop: ~3.3vw */
  /* Il valore centrale (5vw) permette una transizione fluida tra i due estremi */
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: bold;
  line-height: 1.15;
  letter-spacing: 0.005em;
}

#hero-mobile h2 {
  /* Mobile: ~4.8vw | Desktop: ~2.4vw */
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  font-style: normal;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767.98px) {
  .page-hero-video__content,
  .page-hero-video__reload {
    display: none;
  }
  #hero-mobile h2,
  #hero-mobile h1{
  	 display: none;
  }
}

