
#materiali {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw 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.38);
  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: #c8cc00;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#materiali h3 {
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  color: #5ecf70;
  margin: 2.8rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#materiali p {
  font-size: clamp(0.92rem, 2vw, 1.15rem);
  line-height: 1.75;
  max-width: 72ch;
  margin-inline: auto;
  color: rgba(255,255,255,0.88);
}

#materiali strong {
  color: #5ecf70;
}

@media (max-width: 600px) {
  #materiali::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/fototelefonomateriali.jpg') center/cover no-repeat fixed;
  filter: brightness(0.38);
  z-index: -1;
 }
  #materiali {
    padding: 14vw 6vw;
  }
}

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