*{
  margin: 0;
  box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');
:root{
  --d1--: #0F0F19;
  --d2--: #161627;
  --d3--: #22223B;
  --d4--: #4A4E69;
  --l1--: #9A8C98;
  --l2--: #C9ADA7;
  --l3--: #F2E9E4;
  scroll-behavior: smooth;
}
body{
  overflow-X: hidden;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}
button,
select,
a,#moon,#sun, .ibmburger, #trigger {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  cursor: pointer;
}
img, a{
  user-drag: none; 
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
::selection{
  background-color: #F2E9E4;
  color: #161627;
}
*::not(h1){
  -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
::-webkit-scrollbar{
  width: 10px;
}
::-webkit-scrollbar-thumb{
  border-radius: 15px;
}
.flex{
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}
a:focus, .ibmburger:focus{
  outline: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  display: flex;
  transition: all .3s ease;
  flex-flow: row nowrap;
  justify-content: space-between;
}
.header a{
  text-decoration: none;
}
.logo{
  position: relative;
  width: 300px;
  height: 100%;
}
.logo a{
  position: absolute;
  left: 0;
  top: 0;
  transition: 0.6s ease;
}
.logo a img{
  max-width: 300px;
  width: 80%;
}
.desktop-nav{
  min-width: 30%;
  /* background: rgb(34,34,59); */
  /* background: linear-gradient(0deg, rgba(34,34,59,0) 0%, rgba(34,34,59,1) 100%); */
  height: 70px;
}
.desktop-nav ul{
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
}
.desktop-nav ul li{
  display: inline-block;
  padding: 20px 30px;
}
.desktop-nav ul li a{
  font-weight: 400;
  transition: all .3s ease;
  font-size: 18px;
}
.mobile-trigger{
  z-index: 200;
}
.mobile-nav{
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: -100vh;
  left: 0;
  transition: all 0.3s ease-out;
  width: 100vw;
  height: 100vh;
}
.mobile-nav.active{
  top: 0;
}

.mobile-nav::after{
  content: '';
  position: absolute;
  width: 200vw;
  height: 200vw;
  border-radius: 50%;
  z-index: -1;
  top: -50vw;
  left: -50vw;
}
.mobile-nav ul{
  list-style-type: none;
  padding: unset;
}
.mobile-nav ul li{
  padding: 20px;
  text-align: center;
}
.mobile-nav ul li a{
  text-decoration: none;
  font-size: 1.2em;
}
.desktop-nav{
  display: none;
}
.ibmburger {
  position: absolute;
  border-radius: 50%;
  width: 50px;
  flex-flow: column nowrap;
  transition: 0.2s linear;
  height: 50px;
  right: 20px;
  cursor: pointer;
  top: 20px;
}
.ibmburger div{
  transform: rotate(0deg);
  transition: 0.2s linear;
  height: 3px;
  position: absolute;
  width: 20px;
}
.ibmburger #top-bar{
  top: 35%;
}
.ibmburger #mid-bar{
  top: 50%;

}
.ibmburger #bot-bar{
  top: 65%;

}
.ibmburger.close{
  transform: rotate(180deg);
}
.ibmburger.close #top-bar{
  transform: rotate(45deg);
  top: 50%;
  bottom: 50%;
}
.ibmburger.close #bot-bar{
  bottom: 50%;
  top: 50%;
  transform: rotate(-45deg);
}
.ibmburger.close #mid-bar{
  opacity: 0;
}



/*hero*/
.hero{
  height: auto;
  width: 100vw;
  display: block;
  position: relative;
  overflow-X: hidden;
}
.hero .text{
  width: 100%;
  position: absolute;
  text-align: right;
  padding: 15vw;
  top: 50vh;
}
.hero .text a{
  text-decoration: none;
  font-size: 1.2em;
  background-color: #4A4E69;
  color: #F2E9E4;
  border-radius: 25px;
  padding: 5px 10px;
  transition: 0.2s ease;
  width: 100%;
  margin-top: 2em;
}
.hero .text a:hover{
  background-color: #F2E9E4;
  color: #161627;
}
.hero .text .scaled{
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: right;
  line-height: 2em;
  font-size: 18px;
  margin-bottom: .5em;
  font-weight: 500;
}
.hero .text .scaled span{
  width: 100%;
}
.hero .text .scaled .front{
  position: absolute;
  top: -0.5em;
  right: 140px;
  width: max-content;
}
.hero .text .scaled .slash{
  width: 1px;
  position: absolute;
  height: 2em;
  right: 140px;
  top: -4px;
  transform: rotate(30deg);
  background-color: #F2E9E4;
  z-index: 3;
}
.hero .text .back{
}
.landscape{
  height: 100%;
  /* width: 100%; */
}
.landscape svg{
  width: 100%;
  height: auto;
}
.cover{
  width: 100vw;
  height: 100vh;
  background-color: #0F0F19;
  opacity: 1;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
}
#sun{
  transform: translateY(150%);
  
}

.is-falling{
  transition: 0.9s cubic-bezier(0.6, -0.18, 0.735, 0.045) ;
  opacity: 0;
  transform: translateY(150%)!important;
}
.is-rising{
  transition: 0.9s cubic-bezier(.15,.41,.45,1.19);
  opacity: 1;
  transform: translateY(0%)!important;
  transform:  rotate(1deg);
  
}
.landscape .desktop{
  display: none;
}
.landscape .mobile{
  display: block;
}
.content{
  /* position: absolute; */
  position: relative;
  min-height: 200vh;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
  width:100%;
  /* top: 0; */
  /* left: auto; */
  z-index: 0;
  /* right: auto; */
  margin-bottom: 100px;
  /* height: 1800px; */
  padding: 10px;

}
.content.ty{
  min-height: unset;
  height: 100vh;
}
.mask{
  height: auto;
  position: relative;
  overflow: hidden;
  transition: all ease-in 1.2s;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mask .wave{
  width: 100%;
}
.content .hr{
  width: 80%;
  margin: 50px 0px;
  height: 1px;
  position: relative;
  background-color: #F2E9E4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content .hr::after{
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  background-color: #F2E9E4;
  border: 10px solid #22223B;
}
.content #portfolio h2{
  font-size: 2.5em;
  text-align: center;
  font-weight: 500;
}
.content #portfolio .row{
  display: flex;
  flex-flow: column nowrap;
  width: 100vw;
  margin: 40px auto;
  padding: 20px 20px;
  justify-content: center;
  align-items: center;
}
.content #portfolio .row .thumb{
  width: 80vw;
  height: 80vw;
  flex-flow: row nowrap;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  order: 1;
}
.content #portfolio .row .desc{
  width: 100%;
  flex-direction: column;
  order: 0;
  text-align: center;
  line-height: 2.5em;
}
.content #portfolio .row .thumb, .content #portfolio .row .desc{
  display: flex;
  justify-content: center;
}
.content #portfolio .row .desc h3{
  font-weight: 500;
  font-size: 1.7em;
}
.content #portfolio .row .desc h3 a{
  color: #F2E9E4;
}

.content #portfolio .row .desc p span.hashtag{
  text-transform: uppercase;
  font-size: 10px;
  border-radius: 25px;
  padding: 5px 10px;
  background-color: #4A4E69;
}


.content #portfolio .row .thumb.col-1 a{
 width: 100%;
}
.content #portfolio .row .thumb.col-2 a{
  width: 50%;
 }
 .content #portfolio .row .thumb.col-3 a{
  width: 33.33%;
 }
 .content #portfolio .row .thumb.col-4 a{
  width: 25%;
 }
.content #portfolio .row .thumb a{
  height: 100%;
  transition: 0.2s ease all;
  display: flex;
  justify-content: center;
}
.content #portfolio .row .thumb img{
  height: 100%;
  position: relative;
}



.content #portfolio .row .thumb a{
  overflow: hidden;
}
.content #portfolio .row .thumb.flask{
  justify-content: center;
  width: 100%;
}
.content #portfolio .row .thumb.flask svg{
  height: 80%;
} 

/* lab */
.lab.content{
  padding: 20vh 50px;
  min-height: 100vh;
}
.lab .title{
  position: relative;
  color: #F2E9E4;
}
.lab .title::before{
  background-color: #F2E9E4;
  content: '';
  height: 100%;
  width: 5px;
  transform: skew(-28deg, -9deg);
  left: -10px;
  position: absolute;
}
.lab .title h1{
  margin-left: 20px;
}
.lab-showcase{
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.lab-showcase div{
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
}
.lab-showcase span{
  color: #F2E9E4;
  font-weight: 600;
  font-size: 1.1em;
}
.lab-showcase a {
  height: 170px;
  overflow: hidden;
  border-radius: 25px;
  box-shadow: #0F0F19 0px 0px;
  transition: 0.3s ease;
  margin: 40px;
}
.lab-showcase a:hover{
  box-shadow: #0F0F19 10px 10px;
}
.lab-showcase a img{
  border-radius: 25px;
  height: 100%;
  transition: 0.3s ease ;
}
.lab-showcase a:hover img{
  transform: scale(1.2);
}
footer{
  position: relative;
  height: 350px;
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-around;
  padding-bottom: 40px;
}
footer .col{
  display: flex;
  flex-flow: column nowrap;
  color: #F2E9E4;
  width: 100%;
  text-align: center;
}
footer .logo a{
  position: relative;
  width: 100%;
}
footer .info{
  line-height: 2.5em;
  padding-left: 2em;
}
footer .social a{
  font-size: 20px;
  margin: 10px;
}
/* .mobile .nebbia{
  animation: clouds 3s infinite alternate-reverse ease-in-out;
} */
/*animazioni test*/
@keyframes clouds{
  0%{transform: translateX(-5%);}
  100%{transform: translateX(5%);}
}

/*desktop*/
@media screen and (orientation: landscape) {
  .mobile-trigger{
    display: none;
  }
  .desktop-nav{
    display: block;
  }
  .mobile-nav{
    display: none;
  }
  .hero{
    height: auto;
    display: block;
    position: relative;
  }
  .landscape svg{
    height: 100%;
    width: auto;

  }
  .landscape .desktop{
    display: block;
  }
  .landscape .mobile{
    display: none;
  }
  .landscape{
    height: auto;
    width: 100%;
    overflow-x: hidden;
  }
  
  .hero .text{
    width: 25vw;
    position: absolute;
    right: 10vw;
    padding: unset;
    top: 60vh;
  }
  .hero .text a{
    font-size: small;
  }
  .hero .text h1{
    font-size: 1.4em;
    text-align: justify;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .is-rising{
    transform: translateY(0%)!important;
    transform:  rotate(1deg);
    
  }

  .content{
    padding: 100px;
  
  }
  .content #portfolio h2, .content #portfolio .row .desc h3{
    text-align: left;
  }
  .content #portfolio .row .thumb a:hover{
    width: 90%;
  }
  .content #portfolio .row{
    width: 100%;
    padding: 20px 0px;
    flex-flow: row nowrap;
  }
  .content #portfolio .row .thumb, .content #portfolio .row .desc{
    width: 50%;
    margin: 0px 20px;
    max-width: 500px;
  }
  .content #portfolio .row .desc{
    text-align: left;
  }
  .content #portfolio .row .thumb{
    height: 300px;
    width: 50%;
    order: unset;
  }
  .content #portfolio .row .thumb.b{
    border-radius: 5px;
  
  }
  footer{
    height: 200px;
    flex-flow: row nowrap;
  }
  footer .col{
    width: 25%;
  }
}