/* =========================================================
   user.css — Cassiopeia overrides (Barlow + layout)
   ========================================================= */

/* === 1) Barlow font faces (woff2 only) ================== */
@font-face {
  font-family: 'Barlow';
  src: url('font/Barlow-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('font/Barlow-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('font/Barlow-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* === 2) Define variable (no recursion) =================== */
:root {
  --barlow-font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

/* === 3) Apply to text elements =========================== */
body {
  font-family: var(--barlow-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--barlow-font-family);
  font-weight: 700;
}

button, input, select, textarea {
  font-family: var(--barlow-font-family);
}

/* === 4) Layout rules (your original content) ============= */
.container-footer {
  height: 40px;
  max-height: 40px;
}

.container-header {
  height: 80px;
  max-height: 80px;
}

.footer .grid-child {
  padding: 0.5rem .5em;
}

/* === 5) Preserve icon fonts ============================== */
/* Do NOT override .edicon { font-family: 'IcoMoon-Free' !important; } */

/* === Nasconde il titolo della pagina di ricerca eDocman === */
/*h1.edocman-page-heading {
/*    display: none !important;
/*}

/* Nasconde i due titoli del risultato ricerca eDocman */
#edocmanSearchDiv .edocman-page-heading,
#edocmanSearchDiv .search_notification,
#edocmanSearchDiv h1,
#edocmanSearchDiv h2 {
    display: none !important;
}

/* === eDocman - riduce testo etichette documenti === */
.sidebar-right.card .card-body ul li a {
    font-size: 11px !important;
}

/* === eDocman - migliora leggibilità numeri etichette === */
.sidebar-right.card .card-body ul li a .badge,
.sidebar-right.card .card-body ul li a span,
.sidebar-right.card .card-body ul li .badge {
    color: #ffffff !important;
    border-radius: 12px;
    padding: 3px 8px;
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    font-size: 12px !important; 
}
