@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Anonymous+Pro");
@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,531;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,531;1,600;1,700;1,800;1,900&display=swap");
@font-face {
  font-family: "Superspitze Grotesk-SemiBold";
  src: url(fonts/SuperspitzeGrotesk-SemiBold.otf);
}

body {
  overflow-x: hidden;
  cursor: url('../img/cursor-auto.svg'), auto;
  background-color: #f9f9fd;
  background-image: radial-gradient(rgba(13,15,49,0.5) 0.5px, transparent 0.5px), radial-gradient(rgba(13,15,49,0.25) 0.5px, #f9f9fd 0.5px);
  background-size: 20px 20px;
  background-position: 0 0,10px 10px;
}

a {
  cursor: url('../img/cursor-pointer.svg'), pointer;
}

section {
  padding: 0 20px;
}

.stick {
  position: sticky !important;
  top: 0;
}

.fix-top {
  position: fixed !important;
  top: 0;
}

.flex-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-padding-bt {
  padding-bottom: 0 !important;
}

.top-shadow {
  background: linear-gradient(0deg, rgba(248,249,250,1) 75%, rgba(248,249,250,0) 100%);
}

.stop-scroll {
  overflow: hidden !important;
}

.disable-cursor {
  pointer-events: none !important;
}

/* The container */
.check-container {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 0 !important;
  margin-top: 40px !important;
  font-size: 12px;
  cursor: url('../img/cursor-pointer.svg'), pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Hide the browser's default checkbox */
.check-container input {
  position: absolute;
  opacity: 0;
  cursor: url('../img/cursor-pointer.svg'), pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 5px;
}

/* On mouse-over, add a grey background color */
.check-container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.check-container input:checked ~ .checkmark {
  background-color: #000;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.check-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.check-container .checkmark:after {
  left: 7.5px;
  top: 3.5px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* width */
::-webkit-scrollbar {
  width: 2px;
  display: none;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(0, 0, 0);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

* {
  scrollbar-width: none;
}

.overflow-hidden {
  overflow: hidden;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 10005;
  height: 100%;
}

/* PRELOADER */

.spinner {
  width: 50px;
  height: 50px;
  background-color: #333;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  border-radius: 100%;
  -webkit-animation: sk-scaleout 1s infinite ease-in-out;
  animation: sk-scaleout 1s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
  0% {
    -webkit-transform: translate(-50%, -50%) scale(0);
  }
  100% {
    -webkit-transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@keyframes sk-scaleout {
  0% {
    -webkit-transform: translate(-50%, -50%) scale(0);
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    -webkit-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* ********** */

#status {
  width: 75px;
  height: 75px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-image: url(../img/preloader.gif);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

input,
textarea {
  outline: none;
  box-shadow: none !important;
  border-bottom: thin solid black !important;
}

select:focus {
  outline-color: transparent;
}

.md-mobile-logo {
  display: inline-block;
  position: relative;
  width: 100%;
}

.cv-icon {
  color: black;
  font-size: 21px;
}

.md-mobile-logo img {
  width: 125px;
  margin-bottom: 35px;
  margin-left: 15px;
}

.md-mobile-logo::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: 25px;
  right: -10px;
  height: 1px;
  width: 55%;
  background: #000;
}

#about {
  padding: 50px 25px 25px 25px;
  background-color: #FFF;
}

#about p {
  display: none;
}

#about .is-visible {
  opacity: 1;
  display: block;
  transition: opacity 200ms ease-in-out 0.2s;
}

#about .cursor {
  font-weight: bold;
  font-size: 18px;
  margin: -5px;
}

#about .about-language {
  position: relative;
  height: 25px;
  display: block;
  margin-bottom: 15px;
}

#about-slide {
  display: none;
}

#about .hero-mobile {
  display: block;
  position: relative;
  width: 100vh;
  height: 250px;
  top: -50px;
  left: -50px;
  margin-bottom: -160px;
  border-radius: 0 0 0 50%;
  background-color: #1c1a1a;
  z-index: 99;
}

#about .hero-mobile:after {
  content: '';
  display: block;
  position: absolute;
  right: -100vw;
  width: 100vw;
  height: 250px;
  background: #1c1a1a;
}

#about .about-picture {
  display: block;
  position: absolute;
  top: 10px;
  left: 10px;
  box-sizing: content-box;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-image: url(../img/memoji.jpg);
  background-size: cover;
  z-index: 99;
  transition: all 200ms ease-in-out;
}

#about .memoji .about-picture {
  background-image: url(../img/profile-picture.jpeg);
  left: 100%;
  transform: translateX(calc((100% + 10px) * -1));
}

#about .creative-desktop-band {
  position: relative;
  display: block;
  cursor: url('../img/cursor-pointer.svg'), pointer;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  border-radius: 150px;
  background: #1c1a1a;
  transition: all 500ms cubic-bezier(0.5, -0.3, 0.15, 1);
}

#italian-language,
#english-language {
  opacity: 0;
  cursor: url('../img/cursor-pointer.svg'), pointer;
  position: absolute;
  transition: all 200ms ease-in-out;
}

#skills .row div.col-12:last-child{
  min-height: 315px;
}

#skills .row div.col-12{
  margin-top: 50px;
}

.tab-label {
  color: #aeaeae;
  border: 1px solid #dcdcdc;
}

.tab-label[active] {
  color: #FFF;
}

.tab-label:hover {
  cursor: url('../img/cursor-pointer.svg'), pointer;
}

/* fix label wrapping */
@media (min-width: 992px) and (max-width: 1392px) {
  .tab-label {
    display: inline-block;
    width: 30%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tab-label[data-tooltip]:before {
    content: attr(data-tooltip);
    display: none;
    position: absolute;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 5px 7px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
    min-width: 100px;
    text-align: center;
    border-radius: 4px;
    bottom: 100%;
    margin: 0 0 8px -16px;
  }
  .tab-label[data-tooltip]:after {
    content: '';
    display: none;
    position: absolute;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    margin: 0 0 3px 25px;
    bottom: 100%;
    border-width: 6px 6px 0;
    border-top-color: #000;
  }
  .tab-label[data-tooltip]:hover:before,
  .tab-label[data-tooltip]:hover:after {
    display: block;
    z-index: 99;
  }
}

.designed-label {
  font-size: 11px;
  margin-top: 30px;
}

.friends {
  display: inline-block;
  background-image: url(../img/friends-logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 15px;
  width: 100px;
}

.portfolio-icon {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: auto;
  z-index: 900;
}

.portfolio {
  position: relative;
  height: auto;
  transition: all .4s ease;
}

.portfolio .col-12 {
  padding: 0;
}

.portfolio .row {
  height: 100vh;
  overflow: visible;
}

#portfolio-items {
  padding-top: 50px;
  padding-bottom: 100px;
}

#portfolio-items .more.hidden-item {
  display: none;
}

.portfolio-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  margin-bottom: 25px;
  box-shadow: 0 0 50px -35px rgba(20, 20, 20, 0.5);
  transition: all 1s ease;
  will-change: scroll-position;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
}

.portfolio-item.website {
  max-height: 50vh;
}

.portfolio-item.rounded {
  border-radius: 0;
}

.portfolio-item img {
  width: 100%;
  transition: all 300ms cubic-bezier(0.5, -0.3, 0.15, 1);
}

.portfolio-item .ux-img-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 1;
}

.expanded-ux {
  position: fixed;
  display: inline-block;
  top: 2rem;
  left: 2rem;
  margin: auto;
  z-index: 99999;
  width: calc(100% - 4rem);
  height: calc(100% - 4rem);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.expanded-ux-container:after {
  content: '';
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  backdrop-filter: saturate(180%) blur(40px);
  z-index: 99998;
}

.portfolio-item .ux-img-nav img {
  cursor: url('../img/cursor-pointer.svg'), pointer;
  opacity: 0.5;
  max-width: 75px;
  box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  border-radius: 5px;
  transition: opacity 250ms ease, border 250ms ease;
}

.portfolio-item.ux .active-ux {
  width: 100%;
  height: 222px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 500ms ease-in-out;
}

.portfolio-item .ux-img-nav img:hover, .portfolio-item .ux-img-nav img.active-ux-thumb {
  opacity: 1;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
}

#portfolio-items-ux .portfolio-item.ux:after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: block;
  width: 277px;
  height: 67px;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: saturate(180%) blur(3px);
  backdrop-filter: saturate(180%) blur(6px);
  transition: opacity 250ms ease;
}

#portfolio-items-ux .portfolio-item.ux.dark:after {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.5);
}

#mangapp-ux img {
  display: block;
  width: calc(100% + 70px);
  left: -35px;
  margin: 0 auto;
  position: relative;
}

#bookshelf-ux img {
  display: block;
  width: calc(100% + 70px);
  top: -15px;
  left: -35px;
  margin: 0 auto;
  position: relative;
}

.portfolio-item.mobile {
  max-height: max-content;
}

.portfolio-item img.mobile-ux {
  pointer-events: none;
  display: block;
  width: 250px;
  max-height: 504px;
  margin: 50px auto;
}

.ux-frame {
  padding: 0 !important;
}

.ux-frame .portfolio-item {
  max-height: 600px;
}

.ux-frame .iframe-label {
  display: flex;
  align-items: center;
  position: absolute;
  padding: 10px 25px;
  background-color: #000;
  bottom: 20px;
  left: 20px;
  opacity: 0;
  will-change: opacity;
  border-radius: 25px;
  color: #f8f9fa;
  text-decoration: none;
  transition: opacity 500ms ease 250ms,
              color 250ms ease,
              background-color 250ms ease;
}

.ux-frame .iframe-label i, .ux-frame .iframe-label img {
  margin-right: 8px;
  font-size: 22px;
}

.ux-frame .iframe-label:hover {
  background-color: #f8f9fa;
  color: black;
}

.ux-frame .portfolio-item iframe {
  position: relative;
  height: 100%;
  border: none;
  border-radius: 30px;
}

.expand-btn {
  margin: 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #000;
  position: relative;
  z-index: 1;
  top: -75px;
}

.plus-btn {
  cursor: url('../img/cursor-pointer.svg'), pointer;
  font-size: 12px;
  margin: 0 auto;
  top: 50px;
  width: 60px;
  height: 60px;
  border: 5px solid #dfdfdf;
  background: #000;
  border-radius: 50px;
}

.expand-ux {
  margin: 0 auto;
  cursor: url('../img/cursor-pointer.svg'), pointer;
  width: 55px;
  height: 55px;
  border-radius: 50px;
  background-color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255, 255, 255, 1);
  -webkit-backdrop-filter: saturate(180%) blur(3px);
  backdrop-filter: saturate(180%) blur(3px);
  box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  bottom: 50px;
}

.expand-icon {
  width: 12px;
  transition: all .25s ease;
}

.expand-icon.expand {
  transform: rotate(90deg);
}

.expand-icon.shrink {
  transform: rotate(-90deg) !important;
}

.portfolio-item.website.ux-expanded {
  max-height: 300vh;
  overflow-y: scroll;
}

.portfolio .row {
  margin: 0;
  height: 100%;
}

.companies img {
  opacity: 0.25;
  transition: opacity 250ms ease, filter 250ms ease;
  filter: saturate(0);
}

.companies img:hover {
  cursor: url('../img/cursor-pointer.svg'), pointer;
  opacity: 1;
  filter: saturate(1);
}

#map {
  width: 100%;
  height: 100vh;
}

.v-nav {
  display: none;
}

#contatti-rapidi {
  display: none;
}

#md-logo {
  display: none;
}

#works {
  display: none;
}

#js-logo:hover {
  color: #f0db4f;
  border-color: #f0db4f !important;
}

#html-logo:hover {
  color: #e34c26;
  border-color: #e34c26 !important;
}

#css-logo:hover {
  color: #264de4;
  border-color: #264de4 !important;
}

#bootstrap-logo:hover {
  color: #553C7B;
  border-color: #553C7B !important;
}

#angular-logo:hover {
  color: #dd1b16;
  border-color: #dd1b16 !important;
}

#java-logo:hover {
  color: #5382a1;
  border-color: #5382a1 !important;
}

#typescript-logo img  {
  margin-right: 8px;
}

#sql-logo:hover {
  color: #42a362;
  border-color: #42a362 !important;
}

#stenciljs-logo img  {
  margin-right: 8px;
}

#sass-logo:hover  {
  color: #CD6799;
  border-color: #CD6799 !important;
}

#mongodb-logo:hover  {
  color: #4DB33D;
  border-color: #4DB33D !important;
}

#vs-logo:hover  {
  color: #0078d7;
  border-color: #0078d7 !important;
}

#skills-set {
  padding: 50px 25px;
  overflow: hidden;
  transition: all .4s ease;
}

#skills-set .skills-container {
  margin-top: 20px;
}

#skills-set .row {
  margin: 0 -10px !important;
}

#skills-set .tech-card {
  display: inline-block;
  padding: 5px;
}

#skills-set .tech-card .skill {
  border-radius: 10px;
  height: 75px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 50px -15px rgba(20, 20, 20, 0.25);
  transition: all 0.25s ease;
}

#skills-set .tech-card .skill:hover {
  cursor: url('../img/cursor-pointer.svg'), pointer;
  border: 1px solid black;
}

#skills-set .tech-card .skill i {
  font-size: 20px;
  margin-right: 8px;
}

#skills-set .tech-card .skill span {
  font-size: 15px;
}

.expand-btn.expand-skills {
  display: none;
}

.companies .row {
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: scroll;
  padding: 0 20px;
  margin: 25px 0 50px 0;
}

.text-box {
  background-color: black;
  color: white;
  padding-top: 2px;
  padding-right: 2px;
  padding-bottom: 2px;
  padding-left: 5px;
}

.text-box {
  background-color: black;
  color: white;
  padding-top: 2px;
  padding-right: 2px;
  padding-bottom: 2px;
  padding-left: 5px;
}

.role {
  font-family: "Raleway", "sans-serif";
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  padding: 5px 20px;
  display: inline-block;
  background: black;
  color: white;
  position: relative;
  top: 0px;
  margin-bottom: 25px;
  border: thin solid black;
  border-radius: 25px;
  transition: all 600ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

button {
  font-size: 16px;
  font-weight: 300;
  text-align: center;
  padding: 8px 20px;
  display: inline-block;
  background-color: #000;
  color: white;
  position: relative;
  top: 0px;
  margin-bottom: 25px;
  border: 1px solid #000;
  border-radius: 25px;
  transition: background-color 600ms cubic-bezier(0.075, 0.82, 0.165, 1);
}

button:hover {
  cursor: url('../img/cursor-pointer.svg'), pointer;
  background-color:#f2f2f2 !important;
}

button:focus {
  outline: 1px solid #dcdcdc;
  outline-offset: 3px;
}

button.outline {
  background-color: transparent;
  color: #aeaeae;
  border: 1px solid #dcdcdc;
}

button.centered {
  display: block;
  margin: 0 auto;
}

.black-line {
  background-color: black;
  padding-left: 55px;
  padding-right: 55px;
}

#page-header {
  position: fixed;
  display: flex;
  top: 50px;
  left: 50%;
  width: 100%;
  max-width: 1435px;
  padding: 0 90px 0 45px;
  justify-content: space-between;
  align-items: center;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
}

#first-container {
  /* background-image: url(../img/cover-picture.jpg); */
  background-color: #000;
  background-repeat: no-repeat;
  background-size: unset;
  background-position: center;
  height: 250px;
  z-index: 999;
}

.hero-quote {
  display: none;
}

#md-parallax {
  background-image: url(../img/md-logo-mobile.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  height: 75px;
}

.anonymous-pro {
  font-family: "Anonymous Pro", "monospace";
  font-size: 11pt;
  line-height: 24px;
}

.superspitze-grotesk {
  font-family: "Superspitze Grotesk-SemiBold", "sans-serif";
}

.md-bg-light {
  background-color: #f9f9fd;
}

.md-bg-black {
  background-color: black;
}

.md-border-light {
  border: 1px solid #e5e5e5;
}

h1 {
  color: black;
  font-family: "Raleway", "sans-serif";
  font-weight: bold;
  margin-bottom: 15px;
}

p {
  font-family: "Raleway", "sans-serif";
  margin-bottom: 0;
}

#m-nav-container {
  position: fixed;
  top: 20px;
  left: 50%;
  width: 330px;
  height: 81px;
  border-radius: 18px;
  transform: translateX(-50%);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: all 0.25s linear;
  z-index: 1000;
}

#m-nav-container.open {
  height: 396px;
}

#m-nav-svg {
  position: relative;
  overflow: visible;
}

#m-nav-svg path {
  fill:rgba(255, 255, 255, 0.75);
}

#m-nav {
  position: fixed;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  z-index: 1000;
}

#m-nav svg {
  width: auto;
  height: 15px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
}

#m-nav-container path {
  transition: fill 0.2s;
}

#m-nav-container path {
  transition: fill 0.2s;
}

#m-nav-container.top #m-nav-svg path {
  fill: rgba(28, 26, 26, 0.75);
}

#m-nav i {
  transition: 0.4s;
}

#m-nav.top i {
  color: #FFF;
}

#m-nav .hamburger span {
  transition: 0.4s;
}

#m-nav.top .hamburger span {
  background-color: #FFF;
}

#m-nav svg *{
  transition: 0.4s;
}

#m-nav.top svg *{
  fill: #FFF;
}

#m-nav-ul.top li a{
  color: #FFF;
}

.fill-black {
  fill: black;
}

.hidden {
  visibility: hidden;
  opacity: 0;
  bottom: 100%;
  position: fixed;
  left: 0px;
  right: 0px;
  top: 100px;
  z-index: 999;
  transition: all 0.3s ease-in-out 0s;
}

.shown {
  visibility: visible;
  opacity: 1;
  bottom: 0px;
  position: fixed;
  left: 0px;
  right: 0px;
  top: 100px;
  z-index: 1001;
  transition: all 0.3s ease-in-out 0s;
}

nav ul {
  list-style-type: none;
  padding: 0px;
}

nav ul li a {
  text-align: center;
  text-decoration: none;
  font-size: large;
  font-family: "Anonymous Pro", "monospace";
  display: block;
  padding-bottom: 15px;
  color: black;
  transition: all 200ms ease-out 0s;
  padding-top: 15px;
  padding-left: 0px;
}

nav ul li:not(:last-child) a::before {
  content: "{ ";
}

nav ul li:not(:last-child) a::after {
  content: " }";
}

nav ul li a:hover {
  text-decoration: none !important;
  color: dimgray;
}

nav ul li:nth-child(1) {
  animation-delay: 0s;
}

nav ul li:nth-child(2) {
  animation-delay: 0.1s;
}

nav ul li:nth-child(3) {
  animation-delay: 0.15s;
}

nav ul li:nth-child(4) {
  animation-delay: 0.2s;
}

nav ul li:nth-child(5) {
  animation-delay: 0.25s;
}

.first-line {
  width: 25px;
  height: 1px;
  background-color: black;
  display: block;
  margin-right: auto;
  margin-left: auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.second-line {
  width: 25px;
  height: 1px;
  background-color: black;
  display: block;
  margin-right: auto;
  margin-left: auto;
  -webkit-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin-bottom: 0px;
}

.hamburger:hover {
  cursor: url('../img/cursor-pointer.svg'), pointer;
}

#hamburger.is-active .first-line {
  transform: translateY(5px) rotate(45deg);
}

#hamburger.is-active .second-line {
  transform: translateY(-4px) rotate(-45deg);
}

#art-director-mobile {
  margin-top: 100px;
  margin-bottom: 50px;
  position: relative;
}

input:focus {
  outline: none;
  border: none;
}

a.border-bt {
  color: #000;
  text-decoration: none;
  transition: all 250ms ease;
}

a.border-bt:hover {
  color: #aeaeae;
  border-bottom: 1px solid #aeaeae;
}

.border-bt {
  border-bottom: 1px solid #000;
}

button[type="submit"] {
  float: right;
  background-color: black;
  border-radius: 25px;
  height: 35px;
  top: -40px;
  right: 30px;
  padding: 20px;
  transition: all 150ms ease-in-out;
}

button[type="submit"] i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-slide {
  display: none;
}

#contacts a {
  text-decoration: none;
  color: black;
}

/* Success icon animation */

.success-checkmark {
  pointer-events: none;
  width: 80px;
  height: 115px;
  margin: 0 auto;
  transform: scale(0.6);
  position: absolute;
  bottom: -46px;
  right: -17px;
  z-index: 1;
}
.success-checkmark #check-icon {
  opacity: 1;
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4caf50;
  transition: opacity 0.4s ease;
}
.success-checkmark #check-icon.hidden-icon {
  opacity: 0;
}
.success-checkmark #check-icon.hidden-icon * {
  animation: unset !important;
}
.success-checkmark #check-icon .icon-line {
  height: 5px;
  background-color: #4caf50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}
.success-checkmark #check-icon .icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}
.success-checkmark #check-icon .icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}
.success-checkmark #check-icon .icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(76, 175, 80, 0.5);
  z-index: 1;
  background: #f8f9fa;
}
@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }
  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }
  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}
@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  84% {
    width: 55px;
    right: 0px;
    top: 35px;
  }
  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}

#contact-form:invalid button[type="submit"] {
  cursor: not-allowed;
  background: #888888;
  border-color: #888888;
}

input:invalid {
  color: red !important;
}

/*Change text in autofill textbox*/
input:invalid:-webkit-autofill
{
 -webkit-text-fill-color: red !important;
}

.form-group {
  position: relative;
  display: inline-block;
  width: 100%;
}

.portfolio-item.form {
  max-height: max-content;
  padding: 30px;
}

.portfolio-item.form .form-control {
  display: block;
  border-radius: 10px;
  padding: 23px;
  font-family: "Anonymous Pro", "monospace";
  border: none !important;
  background-color: #eeeeee;
}

.portfolio-item.form .form-group.tel-code:before {
  content: '+';
  position: absolute;
  top: 11px;
  left: 20px;
  font-size: 1rem;
}

.portfolio-item.form .form-group.tel-code {
  display: inline-block;
  width: 75px;
}

.portfolio-item.form .form-group.tel-code input{
  padding-left: 33px;
}

.portfolio-item.form .form-group.tel {
  display: inline-block;
  width: calc(100% - 84px);
}

#contacts .form-control {
  border-left-style: none;
  border-right-style: none;
  border-bottom: thin solid black;
  border-top-style: none;
  border-radius: 0px;
  padding-bottom: 15px;
  padding-left: 0px;
  margin-bottom: 30px;
  font-family: "Anonymous Pro", "monospace";
  background-color: transparent;
}

.form-control:focus {
  color: #495057 !important;
  background-color: transparent;
}

.form-control + span {
  position: absolute;
  display: block;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: #4caf50;
  transition: all 0.2s ease-in-out 0s;
}

.form-control:focus + span {
  width: 100%;
}

.form-control + span.pending {
  width: 50%;
  background: #4caf50;
}

.pending {
  animation-name: pending;
  animation-duration: 0.7s;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
}

@keyframes pending {
  0% {
    left: 0%;
  }
  50% {
    left: 50%;
  }
  100% {
    left: 0%;
  }
}

.info {
  height: 35px;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out 0s;
}

.info:hover {
  border: 1px solid black;
  cursor: url('../img/cursor-pointer.svg'), pointer;
}

.info i {
  position: relative;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
}

.info:nth-child(2) {
  animation-delay: 0.1s;
}

.info:nth-child(3) {
  animation-delay: 0.15s;
}

#footer-logo {
  display: block;
  margin-bottom: 15px;
}

footer {
  max-width: 1435px;
  padding: 0 90px 50px 45px;
  margin: 0 auto;
}

footer .social-icons {
  align-self: flex-end;
}

footer .social-icons ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin-top: 15px;
  margin-bottom: 0;
  float: left;
}

footer .social-icons li:not(:last-child) {
  margin-right: 25px;
  transition: all 250ms ease;
}

footer .social-icons li:hover {
  opacity: 0.5;
}

footer .social-icons a {
  color: #000 !important;
}

.nav-slide-active .appear,
.shown .appear {
  animation-name: appear;
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.5, -0.3, 0.15, 1);
  animation-fill-mode: both;
  animation-iteration-count: 1;
}

.nav-slide-active .extend {
  animation-name: extend275;
  animation-duration: 1.25s;
  animation-timing-function: cubic-bezier(0.5, -0.3, 0.15, 1);
  animation-fill-mode: both;
  animation-iteration-count: 1;
}

/* DESKTOP */

@media (min-width: 1024px) {
  section {
    max-width: 1435px;
    padding: 0 90px 0 45px;
    margin: 0 auto;
  }
  .h-centered {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }
  #about-mobile, #about .hero-mobile {
    display: none;
  }
  #about-slide {
    display: block;
  }
  #about .creative-desktop-band {
    width: 275px;
  }
  #creative-desktop {
    height: 400px;
    margin-bottom: 15px;
    display: block;
    background-repeat: no-repeat;
    background-position: left;
    margin-top: -100px;
    left: 65px;
    padding: 0;
    animation-delay: 0.25s;
  }
  .typing {
    position: relative;
    font-family: "Raleway", sans-serif;
    font-size: 100px;
    color: black;
  }
  .typing > * {
    margin-left: -30px;
    font-weight: 700;
    display: inline-block;
  }
  .nav-slide {
    width: 600px;
    max-height: 800px;
    position: fixed;
    top: 50%;
    right: 75px;
    transform: translate(200%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    box-shadow: 0 0 150px -75px,
      inset 10px 10px 50px -25px rgba(255, 255, 255, 1),
      inset -20px -20px 75px -20px rgba(0, 0, 0, 0.1);
    transition: all 700ms cubic-bezier(0.5, -0.3, 0.15, 1);
    z-index: 1005;
    background-color: rgba(255, 255, 255, 1);
  }
  .v-nav {
    display: block;
    position: fixed;
    right: 0;
    top: -2px;
    bottom: -2px;
    text-align: center;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    background-color: rgba(255, 255, 255, 1);
    padding-left: 2.5px;
    padding-right: 2.5px;
    z-index: 10000;
  }
  nav .container {
    padding-right: 0px;
    padding-left: 0px;
  }
  .v-nav a {
    color: black;
    text-decoration: none;
    display: inline-block;
    font-size: 11pt;
    padding-top: 25px;
    padding-bottom: 25px;
    font-family: Anonymous Pro, monospace;
    transition: all;
  }
  /* if backdrop supported: very transparent and blurred */
  @supports ((-webkit-backdrop-filter: saturate(180%) blur(20px)) or (backdrop-filter: saturate(180%) blur(20px))) {
    .v-nav, .nav-slide, #about {
      background-color: rgba(255, 255, 255, 0.85);
      -webkit-backdrop-filter: saturate(180%) blur(20px);
      backdrop-filter: saturate(180%) blur(20px);
    }
  }
  .nav-slide-active {
    transform: translate(0%, -50%);
  }
  .nav-slide-title {
    position: absolute;
    padding: 20px;
    top: 50px;
  }
  .linkedin-nav-item {
    transform: rotate(180deg);
  }
  #m-nav, #m-nav-container {
    display: none;
  }
  .border-r {
    border-right: thin solid lightgrey;
  }
  #skills {
    position: sticky;
    top: 0;
    padding-top: 200px;
    padding-bottom: 100px;
  }
  #skills .designed-label {
    text-align: right;
  }
  #skills .row div.col-12:last-child {
    min-height: 245px;
  }
  #skills-set {
    display: inline-block;
  }
  #skills-set .row {
    padding: 0 15px;
    margin: 0 !important;
  }
  #skills-set {
    padding: 0px;
    height: 440px;
  }
  #skills-set .skills-container {
    position: absolute;
    width: 100%;
    bottom: 13px;
    margin-top: unset !important;
  }
  #works {
    display: inline-block;
  }
  section#works {
    padding: 0px;
    overflow: hidden;
    height: 490px;
  }
  #works .container-ux {
    display: flex;
    flex-wrap: wrap;
    overflow: scroll;
    padding: 10px;
    height: calc(100% - 70px);
  }
  #works .ux {
    display: inline-block;
    width: calc(50% - 20px);
    height: calc(50% - 30px);
    border-radius: 15px;
    overflow: hidden;
    margin: 10px;
    box-shadow: 0 0 50px -25px rgb(0 0 0 / 25%);
    transition: opacity 0.5s ease, transform 0.2s ease;
  }
  .close-slide {
    display: block;
    position: absolute;
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    opacity: 1;
    border-radius: 50%;
    transition: all 150ms ease-out;
    cursor: url('../img/cursor-pointer.svg'), pointer;
    background-color: rgb(0, 0, 0);
    z-index: 100;
  }
  .close-slide:hover {
    opacity: 1;
    background-color: black;
  }
  .close-slide:before,
  .close-slide:after {
    content: " ";
    position: absolute;
    left: 14.5px;
    top: 7.5px;
    height: 15px;
    width: 1px;
    border-radius: 25px;
    background-color: white !important;
  }
  .close-slide:before {
    transform: rotate(45deg);
  }
  .close-slide:after {
    transform: rotate(-45deg);
  }
  #contacts {
    padding: 50px 125px;
  }
  .check-container {
    margin-top: 0;
  }
  .info {
    height: 35px;
    margin: 0 auto;
    border-radius: 25px;
  }
  .hero-quote {
    display: block;
    color: white;
    position: absolute;
    bottom: 20px;
  }
  .hero-curved {
    display: block;
    width: 150vw;
    height: 100%;
    left: -50%;
    position: absolute;
    background-color: #ececec;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 300%;
  }
  #contatti-rapidi {
    display: block;
    color: white;
    background-color: black;
    border: 3px solid black;
    border-radius: 25px;
    text-decoration: none;
    transition: all 150ms ease-in-out;
    z-index: 10;
  }
  #contatti-rapidi p {
    display: flex;
    align-items: center;
    margin: 0;
    padding-left: 20px;
  }
  #contatti-rapidi a {
    text-decoration: none;
    color: white;
    z-index: 1;
    cursor: url('../img/cursor-pointer.svg'), pointer;
  }
  #contatti-rapidi .cv-preview {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 45px;
    left: -20px;
    display: inline-block;
    width: 150px;
    height: 210px;
    border-radius: 7px;
    background-image: url('../img/cv-preview.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    border: 1.5px solid lightgray;
    box-shadow: 0 10px 50px -25px rgb(0 0 0 / 25%);
    transition: all .25s ease .15s;
  }
  #contatti-rapidi a.cv-label:hover + .cv-preview, .cv-preview:hover {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .contatti-social {
    display: flex;
    margin-left: 8px;
  }
  #contatti-rapidi a.github-icon, #contatti-rapidi a.whatsapp-icon, #contatti-rapidi a.instagram-icon, #contatti-rapidi a.twitter-icon, #contatti-rapidi a.linkedin-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #000;
    cursor: url(../img/cursor-pointer.svg), pointer;
    transition: background-color .25s ease, color .25s ease;
  }
  #contatti-rapidi a.github-icon:hover {
    color: #000;
    background: #fff;
  }
  #contatti-rapidi a.whatsapp-icon:hover {
    background: #25d366;
  }
  #contatti-rapidi a.instagram-icon:hover {
    background-color: #833AB4;
  }
  #contatti-rapidi a.twitter-icon:hover {
    background-color: #1DA1F2;
  }
  #contatti-rapidi a.linkedin-icon:hover {
    background-color: #0e76a8;
  }
  #md-logo {
    display: block;
  }
  .cl-effect-1 a::before,
  .cl-effect-1 a::after {
    display: inline-block;
    opacity: 0;
    transition: transform 0.3s, opacity 0.2s;
    -webkit-transition: -webkit-transform 0.3s, opacity 0.2s;
    -moz-transition: -moz-transform 0.3s, opacity 0.2s;
  }
  .cl-effect-1 a::before {
    margin-right: 10px;
    content: "{";
    transform: translateX(20px);
    -webkit-transform: translateX(20px);
    -moz-transform: translateX(20px);
  }
  .cl-effect-1 a:first-child::before {
    content: "";
  }
  .cl-effect-1 a::after {
    margin-left: 10px;
    content: "}";
    transform: translateX(-20px);
    -webkit-transform: translateX(-20px);
    -moz-transform: translateX(-20px);
  }
  .cl-effect-1 a:first-child::after {
    content: "";
  }
  .cl-effect-1 a:hover::before,
  .cl-effect-1 a:focus::before {
    opacity: 1;
    transform: translateX(0px);
    -webkit-transform: translateX(0px);
    -moz-transform: translateX(5px);
  }
  .cl-effect-1 a:hover::after,
  .cl-effect-1 a:focus::after {
    opacity: 1;
    transform: translateX(0px);
    -webkit-transform: translateX(0px);
    -moz-transform: translateX(-5px);
  }
  .expand-ux {
    bottom: 25px;
    margin-bottom: -45px !important;
  }
  .ux-expanded {
    max-height: calc(100vh - 100px) !important;
  }
  .portfolio-icon {
    position: sticky;
    top: 50%;
    left: calc(50% - 25px);
    transform: translate(-50%, -50%);
    margin-bottom: -75px;
    width: 175px;
    height: auto;
    z-index: 999;
  }
  .portfolio-item {
    margin-bottom: 0px;
    max-height: 500px;
    transition: all 500ms cubic-bezier(0.5, -0.3, 0.15, 1);
  }
  .portfolio .col-12:nth-child(odd) {
    padding-right: 25px;
    padding-left: 0;
    padding-bottom: 50px;
  }
  .portfolio .col-12:nth-child(even) {
    padding-left: 25px;
    padding-right: 0;
    padding-bottom: 50px;
    transition-delay: 0.1s !important;
  }
  .portfolio-item.form {
    padding: 40px 80px;
  }
  .portfolio-item .ux-img-nav {
    gap: 16px;
  }
  .portfolio-item .ux-img-nav img {
    border: none;
  }
  .portfolio-item.ux .active-ux {
    height: 396px;
  }
  #portfolio-items-ux .portfolio-item.ux:after {
    opacity: 1;
  }
  .portfolio-item .ux-img-nav img:hover, .portfolio-item .ux-img-nav img.active-ux-thumb {
    border: none;
  }
  #bookshelf-ux img {
    width: 100%;
    left: 0;
  }
  #mangapp-ux img {
    width: 100%;
    top: -50px;
    left: 0;
  }
  .companies .row {
    padding: 35px 15px 75px 15px;
    justify-content: space-between;
  }
  footer .social-icons ul {
    float: right;
  }
}

/* MOBILE STRICT */

@media (max-width: 435px) {
  html {
    overflow-x: hidden;
  }
  #skills-set {
    height: 750px;
  }
  #skills-set.shrink {
    height: 438px;
    margin-bottom: 50px;
    border-bottom: 1px solid #FFF;
  }
  .expand-btn.expand-skills {
    display: flex;
  }
  .companies {
    padding: 0;
  }
  footer {
    border-bottom: 10px solid #1c1a1a;
  }
}

/* ANIMATIONS */

.toAnim.anim {
  position: relative;
  top: 0px;
  opacity: 1;
}
.toAnim {
  position: relative;
  top: 250px;
  opacity: 0;
  transition: all 1.25s ease !important;
}

.blink {
  animation: blink 1.5s infinite;
}

@keyframes type {
  from {
    font-size: 0em;
  }
  to {
    font-size: 1em;
  }
}

@keyframes appear {
  from {
    right: -100%;
    opacity: 0;
  }
  to {
    right: 0%;
    opacity: 1;
  }
}

@keyframes extend275 {
  from {
    width: 700px;
  }
  to {
    width: 275px;

  }
}

@keyframes bounce {
  0%,
  100%,
  20%,
  50%,
  80% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes lightquote {
  0% {
    filter: drop-shadow(5px 5px rgba(230, 0, 120, 0.5))
      drop-shadow(-5px 5px rgba(150, 0, 230, 0.5))
      drop-shadow(0px 0px 25px rgba(230, 1, 120, 0.25));
  }
  25% {
    filter: drop-shadow(5px 5px rgba(230, 0, 120, 0.5))
      drop-shadow(-5px 5px rgba(150, 0, 230, 0.5))
      drop-shadow(0px 0px 25px rgba(230, 1, 120, 0.5));
  }
  75% {
    filter: drop-shadow(5px 5px rgba(230, 0, 120, 0.5))
      drop-shadow(-5px 5px rgba(150, 0, 230, 0.5))
      drop-shadow(0px 0px 25px rgba(230, 1, 120, 0.75));
  }
  100% {
    filter: drop-shadow(5px 5px rgba(230, 0, 120, 0.5))
      drop-shadow(-5px 5px rgba(150, 0, 230, 0.5))
      drop-shadow(0px 0px 25px rgba(230, 1, 120, 1));
  }
}