@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: 1000;
}

/* cover */
.cover {
  background: conic-gradient(
    from 180deg at 50% 50%,
    #2c009c -90.19deg,
    #000000 0.77deg,
    #ff0000 90.94deg,
    #2c009c 269.81deg,
    #000000 360.77deg
  );

  font-family: "Inter";
  padding: 3%;
  min-height: 100vh;
  display: flex;
  flex-flow: column;
}

.cover .cover-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 10%;
  padding-left: 5%;
  padding-right: 5%;
  font-weight: bold;
  font-size: 3rem;
  color: white;
  align-content: center;
  /* border: 2px solid #000000; */
}
.cover .cover-header .cover-nav {
  display: flex;
  font-size: 1rem;
  font-weight: 300;
  /* border: 2px solid #000000; */
  align-items: center;

  justify-content: space-between;
  padding: 10px;
  min-width: 200px;
}

.cover .cover-header .cover-nav a {
  color: white;
}
.cover-content {
  display: inline-flex;
  min-height: 75vh;
  /* border: 2px solid #000000; */
  width: 100%;
}

.logos {
  /* border: 2px solid #000000; */
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
}

.factorial-logo {
  width: 500px;
  height: 150px;
}

.s-logo {
  width: 500px;
  height: 500px;
}

.hero {
  /* border: 2px solid #000000; */
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
}

.hero .caption {
  font-size: 1.3rem;
  width: 90%;
  color: white;
  text-align: center;
}

.hero .button-group,
.objectives-wrapper .button-group {
  width: 70%;
  height: 80px;
  /* border: 2px solid #000000; */
  margin-top: 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-shrink: 3;
  min-width: 250px;
  max-height: 150px;
}
.objectives-wrapper .button-group {
  width: 30%;
  margin-top: 0;
}
.button-fill {
  background-color: white;
  height: 100%;
  width: 190px;
  border-radius: 200px;
  color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  text-decoration: none;
  transition: width;
  transition-duration: 1s;
  min-height: 50px;
}
.button-vuoto {
  background-color: rgba(255, 255, 255, 0);
  height: 100%;
  width: 190px;
  border: 3px solid white;
  border-radius: 200px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  text-decoration: none;
  transition: width;
  transition-duration: 1s;
  min-height: 50px;
}

.button-fill:hover,
.button-vuoto:hover {
  width: 300px;
}

.cover-footer {
  /* border: 2px solid #000000; */
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  /* height: 10vh; */
  /* position: absolute;
  bottom: 0px;
  left: 16px; */
}

.arrow-down {
  width: 64px;
  height: 64px;
  animation: bounce 2s infinite; /* 2 secondi di durata, loop infinito */
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0); /* Posizione di partenza */
  }
  40% {
    transform: translateY(-30px); /* Salto verso l'alto */
  }
  60% {
    transform: translateY(-15px); /* Piccolo rimbalzo */
  }
}
.hamb {
  display: none;
}

/* end cover */

/* 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;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1s ease, transform 1s ease;
  z-index: 1001;
  max-height: 80px;
}

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

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

.hamburger1,
.hamburger2 {
  display: none;
}
.dropdown-menu1,
.dropdown-menu2 {
  display: none;
}
/* end header */
.card-scroll {
  height: 100vh;
  /* border: 2px solid #000000; */
  padding-top: 20vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}
.card-scroll #caption {
  padding-bottom: 100px;
  text-align: center;
  padding-left: 50px;
  padding-right: 50px;
  font-size: 3rem;
}
.slider {
  position: relative;
  width: 100%;
  height: 100%;

  /* overflow: hidden; */
  display: flex;
  justify-content: center;
  align-content: center;
}
.carusel-item {
  position: absolute;
  width: 30%;
  height: 400px;
  background-color: #000000;
  border-radius: 50px;
  padding: 20px;
  transition: 0.5s;
  left: calc(50% - 15%);
  top: 0;

  box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.carusel-item .logo {
  height: 90%;
  width: auto;
  object-fit: contain;
  max-width: 90%;
}

#next {
  position: absolute;

  right: 50px;
  top: 20vh;
  color: #ff0000;
}
#prev {
  position: absolute;

  left: 50px;
  top: 20vh;
}
#prev,
#next {
  color: #ff0000;
  background: none;
  border: none;
  opacity: 0.5;
  transition: opacity 0.5s;
  z-index: 10;
}
#prev:hover,
#next:hover {
  opacity: 1;
}

#prev #prev-icon {
  height: 64px;
  width: 64px;
}

#next #next-icon {
  height: 64px;
  width: 64px;
}
.objectives-wrapper {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-flow: column;
  padding: 50px;
  /* border: 2px solid black; */
  background-color: rgb(35, 42, 42);
  color: white;
  font-size: 2.5rem;
}
/* .objectives-wrapper .button-group {
  width: 30%;
  /* border: 2px solid #000000; 
  display: flex;
  height: 80px;
  justify-content: space-between;
}*/

.objectives {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  min-height: 60vh;
  text-align: center;
}

.objectives .item {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  color: white;
  padding-top: 0px;
  /* border: 2px solid rgb(255, 255, 255); */
  width: 20%;
}

.objectives .item .icon {
  width: 200px;
  height: 200px;
  /* border: 2px solid rgb(255, 255, 255); */
}

.objectives .item .caption {
  /* border: 2px solid rgb(255, 255, 255); */
  text-align: center;
  padding-top: 50px;

  width: 300px;
  height: 350px;
}

/* rotating cards */

.rotating-cards {
  height: 200vh;
  /* border: 2px solid rgb(0, 0, 0); */
  display: flex;
  flex-flow: column;
  justify-content: space-evenly;
  align-items: center;
}
#shat {
  text-align: center;
  padding-bottom: 0;
  margin-bottom: 0;
}
.rotating-cards .container {
  position: relative;
  width: 60%;
  height: 400px;
}

.rotating-cards .container .card {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: all 1s ease;
  border-radius: 50px;
  box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.5);
  color: white;
}
.rotating-cards .container:hover {
  transform: scale(1.2);
}
.rotating-cards .container:hover > .card {
  transform: rotateY(180deg);
}
.card .front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: conic-gradient(
    from 180deg at 50% 52.44%,
    #ff0000 0deg,
    #0044ff 181.02deg,
    #ff0000 360deg
  );
}

.card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;

  background: conic-gradient(
    from 180deg at 50% 52.44%,
    #0044ff 0deg,
    #ff0000 180deg,
    #0044ff 360deg
  );
  transform: rotateY(180deg);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  padding: 10%;
  text-align: justify;
}

.card .front .image {
  width: 300px;
  height: 300px;
}

.card .front .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 5px solid white;
  border-radius: 50px;
}
/* end rotating cards */

/* 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%;
}

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 {
  padding: 25px;
  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) {
  /* cover */
  .cover {
    background: conic-gradient(
      from 180deg at 50% 50%,
      #000000 0deg,
      #ff0004 126deg,
      #2c009c 235deg,
      #000000 360deg
    );
    padding-bottom: 0;
    margin-bottom: 0;
    min-height: 100vh;
    max-height: 100vh;
  }
  .cover .cover-header .cover-nav {
    display: none;
  }

  .cover .cover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2rem;
  }
  .cover-content {
    display: inline-flex;
    flex-flow: column;
    max-height: 25vh;
    width: 100%;
  }
  .logos {
    width: 100%;
    max-height: 40vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    padding-top: 200px;
    padding-bottom: 200px;
  }

  .factorial-logo {
    width: 450px;
    height: 150px;
  }

  .s-logo {
    width: 300px;
    height: 300px;
  }

  .hero {
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 1rem;
  }

  .caption h1 {
    font-size: 2rem;
  }
  .hero .button-group,
  .objectives-wrapper .button-group {
    display: flex;
    flex-flow: column;
    height: 17vh;
    margin-bottom: 30px;
    width: 20%;
  }
  .button-fill {
    background-color: white;
    height: 45%;
    width: 100%;
    border-radius: 30px;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: translate, width;
    transition-duration: 0.5s;
  }

  .button-vuoto {
    background-color: rgba(255, 255, 255, 0);
    height: 45%;
    width: 100%;
    border: 3px solid white;
    border-radius: 30px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: translate, width;
    transition-duration: 1s;
  }
  .hamb1,
  .hamb2 {
    width: 50px;
    height: 50px;
    display: inline;
    color: white;
  }
  .cover-footer {
    position: absolute;
    bottom: 0;
    left: -5px;
  }

  /* end cover */

  /* header */
  .nav {
    display: none;
  }
  /* end header */

  /* Stili per il pulsante hamburger */
  .hamburger1 {
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    display: flex;
  }

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

    display: flex;
  }
  /* Menu nascosto di default */
  .dropdown-menu1,
  .dropdown-menu2 {
    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-menu1 ul,
  .dropdown-menu2 ul {
    list-style: none;
    padding: 0;
  }

  .dropdown-menu1 li,
  .dropdown-menu2 li {
    margin: 20px 0;
  }

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

  /* Menu visibile */
  .show-menu1,
  .show-menu2 {
    visibility: visible; /* Visibile */
    opacity: 1; /* Opacità piena */
  }
  #next {
    top: 15vh;
    right: 0;
    background-color: white;
    border-radius: 100%;
  }

  #prev {
    top: 15vh;
    left: 0;
    background-color: white;
    border-radius: 100%;
  }
  .card-scroll #caption {
    font-size: 1.5rem;
  }
  .carusel-item {
    width: 300px;
    left: calc(50% - 150px);
    height: 300px;
  }

  .carusel-item .factorial-logo {
    width: 300px;
    height: 100px;
  }
  #binnova-logo {
    width: 200px;
    height: 100px;
  }
  .objectives-wrapper {
    height: 180vh;
  }

  .objectives {
    flex-flow: column;
    padding-top: 10px;
    padding-bottom: 50px;
  }
  .objectives .item .caption {
    font-size: 1.5rem;
    width: 300px;
    height: 100px;
  }
  .objectives .item .icon {
    width: 100px;
    height: 100px;
  }

  /* .rotating-cards {
    font-size: 0.8rem;
  } */
  .rotating-cards .container {
    position: relative;
    width: 80%;
  }
  .container .card .front {
    flex-flow: column;
  }

  .card .front .image {
    height: 200px;
    width: 200px;
  }

  .card .back {
    font-size: 0.8rem;
  }
  .footer {
    flex-flow: column;
    padding-bottom: 20px;
  }
  .footer .item #logo {
    display: none;
  }
}

@media screen and (max-height: 850px) and (max-width: 1000px) {
  .hero .caption h1 {
    font-size: 1rem;
  }
  .arrow-down {
    display: none;
  }

  .hero .button-vuoto {
    opacity: 0; /* Rende il tasto invisibile */
    pointer-events: none; /* Disabilita il clic sul tasto */
    visibility: hidden; /* Nasconde il tasto dal layout */
    position: absolute; /* Rimuove il tasto dal normale flusso del layout */
    width: 0;
    height: 0;
    overflow: hidden;
  }
  .card-scroll {
    height: 100vh;
    /* border: 2px solid #000000; */
    padding-top: 0;
  }

  .objectives {
    padding-top: 0;
    padding-bottom: 0;
    justify-content: space-around;
  }
  .objectives .item .icon {
    width: 80px;
    height: 80px;
  }
  .objectives .item .caption {
    font-size: 1.5rem;
    width: 250px;
    height: 150px;
  }
  .rotating-cards .container {
    height: 300px;
  }

  .card .back {
    font-size: 0.7rem;
  }

  .form-wrapper h1 {
    font-size: 1.2rem;
  }
  .footer {
    height: 35vh;
  }
}
