*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* color-scheme: dark; */

}

a {
    text-decoration: none;
    transition: 0.3s;

}

a:hover {
    text-decoration: underline;
}

body {
    margin: 0;
    font-family: "Kanit", sans-serif;
    overflow-x: hidden;
    background-color: #fff;
}

/* header */
/* 
.header {
    overflow: hidden;
    background-color: #43e52f;
    padding: 5px 5%;
}
  
.header a {
    float: left;
    color: black;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px;
    line-height: 25px;
    border-radius: 4px;
  } */
  
/* .header a.logo {
    font-size: 25px;
    font-weight: bold;
} */
  
/* .header-right a:hover {
    background-color: #ddd;
    color: black;
    border-radius: 15px;
}

.logo {
    transition: 0.3s;
}

.logo:hover {
    opacity: 0.5;
    scale: 1.1;
}

.logo:hover img {
    border-radius: 50%;
}
  
.header a.active {
    background-color: rgb(27, 82, 1);
    color: white;
}

.header a.active:hover {
    background-color: rgba(43, 136, 0, 0.748);
    color: white;
}
  
.header-right {
    float: right;
    width: 350px;
}

.header-right a{
    margin-top: 5%;
    margin-left: 8%;
    transition: 0.3s;
}

.header img {
    height: 60px;
    transition: 0.3s;
    border-radius: 20%;
}
   */

/* titolo */
.intestazione {
    width: 100%;
    height: 30em; 
    background-image: url(images/gradiente_verde2.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* .titolo a{
    text-decoration: none;
    transition: 0.3s;
    color: #186601; 

} */

.intestazione a:hover {
    opacity: 0.5;
}

/* .header {
    position: absolute;
    top: 20px;
    display: flex;
    gap: 20px;
}

.header img {
    width: 40px;
    margin-top: -15%;
    transition: 0.3s;

}

.header img:hover {
    opacity: 0.3;
    scale: 1.25;
}

.header a {
    border: none;
    padding: 10px 50px;
    cursor: pointer;
    font-size: clamp(0.8rem, 2vw, 2rem);
    border-radius: 5px;
    transition: 0.3s;
    text-decoration: none;
    color: black;
    font-weight: 500;
    text-align: center;
}

.header a:hover {
    color: rgba(0, 0, 0, 0.32); 
    scale: 1.1;
} */



/* .titolo {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 10rem);
    padding-bottom: 15%;
    animation: fade-title linear;
    animation-timeline: view();
}  */

/* video  */
.video-presentazione {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
  }

  .video-small {
    display: none;
  }

  /* #background-video {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}
   */
#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;

}
  
  .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
  }
  



.img-voi {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    width: 80%;
    margin: 0 auto;
    margin-top: 6%;
}

.img-voi img {
    width: 300px;
    border-radius: 8%;
    transition: 0.3s;
    margin-right: 3%;
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 60%;
}

.text-container h2 {
    text-align: center; /* Centra il titolo sopra il paragrafo */
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 3%;
    color: #144b00;
}

.text-container p {
    font-size: clamp(1rem, 1.1vw, 1.3rem);
    line-height: 1.5;
    text-align: justify;
    margin: 0;
}

.text-container a:hover {
    text-decoration: none;
    opacity: 0.8;
}

.img-voi .green {
    color: #e94e1a;
    font-weight: 600;
}






/*div verde stabilizzato*/

.stabilizzato {
    margin-top: 8%;
    /* background-color: #3a3a3a; */
    padding: 3%;
    background-color: #e4e4e4;


}

.stabilizzato h2 {
    margin-top: 0;
    animation: fade linear;
    animation-timeline: view();
    font-size: clamp(1.5rem, 2.2vw, 2.4rem);
    text-align: center;
    color: #144b00;
    margin-bottom: 2%;
}

.grid-verde {
    display: flex; 
    gap: 3%; 
    overflow-x: auto; 
    white-space: nowrap;
    animation: fade linear;
    animation-timeline: view();

}

.carosello img{
    animation: slider linear;
    animation-timeline: scroll(root);
    /* margin-top: 5%; */
}

.immagine-stabilizzato {
    overflow: hidden;
    flex: 0 0 300px; 
    height: 300px; 
    border-radius: 10%;
    margin-bottom: 2%;
    margin-top: 2%;
}

.grid-verde img {
    object-fit: cover;
    height: 300px; 

    transition: 0.3s;
}

.immagine-stabilizzato:hover img {
    scale: 1.04;
}




.whatsapp {
    position: fixed; 
    bottom: 5%; 
    right: 2%; 
    z-index: 99; 
    cursor: pointer;
    font-size: 150%;
    font-weight: bolder;
    padding: 0;
    height: 60px;
    transition: opacity 0.5s ease;
}

.whatsapp img {
    width: 40px;
    margin-bottom: 0;
}

.pulsante{
    background-color: #186601;
    border-radius: 20px;
    transition-duration: .4s;
    box-shadow: 0 8px 16px 0 #000000a0, 0 6px 20px 0 #000000a0;
    font-size: clamp(0.6rem, 2vw, 2rem);
    padding: 10px 15px;
    float: left;
    font-weight: bold ;
    border: none;
    color:#000;
    text-decoration: none;
    min-width: 70px;
    cursor: pointer;
}

.pulsante:hover{
    background: #1866016f;
    border-radius: 15px;
    text-decoration: none;
    color:#6b6b6b;
}



/* sezione giardini */

.giardini {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
}

.giardini h2 {
    font-size: clamp(1.2rem, 2.2vw, 2.4rem);
    color: #000000;
    animation: fade linear;
    animation-timeline: view();
    margin-bottom: 5%;
    margin-top: 8%;
}

.giardini-grid {
    display: flex;
    justify-content: center;
    gap: 2%;
    flex-wrap: wrap;
    animation: fade-out linear;
    animation-timeline: view();
}

.img1, .img2, .img3 {
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10%;
    transition: 0.3s;
    margin-bottom: 5%;
}

.giardini a {
    color: #000000;
    transition: 0.3s;
    font-size: clamp(0.9rem, 1.3vw, 2rem);
}

.giardini p {
    margin-bottom: 3%;
}

.giardini a:hover {
    color: #00000085;
    /* text-decoration: none; */
}

.img1 img, .img2 img, .img3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.img1:hover img, .img2:hover img, .img3:hover img {
    scale: 1.1;
}

.img1 {
    animation: img1 linear;
    animation-timeline: view();
    /* animation-range: entry; */
}

.img3 {
    animation: img3 linear;
    animation-timeline: view();
    /* animation-range: entry; */
}

.img2 {
    animation: img2 linear;
    animation-timeline: view();
    /* animation-range: entry; */
}


/* prima e dopo*/

.bef-aft {
    display: flex; /* Utilizza un layout flexbox */
    justify-content: center; /* Centra orizzontalmente il contenuto */
    align-items: center; /* Centra verticalmente il contenuto (opzionale) */
    margin-bottom: 2%;
    font-size: clamp(1rem, 1.3vw, 1.5rem);
    animation: fade linear;
    animation-timeline: view();
}
  
.bef-aft h2 {
    margin: 0;
    margin-top: 10%;
    margin-bottom: 2%;
    margin-left: 5%;
    margin-right: 5%;
    text-align: center;
    color: #144b00;
}
  

.container {
    animation: fade linear;
    animation-timeline: view();
}

.dicono {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    color: #144b00;
}

/* div servizi */

.servizi a{
    color:rgb(255, 255, 255);
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    text-align: center;
    transition: 0.3s;
    font-weight: 540;
    /* padding: 0 10px; */
}

.servizi  a:hover{
    text-decoration: none;
}

.servizi {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    /* margin-top: 5%; */
    background-color: #0b3000;
}

.servizi p {
    color: #fff;
    width: 70%;
    font-weight: 200;
    animation: fade linear;
    animation-timeline: view();
}

.servizi .manut,
.servizi .real,
.servizi .abb,
.servizi .dis {
    position: relative;
    background-size: cover;
    background-position: center;
}

.servizi .manut::before,
.servizi .real::before,
.servizi .abb::before,
.servizi .dis::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.servizi .manut:hover::before,
.servizi .real:hover::before,
.servizi .abb:hover::before,
.servizi .dis:hover::before {
    background-color: #196601aa; 
    transition: background-color 0.8s;
}

.servizi div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 700px;
    position: relative; 
    z-index: 2;
}

.servizi div h2, .servizi div p {
    position: relative; 
    z-index: 3;
}

.servizi .manut {
    background-image: url("images/manut_low.jpg");
}

.servizi .real {
    background-image: url("images/real_low.jpg");
}

.servizi .abb {
    background-image: url("images/abb.jpg");
}

.servizi .dis {
    background-image: url("images/dis_diego_low.jpg");
}


/* 
.servizi {
    padding: 20px;
    
}

.servizi-container {
    display: grid;
    grid-template-columns: 300px 300px 300px;
    gap: 5%;
    justify-content: center;
    margin-bottom: 6%;

}

.servizi-container div {
    width: 100%;
    max-width: 300px;
    height: 250px;
    border: 5px solid #186601;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 3%;
    animation: fade linear;
    animation-timeline: view();
}

.servizi-container a {
    text-decoration: none;
} */

.servizi h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.4rem);
    color: #fff;
    animation: fade linear;
    animation-timeline: view();
    margin-bottom: 3%;
    margin-top: 2%;
    text-align: center;
    width: 90%;
}

/* slider loghi */
.scroller {
    width: 80%;
    margin: 2% auto;
}

.scroller__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.scroller__inner img {
    height: 80px;
    margin: 0 2%;
}

.scroller[data-animated="true"] {
    overflow: hidden;
    -webkit-mask: linear-gradient(
      90deg,
      transparent,
      white 20%,
      white 80%,
      transparent
    );
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    animation: scroll var(--_animation-duration, 40s)
      var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 35s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}


  
  


@media (prefers-reduced-motion: no-preference) {
    @keyframes scroll {
        to {
          transform: translate(calc(-50% - 0.5rem));
        }
    }

    @-webkit-keyframes scroll {
        to {
          transform: translate(calc(-50% - 0.5rem));
        }
    }
    
    @-moz-keyframes scroll {
        to {
          transform: translate(calc(-50% - 0.5rem));
        }
    }
    
    @-o-keyframes scroll {
        to {
          transform: translate(calc(-50% - 0.5rem));
        }
    }
    
    @-ms-keyframes scroll {
        to {
          transform: translate(calc(-50% - 0.5rem));
        }
    }

    @keyframes fade {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
        75% {scale: 1; opacity: 1;}
        100% {scale: .8; opacity: 0;}
    }

    @-webkit-keyframes fade {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
        75% {scale: 1; opacity: 1;}
        100% {scale: .8; opacity: 0;}
    }

    @-moz-keyframes fade {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
        75% {scale: 1; opacity: 1;}
        100% {scale: .8; opacity: 0;}
    }

    @-o-keyframes fade {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
        75% {scale: 1; opacity: 1;}
        100% {scale: .8; opacity: 0;}
    }

    @-ms-keyframes fade {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
        75% {scale: 1; opacity: 1;}
        100% {scale: .8; opacity: 0;}
    }

    @keyframes fade-ul {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
    }

    @-webkit-keyframes fade-ul {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
    }

    @-moz-keyframes fade-ul {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
    }

    @-o-keyframes fade-ul {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
    }

    @-ms-keyframes fade-ul {
        0% {scale: .8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
    }

    @keyframes fade-title {
        75% {scale: 1; opacity: 1;}
        80% {scale: .8; opacity: 0;}
        100% {scale: .8; opacity: 0;}
    }

    @-webkit-keyframes fade-title {
        75% {scale: 1; opacity: 1;}
        80% {scale: .8; opacity: 0;}
        100% {scale: .8; opacity: 0;}
    }

    @-moz-keyframes fade-title {
        75% {scale: 1; opacity: 1;}
        80% {scale: .8; opacity: 0;}
        100% {scale: .8; opacity: 0;}
    }

    @-o-keyframes fade-title {
        75% {scale: 1; opacity: 1;}
        80% {scale: .8; opacity: 0;}
        100% {scale: .8; opacity: 0;}
    }

    @-ms-keyframes fade-title {
        75% {scale: 1; opacity: 1;}
        80% {scale: .8; opacity: 0;}
        100% {scale: .8; opacity: 0;}
    }

    @keyframes fade-out {
        80% {opacity: 1;}
        100% {opacity: 0;}
    }

    @-webkit-keyframes fade-out {
        80% {opacity: 1;}
        100% {opacity: 0;}
    }

    @-moz-keyframes fade-out {
        80% {opacity: 1;}
        100% {opacity: 0;}
    }

    @-o-keyframes fade-out {
        80% {opacity: 1;}
        100% {opacity: 0;}
    }

    @-ms-keyframes fade-out {
        80% {opacity: 1;}
        100% {opacity: 0;}
    }

    

    

    @media (max-width: 600px) {
        

        @keyframes fade-title {
            90% {scale: 1; opacity: 1;}
            100% {scale: .8; opacity: 0;}
        }

        @-webkit-keyframes fade-title {
            90% {scale: 1; opacity: 1;}
            100% {scale: .8; opacity: 0;}
        }

        @-moz-keyframes fade-title {
            90% {scale: 1; opacity: 1;}
            100% {scale: .8; opacity: 0;}
        }

        @-o-keyframes fade-title {
            90% {scale: 1; opacity: 1;}
            100% {scale: .8; opacity: 0;}
        }

        @-ms-keyframes fade-title {
            90% {scale: 1; opacity: 1;}
            100% {scale: .8; opacity: 0;}
        }
    }


}
/* @media (prefers-reduced-motion: no-preference) {
    @keyframes scroll {
        to {
          transform: translate(calc(-50% - 0.5rem));
        }
      }
      
    @keyframes fade {
        0% {scale:.8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
        75% {scale: 1; opacity: 1;}
        100% {scale:.8; opacity: 0;}
        100% {scale:.8; opacity: 0;}
    }

    @keyframes fade-ul {
        0% {scale:.8; opacity: 0;}
        25% {scale: 1; opacity: 1;}
    }

    @keyframes fade-title {
        75% {scale: 1; opacity: 1;}
        80% {scale:.8; opacity: 0;}
        100% {scale:.8; opacity: 0;}
    }

    @keyframes fade-out {
        80% {opacity: 1;}
        100% {opacity: 0;}
    }


   

        @keyframes fade-title {
            90% {scale: 1; opacity: 1;}
            100% {scale:.8; opacity: 0;}
        }
    } 


    @media (min-width: 601px) and (max-width: 1100px) {
        @keyframes fade-title {
            85% {scale: 1; opacity: 1;}
            95% {scale:.5; opacity: 0;}
        }
    }
    
} */

@media (max-width: 1200px) {
    .servizi {
        display: grid;
        grid-template-columns: 50% 50%;
    }

    .servizi div {
        height: 500px;
    }
}


@media (max-width: 1100px) {
    /* .img-voi {
        flex-direction: column;
        margin-left: 0;
    }

    .img-voi p{
        margin: 0 5%;
    } */

    /* .servizi-container {
        grid-template-columns: 300px 300px;
    
    } */

    .video-presentazione {
        height: 70vh;
    }

    .scroller__inner img {
        margin: 0 1%;
    }
}

@media (max-width: 800px){ 
    .img-voi {
        flex-direction: column;
        width: 100%;
    }

    .text-container {
        order: -1;
        text-align: center;
    }

    .img-voi img {
        margin: 20px 0;
        margin-right: 0;
        width: 200px;
    }

    .text-container {
        width: 80%;
        max-width: none;
    }
}

@media (max-width: 700px){ 

    /* .servizi-container {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 20px;
    }

    .servizi-container div {
        width: 100%;
        max-width: 300px;
        height: 150px;
    } */

    .servizi h2 {
        margin-bottom: 6%;
    }
    
    .video-presentazione {
        height: 45vh;
    }

}

@media (max-width: 600px) {

    /*.header-right {
        width: auto;
    }

    .header-right a{
        margin-left: 0%;
        margin-top: 8%;
    }*/

    .intestazione {
        background-image: url(images/gradiente_verde-cell.jpg);
    }

    /*.titolo {
        margin: 0;
        margin-bottom: 55%;
    }*/

    .video-presentazione {
        height: 30vh;
    }

    .video-large {
        display: none;
    }
    
    .video-small {
        display: block;
    }

    /* .img-voi {
        flex-direction: column;
        align-items: center;
        justify-content: center; 
        margin-left: 8%;
        margin-right: 8%;
        margin-top: 10%;
    }


    .img-voi p {
        font-size: 1rem;
        width: 100%;
    } */

    .stabilizzato {
        padding: 5%;
        padding-bottom: 8%;
    }

    .grid-verde img:hover {
        scale: 1.1;
        /* border-radius: 30%; */
    }

    .giardini-grid {
        flex-direction: column;
        align-items: center;

    }


    .img1, .img2, .img3 {
        width: 100%;
        height: auto;
    }

    .img1 {
        animation: img1;
        animation-timeline: view();  
    }
    
    .img3 {
        animation: img3;
        animation-timeline: view();
    }
    
    .img2 {
        animation: img2;
        animation-timeline: view();
    }

    .servizi {
        display: grid;
        grid-template-columns: 100%;
    }

    .servizi div {
        height: 400px;
    }

    .scroller {
        width: 95%;
    }

    .scroller__inner img {
        height: 60px;
    }


}

@media (min-width: 1001px) and (max-width: 1620px) {
    .img1, .img2, .img3 {
        width: 300px;
        height: 300px;
    }


}


@media (min-width: 601px) and (max-width: 1000px) {
    .img1, .img2, .img3 {
        width: 450px;
        height: 450px;
        margin-bottom: 5%;
    }

    
}

