/* ================================
   SCHEDA — dettaglio (vespa.php)
   Scope: .scheda-vespa (contenuto)
   ================================ */

.scheda-vespa {
  --gap: 18px;
  --border: #2a2a2a;
  display: grid;
  gap: var(--gap);
}

.scheda-vespa .intestazione {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scheda-vespa .torna {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 6px 10px;
}

.scheda-vespa .torna:hover { background: rgba(255,255,255,0.06); }

.scheda-vespa h1 {
  margin: 4px 0 0;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.scheda-vespa .contenuto-vespa {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--gap);
}
@media (max-width: 960px) {
  .scheda-vespa .contenuto-vespa { grid-template-columns: 1fr; }
}

.scheda-vespa .galleria-vespa {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.scheda-vespa .foto-vespa {
  margin: 0;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0a0a0a;
}

.scheda-vespa .foto-vespa img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.scheda-vespa .dettagli-vespa {
  border: 1px solid var(--border);
  padding: 14px;
  display: grid;
  gap: 30px;
  background: rgba(255,255,255,0.02);
  height: fit-content;
}

.scheda-vespa .prezzo {
  font-size: 1.25rem;
  font-weight: 800;
}

.scheda-vespa .dettagli-vespa ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  color: var(--muted);
}
@media (max-width: 560px) {
  .scheda-vespa .dettagli-vespa ul { grid-template-columns: 1fr; }
}

.scheda-vespa .note-vespa {
  margin: 0;
  line-height: 1.5;
}

/* Badges + button contatto (riutilizzano nomi già nel markup) */
.scheda-vespa .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #0e0e0e;
  font-size: 0.85rem;
}
.scheda-vespa .contatto-vespa .btn {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .05s ease;
    font-size: 0.85em;
}


/* Contenitore overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.lightbox.aperto {
  opacity: 1;
  pointer-events: all;
}

/* Immagine grande */
.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* Pulsante chiudi */
.lightbox .chiudi {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.0rem;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.lightbox .chiudi:hover { opacity: 0.7; }

/* Frecce di navigazione */
.lightbox .freccia {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0 5px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
  user-select: none;
}
.lightbox .freccia:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%) scale(1.1);
}

.lightbox .freccia.sinistra { left: 30px; }
.lightbox .freccia.destra { right: 30px; }

/* Optional: effetto fade-in dell’immagine */
.lightbox img {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.aperto img {
  opacity: 1;
}

