/* ============================================================
   IL MIO INVITO — BARRA DELLA DEMO CON SELETTORE DEI DESIGN
   Usato da sito/demo.html (+ demo-switcher.js). Prima la barra era
   creata dal JS della pagina con stili inline (2026-11-01).
   ============================================================ */

/* La barra è fissa in fondo: spazio sotto il contenuto per non coprire il footer */
body.has-demo-bar { padding-bottom: 76px; }

.ds-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: .75rem 1.5rem;
  /* Colori fissi (non del tema): la barra resta leggibile su tutti i design */
  background: rgba(26, 18, 8, 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff; font-family: 'Montserrat', Arial, sans-serif;
}
.ds-left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.ds-label { font-size: .85rem; opacity: .85; white-space: nowrap; }
.ds-label strong { font-weight: 600; opacity: 1; }
.ds-themes { display: flex; gap: .4rem; }

.ds-theme {
  width: 34px; height: 34px; padding: 3px; border-radius: 50%;
  border: 2px solid transparent; background: none; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease; flex-shrink: 0;
}
.ds-theme:hover { transform: translateY(-2px); }
.ds-theme.is-active { border-color: #fff; }
.ds-theme:focus-visible { outline: 2px solid #E8D5A0; outline-offset: 2px; }
.ds-dot { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
/* Mezzo pallino colore di fondo (60%) e mezzo colore d'accento (10%) di ogni tema: stessi valori di themes.css */
.ds-dot--romantic-gold    { background: linear-gradient(135deg, #F5F0E8 50%, #C9A84C 50%); }
.ds-dot--boho-earth       { background: linear-gradient(135deg, #F3EADC 50%, #B85C38 50%); }
.ds-dot--luxury-night     { background: linear-gradient(135deg, #0F1B33 50%, #D4AF37 50%); }
.ds-dot--minimal-white    { background: linear-gradient(135deg, #F5F5F4 50%, #1C1917 50%); }
.ds-dot--country-sage     { background: linear-gradient(135deg, #F4EDD9 50%, #C99A12 50%); }
.ds-dot--eucalyptus-green { background: linear-gradient(135deg, #FFFFFF 50%, #C2366F 50%); }

.ds-actions { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
.ds-back { color: #fff; text-decoration: underline; font-size: .85rem; }
.ds-buy {
  background: var(--gold); color: #fff; padding: .55rem 1.4rem; border-radius: 50px;
  font-weight: 600; font-size: .85rem; white-space: nowrap; text-decoration: none;
  transition: filter .2s ease;
}
.ds-buy:hover { filter: brightness(1.1); }

/* Tablet: il nome del design lascia spazio ai pallini */
@media (max-width: 900px) {
  .ds-label { display: none; }
}
/* Telefono: pallini sopra (scorrevoli), azioni sotto */
@media (max-width: 600px) {
  body.has-demo-bar { padding-bottom: 116px; }
  .ds-bar { flex-direction: column; align-items: stretch; gap: .6rem; padding: .6rem 1rem; }
  .ds-left { justify-content: center; }
  .ds-themes { overflow-x: auto; max-width: 100%; padding: 2px; }
  .ds-actions { justify-content: space-between; }
  .ds-buy { padding: .5rem 1.1rem; }
}
