/* ############################################ */
/* ############################################ */
/*                  Generale                    */
/* ############################################ */
/* ############################################ */

.tmp{
    height: 100vh;
    width: 100vw;
    background-color: yellow;
}

html, body {
    overscroll-behavior: none;
    scroll-behavior: smooth;
  }

body{
    position: relative;
    margin: 0;
    padding: 0;
    width: 100vw;
    font-family: 'Poppins', sans-serif;
    align-items: center;
    background-color: #ECECE4;
    overflow-x: hidden;
}

.column{
    display: flex;
    flex-direction: column;
}

.row{
    display: flex;
    flex-direction: row;
}

main{
    width: 100%;
}

.button{
    background-color: white;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 0.8em;
    font-weight: 400;
    text-transform: uppercase;
    width: auto !important;
    color: black;
    text-decoration: none;
}


#preloader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 11;
    margin: 0;
    padding: 0;
}

#preloader img{
    width: 20%;
    opacity: 0;
    animation: 1.5s ease-in-out 0s infinite alternate breath_opacity;
}

@keyframes breath_opacity {
    from {
      opacity: 0;
    }
  
    to {
      opacity: 1;
    }
}


/* ############################################ */
/* ############################################ */
/*                      Header                  */
/* ############################################ */
/* ############################################ */


#navbar{
    position: fixed;
    top: 0;
    justify-content: space-between;
    align-items: center;
    padding: 0 3%;
    height: 15vh;
    width: 94%;
    z-index: 10;
}

#navbar img{
    width: 50%;
}

#navbar a{
    width: 20%;
}




/* ############################################ */
/* ############################################ */
/*                      Main                    */
/* ############################################ */
/* ############################################ */



/* ------------ Welcome ------------ */

#welcome{
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#welcome-video{
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#welcome video{
    height: 100%;
}

#welcome-text span{
    /* background: rgb(82,154,35);
    background: linear-gradient(90deg, rgba(82,154,35,1) 0%, rgba(150,191,126,1) 48%, rgba(82,154,35,1) 100%); */
    background-color: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-size: 10em;
    position: absolute;
    bottom: -20px;
    left: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;

}

#welcome-text span:nth-child(even){
    animation: 16s linear 0s infinite  text_defile;
    /* background-color: aquamarine; */
}

#welcome-text span:nth-child(odd){
    /* background-color: red; */
    animation: 16s linear 8s infinite  text_defile;
}


@keyframes text_defile {
    from {
        transform: translateX(0%);
    }
  
    to {
        transform: translateX(-200%);
    }
}


/* ------------ About us ------------ */


#about-us{
    height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
}

#about-us img{
    width: 30%;
    margin-right: 5%;
    border-radius: 10px;
    z-index: 2;
}

#about-us div{
    width: 30%;
    margin-left: 5%;
    z-index: 1;
}

/* ------------ Tools ------------ */

#news{
    align-items: center;
    height: 100vh;
    width: calc(33vw * 5);
}

#news .news-card{
    width: 31%;
    margin: 0 1vw;
    height: 70%;
}

.news-bottom{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.news-top{
    width: 100%;
    height: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.news-top img{
    width: 100%;
}


.news-bottom h2{
    margin: 0;
    margin-top: 15px;
    font-weight: 600;
}

.news-bottom p{
    margin: 0;
}

.news-bottom p:nth-child(2){
    position: absolute;
    top: 15px;
    right: 0;
}



/* ------------ Before/After ------------ */


#before-after{
    height: 100vh;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.before-after-container{
    width: 35%;
    height: 90%;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
 
.before-after-container div{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 6;
    background-size: cover;
    border-radius: 10px;
}

.before-after-container .before{
    background-image: url('../img/before.png');
}

.before-after-container .after{
    background-image: url('../img/after.png');
    width: 0%;
    overflow: hidden;
}

.before h3{
    position: absolute;
    top: 15px;
    right: 15px;
    margin: 0;
}

.after h3{
    position: absolute;
    top: 15px;
    left: 15px;
    margin: 0;
}

/* ------------ Separator ------------ */


#separator{
    width: 100%;
    overflow: hidden;
    height: 100vh;
    justify-content: center;
    align-items: center;
    position: relative;
    
}

.separator-filter{
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: black;
}

#separator img{
    width: 130%;
}


/* ------------ Tools ------------ */


#tools{
    width: 100%;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.tools-card{
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: space-between;
}

.tools-img{
    overflow: hidden;
    width: 50vw;
    height: calc(100vh - 3vw);
    margin: 1.5vw;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.tools-img img{
    width: 100%;
}

.tools-text{
    width: 30%;
    position: absolute;
    left: 60vw;
    top: 50vh;
    opacity: 0;
    transform: translateY(-50%);
}

#tools .tools-card:nth-child(1) .tools-text{
    opacity: 1;
}

.tools-text p:nth-child(1){
    font-weight: 300;
    font-size: 1.1em;
}

.tools-text h4{
    font-size: 3.5em;
    font-weight: 800;
    margin: 0;
}

.tools-text p:nth-child(2){
    font-size: 1.6em;
    font-weight: 500;
}


/* ------------ Opinions ------------ */

#opinions{
    width: 100%;
    padding-top: 30vh;
    padding-bottom: 30vh;
    justify-content: center;
    align-items: center;
}

.opinions-card{
    width: 30%;
    background-color: white;
    box-shadow: 0px 0px 80px -17px rgba(0,0,0,0.3);
    padding: 3%;
    margin: 5%;
    border-radius: 10px;
    overflow: hidden;
}

.opinions-card img{
    width: 5vw;
    height: 5vw;
    
}

.opinions-card p{
    text-align: justify;
}

.opinions-title{
    height: 5vw;
    justify-content: center;
    margin-left: 1vw;
}

.opinions-title *{
    margin: 0;
}


/* ------------ Contact ------------ */

#contact{
    width: 100%;
    height: 100vh;
    overflow: hidden;
    justify-content: space-around;
}   

.contact-img{
    height: 94vh;
    width: 48vw;
    overflow: hidden;
    border-radius: 10px;
}

.contact-img img{
    width: 100%;
}

.contact-form{
    height: 94vh;
    width: 48vw;
    position: relative;
}

.contact-form input[type="text"],.contact-form input[type="email"],.contact-form input[type="phone"], .contact-form textarea{
    border: none;
    border-bottom: black solid 2px;
    background-color: transparent;
    resize: none;
    padding: 10px 0;
    font-size: 1.1em;
    margin: 20px 0;
}

.contact-form input::placeholder, .contact-form textarea::placeholder{
    color: black;
    font-family: 'Poppins', sans-serif;
}

.contact-form textarea{
    font-family: 'Poppins', sans-serif;
    height: 30vh;

}

.contact-form input[type="submit"]{
    align-self: flex-end;
    bottom: 0;
    position: absolute;
    border: none;
}

/* ------------ Footer ------------ */

footer{
    padding: 5vh 2vw;
    margin-top: 10vh;
    height: 30vh;
    justify-content: space-between;
    position: relative;
}

footer img{
    height: 15vh;
}

footer ul{
    height: 100%;
    list-style: none;
    margin: 0;
}

footer li{
    margin: 0;
}

footer a{
    color: black;

}

.footer-copyright{
    position: absolute;
    bottom: 5vh;
    right: 2vw;
    opacity: 0.7;
}




@media only screen and (max-width : 1280px) {

    .button{
        font-size: 1.6em;
        padding: 20px 40px;
        border-radius: 20px;
    }
    
    #navbar{
        height: auto;
        margin: 2vh 0;
    }
    
    #navbar img{
        width: 60%;
    }
    
    #navbar a{
        width: 50%;
    }
    


    #about-us{
        flex-direction: column;
    }

    #about-us img{
        width: 85%;
        border-radius: 30px;
        margin-right: 0%;
        z-index: 2;
    }
    
    .about-text{
        text-align: justify;
    }

    #about-us div{
        width: 85%;
        margin-left: 0%;
        margin-top: 5vh;
        z-index: 1;
        font-size: 2em;
    }

    #news{
        width: 100vw;
        overflow: hidden;
        flex-direction: column;
        height: auto;
        margin: 20vh 0;
    }

    #news .news-card{
        width: 80vw;
        margin: 5vh 10%;
        font-size: 2em;
    }

    .news-top {
        border-radius: 30px;
    }

    .before-after-container{
        width: 90%;
        border-radius: 30px;
    }




    .before h3, .after h3{
        bottom: 15px;
        top: auto;
    }


    #separator{
        display: none;
    }


    #tools{
        height: auto;
        flex-direction: column;
    }

    .tools-card{
        width: 80vw;
        margin: 0 10%;
        flex-direction: column;
        height: auto;
        margin: 5vh;
    }

    .tools-img{
        border-radius: 30px;
        width: 100%;
        height: auto;
        height: 50vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .tools-img img{
        height: 100%;
        width: auto;

    }

    .tools-text{
        opacity: 1;
        left: auto;
        top: auto;
        position: relative;
        width: 100%;
        transform: none;
        height: auto;
        margin-top: 5%;
    }

    .tools-text p:nth-child(1){
        display: none;
    }

    .opinions-card{
        width: 65%;
        margin: 10vh;
        padding: 8vw;
        font-size: 2em;
        border-radius: 30px;
    }

    .opinions-card div:nth-child(1){
        height: 7vh;
        align-items: center;
    }

    .opinions-card div:nth-child(1) img{
        height: 100%;
        width: auto;
    }

    .opinions-title{
        margin-left: 4%;
    }

    #contact{
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .contact-img{
        width: 90vw;
        border-radius: 30px;
        display: flex;
        height: 60vh;
        justify-content: center;
        align-items: center;
    }

    .contact-img img{
        height: 100%;
        width: auto;
    }

    .contact-form{
        width: 90vw;
        font-size: 2em;
        height: auto;
    }

    .contact-form input[type="submit"]{
       position: relative;
       font-size: 1em;
    }

    footer{
        flex-direction: column !important;
        font-size: 2em;
        padding: 0 5vw;
    }

    footer img {
        width: 40vw;
        margin-bottom: 5vh;
    }

    footer ul{
        padding: 0;
        margin: 0;
        margin-bottom: 5vh;
    }

    footer ul:nth-child(3){
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-copyright{
        position: relative;
        bottom: auto;
        right: auto;
    }


}
