/* =============================================================
   LM Servizi & Consulenze IT — Brand Bundle
   CDN: cdn.lmscit.com
   Include: Font-face declarations + Brand Palette (dark + light)
   ============================================================= */

/* ── FONTS ──────────────────────────────────────────────────── */

/* Cormorant Garamond — Display / Hero / Slogan */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond/cormorant-garamond-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/cormorant-garamond/cormorant-garamond-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond/cormorant-garamond-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond/cormorant-garamond-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond/cormorant-garamond-700i-latin.woff") format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond/cormorant-garamond-700i-latin-ext.woff") format('woff');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Outfit — UI / Heading / Navigazione (variable font, 400-800) */
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit/outfit-latin.woff2") format('woff2');
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit/outfit-latin.woff2") format('woff2');
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit/outfit-latin.woff2") format('woff2');
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/outfit/outfit-latin.woff2") format('woff2');
}

/* DM Sans — Body / Paragrafi */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin.woff2") format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-latin.woff2") format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans/dm-sans-700-latin.woff2") format('woff2');
}

/* JetBrains Mono — Codice / Dati tecnici */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono/jetbrains-mono-400-latin.woff2") format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/jetbrains-mono/jetbrains-mono-700-latin.woff2") format('woff2');
}

/* ── PALETTE ────────────────────────────────────────────────── */

/* Dark Mode (default) */
:root {
  --lm-bg:          #0C0A08;
  --lm-surface:     #1A1512;
  --lm-border:      #2E2318;
  --lm-gold:        #C8902A;
  --lm-gold-hover:  #E8A820;
  --lm-gold-deep:   #8B5A10;
  --lm-gold-shadow: #6B3F0A;
  --lm-text:        #F5EFE0;
  --lm-text-muted:  #A8906A;
  --lm-text-faint:  #5A4A38;

  /* Semantici (standard su tutti i progetti) */
  --lm-success:     #28a745;
  --lm-error:       #dc3545;
  --lm-warning:     #E8A820;
  --lm-info:        #A8906A;

  /* Tipografia */
  --lm-font-display: 'Cormorant Garamond', georgia, serif;
  --lm-font-ui:      'Outfit', system-ui, sans-serif;
  --lm-font-body:    'DM Sans', system-ui, sans-serif;
  --lm-font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* ── Prodotti — colori primari ──
     Brand decision 2026-06-06: palette unica corporate cross-prodotto.
     Tutti i prodotti LMSCIT condividono --lm-gold #C8902A; la
     differenziazione visiva avviene esclusivamente tramite logo + nome
     del prodotto. I prodotti del brand personale Lorenzo (CV/News)
     restano sull'oro chiaro #E8A820 (famiglia "personal-lorenzo"). */
  --lm-servizi-primary:     #C8902A;
  --lm-servizi-secondary:   #8B5A10;
  --lm-tickethub-primary:   #C8902A;   /* era #D4A017 — unificato a corporate */
  --lm-tickethub-secondary: #8B5A10;
  --lm-presenze-primary:    #C8902A;
  --lm-presenze-secondary:  #8B5A10;
  --lm-manager-primary:     #C8902A;
  --lm-manager-secondary:   #8B5A10;
  --lm-gp-primary:          #C8902A;   /* era #B87333 rame — unificato */
  --lm-gp-secondary:        #8B5A10;
  --lm-academy-primary:     #C8902A;   /* era #C8962A oro accademico — unificato */
  --lm-academy-secondary:   #8B5A10;
  --lm-api-primary:         #C8902A;
  --lm-api-secondary:       #8B5A10;
  /* Brand personale Lorenzo (NON LMSCIT) */
  --lm-website-primary:     #E8A820;
  --lm-website-secondary:   #A87018;
}

/* Light Mode
   Selettori compatibili con i 3 lessici theme-switching usati nei prodotti LM:
   - [data-bs-theme="light"]  → Bootstrap 5.3+ standard (usato da gp.lmscit.com,
     thp.lmscit.com, presenze.lmscit.com via ThemeSwitcher.js + _theme_init.php
     no-FOUC)
   - [data-theme="light"]     → vecchio prefix custom LM
   - .lm-light  /  body.light → fallback classe (per template senza data-attr)
   2026-06-23: aggiunto [data-bs-theme="light"] perche' senza di esso il toggle
   nella dashboard GP mostrava righe tabella bianche su sfondo dark (header e
   sidebar non rispondevano al cambio mode — le variabili --lm-* restavano dark
   anche dopo data-bs-theme="light"). */
[data-bs-theme="light"],
[data-theme="light"],
.lm-light,
body.light {
  --lm-bg:          #FAF7F2;
  --lm-surface:     #FFF;
  --lm-border:      #E8DDD0;
  --lm-gold:        #C8902A;
  --lm-gold-hover:  #8B5A10;
  --lm-gold-deep:   #8B5A10;
  --lm-gold-shadow: #6B3F0A;
  --lm-text:        #1A1512;
  --lm-text-muted:  #5A4A38;
  --lm-text-faint:  #A8906A;
}

