body {
    margin: 0;
    font-family: var(--font-primary), sans-serif;
    overflow-x: hidden;
}
p{
    font-family: var(--font-secondary), sans-serif;
    font-weight: var(--Medium);
}

/*Nasconde il bottone "More info" per tutti i progetti*/
.hiddenbutton {
    display: none;
}


.title-container .title {
    color: var(--text-color);
    justify-self: center;
    font-size: 5rem;
    /*margin-bottom: 15px;*/
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.73);
    text-align: center;    
}

.cover-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.glass-button-wrap {
  position: static;
  margin-top: 2rem;
  z-index: 2;
  pointer-events: auto;
}

.center-button {
  position: static;
  left: 50%;
  top: 50%;
  /*transform: translate(0%, 400%);*/
  z-index: 2;
  pointer-events: auto;
  margin-top: 45vh;
}

.project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 60px 30px;
    background-color: var(--background-color);
    color: var(--text-color);
    align-items: center;
    justify-content: center;
}

.vision-content h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.vision-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.vision-content ul {
    font-weight: var(--medium);
    list-style: normal;
    font-size: 1.2rem;
    padding-left: 20px ;
    margin-bottom: 25px;
}


/* Colonna immagine */
.vision-image {
    position: absolute;
  top: 40px;
  left: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.25; /* Regola la visibilità del video */
}


/* Background video persezione */

.card-video-container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 30px 800px ;
  background-color: transparent;
}

.card-background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.25; /* Regola la visibilità del video */
}

.card-overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-overlay-content .vision-content {
  position: absolute;
  top: 30px;
  left: 30px;
  max-width: 600px;
  z-index: 2;
}

.card-overlay-content.align-right .vision-content {
  left: auto;
  right: 30px;
}

/*freccia*/
.card-arrow {
  display: block;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: var(--text-color);
  text-decoration: none;
  z-index: 2;
}

.project-container {
  position: relative; /* necessario per posizionare la freccia */
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 768px) {
  .project-container:nth-child(odd) {
    flex-direction: column-reverse;
  }
  .project-container:nth-child(even) {
    flex-direction: column;
  }
  .card-overlay-content.align-right .vision-content {
    left: 30px;
    right: auto;
  }
  .vision-content {
    text-align: left;
    align-items: left;
    justify-content: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 90vw;
    word-break: break-word;
    padding: 0 10px;
  }
  .vision-content ul {
     font-size: 0.8rem;
  }

  .vision-content h2 {
    font-size: 1.8rem;
  }

  .vision-content p {
      font-size: 1.0rem;
  }

  .title-container {
    max-width:100vw;
    max-height:75vw;
  }
  .bg-video {
    max-width:100vw;
    max-height:75vw;
        /*transform: scale(0.4);*/
   }
  
  .center-button {
  /*transform: translate(0%, 150%);*/
  font-size: 0.7rem;
  margin-top: 15vh;
  }

  .center-button-aerospace {
  transform: translate(0%, 150%);
  font-size: 0.7rem
  }
  .cover-container {
    width: 50%;
  }

  .card-arrow {
    font-size: 1.5rem;
 }
 
}