/* ===== HERO TESSERAMENTI ===== */
.tesseramenti-hero {
  background: linear-gradient(135deg, #004aad, #002855);
  color: white;
  text-align: center;
  padding: 50px 20px 40px; /* ridotto da 80px/70px a 50px/40px */
}

.tesseramenti-hero .hero-content {
  max-width: 900px;
  margin: auto;
}

.tesseramenti-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.tesseramenti-hero p {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* ===== TESSERAMENTI & ISCRIZIONI ===== */
.tesseramenti-section {
  background: linear-gradient(to bottom, #e6f0ff, #f4f6fa);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tesseramenti-section .join-container {
  max-width: 850px;
  background: linear-gradient(145deg, #ffffff, #d9e6ff);
  padding: 50px 40px;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 74, 173, 0.2);
  border: 2px solid #004aad;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tesseramenti-section .join-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(0, 74, 173, 0.3);
}

.tesseramenti-section h2 {
  font-size: 2.4rem;
  color: #002855;
  margin-bottom: 20px;
  text-align: center;
}

.tesseramenti-section p {
  font-size: 1.15rem;
  color: #002855;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===== FORM TESSERAMENTI ===== */
.tesseramenti-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 25px;
}

.tesseramenti-form label {
  font-weight: 600;
  color: #002855;
  margin-bottom: 5px;
}

.tesseramenti-form input,
.tesseramenti-form select {
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #004aad;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tesseramenti-form input:focus,
.tesseramenti-form select:focus {
  border-color: #002855;
  box-shadow: 0 0 8px rgba(0, 74, 173, 0.35);
}

.tesseramenti-form button.cta-button {
  align-self: center;
  padding: 15px 40px;
  margin-top: 10px;
  font-size: 1.05rem;
}

/* ===== SEZIONE MODULI SCARICABILI ===== */
.moduli-section {
  background: linear-gradient(to bottom, #f4f6fa, #e6f0ff);
  padding: 80px 20px;
}

.moduli-container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.moduli-container h2 {
  font-size: 2.4rem;
  color: #002855;
  margin-bottom: 15px;
}

.moduli-container p {
  font-size: 1.15rem;
  color: #002855;
  margin-bottom: 40px;
}

/* GRID 5 BOX */
.moduli-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.modulo-box {
  background: linear-gradient(145deg, #ffffff, #d9e6ff);
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 74, 173, 0.15);
  border: 2px solid #004aad;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
}

.modulo-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 74, 173, 0.25);
}

.modulo-box h3 {
  font-size: 1.15rem;
  color: #002855;
  margin-bottom: 20px;
}

.modulo-box .cta-button {
  align-self: center;
  padding: 12px 28px;
  font-size: 1rem;
}

/* ===== MOBILE HERO ===== */
@media (max-width: 768px) {
  .tesseramenti-hero {
    padding: 35px 20px 25px; /* padding verticale ridotto su mobile */
  }

  .tesseramenti-hero h1 {
    font-size: 2rem;
  }

  .tesseramenti-hero p {
    font-size: 1rem;
  }
}

  .tesseramenti-section .join-container {
    padding: 40px 25px;
  }

  .tesseramenti-section h2 {
    font-size: 2rem;
  }

  .tesseramenti-form input,
  .tesseramenti-form select {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .tesseramenti-form button.cta-button {
    padding: 12px 32px;
  }

  .modulo-box {
    height: auto;
    padding: 25px 15px;
  }

  .modulo-box h3 {
    font-size: 1.05rem;
    margin-bottom: 15px;
  }
