/* /assets/css/venue-admin.css
   Area di gestione dei locali: elenco delle sedi, scelta del tema e del colore, serate, schermi e slide, piani,
   moderazione a scorrimento per il telefono dello staff. Nessuno stile in linea (CSP): i campioni di colore sono classi. */

.va-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.va-card { display: flex; flex-direction: column; gap: 12px; }
.va-card-h { display: flex; gap: 12px; align-items: center; }
.va-card h2 a { color: var(--ink); text-decoration: none; }
.va-logo { height: 48px; width: auto; min-width: 48px; max-width: 140px; padding: 4px; object-fit: contain; border-radius: 10px; background: #F6F3EE; flex: none; }
/* Testata della sede: il logo rettangolare non si ritaglia */
.evh-cover.evh-logo { width: auto; min-width: 64px; max-width: 160px; padding: 6px; background: #F6F3EE; }
.evh-cover.evh-logo img { width: auto; max-width: 100%; height: 100%; object-fit: contain; }
.va-mono { width: 48px; height: 48px; border-radius: 50%; background: var(--notte); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.va-pick { text-decoration: none; color: var(--ink); }
.va-pick:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.va-live { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.va-dot { width: 10px; height: 10px; border-radius: 50%; background: #1E7F4F; flex: none; box-shadow: 0 0 0 4px rgba(30, 127, 79, 0.18); }
.va-empty { max-width: 640px; }
.va-state.is-draft { border-color: #C7D6EA; background: #F4F8FD; }
.va-state.is-expired { border-color: #F3C7B8; background: #FFF5F1; }
.va-state.is-expiring { border-color: #F2D7A6; background: #FFFAF0; }
.va-qr { width: 180px; max-width: 100%; background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.va-qr svg { display: block; width: 100%; height: auto; }
.va-screen { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.va-screen svg { width: 20px; height: 20px; flex: none; }
.va-screen span { flex: 1 1 auto; }
.va-screen-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.va-more { position: relative; }
.va-more summary { list-style: none; }
.va-more summary::-webkit-details-marker { display: none; }
.va-more-box { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); min-width: 280px; }
.va-night { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.va-night:first-of-type { border-top: 0; }
.va-night p { display: flex; align-items: center; gap: 8px; }
.va-cover { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; }
.narrow-form { max-width: 640px; }

/* Temi: cinque schede cliccabili con i colori e i caratteri del tema */
.va-themes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.va-theme { position: relative; cursor: pointer; }
.va-theme input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.va-theme-box { display: flex; flex-direction: column; gap: 6px; min-height: 140px; padding: 16px; border-radius: 14px; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line-2); }
.va-theme input:checked + .va-theme-box { border-color: var(--lampone); box-shadow: 0 0 0 3px rgba(226, 54, 111, 0.2); }
.va-theme input:focus-visible + .va-theme-box { outline: 3px solid var(--albicocca); outline-offset: 2px; }
.va-theme-name { font-size: 28px; line-height: 1; }
.va-theme-for { font-size: 13px; opacity: .85; }
.va-theme-btn { margin-top: auto; align-self: flex-start; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.vt-card-velluto .va-theme-box { background: #0F2A24; color: #F3EBDD; }
.vt-card-velluto .va-theme-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; text-transform: none; }
.vt-card-velluto .va-theme-btn { background: #C9A45C; color: #0F2A24; }
.vt-card-neon .va-theme-box { background: #0B0B10; color: #FFFFFF; }
.vt-card-neon .va-theme-name { font-family: 'Anton', Impact, sans-serif; font-weight: 400; text-transform: uppercase; }
.vt-card-neon .va-theme-btn { background: #FF2E88; color: #0B0B10; }
.vt-card-spina .va-theme-box { background: #F4EBDD; color: #2A1A0E; }
.vt-card-spina .va-theme-name { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; text-transform: none; }
.vt-card-spina .va-theme-btn { background: #9A4E12; color: #FFF8EE; }
.vt-card-riva .va-theme-box { background: #FBF6EC; color: #0E3B43; }
.vt-card-riva .va-theme-name { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; text-transform: none; }
.vt-card-riva .va-theme-btn { background: #0B7479; color: #FFFFFF; }
.vt-card-tavola .va-theme-box { background: #F7F1E7; color: #2B2420; }
.vt-card-tavola .va-theme-name { font-family: 'Fraunces', Georgia, serif; font-weight: 700; text-transform: none; }
.vt-card-tavola .va-theme-btn { background: #A8442A; color: #FFFDF8; }
.vt-card-neon .va-theme-btn { border-radius: 0; } .vt-card-riva .va-theme-btn { border-radius: 16px; } .vt-card-spina .va-theme-btn { border-radius: 6px; } .vt-card-tavola .va-theme-btn { border-radius: 4px; } .vt-card-velluto .va-theme-btn { border-radius: 2px; }

/* Colore d'accento */
.va-accents { display: flex; flex-wrap: wrap; gap: 8px; }
.va-accent { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 22px; cursor: pointer; font-size: 14px; }
.va-accent input { width: 18px; height: 18px; accent-color: var(--lampone); }
.va-sw { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); flex: none; }
.sw-C9A45C { background: #C9A45C; }
.sw-D98A6C { background: #D98A6C; }
.sw-9DBFA9 { background: #9DBFA9; }
.sw-E7D8B8 { background: #E7D8B8; }
.sw-FF2E88 { background: #FF2E88; }
.sw-22D3EE { background: #22D3EE; }
.sw-A3E635 { background: #A3E635; }
.sw-FACC15 { background: #FACC15; }
.sw-9A4E12 { background: #9A4E12; }
.sw-3F5A3A { background: #3F5A3A; }
.sw-7A2E2E { background: #7A2E2E; }
.sw-1F4E79 { background: #1F4E79; }
.sw-0B7479 { background: #0B7479; }
.sw-C2410C { background: #C2410C; }
.sw-1D4ED8 { background: #1D4ED8; }
.sw-7C3AED { background: #7C3AED; }
.sw-A8442A { background: #A8442A; }
.sw-6B7A3A { background: #6B7A3A; }
.sw-7A2E3A { background: #7A2E3A; }
.sw-2F5D7C { background: #2F5D7C; }

/* Anteprima con le variabili del tema salvato (foglio /l/{slug}/stile/...) */
.va-prev { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 14px; background: var(--v-bg); color: var(--v-text); font-family: var(--v-body); }
.va-prev-name { font-family: var(--v-display); font-weight: var(--v-dw); text-transform: var(--v-case); letter-spacing: var(--v-track); font-size: 32px; line-height: 1; }
.va-prev-pill { padding: 10px 12px; border-radius: var(--v-radius); background: var(--v-surface); font-size: 14px; }
.va-prev-btn { align-self: flex-start; padding: 10px 14px; border-radius: var(--v-radius); background: var(--v-accent); color: var(--v-on-accent); font-weight: 600; font-size: 14px; }

/* Slide */
.va-slides { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.va-slide { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.va-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #F1ECE4; }
.va-slide.is-off img { opacity: .45; }
.va-upload { border-top: 1px solid var(--line); padding-top: 14px; }

/* Piani */
.va-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.va-plan.is-plus { border-color: var(--lampone); box-shadow: 0 0 0 1px var(--lampone); }
.va-feat { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.va-feat li { display: flex; gap: 8px; align-items: flex-start; }
.va-feat svg { width: 16px; height: 16px; flex: none; color: var(--ok); margin-top: 3px; }
.va-durations { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.va-dur { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.va-dur-m { font-weight: 700; }
.va-dur-p { font-size: 20px; font-weight: 800; color: var(--ink); }
.va-top { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.va-top figure { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.va-top img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* Moderazione a scorrimento (telefono dello staff) */
.vm { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.vm-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.vm-title { font-size: 24px; }
.vm-counts { font-size: 14px; font-weight: 600; }
.vm-stage { position: relative; min-height: 58vh; border-radius: 18px; background: #10151F; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.vm-card { margin: 0; width: 100%; height: 100%; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform .18s ease, opacity .18s ease; }
.vm-card img, .vm-card video { max-width: 100%; max-height: 100%; object-fit: contain; }
.vm-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 14px; font-weight: 600; }
.vm-card.is-out-r { transform: translateX(40%) rotate(6deg); opacity: 0; }
.vm-card.is-out-l { transform: translateX(-40%) rotate(-6deg); opacity: 0; }
.vm-empty { color: #E6EAF0; text-align: center; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.vm-empty-t { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 20px; font-weight: 700; }
.vm-empty-t svg { width: 22px; height: 22px; }
.vm-empty .muted { color: #B9C3D1; }
.vm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vm-actions .btn { min-height: 60px; font-size: 18px; border-radius: 16px; }
.vm-ok { background: var(--ok); color: #fff; }
.vm-ok:hover { background: #17663F; color: #fff; }
.vm-hide { background: #fff; color: var(--err-ink); border-color: #F0C4B7; }
.vm-actions .btn:disabled { opacity: .45; cursor: default; }
.vm-hint { text-align: center; }
.vm-back { max-width: 560px; margin: 16px auto 0; padding: 0 16px; }
/* Pagina /locali: i cinque temi coordinati (pagina sul telefono, Live Wall, cartoncino), a linguette */
.vts-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.vts-tab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: var(--notte); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.vts-tab:hover { border-color: var(--lampone); }
.vts-tab:focus-visible { outline: 3px solid rgba(226, 54, 111, .35); outline-offset: 2px; }
.vts-tab[aria-selected="true"] { border-color: var(--lampone); box-shadow: 0 0 0 3px rgba(226, 54, 111, .18); }
.vts-tab strong { display: block; font-size: 15px; }
.vts-tab small { display: block; font-size: 12px; color: var(--ink-2); }
.vts-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08); }
.vts-panel { display: grid; grid-template-columns: 1fr 2.2fr 1fr; gap: 24px; align-items: end; }
.vts-panel[hidden] { display: none; }
.vts-fig { margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; min-width: 0; }
.vts-fig figcaption { font-size: 14px; font-weight: 600; color: var(--notte); text-align: center; }
.vts-frame { display: block; width: 100%; overflow: hidden; background: #0A0A0F; }
.vts-frame img { display: block; width: 100%; height: auto; }
.vts-phone .vts-frame { max-width: 230px; border-radius: 30px; padding: 8px; box-shadow: 0 24px 40px -18px rgba(20, 52, 95, .5); }
.vts-phone .vts-frame img { border-radius: 23px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.vts-tv .vts-frame { border-radius: 14px; padding: 10px; box-shadow: 0 30px 50px -22px rgba(20, 52, 95, .55); }
.vts-tv .vts-frame img { border-radius: 6px; }
.vts-card .vts-frame { max-width: 240px; background: none; border-radius: 12px; box-shadow: 0 20px 34px -16px rgba(20, 52, 95, .45); transform: rotate(2deg); }
.vts-note { text-align: center; margin-top: 22px; }
@media (max-width: 860px) {
  /* telefono: le tre immagini scorrono in orizzontale */
  .vts-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; }
  .vts-tab { flex: none; }
  .vts-panel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding-bottom: 8px; align-items: flex-end; }
  .vts-fig { scroll-snap-align: center; flex: none; }
  .vts-phone { width: 62%; } .vts-tv { width: 92%; } .vts-card { width: 62%; }
}
