body {
  margin: 0;
  background-color: #f8f9fa; /* background chiaro */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.container-blocco {
  padding: 0 10px;
  max-width: 970px;
  margin: 0 auto;
}

/* tendina lingue */
.lang-select {
  text-align: center;
  margin: 10px auto 10px auto; /* 10px sopra, 5px sotto */
}
.lang-select .dropdown-toggle {
  padding: 6px 14px;
  font-size: 14px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.dropdown-menu {
  background-color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  min-width: 0;
  width: max-content;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  padding: 8px 10px !important;
  color: #333;
}
.dropdown-item:hover, .dropdown-item.active {
  background-color: #e3f3ea;
  color: #000;
}
.dropdown-item img { width: 22px; height: 15px; }

/* card registrazione */
.register-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  overflow: hidden;
  max-width: 970px;
  width: 100%;
  margin: 5px auto 20px auto; /* spazio ridotto sopra la card */
  display: flex;
  flex-wrap: wrap;
}
.register-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.form-section {
  padding: 2rem;
  flex: 1;
}
.btn-success {
  background-color: #2fbf6d;
  border: none;
}
.btn-success:hover {
  background-color: #28a85e;
}
.asterisco { color: red; font-weight: bold; }
.asteriscoBlu { color: #1f8dcf; font-weight: bold; }
.headline { color: #2fbf6d; font-weight: 600; }

/* Altezza immagine mobile aumentata e overlay */
@media (max-width: 991.98px) {
    .register-img {
        /*height: 430px;*/
        min-height: 430px;  /* aumenta la visibilità senza tagliare troppo */
        object-fit: cover;
        opacity: 0;
        transform: scale(0.95);
        transition: opacity 1s ease-in-out, transform 1s ease-in-out;
        position: relative;
        z-index: 1;
    }
    .register-img.visible {
        opacity: 1;
        transform: scale(1);
    }
    .register-img::after {
        content: "";
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.15);
        z-index: 2;
    }
}