html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  background-color: #333;
}

:root {
  --light: #fff;
  --dark: #333;
  --flashing: #FAD400;
  --h-cover: 75vh;
}

.btext {
  font-size: 3.5em;
  font-weight: bolder;
}

.mtext {
  font-size: 2.5em;
}

.ntext {
  font-size: 2em;
}

.stext {
  font-size: 0.8em;
}

.itext {
  font-size: 1.2em;
  font-weight: bolder;
  text-transform: uppercase;
}

.introtext {
  font-size: 2em;
  color: #fff;
  font-weight: bold;
  text-shadow: var(--dark);
}

.centro {
  font-size: 3em;
  font-weight: bold;
}

.centra-testo {
  text-align: center;
}



/*INIZIO HEADER*/
.header {
  position: fixed;
  top: 1;
  left: 1;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  z-index: 1;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(10px);
}

.menu_nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.logo {
  width: 13em;
  margin: 1% 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.logo a {
  width: 100%;
  margin: 0;
  padding: 1%;
  display: flex;
  align-items: center;
}

.logo img {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background-color: var(--light);
}

.linkedin {
  width: 5em;
  margin: 0;
  padding: 0;
  display: flex;
  text-align: center;
}

.linkedin img {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.menu_nav h1 {
  color: var(--light);
  padding: 0 1%;
}


/*FINE HEADER*/


.main {
  width: 100%;
  margin: 0 auto;
}

.hero {
  width: 100%;
  min-height: var(--h-cover);
  display: flex;
  flex: 1 1 0;
  vertical-align: middle;
}

.hero1 {
  background: url(../media/img01.png) no-repeat center center;
  background-size: cover;
}

.hero2 {
  background: url(../media/img02.jpg) no-repeat center center;
  background-size: cover;
}

.hero_cover {
  width: 100%;
  min-height: var(--h-cover);
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
}

/*INIZIO TESTO*/
.hero_cover_text {
  width: 80%;
  height: fit-content;
  margin: 20em auto 10em auto;
  padding: 4em;
  border: solid 1px var(--flashing);
  color: var(--light);
  text-align: center;
}

ul {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  gap: .5em;
  list-style: none;
}

li {
  margin: 1em auto;
  padding: .5em 1em;
  border-radius: 2em;
  background-color: var(--flashing);
  color: var(--dark);
}

/*FINE TRESTO*/

/*INZIO FOOTER*/
.footer {
  width: 100%;
  height: min-content;
  margin: 0 auto;
  padding: 0;
}

.footer-text {
  width: 100%;
  margin: 0 auto;
  padding: 1%;
  color: var(--light);
  display: flex;
  justify-content: center;
  background-color: var(--dark);
}

/*FINE FOOTER*/

.scroll-to-top, .scroll-to-bottom {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--flashing);
    color: var(--dark);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    display: none; /* Mostra di default */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.scroll-to-bottom{
  display: block;
}

.scroll-to-top:hover, .scroll-to-bottom:hover {
    background-color: var(--dark);
    color: var(--light);
    transform: scale(1.1);
}


*,
*:hover,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}


/*ANIMAZIONI*/
@keyframes appear {
  from{
    transform: translateX(200px);
    scale: 0.5;
    
  }
  to{
    transform: translateX(0px);
    scale: 1;
    
  }
  
}
@keyframes entry {
  from{
    opacity: 0;
    clip-path: inset(100% 100% 0 0);
    
  }
  to{
    opacity: 1;
    clip-path: inset(0 0 0 0);
    
  }
  
}

.hero{
  animation: entry linear;
  animation-timeline: view();
  animation-range: entry 0 cover 10%;
}
.ntext{
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0 cover 30%;
}



@media only screen and (max-width: 479px) {
  * {
    line-height: 2em
  }

  .btext {
    font-size: 2em;
  }

  .mtext {
    font-size: 1.5em;
  }

  .ntext {
    font-size: 1.2em;
  }

  .stext {
    font-size: .5em;
  }

  .itext {
    font-size: 2em;
  }

  .introtext {
    font-size: 4em;
  }

  .header {
    padding: 1% 0;
  }

  .logo {
    width: 6em
  }

  .centro {
    font-size: 1.5em;
  }

  .linkedin {
    width: 3em;
  }
  .hero{
    min-width: min-content;
  }
  .hero_cover_text {
    width: 85%;
    padding: 4%;
    text-align: left;
    padding: 2em 3em;
  }
}

@media only screen and (min-width:480px) and (max-width: 779px) {
  * {
    line-height: 2em
  }

  .btext {
    font-size: 3em;
  }

  .mtext {
    font-size: 1.5em;
  }

  .ntext {
    font-size: 1.8em;
  }

  .stext {
    font-size: .5em;
  }

  .itext {
    font-size: 2em;
  }

  .introtext {
    font-size: 4em;
  }

  .header {
    padding: 1% 0;
  }

  .logo {
    width: 6em
  }

  .centro {
    font-size: 1.5em;
  }

  .linkedin {
    width: 3em;
  }
  .hero{
    min-width: min-content;
  }
  .hero_cover_text {
    width: 85%;
    padding: 4%;
    text-align: left;
    padding: 2em 3em;
  }
}

@media only screen and (min-width:780px) and (max-width: 1280px) {
  * {
    line-height: 2em
  }

  .btext {
    font-size: 4em;
  }

  .mtext {
    font-size: 1.5em;
  }

  .ntext {
    font-size: 2em;
  }

  .stext {
    font-size: .5em;
  }

  .itext {
    font-size: 2em;
  }

  .introtext {
    font-size: 4em;
  }

  .header {
    padding: 1% 0;
  }

  .logo {
    width: 6em
  }

  .centro {
    font-size: 1.5em;
  }

  .linkedin {
    width: 3em;
  }
  .hero{
    min-width: min-content;
  }
  .hero_cover_text {
    width: 85%;
    padding: 4%;
    text-align: left;
    padding: 2em 3em;
  }
}