* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--white);
  user-select: none;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

::placeholder {
  opacity: .35;
}

@font-face {
  font-family: 'Apple Color Emojis';
  src: url('/fonts/AppleColorEmoji.woff') format('woff'),
    url('/fonts/AppleColorEmoji.ttf') format('truetype');
}

@font-face {
  font-family: 'Absans';
  src: url('/fonts/Absans-Regular.woff2') format('woff2'),
    url('/fonts/Absans-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'LINE Seed Sans';
  src: url('/fonts/LINESeedSans_Rg.woff2') format('woff2'),
    url('/fonts/LINESeedSans_Rg.otf') format('opentype');
  /* Add additional formats if necessary */
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'LINE Seed Sans';
  src: url('/fonts/LINESeedSans_Bd.woff2') format('woff2'),
    url('/fonts/LINESeedSans_Bd.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

p,
input,
textarea {
  font-family: "LINE Seed Sans";
  font-weight: normal;
  font-size: clamp(1.3rem, 1.4vw, 1.5rem);
  line-height: 140%;
}

h3 {
  font-family: "LINE Seed Sans";
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  line-height: inherit;
  font-size: 1.5rem;
  margin: 0 0 0 -0.08rem;
}

h1 {
  font-family: "Absans";
  font-size: clamp(2.6rem, 3.2vw, 3.6rem);
  line-height: 135%;
  font-weight: normal;
  margin: -.8rem 0 -.8rem -0.15rem;
}

h1 {
  padding-top: 3.5rem;
  color: var(--white);
  text-align: center;
}

:root {
  --accent: #5951b8;
  --white: #ffffff;
  --black: #010101;
}

html {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  padding: 2rem 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--accent);
  background-size: 100px 100px;
  background-position: calc(50% - 0.5px);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
}



.container-costruzione {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@keyframes expandHeight {
  0% {}

  35% {
    max-height: 80%;
    opacity: 0;
  }

  75% {
    max-height: 90%;
  }

  80% {
    max-height: 100%;
  }

  100% {
    max-height: 100%;
    opacity: 1;
  }
}


@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(-2rem);
  }

  70% {
    transform: translateY(0.2rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-costruzione {
  box-sizing: border-box;
  width: 101px;
  height: 100px;
  fill: var(--white);
  position: relative;
}

.eye-socket {
  border-radius: 50%;
  width: 41px;
  height: 41px;
  position: absolute;
  left: 20px;
  bottom: 19px;
}

.eye-pupil {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  left: 12px;
  top: 12px;
  transition: opacity .3s ease;
  z-index: -1;
  opacity: 0;
}

.eye-pupil-inner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: black;
  transition: height .15s ease;
}

.eye-pupil.open {
  opacity: 1;
}

.eye-socket:hover .eye-pupil {
  opacity: 0;
}

.all-the-rest {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
  padding: 0 3rem;
}

.all-the-rest {
  max-height: 0;
  opacity: 0;
}

.fade-in {
  animation: expandHeight 1.9s forwards;
  animation-delay: 0.1s;
}

.email-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 16px;
}

.subtitle {
  opacity: 0;
}

.fade-in .subtitle {
  animation: bounceIn 0.3s forwards;
  animation-delay: .1s;
}

.bottone-bordato {
  border-radius: 1.5rem;
  background-color: var(--white);
  position: relative;
  opacity: 0;
  cursor: pointer;
}

.bottone-bordato.close {
  animation: contractAndFade 1s forwards !important;
}

.bottone-bordato.open {
  animation: expandAndFade 1.2s forwards !important;
}

.fade-in .bottone-bordato {
  animation: bounceIn 0.3s forwards;
  animation-delay: 1.4s;
}

.bottone-bordato p {
  text-align: center;
  color: var(--accent);
  padding: 1.5rem 2rem 1.5rem 2rem;
  line-height: 100%;
  margin: 0 -1px -0.33rem -1px;
}

@media (min-width: 600px) {
  .bottone-bordato:hover .point::after {
    border-radius: 100% 0% 0% 0%;
  }
}

.pointy-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.point {
  position: absolute;
  height: 15px;
  width: 15px;
  transform: scaleY(2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.point::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-color: var(--white);
  transform: rotate(45deg);
  border-radius: 0% 0% 0% 0%;
  transition: border-radius .3s ease;
}

.bottoni-link {
  display: flex;
  gap: 1.5rem;
  margin-top: .8rem;
}

@keyframes expandAndFade {
  0% {
    max-height: 0;
    opacity: 0;
  }

  60% {
    max-height: 100%;
    opacity: 0;
  }

  100% {
    max-height: 100%;
    opacity: 1
  }
}

@keyframes contractAndFade {
  0% {
    max-height: 100%;
    opacity: 1
  }

  40% {
    max-height: 100%;
    opacity: 0;
  }

  100% {
    max-height: 0;
    opacity: 0;
  }
}

.progetti-box {
  overflow: hidden;
  transition: max-height .3s ease;
  display: flex;
  flex-flow: column;
  align-items: center;
  padding: 3.5rem 1rem;
}

.i-progetti {
  position: relative;
  opacity: 0;
  transition: opacity .3s ease;
  transition-delay: 0s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.i-progetti.open {
  opacity: 1;
  transition-delay: 1s;
}

.close-progetti {
  font-family: "LINE Seed Sans";
  font-size: 1.8rem;
  text-align: center;
  grid-column: span 2;
  cursor: pointer;
  position: absolute;
  z-index: 5;
  top: calc(50% - .7rem);
  left: calc(50% - .9rem);
}

.close-progetti svg {
  height: 1.8rem;
  width: 1.8rem;
}

.i-progetti a {
  font-family: 'Apple Color Emojis';
  font-size: 1.8rem;
  text-align: center;
  text-decoration: none;
  transform-origin: bottom;
}

.i-progetti.open a,
.close-progetti {
  transition: transform .15s ease-out !important;
  transform-origin: bottom;
}

.i-progetti.open a:hover,
.close-progetti:hover {
  transform: scale(1.2) !important;
}

.bottoni-link svg {
  opacity: 0;
  height: 1.8rem;
  width: 1.8rem;
}

.bottoni-link a {
  transition: transform .15s ease-out;
}

.fade-in .bottoni-link a:nth-child(2) svg {
  animation: bounceIn 0.3s forwards;
  animation-delay: 1.8s;
}

.fade-in .bottoni-link a:nth-child(1) svg {
  animation: bounceIn 0.3s forwards;
  animation-delay: 2s;
}

.fade-in .bottoni-link a:nth-child(3) svg {
  animation: bounceIn 0.3s forwards;
  animation-delay: 2.2s;
}


.bottoni-link a {
  line-height: 0;
  transform-origin: bottom;
}

.bottoni-link a:hover {
  transform: scale(1.2);
}

#path-svg {
  left: 50%;
  position: absolute;
  width: 0;
  height: 0;
}