/* XXL devices (1400px and up) */
@media (max-width: 1399px) {
}

/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1199px) {
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 991px) {
  .section-hp-hero.section.herobackground {
    height: 100vh;
  }
  .section.section-hp-hero {
    padding-top: 7rem;
  }
  #w-node-_64d4f924-dac0-50b4-75c8-a1ba03d18310-ec59f47c,
  #w-node-_8ba77637-08bd-611b-3d93-3a2ec5519f16-ec59f47c,
  #w-node-_70cea5c4-2955-a707-25da-8bc38c60070a-ec59f47c,
  #w-node-_1dad330f-9ed1-889c-a6e8-c3f613be22e2-ec59f47c,
  #w-node-_89ab9d79-97b9-3539-d1a0-b669d1f45832-ec59f47c,
  #w-node-_2bee03da-0bfe-86be-6f2e-d2535545776d-ec59f47c,
  #w-node-_04f8fa43-9b11-0f63-bf37-87c3250bddb7-ec59f47c,
  #w-node-_07789917-6177-38db-ed70-4eac1020d074-ec59f47c {
    grid-area: span 2 / span 2 / span 2 / span 2;
  }

  .faq-accordion {
    padding: 1rem;
  }
  .section-our-office {
    padding-bottom: 5rem;
  }

  .page_news,
  .page_index {
    & .grid-layout {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 20px;
      width: 100%;
    }
  }

  .section-hp-hero.section.herobackground {
    background-size: cover!important;
    position: relative;
    z-index: 1;
  }

  .section-hp-hero.section.herobackground::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6); /* Bianco con 0.6 di opacità */
    z-index: -1; /* Lo mette dietro al contenuto (testi/bottoni) ma sopra lo sfondo */
}
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 767px) {
  /* Sezione "Chi siamo": impila e mette la foto SOPRA il testo */
  .fascia-capannone {
    grid-template-columns: 1fr;
  }
  .fascia-capannone .img_capannone {
    order: -1;
  }
  /* Link del footer piu' piccoli su mobile */
  .footer-links {
    font-size: 14px;
  }
  /* Chi siamo: rimuove il padding destro sul mobile */
  ._2-column-text-container-right {
    padding-right: 0;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575px) {
}

/* ============================================================
   HERO SLIDESHOW — crossfade delle immagini nella hero
   Sostituisce il background-image fisso della .herobackground
   ============================================================ */

/* Rimuove l'immagine di background statica: ora la mostra lo slideshow */
.section-hp-hero.section.herobackground {
  background-image: none;
  position: relative;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: 100% 100%;
  background-repeat: no-repeat;
  background-size: 40%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

/* Il contenuto (testi/bottoni) resta sopra allo slideshow */
.section-hp-hero.section.herobackground .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  /* Su mobile le immagini coprono tutta la hero, come il vecchio bg cover */
  .hero-slide {
    background-size: cover;
    background-position: center;
  }
  /* L'overlay bianco deve stare sopra le immagini ma sotto ai testi */
  .section-hp-hero.section.herobackground::before {
    z-index: 1;
  }
}
