@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box; /* Include padding e border nel calcolo delle dimensioni */
  margin: 0; /* Rimuove il margine predefinito */
  padding: 0; /* Rimuove il padding predefinito */
  border: 0; /* Rimuove i bordi predefiniti */
  font-family: "Inter";
  vertical-align: baseline;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
  background-color: white;
}

body {
  display: flex;
  flex-flow: column;
}
.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white; /* Deve avere un colore di sfondo */
  mix-blend-mode: difference; /* Cambia il colore in base a quello sotto */
  pointer-events: none;
  transition: transform 0.05s ease-out;
  z-index: 1010;
}

/* header */

.header {
  background: conic-gradient(
    from 180deg at 50% 50%,
    #000000 0deg,
    #ff0000 90deg,
    #2c009c 270deg,
    #000000 360deg
  );
  height: 9vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  padding: 0 5%;
  font-size: 3rem;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 1001;
  max-height: 80px;
}
.header p a {
  color: white;
}

.nav {
  padding: 10px;
  min-width: 200px;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 300;
}
.nav a {
  color: white;
}

.hamburger {
  display: none;
}

.dropdown-menu {
  display: none;
}
/* end header */

/* factorial hero */
.factorial-hero {
  height: 30vh;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  background-color: #1c1f26;
  color: white;
  text-align: center;
  min-height: 200px;
  max-height: 250px;
}
.factorial-logo {
  width: 25%;
  /* border: 2px solid #000000; */
}
/* end factorial hero */
.description {
  display: flex;
  /* border: 2px solid black; */
  justify-content: center;
  align-items: center;
  flex-flow: column;
  font-size: 1.5rem;
  text-align: justify;
  padding-left: 15%;
  padding-right: 15%;
}
.description h1 {
  margin-top: 100px;
  margin-bottom: 25px;
}

.description p {
  margin-top: 10px;
  margin-bottom: 75px;
}

#headset {
  margin-bottom: 50px;
}
.arrows {
  display: inline-flex;
  justify-content: space-evenly;
  /* border: 2px solid black; */
  max-width: 300px;
  margin-bottom: 50px;
}

.arrows .arrow img {
  /* border: 2px solid black; */
  width: 50px;
  height: 50px;
  margin: 10px;
}
/* infinite scroll */
.infinite-scroll {
  padding: 50px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  /* margin-bottom: 50px; */
}

.wrapper {
  background: linear-gradient(
    90deg,
    rgba(115, 115, 115, 0) 0%,
    rgba(115, 115, 115, 0.3) 50%,
    rgba(115, 115, 115, 0) 100%
  );

  width: 90%;
  max-width: 1536px;
  margin-inline: auto;
  position: relative;
  height: 100px;
  margin-top: 3rem;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

@keyframes scrollLeft {
  to {
    left: -200px;
  }
}

.wrapper .item {
  width: 200px;
  height: 100px;
  position: absolute;
  /* border: 2px solid black; */
  left: max(calc(200px * 8), 100%);
  animation-name: scrollLeft;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.item1 {
  animation-delay: calc(30s / 8 * (8 - 1) * -1);
}

.item2 {
  animation-delay: calc(30s / 8 * (8 - 2) * -1);
}

.item3 {
  animation-delay: calc(30s / 8 * (8 - 3) * -1);
}

.item4 {
  animation-delay: calc(30s / 8 * (8 - 4) * -1);
}

.item5 {
  animation-delay: calc(30s / 8 * (8 - 5) * -1);
}

.item6 {
  animation-delay: calc(30s / 8 * (8 - 6) * -1);
}

.item7 {
  animation-delay: calc(30s / 8 * (8 - 7) * -1);
}

.item8 {
  animation-delay: calc(30s / 8 * (8 - 8) * -1);
}
.image-slide {
  object-fit: contain;
  width: 100%;
  height: 100%;
  /* border: 2px solid brown; */
}
/* end infinite scroll */
/* form */
.form-wrapper {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  background-color: #1c1f26;
  color: white;
  padding-top: 50px;
  padding-bottom: 25px;
}
.form {
  /* height: 56vh; */
  width: 90%;
  max-width: 600px;
  background-color: #1c1f26;
  border-radius: 20px;
  padding: 20px;
  /* box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1); */
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transition: all 0.3s ease;
}

.form .item {
  width: 80%;
  margin: 10px 0;
  padding: 15px;
  background-color: #f2f2f2;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
#idea {
  width: 80%;
  height: 150px;
  padding: 15px;
  border-radius: 10px;
  /* border: 2px solid #ddd; */
  resize: none; /* Impedisce di ridimensionare il textarea */
  overflow-wrap: break-word; /* Fa andare il testo a capo quando supera la larghezza */
  font-size: 1rem;
  background-color: #f2f2f2;
  color: #333;
}

#idea::placeholder {
  color: #aaa;
}

.form .item:focus-within {
  border-color: #001aff;
}
#submit {
  width: 50%;
  height: 60px;
  margin-top: 20px;
  background-color: #ffffff;
  color: #000000;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#submit:hover {
  background-color: #ff1e00;
  color: white;
  width: 70%;
  /* transform: translateX(10%); */
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #333;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: #aaa;
  transition: color 0.3s ease;
}

input[type="text"]:focus::placeholder,
input[type="email"]:focus::placeholder,
input[type="tel"]:focus::placeholder {
  color: #888;
}

/* end form */

/* Stato iniziale: fuori dalla viewport, traslato in basso e invisibile */
.animate-from-bottom {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Stato finale: dentro la viewport, completamente visibile */
.in-viewport {
  opacity: 1;
  transform: translateY(0);
}
/* footer */
.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 30vh;
  background: linear-gradient(270deg, #2c009c 0%, #ff0000 101.06%);
}
.footer .item {
  color: white;
  text-align: center;
}
.footer .item #logo {
  height: 25vh;
  width: 25vh;
}

#info-title {
  padding-bottom: 10px;
}
#made-by a,
#made-by a:visited,
#made-by a:hover {
  text-decoration: underline;
  color: white;
}
/* end footer */

@media screen and (max-width: 1000px) {
  /* header */
  .nav {
    display: none;
  }
  /* end header */

  /* Stili per il pulsante hamburger */

  .hamburger {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;

    display: flex;
  }

  .hamb {
    width: 50px;
    height: 50px;
    display: inline;
    color: white;
  }
  /* Menu nascosto di default */

  .dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 0, 0, 0.9); /* Rosso a metà trasparenza */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden; /* Nascosto inizialmente */
    opacity: 0; /* Trasparente inizialmente */
    transition: visibility 0.5s, opacity 0.5s ease; /* Transizione per un effetto fluido */
    z-index: 999;
  }

  /* Voci del menu in colonna */

  .dropdown-menu ul {
    list-style: none;
    padding: 0;
  }

  .dropdown-menu li {
    margin: 20px 0;
  }

  .dropdown-menu a {
    text-decoration: none;
    font-size: 24px;
    color: white;
  }

  /* Menu visibile */

  .show-menu {
    visibility: visible; /* Visibile */
    opacity: 1; /* Opacità piena */
  }

  .factorial-logo {
    display: flex;
    width: 85%;
    height: fit-content;
  }
  .footer {
    flex-flow: column;
    padding-bottom: 20px;
  }
  .footer .item #logo {
    display: none;
  }
  .form-wrapper h1 {
    font-size: 1.2rem;
  }

  .description {
    font-size: 1rem;
  }
  .footer {
    height: 35vh;
  }
}
@media screen and (max-width: 1000px) and (max-height: 850px) {
  .form-wrapper h1 {
    font-size: 1.2rem;
  }
  .footer {
    height: 35vh;
  }
}
