/* ================================
   Helper per screen reader
   ================================ */
   .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  .sr-only-focusable:focus,
  .sr-only-focusable:active {
    position: static !important;
    width: auto; height: auto;
    margin: 0; clip: auto;
    overflow: visible; white-space: normal;
  }
  
  /* ================================
     Wrapper desktop (fisso a 750px)
     ================================ */
  .hero-slide-inner {
    position: relative;
    width: 100vw;
    height: 750px;
    overflow: hidden;
  }
  .hero-slide-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .slide-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    /* background-color iniettato inline dallo shortcode */
  }
  .hero-slide-content {
    position: absolute;
    top: 50%; left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
  }
  .hero-slide-content .container {
    margin: 0 auto;
    position: relative;
    pointer-events: auto;
    padding: 0 1rem;
  }
  .hero-slide-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: #fff;
  }
  .hero-slide-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
  }
  .hero-slide-button.white {
    display: inline-block;
    background: #fff;
    color: #26214F !important;
    border-radius: 23px !important;
    text-decoration: none;
    font-weight: 600;
    z-index: 3;
  }
  
  /* Splide controls */
  .splide__arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: white !important;
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%; transition: background .2s;
    z-index: 3;
  }
  .splide__arrow:hover { background: rgba(0,0,0,0.6); }
  .splide__arrow--prev { left: 1rem; }
  .splide__arrow--next { right: 1rem; }
  .splide__pagination {
    position: absolute;
    bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }
  .splide__pagination__page {
    background: rgba(255,255,255,0.5);
    width: 17px;
    height: 10px;
    margin: 0 .25rem;
    border-radius: 50%;
    font-size: 7px;
}
  .splide__pagination__page.is-active { background: #fff; }
    @media (min-width: 821px) {
      .hero-slide-inner {
          height: 1100px !important;
      }
      .hero-slide-bg {
          object-position: bottom !important;
      }
    }
  /* ================================
     Mobile (fino a 768px): mostra tutta l’immagine
     ================================ */
  @media (max-width: 820px) {
    /* 1) Wrapper segue l’immagine: altezza automatica */
    .hero-slide-inner {
      height: 500px;
      max-height: none;
      overflow: hidden;
    }
  
    /* 2) Immagine 100% width, proporzioni integre */
    .hero-slide-bg {
      width: 100% !important;
      height: 500px !important;
      //object-fit: contain !important;
      object-position: 77%;
    }
  
    /* 3) Overlay copre l’intera immagine */
    .slide-overlay {
      top: 0; left: 0;
      width: 100%; height: 100%;
    }
  
    /* 4) Testo sovrapposto in basso a sinistra */
    .hero-slide-content {
      position: absolute !important;
      bottom: 10% !important;
      left: 5% !important;
      width: 90% !important;
      transform: none !important;
      pointer-events: none;
      z-index: 2;
    }
  
    /* 5) Container interno full-width su mobile */
    .hero-slide-content .container {
      max-width: none !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 1rem !important;
      pointer-events: auto;
    }
  
    /* 6) Ridimensiona i font per adattarsi */
    .hero-slide-label { font-size: .75rem !important; }
    .hero-slide-title {
      font-size: 1.6rem !important;
      line-height: 1.2 !important;
      margin-bottom: .5rem !important;
    }
    .hero-slide-button {
      padding: .5rem 1rem !important;
      font-size: .9rem !important;
    }

    .splide__arrow{
      top: 36%;
    }

    .hero-slide-content {
      top: 45%;
    }
  }
  

  @media (max-width: 550px) {
    .hero-slide-title {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: .5rem !important;
        width: 190px;
    }
    .hero-slide-button {
        font-size: .7rem !important;
    }
    .hero-slide-content {
        top: 21% !important;
        left: 13% !important;
    }
}