/* ========================
   RESET
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Georgia', serif;
}

/* ========================
   HERO
   ======================== */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  background: url("../../assets/img/hero.jpg") no-repeat center center/cover;
}

/* Overlay per migliorare leggibilità testi
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
} */

/* Testo nascosto di default (desktop) */
.hero-text {
  display: none;
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6),
               0 0 8px rgba(184, 134, 11, 0.6); /* glow dorato */
}

.hero-text p {
  font-size: 1.3rem;
  font-weight: 300;
  color: #f0e6d2; /* grigio-dorato elegante */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* ========================
   PRODOTTI HOME
   ======================== */
.prodotti-home {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.prodotti-home h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.prodotti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.prodotto {
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prodotto:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.prodotto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.prodotto h3 {
  margin: 15px 0;
  font-size: 1.2rem;
  color: #333;
  transition: color 0.3s;
}

.prodotto:hover h3 {
  color: #b8860b;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .hero {
    height: 70vh;
    background: url("../../assets/img/hero-mobile.jpg") no-repeat center center/cover;
  }

  /* fallback se hero-mobile non esiste */
  .hero[style*="hero.jpg"] {
    background-size: contain;
    background-color: #000; /* evita bande bianche */
  }

  /* Mostra il testo solo su mobile */
  .hero-text {
    display: block;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}
