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

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

.tessuti-hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

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

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

/* Pulsante "Torna ai Prodotti" */
.back-link {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  z-index: 3;
}

.back-link:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

/* ========================
   PRODOTTI
   ======================== */
.prodotti-tessuti {
  padding: 70px 30px;
  background: #f9f9f9;
}

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

/* Card prodotto */
.prodotto-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

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

.prodotto-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.prodotto-card:hover img {
  transform: scale(1.05);
}

.prodotto-card h2 {
  margin: 18px 0 8px;
  font-size: 1.3rem;
  color: #2a2a2a;
}

.prodotto-card h2 a {
  color: #2a2a2a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.prodotto-card h2 a:hover {
  color: #b8860b; /* effetto dorato al passaggio */
}

/* Prezzo */
.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #b8860b;
  margin-bottom: 15px;
}

/* Descrizione */
.prodotto-card .description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  padding: 0 15px;
  margin-bottom: 15px;
}

/* ========================
   BOTTONE "VEDI PRODOTTO"
   ======================== */
.btn,
.snipcart-add-item {
  display: inline-block;
  background: #b8860b; /* oro */
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn:hover,
.snipcart-add-item:hover {
  background: #a67809;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .tessuti-hero h1 {
    font-size: 2.2rem;
  }
  .tessuti-hero p {
    font-size: 1rem;
  }
}
