/* --- STILI HOME PAGE --- */

/* HERO */
.hero {
  position: relative;
  background: url('immagini/hero-bg.jpg') center/cover no-repeat;
  height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-radius: 10px;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.cta-btn {
  background: #cc6600;
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}
.cta-btn:hover {
  background: #e67300;
  transform: scale(1.05);
}
/* Sfondo parallax che copre HERO + BOXES */
.top-section.parallax {
  background: url('immagini/img_index/home_casa_moderna.jpg.jpg') center/cover no-repeat fixed;
  position: relative;
  color: #fff;
}

/* Overlay grigio chiaro sopra lo sfondo */
.top-section.parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(230,230,230,0.85); /* grigio chiaro trasparente */
  z-index: 1;
}

/* porta HERO e BOXES sopra all'overlay */
.top-section > * {
  position: relative;
  z-index: 2;
}



/* SEZIONE PERCHE' SCEGLIERCI */
.why-choose-us {
  /*padding: 4rem 2rem;*/
  background: #f9f9f9;
  text-align: center;
}
.why-choose-us h2 {
  font-size: 2rem;
  padding: 2rem;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature i {
  font-size: 2.5rem;
  color: #cc6600;
  margin-bottom: 1rem;
}
.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* BLOG PREVIEW */
.blog-preview {
 padding: 2rem 2rem 2rem 2rem;
}
.blog-preview h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.posts article {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.posts article h3 {
  margin-bottom: 1rem;
  color: #cc6600;
}
.posts article a {
  display: inline-block;
  margin-top: 1rem;
  color: #cc6600;
  font-weight: bold;
  text-decoration: none;
}
.posts article a:hover {
  text-decoration: underline;
}

/* CALL TO ACTION FINALE */
.final-cta {
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #cc6600, #ff9966);
  color: #fff;
}
.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.final-cta p {
  margin-bottom: 1.5rem;
}
.final-cta .cta-btn {
  background: #fff;
  color: #cc6600;
}
.final-cta .cta-btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* ANIMAZIONI FADE-IN */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
