/* Tavolozza colori */
:root{
    --primary: #ccff00;
    --secondary: #ff00aa;
    --accent: #3b3b3b;
    --light: #fff;
    --dark: #0b0b0c;
  }

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li{
list-style-type: none;
}

/* Utilità */
.res{
  width: 100%;
  max-width: 500px;
}
html{
  scroll-behavior: smooth;
}

/* Background */

.bg{
   background-image: url(https://i.stack.imgur.com/sIIwU.gif);
   opacity: 0.2;
   position: absolute;
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   z-index: -100;
  }

/* Header */

header{
    background-position: center;
  }
li{
  list-style: none;
}

a{  
  cursor: url(img/stellina.svg);
  text-decoration: none;
  color: var(--dark);
}

.logo a:hover{
  color: var(--secondary);
  transition: .5s;
}

/* Navbar web */

.navbar{
  overflow: hidden;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px;
  padding: 20px;
  border-radius: 10px;
  border-style: groove;
  border-width: 1px;
  border-color: var(--secondary);
  font-family: 'Inter';
  }

.logo{
  position: relative;
  margin-left: 10px;
  letter-spacing: 2px;
  margin-top: 5px;
  font-size: 45px;
  font-family: 'Hugiller DEMO';
}

.navbar .menu{
  display: flex;
  gap: 1rem;
}
.menu li{
  font-family: 'Inter';
  padding: 20px 30px;
  height: 60px;
  border-radius: 10px;
  border-style: groove;
  border-width: 1px;
  border-color: var(--secondary);
}

.navbar li:hover{
  font-weight: 600;
  background: var(--secondary);
} 

/* Navbar phone */

@media(max-width: 736px){
.navbar{
  border: none;
  display: inline;
}
.menu{
  padding: 20px 40px;
}
.menu li{
  margin: auto;
  text-align: center;
  padding: 10px;
  height: 40px;
  width: 200px;
  
}
.logo{
  margin: auto;
  text-align: center;
}
}

/* Chi sono */

.chisono__intro span{
  color: var(--secondary);
}

.chisono__intro{
  color: #3b3b3b;
  font-size: 50px;
  font-family: 'Hugiller DEMO';
  align-items: center;
  margin-top: 40px;
}

.chisono__text{
  text-align: justify;
  padding: 50px 100px;
  font-size: 20px;
  color: #ff00aa;
  font-family: 'Inter';
  line-height: 25pt;
}
.chisono__text li{
  width: 200px;
  font-size: 30px;
  font-family: 'Hugiller DEMO';
  margin-top: 50px;
  padding: 5px;
  border-radius: 30px;
  border-style: groove;
  border-width: 1px;
  border-color: var(--secondary);  
  text-align: center;
}

.chisono__text li:hover{
  background-color: var(--secondary);
}

  @media(max-width: 768px){
    .chisono__text{
      padding: 25px;
      font-size: 20px;
      line-height: 20pt;
    }
    .chisono__text li{
      width: 300px;
    }
  }

  /* Hero */

  .cards__titolo h1{
    margin-top: 100px;
    display: flex;
    font-size: 50px;
    font-family: 'Playfair Display';
    letter-spacing: 1px;
    justify-content: center;
  }
  
  .cards__titolo h1:hover{
    color: var(--secondary);
  }

  .cards{
    margin: 0 auto;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    }

  .card{
    margin-top: 30px;
  }
  
  .card__image{
    border-radius: 10px;
    border-style: groove;
    border-width: 1px;
    border-color: var(--dark);  
    width: 100%;
    filter: grayscale(1);
  }

  .card__content h2{
    margin-top: 5px;
    line-height: 1.5;
    font-size: 1.5em;
    font-family: 'Inter';
    font-weight: 600;
    color: var(--secondary);
  }

  .card__content p{
    line-height: 1.5;
    font-size: 1.2em;
    font-family: 'Inter';
  }

  .card__image:hover{
    filter: none;
  }

  @media(max-width: 736px){
    .cards{
      margin: 20px;
    }
    .card__image{
      filter: none;
    }
  }

/* Freccia top */

.btt {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: bottom;
  -ms-flex-pack: bottom;
  justify-content: center;
  -webkit-box-align: bottom;
  -ms-flex-align: bottom;
  align-items: center;
  -ms-flex-line-pack: center;
  align-content: center
}

.btt__icon {
  margin-bottom: 50px;
  font-size: 50px;
  position: relative;
  -webkit-animation-name: arrow;
  animation-name: arrow;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  text-align: center;
}

@-webkit-keyframes arrow {
  0% {
      top: 0px;
  }
  50% {
      top: 20px;
  }
  100% {
      top: 0px;
  }
}

@keyframes arrow {
  0% {
      top: 0px;
  }
  50% {
      top: 20px;
  }
  100% {
      top: 0px;
  }
}

.anima2 {
  position: relative;
  -webkit-animation-name: anima2;
  animation-name: anima2;
  -webkit-animation-duration: 8s;
  animation-duration: 8s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  text-align: center;
}

@-webkit-keyframes anima2 {
  0% {
      top: 0px;
      left: 0px;
  }
  25% {
      top: 0px;
      left: 100px;
  }
  50% {
      top: 100px;
      left: 100px;
  }
  75% {
      top: 100px;
      left: 0px;
  }
  100% {
      top: 0px;
      left: 0px;
  }
}
/* Gestione footer */

.footer h1{
 font-family: 'Playfair Display';
 font-size: 80px;
 text-align: left;
 margin-left: 150px;
}

footer img{
  width: 20%;
  text-align: center;
  margin-bottom: -5px;
  margin-top: 0;
}

footer{
  margin-top: 150px;
  width: 100%;
  text-align: center;
}
.footer__social{
  display: flex;
}
.footer__social .box{
  flex-basis: 50%;
  padding: 10px;
  color: var(--secondary);
}
.box a{
  font-size: 1.5em;
  font-family: 'Inter';
}

.box a:hover{
  color: #0b0b0c;
  font-weight: 600;
  padding: 0px;
  background: var(--secondary);
  cursor: var(--primary);
}

@media(max-width: 736px){
.footer__social{
  flex-direction: column;    
  text-align: center;
}
.footer h1{
  font-size: 50px;
  text-align: center;
  margin-left: 0;
 }
}

/* Animazione testi in alto */

.animate-reveal{
  opacity: 0;
  -webkit-animation: reveal 800ms cubic-bezier(0, 1, 0.5, 1) 1 normal forwards;
     -moz-animation: reveal 800ms ease-in 1 normal forwards;
       -o-animation: reveal 800ms cubic-bezier(0, 1, 0.5, 1) 1 normal forwards;
          animation: reveal 800ms cubic-bezier(0, 1, 0.5, 1) 1 normal forwards;
}

@-webkit-keyframes reveal{
  0% {
    opacity: 0;
    -webkit-transform: translateY(100%);
       -moz-transform: translateY(100%);
         -o-transform: translateY(100%);
            transform: translateY(100%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
       -moz-transform: translateY(0);
         -o-transform: translateY(0);
            transform: translateY(0);
  }
}


/* Loading */
#loading_screen {
  display: block;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  left: 0px;
  top: 0px;
  height: 100vh;
  width: 100%;
  text-align: center;
  padding: 80px;
  background-image: url(https://i.stack.imgur.com/sIIwU.gif);
  box-sizing: border-box;
  z-index: 2005;
}

.rotate {
  animation: rotation 15s infinite;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}


#loading_screen h1 {
  font-family: 'Hugiller DEMO';
  font-size: 60px;
}