html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Archivo", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  background-image: url("img/sfondo grafica tabara 2025.jpg");
  background-size: cover; /* Riempi tutta l’area */
  background-repeat: no-repeat; /* Nessuna ripetizione */
  background-position: center center; /* Centra sempre */
  background-attachment: fixed;
}

.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

* {
  box-sizing: border-box;
}

@keyframes bgZoom {
  0% {
    background-size: cover;
  }
  100% {
    background-size: 100%;
  }
}

.background {
  position: relative; /* scorre con il contenuto */
  width: 100%;
  min-height: 100%;
  background-image: url("img/sfondo grafica tabara 2025.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  animation: bgZoom 60s infinite alternate ease-in-out;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  width: 10rem;
  max-width: 80%;
}

.content {
  text-align: center;
  color: #1b2559;
  padding: 1rem;
  z-index: 20;
  width: 100%;
  max-width: 1000px;
}

.main-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
}

.main-title .white {
  color: white;
  font-weight: 500;
}

.info-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 4rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.info-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1b2559;
  width: fit-content;
}

.info-box img {
  width: 2rem;
  margin-bottom: 0.5rem;
}

.cta-button {
  background-color: white;
  color: #1b2559;
  padding: 1rem 2rem; /* Aumenta il padding per rendere il pulsante più grande */
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem; /* Aumenta la dimensione del font */
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  margin-bottom: 2rem;
}

.cta-button:hover {
  transform: scale(1.05);
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-title {
  animation: fadeSlideUp 1.2s ease-out forwards;
}

.white {
  animation: fadeSlideUp 1.6s ease-out forwards;
}

.info-box {
  animation: fadeSlideUp 1.6s ease-out forwards;
}

.animazione {
  animation: fadeSlideUp 1.6s ease-out forwards;
}

.cta-button {
  animation: fadeSlideUp 1.6s ease-out forwards;
}

.main-title {
  animation-delay: 0.3s;
}

.info-box {
  animation-delay: 0.4s;
}

.animazione {
  animation-delay: 0.5s;
}

.cta-button {
  animation-delay: 0.6s;
}

.iconeflex {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

/* Responsive */
@media (max-width: 600px) {
  .main-title {
    font-size: 2.8rem;
  }

  .info-container {
    gap: 0rem;
  }

  .cta-button {
    font-size: 0.8rem;
    padding: 0.8rem 1.2rem;
  }

  .info-box img {
    width: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .description {
    font-weight: bold;
    font-size: 0.5rem;
  }

  .logo {
    width: 7rem;
  }
}

.description {
  font-weight: bold;
  font-size: 1.2rem;
}

.thank-you-container {
  margin-top: 10vh;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
}

.thank-you-container h1 {
  color: #28a745;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.thank-you-container p {
  font-size: 1.1rem;
  color: #555;
}

/* Fissa bene il logo per evitare sovrapposizione */
.logo {
  width: 10rem;
  max-width: 80%;
  z-index: 20;
  position: relative;
}

.background {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: black;
}

.navbar + .background {
  padding-top: 6rem;
}
