
body {
  background: linear-gradient(135deg, #7dcaee, #f0ae4c);
  font-family: "Poppins", sans-serif;
  align-items: center;
  justify-content: center;
}

/* Contenitore principale */
.container {
  background: #fff;
  padding: 2.5rem;
  border-radius: 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  width: 100%;
  animation: fadeIn 0.8s ease-in-out;
}

/* Titolo */
.container h2 {
  text-align: center;
  margin-bottom: 1.8rem;
  font-weight: 700;
  color: #347cac;
  letter-spacing: 0.5px;
}

/* Label dei campi */
.form-label {
  font-weight: 600;
  color: #444;
  margin-bottom: 0.3rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #62bce0;
  box-shadow: 0 0 8px rgba(42, 82, 152, 0.3);
}

/* Pulsante principale */
.btn-primary {
  background: linear-gradient(135deg, #57bad3, #ffa928);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg,  #2f6a79, #a1660e);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* Immagini anteprima */
#preview_fronte,
#preview_retro {
  border: 2px solid #eee;
  border-radius: 0.6rem;
  margin-top: 0.6rem;
  transition: transform 0.3s ease;
}

#preview_fronte:hover,
#preview_retro:hover {
  transform: scale(1.05);
  border-color: #2a5298;
}

/* Animazione fadeIn */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
