* {
  box-sizing: border-box;
  font-family: Montserrat;
}

@font-face {
  font-family: Montserrat;
  src: url("../font/Montserrat/Montserrat-Regular.ttf");
}
@font-face {
  font-family: Montserrat-bold;
  src: url("../font/Montserrat/Montserrat-Bold.ttf");
}
body {
  color: white;
  background-color: #1c2630;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

#navbar {
  position: fixed;
  z-index: 500;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  margin: 20px auto;
  padding: 15px 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  width: 90vw;
  height: 70px;
  background-color: rgba(28, 38, 48, 0.8);
  transition: top 0.9s ease;
}
#navbar #logo {
  height: 100%;
  aspect-ratio: 1/1;
  cursor: pointer;
}
#navbar #logo img {
  width: 100%;
}
#navbar #anchors {
  margin-left: auto;
  margin-right: 20px;
  width: min(100%, 715px);
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 50px;
}
#navbar #anchors li {
  height: 100%;
  border-radius: 10px;
  transition: 0.5s;
}
#navbar #anchors li a {
  padding-left: 20px;
  padding-right: 20px;
  text-decoration: none;
  border-radius: 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  text-align: center;
  transition: 0.8s;
}
#navbar #anchors li a:hover {
  background-color: #72A0C1;
}
#navbar #burger-menu {
  display: none;
  width: 35px;
  aspect-ratio: 1/1;
  margin: 0 0 0 auto;
  cursor: pointer;
  transition: opacity 0.25s ease;
}
#navbar #burger-menu img {
  width: 110%;
}

#wrapper-hero {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}
#wrapper-hero #hero {
  margin: auto 0;
}
#wrapper-hero #hero h1 {
  text-align: center;
  font-size: 3.2em;
  margin: auto 0;
  font-family: Montserrat-bold;
}
#wrapper-hero #hero h1 .mobile {
  display: none;
}
#wrapper-hero #hero h1 span {
  color: #1ca9c9;
  font-family: Montserrat-bold;
}
#wrapper-hero #hero p {
  width: 70%;
  margin: 40px auto;
  text-align: center;
  font-size: 1.6em;
}
#wrapper-hero #hero a {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  text-decoration: none;
}
#wrapper-hero #hero a .cta {
  width: min(40%, 200px);
  height: 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.1em;
  background-color: #1ca9c9;
}

#anchors-hidden {
  display: flex;
  position: fixed;
  background-color: rgba(28, 38, 48, 0.9);
  top: 0;
  left: 0;
  transform: translateY(-100%);
  z-index: 400;
  width: 100vw;
  height: 100vh;
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}
#anchors-hidden.hidden-menu {
  transform: translateY(0);
}
#anchors-hidden li {
  width: 50%;
  height: 50px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  border-radius: 10px;
  transition: margin 1.3s ease;
  opacity: 1;
}
#anchors-hidden li.open {
  margin: 15px auto;
}
#anchors-hidden li a {
  text-decoration: none;
  color: white;
  width: 100%;
  height: 100%;
  line-height: 50px;
  border-radius: 10px;
  transition: 0.8s;
}
#anchors-hidden li a:hover {
  background-color: #72A0C1;
}

.fade {
  transition: opacity 1.5s ease;
}

.out {
  opacity: 0;
}

.highlight {
  background-color: #72A0C1;
}

.anchor-div {
  visibility: hidden;
  pointer-events: none;
  margin: 0;
  height: 30px;
  width: 100%;
}

#about-me {
  background-color: #D1D5DB;
  color: black;
  padding: 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20%;
  min-height: 600px;
}
#about-me #container-description h3 {
  width: 100%;
  text-align: center;
  margin: 20px auto 40px;
  font-size: 2em;
  font-family: Montserrat-bold;
}
#about-me #container-description h3 span {
  font-family: Montserrat-bold;
  color: #1ca9c9;
}
#about-me #container-description #wrapper {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 300px;
}
#about-me #container-description #wrapper #description {
  width: min(100%, 800px);
  text-align: left;
}
#about-me #container-description #wrapper #border1 {
  border: solid 6px #1c2630;
  border-radius: 400px;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 0 15%;
  transition: width 1.5s ease;
}
#about-me #container-description #wrapper #border1 #border2 {
  border: solid 4px #D1D5DB;
  border-radius: 400px;
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
}
#about-me #container-description #wrapper #border1 #border2 #profile-pic {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 400px;
  background-image: url("../immagini/foto_profilo3.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 15%;
}
#about-me #history {
  position: relative;
  width: 63%;
  margin-left: 5%;
  display: flex;
  flex-wrap: wrap;
  padding-left: 40px;
}
#about-me #history #content {
  width: 93%;
  padding-left: 12px;
}
#about-me #history #content h4 {
  margin-top: 0;
  position: relative;
}
#about-me #history #content h4::before {
  content: "";
  position: absolute;
  display: inline-block;
  width: 18px;
  aspect-ratio: 1/1;
  border-radius: 50px;
  background: gray;
  left: -50px;
  top: 5px;
}
#about-me #history #splitter {
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: black;
  left: 35px;
}

#skills {
  width: 90%;
  margin: 50px auto 50px;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
#skills h2 {
  text-align: center;
  margin: 20px auto 30px;
  font-size: 2em;
  font-family: Montserrat-bold;
}
#skills h3 {
  width: 100%;
  text-align: center;
  margin: 0 auto 40px;
}
#skills #frontend {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  transition: 0.5s;
  min-height: 100px;
  justify-content: center;
  gap: 5%;
}
#skills #frontend div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
#skills #frontend div img {
  width: 30px;
  aspect-ratio: 1/1;
  -o-object-fit: contain;
     object-fit: contain;
}
#skills #frontend div .eccezione {
  width: 35px;
  aspect-ratio: 1/1;
}
#skills #frontend div p {
  margin: auto 0;
}
#skills #backend {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  transition: 0.5s;
  min-height: 100px;
  justify-content: center;
  gap: 5%;
  display: none;
}
#skills #backend div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
#skills #backend div img {
  width: 30px;
  aspect-ratio: 1/1;
  -o-object-fit: contain;
     object-fit: contain;
}
#skills #backend div p {
  margin: auto 0;
}
#skills #tools {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  transition: 0.5s;
  min-height: 100px;
  justify-content: center;
  display: none;
}
#skills #tools div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
#skills #tools div img {
  width: 30px;
  aspect-ratio: 1/1;
  -o-object-fit: contain;
     object-fit: contain;
}
#skills #tools div p {
  margin: auto 0;
}
#skills #wrapper-skills {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}
#skills #wrapper-skills #options-skills {
  width: 47%;
  display: flex;
  margin: 10px auto;
  justify-content: space-between;
}
#skills #wrapper-skills #options-skills p {
  transition: opacity 0.3s ease, font-size 0.3s ease;
  width: 20%;
}
#skills #wrapper-skills #options-skills p:nth-child(1) {
  text-align: center;
}
#skills #wrapper-skills #options-skills p:nth-child(2) {
  text-align: center;
}
#skills #wrapper-skills #options-skills p:nth-child(3) {
  text-align: center;
}
#skills #wrapper-skills #buttons {
  position: relative;
  width: 40%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
#skills #wrapper-skills #buttons .front {
  position: absolute;
  z-index: 10;
  left: 0;
  width: 40px;
  aspect-ratio: 1/1;
  border-radius: 50px;
  background-color: white;
  background-image: url("../loghi/frontend.png");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center center;
  transition: 0.3s;
  cursor: pointer;
}
#skills #wrapper-skills #buttons .back {
  position: absolute;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  aspect-ratio: 1/1;
  border-radius: 50px;
  background-color: white;
  background-image: url("../loghi/backend.png");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center center;
  transition: 0.3s;
  cursor: pointer;
}
#skills #wrapper-skills #buttons .tools {
  position: absolute;
  z-index: 10;
  right: 0;
  width: 30px;
  aspect-ratio: 1/1;
  border-radius: 50px;
  background-color: white;
  background-image: url("../loghi/tools.png");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center center;
  transition: 0.3s;
  cursor: pointer;
}
#skills #wrapper-skills #buttons .line {
  width: 98%;
  margin: 0 auto;
  height: 10px;
  background-color: lightgray;
}
#skills .alto {
  margin: 70px 0 70px;
  opacity: 1;
  transition: 1s;
}
#skills .basso {
  margin: 100px 0 40px;
  opacity: 0;
  transition: 1s;
}

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

.show {
  opacity: 1;
  transform: translateY(0);
}

.observed {
  transition: opacity 1s ease, transform 0.7s ease;
}

.div-overflow {
  overflow-y: hidden;
}

.small {
  width: 10%;
}

.big {
  width: 18%;
}

.not-selected {
  opacity: 0.3;
  font-size: 0.9em;
}

#footer {
  padding: 20px 20px 30px;
  width: 100%;
  background-color: #19607c;
  color: white;
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 70px;
}
#footer #wrapper-contacts {
  width: 50%;
}
#footer #wrapper-contacts h3 {
  width: 100%;
  text-align: center;
  font-size: 1.7em;
}
#footer #wrapper-contacts #contacts {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  align-items: center;
}
#footer #wrapper-contacts #contacts p {
  width: 100%;
  text-align: center;
  margin-top: 10px auto;
}
#footer #wrapper-contacts #contacts p:last-child {
  margin-bottom: 0;
}
#footer #wrapper-social {
  width: 50%;
}
#footer #wrapper-social h3 {
  width: 100%;
  text-align: center;
  font-size: 1.7em;
}
#footer #wrapper-social #icons {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8%;
  align-items: center;
}
#footer #wrapper-social #icons #linkedin {
  display: block;
  position: relative;
  z-index: 10;
  width: 40px;
  aspect-ratio: 1/1;
  background-image: url("../loghi/linkedin.png");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center center;
  border-radius: 50px;
  background-color: white;
  transition: 0.5s;
  cursor: pointer;
}
#footer #wrapper-social #icons #linkedin:hover {
  box-shadow: 0 0 20px 10px rgba(5, 184, 233, 0.896), 0 0 40px 20px rgba(13, 210, 221, 0.3);
}
#footer #wrapper-social #icons #github {
  display: block;
  position: relative;
  z-index: 10;
  width: 40px;
  aspect-ratio: 1/1;
  background-image: url("../loghi/github.png");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center center;
  border-radius: 50px;
  background-color: white;
  transition: 0.5s;
  cursor: pointer;
}
#footer #wrapper-social #icons #github:hover {
  box-shadow: 0 0 20px 10px rgba(5, 184, 233, 0.896), 0 0 40px 20px rgba(13, 210, 221, 0.3);
}
#footer #wrapper-social #icons #facebook {
  display: block;
  position: relative;
  z-index: 10;
  width: 40px;
  aspect-ratio: 1/1;
  background-image: url("../loghi/facebook.png");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center center;
  border-radius: 50px;
  background-color: white;
  transition: 0.5s;
  cursor: pointer;
}
#footer #wrapper-social #icons #facebook:hover {
  box-shadow: 0 0 20px 10px rgba(5, 184, 233, 0.896), 0 0 40px 20px rgba(13, 210, 221, 0.3);
}
#footer #wrapper-social #icons #instagram {
  display: block;
  position: relative;
  z-index: 10;
  width: 40px;
  aspect-ratio: 1/1;
  background-image: url("../loghi/instagram.png");
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center center;
  border-radius: 50px;
  background-color: white;
  transition: 0.5s;
  cursor: pointer;
}
#footer #wrapper-social #icons #instagram:hover {
  box-shadow: 0 0 20px 10px rgba(5, 184, 233, 0.896), 0 0 40px 20px rgba(13, 210, 221, 0.3);
}

@media screen and (max-width: 415px) {
  #navbar #anchors {
    display: none;
  }
  #navbar #burger-menu {
    display: block;
  }
  #wrapper-hero #hero h1 {
    font-size: 1.7em;
  }
  #wrapper-hero #hero h1 .mobile {
    display: block;
  }
  #wrapper-hero #hero p {
    width: 80%;
    font-size: 1em;
    line-height: 135%;
  }
  #about-me {
    padding: 20px;
  }
  #about-me #container-description #wrapper {
    width: 90%;
    min-height: unset;
  }
  #about-me #container-description #wrapper #description {
    font-size: 0.9em;
    text-align: center;
  }
  #about-me #container-description #wrapper #border1 {
    display: none;
  }
  #about-me #history {
    width: 90%;
  }
  #about-me #history #content p {
    font-size: 0.9em;
  }
  #skills #frontend {
    min-height: 225px;
  }
  #skills #frontend div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px;
  }
  #skills #backend {
    min-height: 225px;
  }
  #skills #backend div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px;
  }
  #skills #tools {
    min-height: 225px;
  }
  #skills #wrapper-skills #options-skills {
    width: 90%;
  }
  #skills #wrapper-skills #buttons {
    width: 80%;
  }
  #footer #wrapper-contacts {
    width: 100%;
    margin-bottom: 40px;
  }
  #footer #wrapper-social {
    width: 100%;
  }
}
@media screen and (min-width: 416px) and (max-width: 715px) {
  #about-me {
    padding: 20px;
  }
  #about-me #container-description #wrapper {
    width: 90%;
    min-height: unset;
  }
  #about-me #container-description #wrapper #description {
    font-size: 0.9em;
    text-align: center;
  }
  #about-me #container-description #wrapper #border1 {
    display: none;
  }
  #about-me #history {
    width: 90%;
  }
  #about-me #history #content p {
    font-size: 0.9em;
  }
  #skills #wrapper-skills #options-skills {
    width: 70%;
  }
  #skills #wrapper-skills #buttons {
    width: 60%;
  }
  #footer {
    display: flex;
    justify-content: space-around;
  }
  #footer #wrapper-contacts {
    width: 40%;
    margin-bottom: 40px;
  }
  #footer #wrapper-social {
    width: 40%;
  }
}
@media screen and (min-width: 416px) and (max-width: 768px) {
  #hero h1 {
    font-size: 2em;
  }
  #hero h1 .mobile {
    display: block;
  }
  #hero p {
    width: 80%;
    font-size: 1.2em;
    line-height: 135%;
  }
}
@media screen and (max-width: 1024px) {
  #navbar #anchors {
    display: none;
  }
  #navbar #burger-menu {
    display: block;
  }
  #about-me {
    padding: 20px;
  }
  #about-me #container-description #wrapper {
    width: 90%;
    min-height: unset;
  }
  #about-me #container-description #wrapper #description {
    font-size: 0.9em;
  }
  #about-me #container-description #wrapper #border1 {
    width: 40%;
  }
  #about-me #history {
    width: 90%;
  }
  #about-me #history #content p {
    font-size: 0.9em;
  }
}