/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Lato', sans-serif;
  scroll-behavior: smooth;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: url('../images/comunita-centro-storico-background.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img {
  max-width: 250px;
  width: 40%;
  height: auto;
  opacity: 0;
  animation: fadeIn 1.2s ease-in-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Section */
.form-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.form-section h2 {
  margin-bottom: 40px;
  font-size: 2rem;
}

.form-section form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"],
.form-section textarea {
  border: none;
  border-bottom: 1px solid #333;
  padding: 10px 5px;
  font-size: 1rem;
  width: 100%;
  background: transparent;
  font-family: 'Lato', sans-serif;
}

.form-section input[type="text"]:focus,
.form-section input[type="email"]:focus,
.form-section input[type="tel"]:focus,
.form-section textarea:focus {
  outline: none;
  border-bottom: 1px solid #004b87;
}

.form-section textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  text-align: left;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
}

.form-section button {
  padding: 15px;
  background: #257cb5;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.form-section button:hover {
  background: #4c2d2b; /* Colore leggermente più scuro */
  transform: translateY(-2px); /* Effetto sollevato */
}

.form-section button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

footer {
  text-align: center;
  padding: 60px 20px;
  background: #333;
  color: #fff;
  font-size: 0.9rem;
}
