html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    max-width: 1920px;
    margin: 0 auto;
    font-family: 'Raleway', sans-serif;
}

h2 {
    line-height: 65px;
    margin: 0;
    font-size: 40px;
}

.titoloBlu, .testoBlu {
    color:#2DB9C4;
}

.titoloGrigio {
    color: #5b5b5b;
}

.titoloBianco {
    color: #fff;
}

section {
    scroll-margin-top: 150px;
}

.welcomeContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0, 0.5);
  }

  .titolo4 {
    color: #2db9c4;
    background-color: white;
  }

@media only screen and (min-width:720px){
	header {
		background-color: #fff;
		box-shadow: 0px 1px 3px rgba(0,0,0,.2);
		height: 110px;
		z-index: 2;
		position: relative;
	}
    .sectionWelcome {
        background-image: url('img/welcome.webp');
        height: 650px;
        background-position: center;
        background-size: cover;
    }
    h1 {
        color: #fff;
        font-size: 40px;
        text-align: center;
      }
    .titolo1 {
        background-color: #2DB9C4;
        font-size: 60px;
      }
}

@media only screen and (max-width:720px){
	header {
		background-color: #fff;
		box-shadow: 0px 1px 3px rgba(0,0,0,.2);
		height: 75px;
		z-index: 2;
		position: relative;
	}
    .sectionWelcome {
        background-image: url('img/welcome.webp');
        height: 650px;
        background-size: cover;
        background-position: center;
    }
    h1 {
        color: #fff;
        font-size: 30px;
        text-align: center;
        padding: 0 10px;
      }
    .titolo1 {
        background-color: #2DB9C4;
        font-size: 40px;
      }
}

nav {
    display: flex;
    height: 100%;
    align-items: center;
    padding-left: 20px;
}

a {
    text-decoration: none;
}

@media only screen and (min-width:720px){
	.pageContent {
		margin-top: 100px;
	}
}

@media only screen and (max-width:720px){
	.pageContent {
		margin-top: 75px;
	}
}

section{
    display: flex;
}

section.white {
    background-color: #fff;
}

footer h3, h3 {
    color: #fff;
    font-size: 20px;
    line-height: 20px;
}

.white h2, .privacy h3, .white h3 {
    color: #2DB9C4;
}

.hidden, .firstSection {
    opacity: 0;
    transform: translateY(50px);
}

@media only screen and (max-width: 720px){
    .sectionAbout {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }
}

.sectionAppear {
    opacity: 1;
    transition: all 1s;
    width: 100%;  
    transform: translateY(0px);
}

@media only screen and (min-width: 720px){
    .desktopNav {
        display: flex;
        position: fixed;
        width: 100%;
        top: 0;
        height: 100px;
        z-index: 9;
    }
    .mobileNav, .mobileMenu {
        display: none;
    }
}

@media only screen and (max-width: 720px){
    .desktopNav {
        display: none;
    }
    .mobileNav {
        display: block;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 9;
    }
    .mobileMenu {
        margin-top: -290px;
        display: block;
        position: fixed;
        background: white;
        height: auto;
        width: 100%;
        box-shadow: 0px 1px 3px rgba(0,0,0,.2);
        z-index: 8;
    }
}
@media only screen and (min-width:720px){
	.logoContainer {
		width: 80px;
		padding: 10px 20px;
		float: left;
	}
}

@media only screen and (max-width:720px){
	.logoContainer {
		width: 60px;
		padding: 10px 20px;
		float: left;
	}
}


.hambMenu {
    float: right;
    width: 50px;
    padding: 20px 20px;
    margin-bottom: -20px;
}

.hambMenu img {
    cursor: pointer;
    width: 100%;
}

.menuElement {
    padding: 10px;
    color: #5b5b5b;
    font-weight: 400;
    font-size: 12px;
    cursor: pointer;
}

.menuElement:hover {
    color: #2DB9C4;
}

.imgContainer {
    display: inline-block;
    align-items: end;
    -webkit-box-align: end;
    display: -webkit-inline-box;
    line-height: 0;
    height: 100%;
}

@media only screen and (min-width: 720px){
    .imgContainer {
        width: 30%;
    }
}

@media only screen and (max-width: 720px){
    .imgContainer {
        width: 50%;
    }
}

/*---------------------------------------*/

.welcome {
    color: white;
    font-size: 30px;
    padding: 20px 5%;
    line-height: 15px;
    align-self: center;
}

.contact {
    margin: 0 auto;
    padding-bottom: 50px;
}

@media only screen and (min-width: 720px){
    .welcome {
        display: flex;
        width: 60%;
    }
    .welcome img {
        margin-bottom: 20px;
        transition: 300ms;
        transform: rotate(0deg);
        margin-right: 40px;
        width: 100px;
    }
    .contact {
        width: 80%;
    }
}

@media only screen and (max-width: 720px){
    .welcome {
        display: block;
        width: 80%;
    }
    .welcome img {
        margin-bottom: 10px;
        transition: 300ms;
        transform: rotate(0deg);
        margin-right: 40px;
        width: 70px;
    }
    .contact{
        width: 80%;
    }
}


.welcome img:hover {
    transition: 300ms;
    transform: rotate(360deg);
}

.welcome span {
    font-size: 14px;
}


/*--------- SERVIZI -----------*/
.servizi {
    width: 100%;
    margin: -65px auto 0;
    display: flex;
    flex-direction: column;
}

.containerServizi {
    width: 100%;
    border-top: 5px solid white;
  }

.servizi h2 {
    padding: 0 10%;
}

.servizio {
    display: flex;
}

.descrizioneServizio h3, .descrizioneServizio p {
    margin: 20px;
    color: white;
    text-align: justify;
}

.imgServizio img {
    width: 100%;
}

@media only screen and (min-width: 970px){
    .servizioP {
        flex-direction: row-reverse;
    }

    .descrizioneServizio {
        background-color: #2db9c4;
        width: 50%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .imgServizio {
        line-height: 0;
        width: 50%;
    }    
}

@media only screen and (max-width: 970px){
    .servizioP, .servizioD {
        flex-direction: column;
    }

    .descrizioneServizio {
        background-color: #2db9c4;
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 50px 5%;
    }

    .imgServizio {
        line-height: 0;
        width: 100%;
    }
}

/*--------- PROJECTS -----------*/
.projectsContainer {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
  }


@media only screen and (min-width: 1100px){
    .projectPic {
        line-height: 0;
        width: 25%;
        background-size: cover;
        height: 25vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }
}

@media only screen and (min-width: 600px) and (max-width: 1100px){
    .projectPic {
        line-height: 0;
        width: 50%;
        background-size: cover;
        height: 50vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }
}

@media only screen and (max-width: 600px){
    .projectPic {
        line-height: 0;
        width: 100%;
        background-size: cover;
        height: 100vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
    }
}

.sectionProgetti {
    flex-direction: column;
    background-color: #5b5b5b;
    border-top: 5px solid white;
    padding-top: 40px;
  }

  .sectionProgetti h2 {
    padding: 0 10%;
  }

  .projectPic img {
    width: 30px;
    height: auto;
  }

  .btnContainer {
    width: 98%;
    text-align: right;
    margin-top: 0%;
  }

  .btnBlu {
    border: none;
    padding: 4px 4px;
    color: white;
    background-color: #2db9c4;
    cursor: pointer;
    box-shadow: -2px 2px 3px rgba(0,0,0,.5);
    transition: all 200ms;
    line-height: 0;
  }

  .btnBlu:hover {
    transform: scale(1.1);
    transition: all 200ms;
  }

  .modal {
    line-height: 17px;
    color: white;
    text-align: justify;
    padding: 30px 5%;
    background: rgba(0,0,0,.8);
    display: none;
  }
/*------------ ABOUT -------------*/
.aboutImgContainer img {
    border-radius: 50%;
    width: 300px;
}
.sectionAbout {
    width: 80%;
    justify-content: center;
    align-items: center;
    margin: 80px auto;
  }
.aboutText {
    text-align: justify;
}
@media only screen and (min-width: 720px){
    .sectionAbout {
        flex-direction: row;
      }
    .aboutImgContainer img {
        margin-right: 40px;
    }
}

@media only screen and (max-width: 720px){
    .sectionAbout {
        flex-direction: column;
      }
}

/* ------- CONTACT ---------- */
.formErrors {
    color: red;
    font-size: 10px;
}

.contact input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #2DB9C4;
    border-radius: 8px;
    box-sizing: border-box;
}

.contact label {
    color: #2DB9C4;
    margin-bottom: 8px;
    display: block;
    margin-top: 15px;
}

.contact textarea {
    height: 100px;
}

.contact .smallFields {
    display: inline-block;
    margin: 1%;
}

@media only screen and (min-width: 720px){
    .contact .smallFields {
        width: 47%;
    }
}

@media only screen and (max-width: 720px){
    .contact .smallFields {
        width: 96.3%;
    }
}

.contact .largeFields {
    display: inline-block;
    width: 96.3%;
    margin: 1%;
}

.contact button {
    margin-top: 20px;
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 15px;
    border-radius: 0;
    transition: 200ms;
    background-color: #2DB9C4;
    margin-right: 2.8%;
}

.submitContainer {
    text-align: right;
}

.sentmailNotice {
    background-color: #2db9c4;
    color: white;
    text-align: center;
    padding: 10px;
  }

  .sentmailNotice ul {
    text-align: left;
  }

/* ---------- FOOTER ----------*/

footer {
    display: flex;
    justify-content: center;
    background-color: #5b5b5b;
    align-items: center;
    padding: 30px;
    flex-direction: column;
    box-shadow: -2px 0px 3px rgba(0,0,0,.3);
    z-index: 3;
    position: relative;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
    width: 100%;
}

@media only screen and (min-width: 720px){
.footerMiddle {
    color: #fff;
    font-size: 16px;
    text-align: center;
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin: 0 0 20px 0;
    flex-direction: row;
}

.footerMiddle div {
    width: 250px;
}
}

@media only screen and (max-width: 720px){
    .footerMiddle {
        color: #fff;
        font-size: 16px;
        text-align: center;
        display: flex;
        width: 100%;
        justify-content: space-around;
        margin: 0 0 20px 0;
        flex-direction: column;
        align-items: center;
    }
    
    .footerMiddle div {
        width: 250px;
        margin: 5px;
    }
}

.footerBottom {
    color: #fff;
    font-size: 10px;
    text-align: center;
}

.socialFooter img {
    margin: 10px 5px 0 5px;
    cursor: pointer;
}

.socialFooter img:hover {
    margin: 10px 5px 0 5px;
    cursor: pointer;
    transform: rotateY(360deg);
    transition: 1s;
}

footer a:visited, footer a {
    color: white;
}

.privacy {
    color: #848484;
    width: 80%;
    margin: 0 auto;
    text-align: justify;
    padding: 120px 0;
}

/*--------COOKIES ----------*/
@media only screen and (min-width: 720px){
    .cookieBanner {
        position: fixed;
        z-index: 99;
        background-color: white;
        box-shadow: 0 -3px 4px rgba(0,0,0,.3);
        padding: 20px 25%;
        width: 50%;
        bottom: 0;
      }
}

@media only screen and (max-width: 720px){
    .cookieBanner {
        position: fixed;
        z-index: 99;
        background-color: white;
        box-shadow: 0 -3px 4px rgba(0,0,0,.3);
        padding: 20px 5%;
        width:90%;
        bottom: 0;
    }
}

.cookieTitle {
    font-size: 20px;
    color: #2db9c4;
    margin-bottom: 20px;
  }

  .cookieText {
    font-size: 15px;
    color: #5b5b5b;
    margin-bottom: 30px;
  }

  .cookieBannerBtn {
    border: none;
    padding: 5px 20px;
    font-size: 15px;
    border-radius: 5px;
    color: white;
    background-color: #5b5b5b;
    float: left;
    margin-right: 20px;
    cursor: pointer;
  }

  .cookieBannerBtn.accept {
    background-color: #2db9c4;
    margin-bottom: 30px;
  }

.manageCookieSettings {
    display: none;
}

.cookieSelection {
    margin-bottom: 30px;
}

.cookieSelection label {
    color: #616161;
    font-size: 15px;
}

/*------------- DIRECT CONTACTS -------------*/
.directContactsContainer {
    display: flex;
    position: fixed;
    flex-direction: column;
    bottom: 30px;
    z-index: 4;
  }

  .directContact {
    margin-bottom: 20px;
    background-color: #2db9c4;
    line-height: 0;
    padding: 4px;
    box-shadow: 1px 1px 3px rgba(0,0,0,.3);
  }