/* gestione visualizzione numero su personalizzione nei prodotti */

.rs-work-step-four .rs-work-step-item {
    border: 1px solid #e0e0e0;
    flex-direction: column;
    position: relative;
    overflow: visible;
    display: flex;
    padding: 0;
}

.rs-work-step-four .rs-work-step-item img {
    display: block;
    width: 100%;
}

.rs-work-step-four .rs-work-step-item::before {
    background-color: var(--rs-theme-light-green);
    border-color: var(--rs-theme-light-green);
    font-family: "Bebas Neue", sans-serif;
    color: var(--rs-white);
    position: absolute;
    letter-spacing: 1px;
    font-size: 3.5rem;
    font-weight: 100;
    bottom: auto;
    right: 7px;
    top: -30px;
}

.rs-work-step-four .rs-work-step-descrip {
    padding: 15px;
}

.rs-work-step-descrip p {
    line-height: 30px;
    margin-top: 15px;
}

.tabella-caratteristiche {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase; 
    font-weight: 500; 
    color:black;
}    

.green-heading {
    font-weight: 500;
    font-size: 2.50rem; 
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--rs-theme-blue); 
}



  .gallery-wrap {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
  }

  .gallery-title {
    text-align: center;
    margin-bottom: 24px;
    font-weight: 600;
  }

  /* --- Slider a scorrimento continuo --- */
  .gallery-viewport {
    overflow: hidden;
    padding: 10px 4px 20px;
  }

  .gallery-track {
    display: flex;
    gap: 16px;
    transition: transform .5s ease;
  }

  .gallery-col {
    flex: 0 0 calc((100% - 32px) / 3); /* 3 immagini visibili, gap 16px tra loro */
    cursor: zoom-in;
  }

  .gallery-col img {
    width: 100%;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
    transition: transform .25s ease;
    display: block;
  }

  .gallery-col:hover img {
    transform: translateY(-4px);
  }

  @media (max-width: 991.98px) {
    .gallery-col {
      flex: 0 0 calc((100% - 16px) / 2); /* 2 immagini visibili su tablet */
    }

  }

  @media (max-width: 575.98px) {
    .gallery-col {
      flex: 0 0 100%; /* 1 immagine visibile su mobile */
    }
    .gallery-col img {
      height: 220px;
    }
        .dnone {
      display: block!important;
    }

    .rs-counter-one .rs-counter-number-wrapper {
    display: block;
    align-items: center;
        text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(31, 31, 31, 0.16);
}
.t-center {
    text-align: center;}
  }
    .dnone {
      display: none;
    }
  /* --- Frecce navigazione --- */
  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,.55);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gallery-nav:hover {
    background: rgba(0,0,0,.8);
  }

  .gallery-nav.prev { left: 0; }
  .gallery-nav.next { right: 0; }

  /* --- Modal zoom --- */
  #zoomModal .modal-content {
    background: transparent;
    border: none;
  }

  #zoomModal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  #zoomModal img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform .3s ease;
    transform-origin: center center;
  }

  #zoomModal img.zoomed {
    transform: scale(1.9);
    cursor: zoom-out;
  }

  #zoomModal .btn-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 1;
    padding: 10px;
    z-index: 10;
  }

  #zoomModal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.85);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    z-index: 10;
  }

  #zoomModal .modal-nav.prev { left: -10px; }
  #zoomModal .modal-nav.next { right: -10px; }

  @media (max-width: 991.98px) {
    #zoomModal .modal-nav.prev { left: 0; }
    #zoomModal .modal-nav.next { right: 0; }
  }
/* in mobile nascondo la parte superiore e il pulsante */
@media (max-width: 767px) {
  header .rs-header-top.rs-header-top-four.has-theme-light-green {
    display: none !important;
  }
  header .rs-header-btn {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (max-width: 1600px) {
  /* mostro i contenitori delle azioni a destra */
  header .rs-header-right,
  header .rs-header-right-action,
  header .rs-header-action-item {
    display: flex !important;
    visibility: visible !important;
  }

  /* forzo la visibilità dell'hamburger e dei suoi elementi interni */
  header .rs-header-hamburger,
  header .rs-header-hamburger *,
  header .sidebar-toggle,
  header .has-theme-yellow {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
  }

  /* mantengo il pulsante visibile solo tra 768px e 1600px */
  @media (min-width: 768px) {
    header .rs-header-btn {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }

  /* annullo le classi d-none del tema che nascondono l'hamburger */
  header .d-none,
  header .dnone,
  header .rs-header-hamburger.d-none,
  header .rs-header-hamburger.dnone {
    display: flex !important;
    visibility: visible !important;
  }
}

.rs-about-sixteen {
  overflow-x: clip;
}
@media only screen and (max-width: 991px) {
  .rs-about-sixteen .rs-section-title br {
    display: none;
  }
}
.rs-about-sixteen .rs-about-wrapper {
  display: grid;
  grid-template-columns: 450px auto;
  gap: 30px 85px;
}
@media only screen and (max-width: 1600px) {
  .rs-about-sixteen .rs-about-wrapper {
    grid-template-columns: 350px auto;
    gap: 30px 30px;
    align-items: start;
  }
}
@media only screen and (max-width: 1199px) {
  .rs-about-sixteen .rs-about-wrapper {
    grid-template-columns: 300px auto;
  }
}
@media only screen and (max-width: 991px) {
  .rs-about-sixteen .rs-about-wrapper {
    grid-template-columns: auto;
  }
}
.rs-about-sixteen .rs-about-thumb {
  overflow: hidden;
  visibility: hidden;
}
@media only screen and (max-width: 1600px) {
  .rs-about-sixteen .rs-about-thumb {
    position: sticky;
    top: 110px;
  }
}
@media only screen and (max-width: 991px) {
  .rs-about-sixteen .rs-about-thumb {
    position: relative;
    top: unset;
  }
}
.rs-about-sixteen .rs-about-thumb img {
  width: 100%;
  transition: unset;
  border-radius: 5px;
}
.rs-about-sixteen .rs-about-content-wrapper .descrip {
  max-width: 640px;
}
.rs-about-sixteen .rs-about-thumb-two img {
  border-radius: 5px;
  width: 100%;
}
.rs-about-sixteen .rs-about-tab .nav-pills {
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--rs-border-secondary);
}
@media only screen and (max-width: 480px) {
  .rs-about-sixteen .rs-about-tab .nav-pills {
    border-bottom: 0;
  }
}
.rs-about-sixteen .rs-about-tab .nav-link {
  background: transparent;
  color: var(--rs-text-primary);
  font-weight: 500;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-bottom: 10px;
}
@media only screen and (max-width: 480px) {
  .rs-about-sixteen .rs-about-tab .nav-link {
    width: 100%;
  }
}
.rs-about-sixteen .rs-about-tab .nav-link::after {
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  -webkit-transition: transform 0.5s ease;
  transition: transform 0.5s ease;
  position: absolute;
  content: "";
  inset-inline-start: -1px;
  bottom: -2px;
  background-color: var(--rs-theme-medium-green);
}
.rs-about-sixteen .rs-about-tab .nav-link.active {
  color: var(--rs-theme-medium-green);
}
.rs-about-sixteen .rs-about-tab .nav-link.active::after {
  transform: scaleX(1);
}
.rs-about-sixteen .rs-about-tab .nav-link:hover {
  color: var(--rs-theme-medium-green);
}
.rs-about-sixteen .rs-about-tab .nav-link:hover::after {
  transform: scaleX(1);
}
@media only screen and (max-width: 480px) {
  .rs-about-sixteen .rs-about-tab .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--rs-border-secondary);
  }
}
.rs-about-sixteen .rs-about-counter {
  margin-top: 0px;
}
@media only screen and (max-width: 1600px) {
  .rs-about-sixteen .rs-about-counter {
    margin-top: 40px;
  }
}
.rs-about-sixteen .rs-about-tab-content {
  margin-top: 30px;
  margin-bottom: 50px;
  max-width: 600px;
}
@media only screen and (max-width: 991px) {
  .rs-about-sixteen .rs-about-tab-content {
    margin-bottom: 30px;
    max-width: 100%;
  }
}
.rs-about-sixteen .rs-about-tab-anim .tab-pane.active .rs-about-tab-content {
  -webkit-animation: slide-down 5s ease-out;
  animation: slide-down 5s ease-out;
}
.rs-about-sixteen .rs-about-counter-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media only screen and (max-width: 991px) {
  .rs-about-sixteen .rs-about-counter-wrapper {
    flex-wrap: wrap;
    gap: 30px;
  }
}
.rs-about-sixteen .rs-counter-number-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  line-height: 0.8;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(31, 31, 31, 0.16);
}
.rs-about-sixteen .rs-counter-number {
  font-size: 100px;
  font-weight: 500;
  color: #8fbe41;
      font-family: "Bebas Neue", sans-serif;
  -webkit-text-stroke-width: 2px;
  stroke-width: 2px;
  -webkit-text-stroke-color: var(--rs-theme-medium-green);
  stroke: var(--rs-theme-medium-green);
}
@media only screen and (max-width: 1366px) {
  .rs-about-sixteen .rs-counter-number {
    font-size: 80px;
  }
}
@media only screen and (max-width: 1199px) {
  .rs-about-sixteen .rs-counter-number {
    font-size: 60px;
  }
}
.rs-about-sixteen .prefix {
  color: #8fbe41;
  font-size: 115px;
   font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
  line-height: 115px;
  -webkit-text-stroke-width: 2px;
  stroke-width: 2px;
  -webkit-text-stroke-color: var(--rs-theme-medium-green);
  stroke: var(--rs-theme-medium-green);
  line-height: 0.8;
}
@media only screen and (max-width: 1366px) {
  .rs-about-sixteen .prefix {
    font-size: 80px;
  }
}
@media only screen and (max-width: 1199px) {
  .rs-about-sixteen .prefix {
    font-size: 60px;
  }
}
.rs-about-sixteen .rs-counter-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--rs-black);
  display: inline-block;
}
@media only screen and (max-width: 1600px) {
  .rs-about-sixteen .rs-counter-title {
    font-size: 18px;
  }
}
.rs-about-sixteen .rs-about-content-inner {
  display: grid;
  grid-template-columns: 400px auto;
  gap: 30px 90px;
  margin-top: 30px;
}
@media only screen and (max-width: 1600px) {
  .rs-about-sixteen .rs-about-content-inner {
    gap: 30px 50px;
  }
}
@media only screen and (max-width: 1199px) {
  .rs-about-sixteen .rs-about-content-inner {
    grid-template-columns: 350px auto;
    gap: 30px 30px;
  }
}
@media only screen and (max-width: 991px) {
  .rs-about-sixteen .rs-about-content-inner {
    grid-template-columns: 400px auto;
  }
}
@media only screen and (max-width: 767px) {
  .rs-about-sixteen .rs-about-content-inner {
    grid-template-columns: auto;
  }
}

      .rs-feature-two .rs-feature-title {
        font-size: 35px;
    }

.hero-video {
    width: 100%;
    aspect-ratio: 16 / 9; /* rapporto del video DESKTOP: cambialo con quello reale */
  }

  /* Se il video mobile ha proporzioni diverse (es. verticale), imposta
     qui il suo rapporto reale. Stessa soglia usata nei <source media="..."> */
  @media (max-width: 767.98px) {
    .hero-video {
      aspect-ratio: 9 / 16; /* rapporto del video MOBILE: cambialo con quello reale */
    }
  }

  /* Il video è ancorato ai 4 lati del contenitore: funziona in modo
     affidabile anche su iOS/Android */
  .hero-video__el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .hero-video__overlay {
    pointer-events: none;
  }
  .hero-video__overlay .container {
    pointer-events: auto;
  }

  /* Pulsante play/pausa */
  .hero-video__toggle {
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
  }
  .hero-video__toggle:hover,
  .hero-video__toggle:focus-visible {
    background: rgba(0, 0, 0, 0.75);
  }
  .hero-video__toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  /* di default il video è in play: si vede l'icona pausa, si nasconde play */
  .hero-video__toggle .icon-play {
    display: none;
  }
  /* quando il video è in pausa (classe aggiunta via JS) si inverte */
  .hero-video__toggle.is-paused .icon-pause {
    display: none;
  }
  .hero-video__toggle.is-paused .icon-play {
    display: block;
  }

  @media (max-width: 767.98px) {
    .hero-video__toggle {
      right: 14px;
      bottom: 14px;
    }
      
 .hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}
  }
