<style>
.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  --slider-position: 50%;
}

.image-wrapper {
  position: relative;
  width: 100%;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.after-image {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 0 0 var(--slider-position));
  z-index: 2;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}

.handle {
  position: absolute;
  top: 0;
  left: var(--slider-position);
  width: 6px;
  height: 100%;
  background: #fff;
  transform: translateX(-50%);
  z-index: 4;
}

.label {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-weight: bold;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 5;
}
    .img-comp-container {
  position: relative;
  height: 200px; /*should be the same height as the images*/
}

.img-comp-img {
  position: absolute;
  width: auto;
  height: auto;
  overflow:hidden;
}

.img-comp-img img {
  display:block;
  vertical-align:middle;
}

.img-comp-slider {
  position: absolute;
  z-index:9;
  cursor: ew-resize;
  /*set the appearance of the slider:*/
  width: 40px;
  height: 40px;
  background-color: #2196F3;
  opacity: 0.7;
  border-radius: 50%;
}
    /* Sezione promo con testo a sinistra e immagine a destra */
.promo-section {
    background: #000;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.promo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

.promo-text {
    flex: 1;
}

.promo-text h2 {
    font-size: 3rem;
    color: #5bc032;
    margin-bottom: 20px;
}

.promo-text p {
    font-size: 2rem;
    color: #fff;
    line-height: 1.5;
}

.promo-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.promo-image img {
    width: 100%;
    
    border-radius: 12px;
    object-fit: cover;
}

/* Layout responsive: immagine sotto il testo su mobile */
@media (max-width: 768px) {
    .promo-container {
        flex-direction: column;
        text-align: center;
    }

    .promo-image {
        margin-top: 20px;
    }

    .promo-text h2 {
        font-size: 1.8rem;
    }

    .promo-text p {
        font-size: 1rem;
    }
}

    /* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; /* subito sotto il link */
    left: 0;
    background-color: #000;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1001;
    flex-direction: column;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background-color: #5bc032;
    color: #000;
}

/* Mostra il dropdown al passaggio del mouse */
.dropdown:hover .dropdown-content {
    display: flex;
}

/* Mobile: dropdown cliccabile */
@media (max-width: 768px) {
    .dropdown-content {
        position: relative;
        top: 0;
        box-shadow: none;
    }
}

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: "Inter", system-ui, sans-serif;
            color: #222;
            overflow-x: hidden;
        }

        /* ---------------------- HEADER ---------------------- */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 64px;
            background: #000;
            color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 24px;
            z-index: 1000;
        }

        .logo {
            font-size: 2rem;
            font-weight: 700;
            color: #5bc032;
            text-decoration: none;
        }

        nav {
            display: flex;
            gap: 24px;
            align-items: center;
        }

        nav a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
        }

        nav a:hover {
            color: #5bc032;
        }

        .menu-toggle {
            display: none;
            font-size: 1.8rem;
            background: none;
            border: none;
            color: #fff;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            nav {
                position: absolute;
                top: 64px;
                right: 0;
                background: #000;
                flex-direction: column;
                width: 100%;
                display: none;
            }

            nav a {
                padding: 16px;
                border-top: 1px solid rgba(255, 255, 255, 0.1);
                width: 100%;
                text-align: center;
            }

            .menu-toggle {
                display: block;
            }

            nav.active {
                display: flex;
            }
        }

        /* ---------------------- SLIDESHOW ---------------------- */
 /* ---------------------- SLIDESHOW ---------------------- */
.slideshow-container {
    margin-top: 64px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.slides {
  display: flex;
  transition: transform 2s ease;
  width: 100%;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

/* Immagini responsive */
.slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Altezza fissa su desktop */
@media (min-width: 769px) {
  .slideshow-container {
    height: auto;
    overflow: visible;
  }
  .slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* Bottoni navigazione */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  background-color: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  user-select: none;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.prev { left: 16px; }
.next { right: 16px; }

/* Dots indicatori */
.dots {
  text-align: center;
  position: absolute;
  bottom: 16px;
  width: 100%;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
}

.dot.active {
  background-color: white;
}
        /* ---------------------- SEZIONE PRODOTTI ---------------------- */
.products-section { background: #f5f7fa; padding: 80px 40px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 30px; } .product-card { flex: 1 1 250px; /* si adattano automaticamente */ background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; padding: 16px; transition: transform 0.3s, box-shadow 0.3s; min-width: 200px; max-width: 300px; } .product-card:hover { transform: translateY(-6px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); } .product-card img { width: 100%; height: auto; max-height: 200px; object-fit: contain; border-radius: 8px; margin-bottom: 8px; } .product-name { font-weight: 600; color: #0b1b2a; font-size: 1rem; } @media (max-width: 768px) { .products-section { background: #f5f7fa; padding: 80px 0; /* tolto margine laterale */ display: flex; justify-content: space-evenly; /* distribuisce equamente */ align-items: stretch; flex-wrap: wrap; /* le manda a capo se serve */ gap: 30px; width: 100vw; /* prende tutta la larghezza del viewport */ } .product-card { width: 90%; max-width: 300px; } }
        /* ---------------------- NEWSLETTER ---------------------- */
        .newsletter-section {
            background: #5bc032;
            color: #fff;
            padding: 60px 20px;
            text-align: center;
        }

        .newsletter-section h2 {
            font-size: 2rem;
            margin-bottom: 10px;
            color: #fff;
        }

        .newsletter-section p {
            margin-bottom: 30px;
            font-size: 1rem;
            color: #fff;
        }

        .newsletter-form {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
        }

        .newsletter-form input[type="email"] {
            padding: 12px 16px;
            font-size: 1rem;
            border-radius: 6px;
            border: none;
            width: 300px;
            max-width: 90%;
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            margin-top: 8px;
            justify-content: center;
        }

        .newsletter-form button {
            padding: 12px 24px;
            background-color: #000;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.3s;
        }

        .newsletter-form button:hover {
            background-color: #5bc032;
        }

        @media (max-width: 600px) {
            .newsletter-form {
                flex-direction: column;
                align-items: center;
            }

            .newsletter-form input[type="email"] {
                width: 100%;
            }
        }
        
        /*-----------------menu-----------------*/
        

        /* ---------------------- FOOTER ---------------------- */
 /* ---------- FOOTER ---------- */
.site-footer {
  background-color: #fff;
  color: #000;
  padding: 60px 40px 20px;
  font-family: "Inter", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-section {
  flex: 1 1 220px;
}

.footer-title {
  font-size: 1.2rem;
  color: #5bc032;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #5bc032;
}

/* Icone social */
.footer-links.social a img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
  filter: invert(100%);
  transition: filter 0.3s;
}

.footer-links.social a:hover img {
  filter: invert(60%) sepia(100%) hue-rotate(190deg) saturate(700%);
}

/* Bottom bar */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #aaa;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* ---------- MOBILE: TUTTO VISIBILE ---------- */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-section {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
  }

  .footer-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .footer-links {
    display: block; /* sempre visibili */
  }

  .footer-links li {
    margin-bottom: 6px;
  }
}


/* Centrare la sezione */
.text-list-container {
    display: flex;
    justify-content: center; /* centro orizzontale */
    padding: 60px 20px;      /* distanza dal resto */
    background: #f5f7fa;     /* colore di sfondo opzionale */
}

/* Stile lista */
.text-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 600px; /* larghezza massima della lista */
}

.text-list li {
    padding: 12px 16px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

/* Hover */
.text-list li:hover {
    background-color: #4db8ff;
    color: #fff;
}

/* Click attivo */
.text-list li.active {
    background-color: #008000;
    color: #fff;
}
</style>