/* =====================================================================
   VETRINALUMINOSA.IT — Tema "Vetrine di sera"
   Palette ispirata alle insegne luminose dei negozi al calar della sera
   su un corso italiano: blu inchiostro profondo + oro caldo al neon.
   ===================================================================== */

:root {
  --vl-ink:        #10141f;   /* blu-nero profondo, il "cielo di sera" */
  --vl-ink-2:      #171d2e;   /* pannelli scuri */
  --vl-gold:       #f4b942;   /* insegna al neon dorata */
  --vl-gold-soft:  #ffd98a;
  --vl-cream:      #faf6ee;   /* vetro illuminato / sfondo chiaro */
  --vl-paper:      #ffffff;
  --vl-ink-text:   #1c2233;
  --vl-muted:      #6b7280;
  --vl-line:       #e7e1d3;
  --vl-success:    #2f9e64;
  --vl-danger:     #d64545;

  --vl-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --vl-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  font-family: var(--vl-font-body);
  color: var(--vl-ink-text);
  background: var(--vl-cream);
}

h1, h2, h3, h4, .vl-display {
  font-family: var(--vl-font-display);
  letter-spacing: -0.01em;
}

a { color: var(--vl-ink); }
a:hover { color: var(--vl-gold); }

/* ---------- Bottoni ---------- */
.btn-vl {
  background: var(--vl-gold);
  border: none;
  color: var(--vl-ink);
  font-weight: 600;
  padding: .65rem 1.4rem;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 6px 18px rgba(244, 185, 66, .28);
}
.btn-vl:hover { background: var(--vl-gold-soft); color: var(--vl-ink); transform: translateY(-1px); }
.btn-vl-outline {
  background: transparent;
  border: 1.5px solid var(--vl-ink);
  color: var(--vl-ink);
  border-radius: 999px;
  padding: .6rem 1.35rem;
  font-weight: 600;
}
.btn-vl-outline:hover { background: var(--vl-ink); color: var(--vl-cream); }
.btn-vl-ghost {
  background: transparent;
  border: 1.5px solid rgba(250,246,238,.35);
  color: var(--vl-cream);
  border-radius: 999px;
  padding: .6rem 1.35rem;
  font-weight: 600;
}
.btn-vl-ghost:hover { border-color: var(--vl-gold); color: var(--vl-gold); }

/* ---------- Navbar ---------- */
.vl-navbar {
  background: var(--vl-ink);
}
.vl-navbar .navbar-brand {
  font-family: var(--vl-font-display);
  color: var(--vl-cream) !important;
  font-size: 1.5rem;
  font-weight: 600;
}
.vl-navbar .navbar-brand span { color: var(--vl-gold); }
.vl-navbar .nav-link { color: rgba(250,246,238,.82) !important; font-weight: 500; }
.vl-navbar .nav-link:hover { color: var(--vl-gold) !important; }

/* ---------- Hero (vetrina) ---------- */
.vl-hero {
  background: radial-gradient(ellipse at top left, #1c2340 0%, var(--vl-ink) 55%);
  color: var(--vl-cream);
  position: relative;
  overflow: hidden;
}
.vl-hero-accento { color: var(--vl-gold); }

/* Slideshow immagini hero, personalizzabile da Admin > Aspetto del sito */
.vl-hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.vl-hero-slide-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.vl-hero-slide-item.vl-hero-slide-attiva { opacity: 1; }
.vl-hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,20,31,.92) 0%, rgba(16,20,31,.75) 55%, rgba(16,20,31,.55) 100%);
}
.vl-hero.vl-hero-slide .container { z-index: 1; }
.vl-hero-slide .container { position: relative; z-index: 1; }
.vl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(244,185,66,.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244,185,66,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.vl-hero .vl-eyebrow {
  color: var(--vl-gold);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
}
.vl-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.05; }

/* ---------- Vetrina cards (negozi/prodotti) ---------- */
.vl-card {
  background: var(--vl-paper);
  border: 1px solid var(--vl-line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  height: 100%;
}
.vl-card:hover {
  box-shadow: 0 16px 40px rgba(16, 20, 31, .12);
  transform: translateY(-3px);
  border-color: var(--vl-gold);
}
.vl-card .vl-card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eee6d3, #f6f1e4);
  display: flex; align-items: center; justify-content: center;
  color: var(--vl-muted);
  font-size: 2rem;
}

/* Contenitore per loghi negozio: mostra il logo intero (mai tagliato), sia che sia
   quadrato/verticale sia che sia orizzontale. Il riquadro attorno lascia un margine
   di rispetto tramite il padding sul contenitore (vedi .vl-logo-box), non sull'immagine. */
.vl-logo-fit {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.vl-logo-box {
  padding: 12%;
  box-sizing: border-box;
}
.vl-card .vl-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.vl-card .vl-badge-cat {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--vl-ink); background: rgba(244,185,66,.28);
  padding: .2rem .55rem; border-radius: 999px; font-weight: 700;
}
.vl-price { font-family: var(--vl-font-display); font-size: 1.4rem; color: var(--vl-ink); }

/* ---------- Sezioni ---------- */
.vl-section { padding: 4.2rem 0; }
.vl-section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.vl-kicker {
  color: var(--vl-gold);
  background: var(--vl-ink);
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: .9rem;
}

/* ---------- Categorie pill ---------- */
.vl-cat-pill {
  border: 1px solid var(--vl-line);
  border-radius: 999px;
  padding: .55rem 1.1rem;
  background: var(--vl-paper);
  color: var(--vl-ink-text);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .15s ease;
}
.vl-cat-pill:hover { background: var(--vl-ink); color: var(--vl-cream); border-color: var(--vl-ink); }

/* Striscia orizzontale trascinabile col mouse (drag-to-scroll), usata per le
   categorie in home: evita che occupino tante righe verticali. */
.vl-scroll-drag {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  padding-bottom: .4rem;
  /* nasconde la scrollbar mantenendo lo scorrimento funzionante */
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}
.vl-scroll-drag-attivo { cursor: grabbing; }
.vl-scroll-drag .vl-cat-pill { flex-shrink: 0; }
.vl-scroll-drag::-webkit-scrollbar { height: 6px; }
.vl-scroll-drag::-webkit-scrollbar-thumb { background: var(--vl-line); border-radius: 999px; }
.vl-scroll-drag::-webkit-scrollbar-track { background: transparent; }

/* ---------- Piani/pricing ---------- */
.vl-plan {
  background: var(--vl-paper);
  border: 1.5px solid var(--vl-line);
  border-radius: 18px;
  padding: 2rem 1.7rem;
  height: 100%;
  position: relative;
}
.vl-plan.vl-plan-featured {
  border-color: var(--vl-gold);
  box-shadow: 0 20px 45px rgba(244,185,66,.18);
}
.vl-plan .vl-plan-price {
  font-family: var(--vl-font-display);
  font-size: 2.4rem;
  color: var(--vl-ink);
}
.vl-plan ul { list-style: none; padding: 0; margin: 1.2rem 0; }
.vl-plan ul li { padding: .35rem 0; display: flex; gap: .55rem; align-items: flex-start; }
.vl-plan ul li i { color: var(--vl-gold); margin-top: .2rem; }

/* ---------- Footer ---------- */
.vl-footer { background: var(--vl-ink); color: rgba(250,246,238,.75); }
.vl-footer a { color: rgba(250,246,238,.75); text-decoration: none; }
.vl-footer a:hover { color: var(--vl-gold); }
.vl-footer h6 { color: var(--vl-cream); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }

/* ---------- Form ---------- */
.vl-form-card {
  background: var(--vl-paper);
  border-radius: 18px;
  border: 1px solid var(--vl-line);
  padding: 2.2rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--vl-gold);
  box-shadow: 0 0 0 .2rem rgba(244,185,66,.22);
}

/* ---------- Admin panel ---------- */
.vl-admin-sidebar {
  background: var(--vl-ink);
  min-height: 100vh;
  color: rgba(250,246,238,.85);
}
.vl-admin-sidebar a {
  color: rgba(250,246,238,.75);
  text-decoration: none;
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem .9rem;
  border-radius: 10px;
  font-weight: 500;
}
.vl-admin-sidebar a:hover, .vl-admin-sidebar a.active {
  background: rgba(244,185,66,.14);
  color: var(--vl-gold);
}
.vl-stat-card {
  background: var(--vl-paper);
  border: 1px solid var(--vl-line);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
}
.vl-stat-card .vl-stat-num { font-family: var(--vl-font-display); font-size: 2rem; }

/* ---------- Badge stati ---------- */
.badge-stato-attivo { background: var(--vl-success); }
.badge-stato-in_attesa_pagamento, .badge-stato-in_attesa { background: #d68b1f; }
.badge-stato-sospeso, .badge-stato-scaduto { background: var(--vl-danger); }
.badge-stato-bozza { background: var(--vl-muted); }

/* ---------- Utility ---------- */
.vl-underline-gold { border-bottom: 3px solid var(--vl-gold); padding-bottom: .15rem; }
.text-vl-gold { color: var(--vl-gold); }
.bg-vl-ink { background: var(--vl-ink); }

/* ---------- Scorciatoia modifica rapida per admin (badge sulle card) ---------- */
.vl-admin-edit-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16,20,31,.85);
  color: #f4b942;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: .95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.vl-admin-edit-badge:hover { background: #f4b942; color: #10141f; }

/* ---------- Riquadri pubblicitari (Google AdSense) ---------- */
.vl-ad-box {
  background: var(--vl-paper);
  border: 1px dashed var(--vl-line);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  overflow: hidden;
}
.vl-ad-box-orizzontale { min-height: 90px; margin: 1.5rem 0; }
.vl-ad-box-sidebar { min-height: 250px; margin: 1.5rem 0; }
.vl-ad-box-quadrato {
  background: var(--vl-paper);
  border: 1px solid var(--vl-line);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ---------- Barra di ricerca a comparsa (icona lente nella navbar) ---------- */
.vl-barra-ricerca {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.vl-barra-ricerca.vl-barra-ricerca-aperta { max-height: 120px; }
.vl-barra-ricerca input[type="search"] {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #faf6ee;
}
.vl-barra-ricerca input[type="search"]::placeholder { color: rgba(250,246,238,.6); }
.vl-barra-ricerca input[type="search"]:focus {
  background: rgba(255,255,255,.15);
  border-color: var(--vl-gold);
  color: #faf6ee;
  box-shadow: none;
}

/* ---------- Galleria fotografica pagine del sito (CMS) ---------- */
.vl-galleria-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--vl-paper);
}
.vl-galleria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
  display: block;
}
.vl-galleria-item:hover img { transform: scale(1.08); }
.vl-galleria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 31, .6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  opacity: 0;
  transition: opacity .25s ease;
  color: #faf6ee;
  text-align: center;
  padding: .75rem;
}
.vl-galleria-item:hover .vl-galleria-overlay { opacity: 1; }
.vl-galleria-titolo { font-size: .85rem; font-weight: 600; }
.vl-galleria-overlay i { font-size: 1.6rem; color: var(--vl-gold); }

/* ---------- Contenuto HTML formattato (editor di testo Quill) ---------- */
.vl-contenuto-html { line-height: 1.75; }
.vl-contenuto-html p { margin-bottom: 1rem; }
.vl-contenuto-html ul, .vl-contenuto-html ol { margin-bottom: 1rem; padding-left: 1.4rem; }
.vl-contenuto-html a { color: var(--vl-ink); text-decoration: underline; }
.vl-contenuto-html h2, .vl-contenuto-html h3 { font-family: var(--vl-font-display); margin-top: 1.4rem; margin-bottom: .6rem; }

/* ---------- Mappa "Dove siamo" nella pagina negozio ---------- */
.vl-mappa-negozio iframe {
  width: 100% !important;
  height: 500px !important;
  border: 0;
  border-radius: 14px;
}

@media (max-width: 767px) {
  .vl-section { padding: 2.8rem 0; }
}
