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

/* 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;
}
/* content */
.content {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 2%;
  font-size: 1.25rem;
  /* border: 2px solid black; */
}

.content .logo img {
  width: 400px;
  height: 400px;
}
.hero {
  background: #1c1f26;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh;
}
.intro,
.obiettivo,
.team {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  text-align: justify;
  width: 80%;
  margin-top: 50px;
}
.intro,
.mission,
.vision,
.obiettivo {
  width: 60%;
}

.mission,
.vision {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  text-align: justify;
  width: 30%;
  padding: 0 20px;
  margin-top: 50px;
}
.mission {
  border-right: 10px solid black;
}
/* rotating cards */
.rotating-cards {
  margin-top: 50px;
  margin-bottom: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
}
.rotating-cards .cards-wrapper {
  /* border: 2px solid rgb(0, 0, 0); */
  display: flex;
  /* flex-flow: column; */
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  width: 60%;
}

.rotating-cards .cards-wrapper .container {
  position: relative;
  width: 30%;
  height: 400px;
}

.rotating-cards .cards-wrapper .container .card {
  /* border: 2px solid rgb(0, 0, 0); */
  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 .cards-wrapper .container:hover {
  transform: scale(1.2);
}
.rotating-cards .cards-wrapper .container:hover > .card {
  transform: rotateY(180deg);
}
.card .front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50px;
  display: flex;
  flex-flow: column-reverse;
  justify-content: space-evenly;
  align-items: center;
  background: black;
}

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

  background: black;
  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 img {
  width: 70%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  /* border: 5px solid white; */
}
/* end rotating cards */

.wrapper-vision-mission {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* #vision {
  flex-direction: row-reverse;
} */
.desc {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  /* padding: 50px; */
  /* border-top: 5px solid black; */
  /* margin-top: 50px; */
  margin-bottom: 50px;
}

.desc h2 {
  padding-bottom: 20px;
  padding-top: 20px;
}
.icon img {
  width: 200px;
  height: 200px;
  border: 10px solid black;
  border-radius: 100%;
  margin-bottom: 20px;
}
#team {
  flex-flow: column;
}
.cards {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
  /* border: 2px solid black; */
}
.cards .item {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  /* border: 2px solid black; */
  background-color: #000000;
  border-radius: 40px;
  color: white;
  margin: 10px;
  padding: 20px;
  box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 50px;
  width: 60%;
}
#anthony {
  flex-flow: row-reverse;
}
.cards .item .photo {
  width: 200px;
  height: 200px;
  border-radius: 100px;
  overflow: hidden;
  border: 5px solid rgb(255, 255, 255);
}
.cards .item .description {
  width: 60%;
  /* border: 2px solid black; */
}

/* end content */
/* 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 {
  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 */
  #anthony {
    flex-flow: column;
  }
  /* 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;
  }

  .nav {
    display: none;
  }

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

    display: flex;
  }
  /* 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 */
  }
  .hero {
    font-size: 0.7rem;
  }
  .intro,
  .mission,
  .vision,
  .obiettivo {
    width: 90%;
    flex-flow: column-reverse;
    border: none;
  }
  .content .logo img {
    width: 90%;
    height: auto;
  }
  #vision {
    flex-flow: column-reverse;
  }
  .rotating-cards .cards-wrapper {
    flex-flow: column;
    height: 200vh;
  }
  .rotating-cards .cards-wrapper .container {
    width: 100%;
    height: 30%;
  }

  .rotating-cards .cards-wrapper {
    width: 80%;
  }
  .wrapper-vision-mission {
    flex-flow: column;
  }
  .team {
    width: 95%;
  }
  .cards .item {
    flex-flow: column;
    text-align: center;
    width: 90%;
  }
  .card .back {
    font-size: 1rem;
  }
  .cards .item .description {
    width: 95%;
    /* border: 2px solid black; */
  }

  .footer {
    flex-flow: column;
    padding-bottom: 20px;
  }
  .footer .item #logo {
    display: none;
  }
  .form-wrapper h1 {
    font-size: 1.2rem;
  }
  .footer {
    height: 35vh;
  }
}
