/* 🎨 Palette Colori */
:root {
  --bg-main: #e6dfd5;     /* sfondo principale */
  --bg-alt: #f5f1eb;      /* sfondo alternato */
  --text-dark: #3c2f2f;   /* testo scuro */
  --text-medium: #5a4634; /* testo medio */
  --accent: #d4a373;      /* colore principale pulsanti */
  --highlight: #b85c38;   /* hover pulsanti */
}

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

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

/* overlay trasparente */
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

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

/* Sottotitolo */
.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);
}

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

/* =========================
   PULSANTI GENERICI
   ========================= */
.btn {
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}
.btn:hover {
  background: var(--highlight);
}

/* Pulsante superiore flottante */
.btn-top {
  position: fixed;
  top: 70px;
  right: 20px;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  z-index: 2000;
}
.btn-top.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* Pulsante inferiore */
.btn-bottom {
  display: block;
  margin: 40px auto 60px auto;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  max-width: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.btn-bottom:hover {
  background: var(--highlight);
}

/* =========================
   SEZIONI SCROLL
   ========================= */
.scroll-section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 80px 10%;
  background: var(--bg-main);
  gap: 40px;
}
.scroll-section.alt {
  background: var(--bg-alt);
}
.scroll-section .text {
  flex: 1;
  color: var(--text-medium);
}
.scroll-section .text h2 {
  color: var(--text-dark);
  margin-bottom: 15px;
}
.scroll-section .image {
  flex: 1;
}
.scroll-section .image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

/* Animazioni quando la sezione diventa visibile */
.scroll-section.visible .image img,
.scroll-section.visible .text {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   🛒 CARRELLO
   ========================= */
.cart-count {
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  display: inline-block;
}
.nav-links a#open-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--text-dark);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}
