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

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

.candele-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));
}

/* Testo hero */
.hero-text {
  position: relative;
  display: inline-block;
  padding: 20px 30px;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  margin-bottom: 10px;
}

.candele-hero .hero-text p {
  color: #ffffff !important;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4),
               0 1px 3px rgba(0,0,0,0.3);
}

/* =========================
   LINK "TORNA INDIETRO"
   ========================= */
.back-link {
  position: absolute;
  bottom: 20px;
  left: 25px;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 2;
}

.back-link:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.05);
}

/* =========================
   SEZIONE PRODOTTI
   ========================= */
.prodotti-candele {
  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;
}

.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-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 15px;
}

.prodotto-card h2 {
  margin: 12px 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;
}

.prodotto-card .description {
  font-size: 0.95rem;
  color: #555;
  margin: 0 10px 12px;
  line-height: 1.4;
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #b8860b;
  margin-bottom: 12px;
}

/* =========================
   PULSANTI
   ========================= */
#contact-order-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #a87c4f, #d4a017);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#contact-order-link:hover {
  background: linear-gradient(135deg, #d4a017, #a87c4f);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

#contact-order-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Pulsanti premium */
.snipcart-add-item {
  padding: 12px;
  background: linear-gradient(135deg, #b8860b, #d4af37);
  color: #fff !important;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  text-decoration: none;
  display: inline-block;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.snipcart-add-item:hover {
  background: linear-gradient(135deg, #8b6508, #b8860b);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

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