/**
 * TEMI ALTERNATIVI - Stessi contenuti, emozioni diverse
 * Per pavimentisti, rivenditori infissi, cucine/arredamento.
 * Applicare una classe a body: theme-caldo | theme-minimal | theme-classico
 */

/* ---------- TEMA CALDO (terracotta / pavimentisti) ---------- */
body.theme-caldo {
  --color-primary: #8B4513;
  --color-primary-light: #A0522D;
  --color-primary-dark: #5D2E0C;
  --color-accent: #D4A574;
  --color-accent-hover: #E0B88A;
  --color-bg: #fdf8f3;
  --color-bg-alt: #f5ebe0;
  --font-heading: 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ---------- TEMA MINIMAL (cucine / design contemporaneo) ---------- */
body.theme-minimal {
  --color-primary: #374151;
  --color-primary-light: #4B5563;
  --color-primary-dark: #1F2937;
  --color-accent: #6B7280;
  --color-accent-hover: #9CA3AF;
  --color-bg: #ffffff;
  --color-bg-alt: #F9FAFB;
  --font-heading: 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ---------- TEMA CLASSICO (arredamento / elegante) ---------- */
body.theme-classico {
  --color-primary: #1B4332;
  --color-primary-light: #2D6A4F;
  --color-primary-dark: #0D2818;
  --color-accent: #c9a227;
  --color-accent-hover: #d4b03a;
  --color-bg: #fafaf9;
  --color-bg-alt: #f5f5f4;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Libre Baskerville', Georgia, serif;
}

/* ---------- Selettore template (presente su tutte le viste) ---------- */
.template-switcher {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 0.75rem;
  color: #374151;
}
.template-switcher span { margin-right: 0.25rem; white-space: nowrap; }
.template-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.template-switcher a:hover { background: #e5e7eb; color: #1e3a5f; }
.template-switcher .current { background: #1e3a5f; color: white; pointer-events: none; }
