:root {
  /* Colori Corporate */
  --md-primary-fg-color: #C0CE30;
  --md-primary-fg-color--light: #d6df6d;
  --md-primary-fg-color--dark: #a8b620;
  --md-accent-fg-color: #484B31; /* Verde scuro come accento per leggibilità */
  --md-default-fg-color: #484B31;
  --md-typeset-color: #484B31;
}

/* --- HEADER FISSO --- */
.md-header {
  background-color: #C0CE30 !important;
  color: #484B31 !important;
}

.md-header__button, .md-header__title {
  color: #484B31 !important;
}

/* --- TITOLI STILE "CASI DI SUCCESSO" --- */
.md-typeset h1 {
  font-weight: 800;
  text-transform: uppercase;
  border-bottom: 3px solid #C0CE30;
  padding-bottom: 0.5rem;
  color: #484B31;
}

/* --- MENU LATERALE: RIMOZIONE TOTALE BARRETTE E STILE SELEZIONE --- */

/* Rimuove la barra da qualsiasi link attivo o etichetta di sezione (anche con navigation.sections) */
.md-nav__link--active, 
.md-nav__label--active,
.md-nav__item--active > .md-nav__link,
.md-nav__item--active > .md-nav__label {
  border-left: none !important;
  border-inline-start: none !important;
  font-weight: 700;
}

/* Stile selezione (Modalità Chiara) */
.md-nav__item--active > .md-nav__link {
  color: #484B31 !important; /* Verde scuro per contrasto */
  background-color: rgba(192, 206, 48, 0.2) !important; 
  border-radius: 4px;
}

/* --- MODALITÀ SCURA (REVISIONE CONTRASTO) --- */
[data-md-color-scheme="slate"] {
  --md-default-bg-color: #000000;      /* Sfondo nero assoluto */
  --md-default-bg-color--light: #121212;
  --md-default-fg-color: #ffffff;      /* Testo bianco */
  --md-typeset-color: #ffffff;
  --md-accent-fg-color: #C0CE30;
}

/* Header in Dark Mode: Titolo bianco per leggibilità */
[data-md-color-scheme="slate"] .md-header {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

[data-md-color-scheme="slate"] .md-header__title {
  color: #ffffff !important;
}

[data-md-color-scheme="slate"] .md-header__button {
  color: #C0CE30 !important; /* Icone mantengono il verde */
}

/* Selezione menu in Dark Mode (senza barra) */
[data-md-color-scheme="slate"] .md-nav__item--active > .md-nav__link {
  color: #C0CE30 !important;
  background-color: rgba(192, 206, 48, 0.1) !important;
  border-left: none !important;
}

/* Colori titoli in Dark Mode */
[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3 {
  color: #C0CE30 !important;
}