/* ─── slide.css — Stili della singola slide prodotto ─── */

/* ─── AREA IMMAGINE ─── */

.img-area {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 2vw 5vh 4vw;
  position: relative;
}

/* Alone luminoso dietro la card */
.img-glow {
  position: absolute;
  width: 65%; height: 65%;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 68%);
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: img-glow-pulse 5s ease-in-out infinite alternate;
}

@keyframes img-glow-pulse {
  0%   { opacity: 0.22; transform: scale(0.92); }
  100% { opacity: 0.48; transform: scale(1.08); }
}

/* Card immagine — bordo neon + angoli arrotondati */
.img-card {
  position: relative;
  z-index: 1;
  max-width: 88%;
  max-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--border-radius);
  border: 3px solid rgba(0, 212, 255, 0.55);
  box-shadow:
    0 0 12px  rgba(0, 212, 255, 0.42),
    0 0 30px  rgba(0, 212, 255, 0.20),
    0 0 65px  rgba(0, 212, 255, 0.09),
    inset 0 0 20px rgba(0, 212, 255, 0.05);

  background: rgba(8, 18, 38, 0.88);
  overflow: hidden;

  will-change: border-color, box-shadow;
  animation: card-neon-pulse 5s ease-in-out infinite alternate;
}

@keyframes card-neon-pulse {
  0% {
    border-color: rgba(0, 212, 255, 0.42);
    box-shadow:
      0 0 10px  rgba(0, 212, 255, 0.35),
      0 0 25px  rgba(0, 212, 255, 0.16),
      0 0 55px  rgba(0, 212, 255, 0.07),
      inset 0 0 16px rgba(0, 212, 255, 0.04);
  }
  100% {
    border-color: rgba(0, 212, 255, 0.78);
    box-shadow:
      0 0 18px  rgba(0, 212, 255, 0.68),
      0 0 42px  rgba(0, 212, 255, 0.30),
      0 0 85px  rgba(0, 212, 255, 0.13),
      inset 0 0 26px rgba(0, 212, 255, 0.09);
  }
}

.img-card img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
  padding: var(--card-padding);
  will-change: filter, opacity;
}

/* Placeholder quando l'immagine non c'è */
.img-placeholder {
  width: 280px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  padding: var(--card-padding);
}

/* ─── AREA TESTO ─── */

.text-area {
  padding: 6vh 5vw 6vh 3vw;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  height: 100%;
  justify-content: center;
}

/* Badge categoria + brand */
.badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28em 0.85em;
  border-radius: 100px;
}
.badge-cat {
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 255, 0.38);
  color: var(--accent);
}
.badge-brand {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.5);
}

/* Titolo con typewriter */
.slide-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
  min-height: 3.6em;
  will-change: opacity, text-shadow;
  animation: title-glow 5s ease-in-out infinite alternate;
}
@keyframes title-glow {
  0%   { text-shadow: 0 0 16px rgba(255,255,255,0.22); }
  100% { text-shadow: 0 0 36px rgba(255,255,255,0.52),
                      0 0 72px rgba(0,212,255,0.20); }
}

/* Cursore typewriter */
.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: tw-blink 0.75s step-end infinite;
}
@keyframes tw-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Divisore */
.slide-divider {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
}

/* Blocco prezzo */
.price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.price-value {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  color: var(--accent);
  animation: price-glow 4s ease-in-out infinite alternate;
}
@keyframes price-glow {
  0%   { text-shadow: 0 0 18px rgba(0, 212, 255, 0.4); }
  100% { text-shadow: 0 0 42px rgba(0, 212, 255, 0.85), 0 0 85px rgba(0, 212, 255, 0.28); }
}

.price-vat {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.badge-avail {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 100px;
  background: var(--green-dim);
  border: 1px solid rgba(0,255,136,0.34);
  color: var(--green);
}
.badge-unavail {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 100px;
  background: rgba(255,160,0,0.12);
  border: 1px solid rgba(255,160,0,0.35);
  color: #FFA000;
}

/* Descrizione */
.slide-description {
  font-size: clamp(0.74rem, 1.08vw, 0.88rem);
  line-height: 1.75;
  color: var(--text-secondary);
  width: 100%;
  text-align: justify;
  text-justify: inter-word;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
