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

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

.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); }
}

.info-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.info-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.info-section h3 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
}

.info-section p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 1rem;
  line-height: 1.6;
}

.info-section a {
  color: #004b87;
  text-decoration: none;
}

.moduli-container {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .moduli-container {
    flex-direction: row;
    justify-content: center;
    gap: 60px;
  }
}

.modulo-box {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
}

.modulo-box h4 {
  font-size: 1rem;
  margin-bottom: 15px;
}

.modulo-button {
  display: inline-block;
  padding: 12px 20px;
  background-color: #fff;
  color: #004b87;
  border: 2px solid #004b87;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.modulo-button:hover {
  background-color: #004b87;
  color: #fff;
  transform: translateY(-2px);
}

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