.bottone {
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
  width: 80px;
  height: 80px;
}

.btn-icon {
  width: 25%;
  background-color: #dedede;
  display: block;
  height: 1.5px;
  position: absolute;
  transition: background-color 0.3s ease-out;
  transform: rotateY(180deg);
}

.btn-icon::after,
.btn-icon::before {
  background-color: #dedede;
  content: "";
  display: block;
  height: 1.5px;
  position: absolute;
  transition: all 0.3s ease-out;
}
.btn-icon::after {
  width: 60%;
  top: 7px;
}
.btn-icon::before {
  width: 160%;
  top: -7px;
}

.btn-icon-open {
  background-color: transparent;
}

.btn-icon-open::after {
  width: 115%;
  transform: rotate(45deg);
  top: 0px;
  right: -2px;
}
.btn-icon-open::before {
  transform: rotate(-45deg);
  top: 0;
  right: -2px;
  width: 115%;
}
.bottone {
  margin-top: 40px;
  scale: 2;
  display: none;
}
@media screen and (max-width: 768px) {
  h3 {
    font-size: 30px;
  }

  .hero {
    overflow-y: scroll;
    scroll-behavior: smooth;
  }
  .hero ::-webkit-scrollbar {
    display: none;
  }

  .cont {
    overflow-y: scroll;
    padding: 0;
    align-items: center;
    scroll-behavior: smooth;
    padding-inline: 20px;
    height: 100vh;
    margin-top: 250px;
    margin-bottom: 0;
    justify-content: start;
    /*   padding-top: 50px; */
  }
  .cont ::-webkit-scrollbar {
    display: none;
  }

  .home {
    margin-top: 350px;
  }
  .skills {
    margin-top: 200px;
  }
  .projects {
    margin-top: 150px;
  }
  .contact {
    margin-top: 220px;
  }

  nav {
    padding-top: 0;
  }
  /*   .menu {
    overflow: hidden;
    max-width: 60%;
    max-height: 0;
    transition: all 0.4s ease;
  } */

  .logo {
    margin-top: 40px;
    margin-left: -20px;
  }
  .backgr h6 {
    top: 80%;
    font-size: 120px;
    opacity: 0.3;
    z-index: 30;
  }
  .navCont {
    /*   margin-top: -40px; */
    position: absolute;
    width: 60%;
    flex-direction: column;
    right: 0;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    height: 100vh;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translate3d(0, 0, 0);
    overflow: hidden;
    max-width: 60%;
    max-height: 1px;
    transition: all 0.4s ease;
    top: -1px;
  }
  .menu-open {
    max-height: 100vh;
  }
  .directs {
    position: relative;
    margin-right: 0;
    top: -10%;
    flex-direction: column;
    justify-content: space-evenly;
    height: 40vh;
  }
  .resume {
    width: 150px;
    height: 70px;
    display: flex;
    align-items: center;
  }
  .resume a {
    padding: 40px 20px;
    display: flex;
    align-items: center;
  }
  .resume a h3 {
    font-size: 27px;
  }
  .bottone {
    display: flex;
    margin-right: -30px;
  }

  .cont .intro {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .subIntro {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .subIntro h2 {
    text-align: center;
    line-height: 55px;
  }
  .cont .intro h2 {
    font-size: 50px;
  }
  .nameIntro .wrapper {
    margin-top: -25px;
  }
  .nameIntro .wrapper .stack span {
    font-size: 55px;
  }

  .intro {
    width: 80%;
  }
  .core {
    max-width: 80%;
    display: flex;
    align-items: center;
    margin: 0;
  }
  .introCore {
    display: flex;
    align-items: center;
    padding-inline: 30px;
    width: 100%;
    padding-top: 30px;
  }
  .introCore h4 {
    text-align: center;
    line-height: 50px;
  }
  .next {
    scale: 2;
    top: 8%;
    left: 50%;
    position: relative;
    /* width: auto; */
  }
  /* ABOUT */
  .introAb {
    margin: 0 auto;
    max-width: 80%;
  }
  .introAb h2 {
    margin-top: 20px;
    font-size: 35px;
    line-height: 40px;
    text-align: center;
  }
  .coreAb {
    max-width: 80%;
    margin-top: 30px;
  }

  .coreAb h4 {
    font-size: 30px;
    line-height: 40px;
    text-align: center;
  }
  /* SKILLS */
  .contSkills {
    flex-direction: column;
    align-items: center;
  }
  .skills .next {
    top: 1%;
  }
  .skillsIntro {
    margin-top: -20px;
    width: 90%;
    align-items: center;
    display: flex;
    flex-direction: column;
    /* margin: 0 auto; */
  }

  .skillsUp .wrapper {
    margin-top: -20px;
  }
  .skillsIntro h4 {
    text-align: center;
    font-size: 35px;
    line-height: 40px;
    margin: 0 auto;
  }
  .skillsIntro h5 {
    margin-top: 10px;
    text-align: center;
    font-size: 30px;
    line-height: 35px;
  }

  .skillsCore {
    margin-top: 10px;
    width: 95%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1fr, 300px));
    column-gap: 20px;
    justify-content: center;
    align-items: center;
  }

  .skillsCore h5 {
    text-align: center;
    margin: 10px;
    font-size: 17px;
    line-height: 20px;
    /*     max-width: 80%; */
  }
  .skillsCore:nth-child() {
    margin-top: 50px;
    color: blue;
  }
  .skillsCore .sql {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 1;
    grid-column-end: 3;
  }
  /* WORKS */
  .contWorks {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-direction: column;
    padding: 0;
  }

  .contWorks a {
    height: 200px;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: row;
    width: 80%;

    margin-top: 20px;
  }
  .imgWork {
    width: 45%;
    height: 80%;
    border: 1px solid black;
    margin-left: 20px;
  }
  .imgSpace {
    background: url(./src/spaceTab.png);
  }
  .imgShop {
    background: url(./src/shopTab.png);
  }
  .imgPlan {
    background: url(./src/planTab.png);
  }
  .imgWork {
    background-size: cover;
  }

  .textWork {
    height: 90%;
    margin-top: 0;
    padding: 0;
    gap: 0;
    justify-content: space-evenly;
  }

  .textWork h5 {
    height: 30%;
    text-align: center;
    padding-top: 10px;
    text-align: center;
  }
  .textWork h2 {
    height: 60%;
    text-align: center;
    padding: 10px;
    width: 100%;
    margin-top: 0;
  }

  .projects .next {
    top: 2%;
  }

  /* CONTACT */
  .contact {
    /*     padding-top: 100px; */
    flex-direction: column;
  }
  .textContact {
    width: 90%;
    align-items: center;
    justify-content: center;
  }
  .textContact h4 {
    text-align: center;
    font-size: 40px;
    line-height: 45px;
    max-width: 100%;
  }
  .mail {
    display: flex;
    justify-content: center;
    font-size: 25px;
  }
  .textContact h2 {
    font-size: 30px;
    line-height: 35px;
    text-align: center;
    max-width: 100%;
  }

  .contContact {
    margin-top: -40px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .contContact form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
  }
  button {
    margin-left: 0;
  }
  .socials {
    top: 100%;
    padding-bottom: 40px;
  }
}
@media screen and (max-width: 611px) {
  /*   .next {
    top: 75%;
  } */

  nav {
    padding-top: -20px;
  }

  .cont {
    padding-top: 50px;
  }
  /*   .cont {
    padding-top: 220px;
  }
  .projects {
    padding-top: 50px;
  }
  .home {
    padding-top: 150px;
  } */
  .backgr h6 {
    font-size: 100px;
    top: 85%;
  }
  /* WORKS */

  .projects .next {
    top: 4%;
  }
  /* CONTACt */
  .textContact h2 {
    font-size: 20px;
  }
  .socials {
    top: 95%;
  }
  .next {
    scale: 1.5;
    left: 30%;
  }
}
@media screen and (max-width: 550px) {
  .next {
    scale: 1.3;
    left: 20%;
    top: 15%;
  }
  /*   .about {
    padding-top: 420px;
  }
  .skills {
    padding-top: 420px;
  }
*/
  /*   .projects {
    padding-top: 150px;
  }  */
  .wrapper h2 {
    margin-top: 30px;
  }
  .cont .intro h2 {
    font-size: 40px;
    line-height: 45px;
  }
  h4 {
    font-size: 33px;
    line-height: 37px;
  }
  .backgr h6 {
    font-size: 80px;
    top: 90%;
  }
  /* works */
  /*   .contWorks {
    margin-top: -100px;
  } */

  .textWork h2 {
    margin-top: -10px;
  }

  .projects .next {
    /*     left: 2%; */
    top: 2%;
  }
  /* COntact */
  /*   .contact {
    padding-top: 150px;
  } */

  .socials {
    top: 98%;
  }
}

@media screen and (max-width: 435px) {
  .hero {
    scroll-behavior: smooth;
  }
  .home {
    padding-top: 0;
  }
  .about {
    padding-top: 0;
  }
  .skills {
    padding-top: 0;
  }
  .swork {
    padding-top: 0;
  }
  .contact {
    padding-top: 0;
  }
  .cont {
    padding-top: 0;
    margin-top: 0;
    justify-content: start;
    padding-top: 130px;
    padding-bottom: 100px;
    z-index: 10;
  }
  .contWorks {
    margin-top: 0;
  }
  .next {
    top: 30px;
    margin-bottom: 50px;
  }
  .backgr {
    height: 100vh;
    transform: translateY(-50%);
    z-index: 7;
  }
  .sceltoBck {
    transform: translateY(0);
  }
  .backgr h6 {
    font-size: 45px;
    opacity: 0.4;
    color: #efe5e597;
    top: 60px;
    left: 0;
    text-align: center;
    right: 0;
    /*   animation: 3s brilla infinite linear; */
  }

  nav {
    padding-left: 0;
    padding-right: 0;
    height: 120px;
    /*     background: linear-gradient(180deg, #2f6ecc 0%, #4b6bb4 100%); */
    z-index: 11;
  }
  .logo {
    scale: 0.9;
    margin-left: 20px;
    margin-top: 20px;
  }
  .bottone {
    margin-top: 10px;
    margin-right: 20px;
    scale: 1.7;
  }
  .resume {
    scale: 0.8;
    margin-right: 0;
  }
  h3 {
    font-size: 25px;
  }
  .navCont {
    height: 100vh;
    margin-top: 0;
  }
  .directs {
    top: -5%;
    margin: 0;
  }
  .intro {
    width: 80%;
  }
  .nameIntro {
    justify-content: center;
    flex-wrap: wrap;
  }
  .cont .intro h2 {
    font-size: 35px;
    line-height: 40px;
    letter-spacing: 1px;
  }
  .core h4 {
    font-size: 33px;
    line-height: 40px;
  }

  .introCore {
    padding-inline: 0;
  }
  .nameIntro .wrapper {
    margin-top: -20px;
  }

  .wrapper h2 {
    padding-top: 15px;
  }
  .nameIntro .wrapper .stack span {
    font-size: 40px;
    line-height: 45px;
  }
  /* ABOUT */
  .introAb {
    max-width: 70%;
  }
  .introAb h2 {
    font-size: 30px;
    line-height: 25px;
  }
  .coreAb {
    max-width: 70%;
  }
  .coreAb h4 {
    font-size: 25px;
    line-height: 30px;
  }
  /* SKILLS */
  .contSkills {
    margin-top: 0;
  }
  .skillsUp {
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }
  .skillsIntro {
    width: 85%;
    margin: 0;
  }
  .skillsUp h4 {
    margin: 0 0;
    max-width: inherit;
  }
  .skillsIntro h4 {
    font-size: 30px;
    line-height: 35px;
  }
  .skillsCore {
    /* margin-top: 0; */
    padding-right: 0;
  }
  /* WORKS */
  .imgSpace {
    background: url(./src/spaceMob.png);
  }
  .imgShop {
    background: url(./src/shopMob.png);
  }
  .imgPlan {
    background: url(./src/planMob.png);
  }
  .imgWork {
    background-size: cover;
  }
  .textWork h5 {
    height: auto;
    padding-top: 0;
  }
  .textWork h2 {
    height: auto;
    margin-top: 10px;
  }
  /* CONTACT */
  .contact {
    padding-bottom: 150px;
  }
  .textContact {
    position: relative;
  }
  .textContact:nth-child(2) {
    margin-top: 200px;
  }
  .textContact h4 {
    font-size: 35px;
    line-height: 40px;
  }
  .textContact h2 {
    letter-spacing: 1.2px;
    font-size: 17px;
    line-height: 25px;
    white-space: wrap;
    margin: 0;
    text-align: center;
  }
  .textContact .mail {
    font-size: 12px;
    text-align: center;
    display: flex;
    justify-content: center;
    max-width: 100%;
  }
  .contContact {
    margin-left: 0;
  }
  .next {
    scale: 1;
    left: 5%;
  }
}
