/* promozioni_evidenza.css
   Sezioni Promozioni ed Evidenza — homepage & categoria
   Palette: #1a1208 nero | #fbbf24 oro | #d97706 arancio
   Badge promo: #e53e3e rosso | Badge evidenza: #d97706 oro
*/

/* ============================================================
   SEZIONE HEADER (comune)
   ============================================================ */
.pe-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 18px;
}

.pe-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  color: #1a1208;
  margin: 0;
  letter-spacing: 0.04em;
}

.pe-section-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
  flex-shrink: 0;
}

.pe-badge-promo    { background: #e53e3e; }
.pe-badge-evidenza { background: #d97706; }

/* ============================================================
   SEZIONE PROMOZIONI — griglia card
   ============================================================ */
.pe-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 8px;
}

.pe-promo-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.pe-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(26, 18, 8, 0.13);
}

.pe-promo-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f0e8;
}

.pe-promo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pe-promo-card:hover .pe-promo-img-wrap img {
  transform: scale(1.04);
}

.pe-promo-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f0e8 0%, #e8dfc8 100%);
}

/* Badge sconto */
.pe-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 6px;
  color: #fff;
  z-index: 2;
  pointer-events: none;
}

/* Badge cerchio sconto */
.pe-badge-circle {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 3px 10px rgba(229,62,62,0.4);
  line-height: 1;
  text-align: center;
}

/* corpo card */
.pe-promo-body {
  padding: 16px 20px 20px;
}

.pe-promo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: #1a1208;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 6px;
}

.pe-promo-msg {
  font-size: 0.92rem;
  color: #d97706;
  font-weight: 600;
  margin-top: 4px;
}

.pe-promo-date {
  font-size: 0.78rem;
  color: #888;
  margin-top: 6px;
  font-style: italic;
}

/* ============================================================
   SEZIONE EVIDENZA — carousel
   ============================================================ */

/* Font elegante per evidenza */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400&display=swap');

.pe-ev-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #e8f4f8 0%, #d6eaf5 100%);
  border-radius: 16px;
  padding: 16px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.pe-ev-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 6px 14px;
  cursor: grab;
  flex: 1;
}

.pe-ev-track::-webkit-scrollbar { display: none; }
.pe-ev-track.dragging           { cursor: grabbing; user-select: none; }

.pe-ev-slide {
  flex: 0 0 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c8dce8;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(26,60,90,0.08);
}

.pe-ev-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(26,60,90,0.18);
}

/* Immagine */
.pe-ev-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.pe-ev-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pe-ev-slide:hover .pe-ev-img-wrap img {
  transform: scale(1.06);
}

.pe-ev-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e8f0f5 0%, #c8dce8 100%);
}

/* Badge IN EVIDENZA sull immagine */
.pe-ev-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #d97706;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

/* Corpo slide — la cornice */
.pe-ev-body {
  padding: 14px 16px 18px;
  border-top: 3px solid #d97706;
  position: relative;
}

/* Linea decorativa angolo */
.pe-ev-body::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 16px;
  width: 40px;
  height: 3px;
  background: #1a1208;
}

/* Cornice sottile attorno al testo */
.pe-ev-body::after {
  content: '';
  position: absolute;
  inset: 10px 10px 10px 10px;
  border: 1px solid rgba(217,119,6,0.15);
  border-radius: 6px;
  pointer-events: none;
}

.pe-ev-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1208;
  line-height: 1.3;
  margin-bottom: 7px;
  position: relative;
  z-index: 1;
}

.pe-ev-text {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: #555;
  line-height: 1.55;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Frecce carousel */
.pe-ev-arrow {
  flex-shrink: 0;
  background: #1a1208;
  color: #fbbf24;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 2;
  margin: 0 4px;
}

.pe-ev-arrow:hover {
  background: #fbbf24;
  color: #1a1208;
}

/* ============================================================
   DIVISORIO per pagina categoria
   ============================================================ */
.pe-divisorio {
  border: none;
  border-top: 2px solid #e8e0d0;
  margin: 36px 0 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {

  .pe-promo-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
  }

  .pe-ev-slide {
    flex: 0 0 160px;
  }

  .pe-section-title {
    font-size: 1.35rem;
  }

  .pe-ev-arrow {
    display: none; /* su mobile si scrolla con touch */
  }
}
