
#materiali {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vw;
  text-align: center;
  color: #fff;
  font-family: 'Caviar2', sans-serif;
  overflow: hidden;
}

#materiali::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/materiali.png') center/cover no-repeat fixed;
  filter: brightness(0.4);
  z-index: -1;
}

#materiali .wrap {
  width: 100%;
  max-width: 1000px;
  animation: fadeIn 1s ease both;
}

#materiali h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #1a7c27;
  margin-bottom: 2rem;
}

#materiali h3 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: #1a7c27;
  margin: 2.5rem 0 1rem;
}

#materiali p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  max-width: 70ch;
  margin-inline: auto;
}

@media (max-width: 600px) {
  #materiali::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/fototelefonomateriali.jpg') center/cover no-repeat fixed;
  filter: brightness(0.4);
  z-index: -1;
 }
  #materiali {
    padding: 12vw 6vw;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}