@charset "UTF-8";
/**
 * Tema Bootstrap Italia 2.18.3 per JobFellowship (MUR / Cineca)
 * Palette personalizzata: Verde istituzionale Bandi (#1e5a1c / #607000)
 * Limitato a body.bi-theme e @media screen per preservare la stampa/PDF.
 */

/* Font locali dal pacchetto bootstrap-italia 2.18.3 (nessuna CDN) */
@font-face {
  font-family: "Titillium Web BI";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff2") format("woff2"),
       url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff") format("woff");
}
@font-face {
  font-family: "Titillium Web BI";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff2") format("woff2"),
       url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff") format("woff");
}
@font-face {
  font-family: "Titillium Web BI";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff2") format("woff2"),
       url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff") format("woff");
}
@font-face {
  font-family: "Titillium Web BI";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff2") format("woff2"),
       url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff") format("woff");
}
@font-face {
  font-family: "Titillium Web BI";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff2") format("woff2"),
       url("../vendor/bootstrap-italia/fonts/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff") format("woff");
}

@media screen {
  /* ==========================================================================
     1. Variabili CSS e Palette Verde istituzionale Bandi (WCAG AA verificata)
     ========================================================================== */
  body.bi-theme {
    --bs-primary: #1e5a1c;
    --bs-primary-rgb: 30, 90, 28;
    --bi-primary: #1e5a1c;
    --bi-primary-dark: #143f13;
    --bi-primary-darker: #0f380e;
    --bi-primary-light: #e9f2e9;
    --bi-primary-lighter: #eef5ee;
    --bi-olive-accent: #607000;
    --bi-olive-text: #465200;
    --bi-olive-soft: #f7f9eb;
    --bi-bg-page: #f4f6f4;
    --bi-bg-surface: #ffffff;
    --bi-text-main: #17324d;
    --bi-text-muted: #455a64;
    --bi-border-color: #d6dfd6;
    --bi-border-strong: #b8c9b8;
    --bi-focus-ring: #ff9900;

    font-family: "Titillium Web BI", "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--bi-text-main);
    background-color: var(--bi-bg-page);
    text-align: left;
    margin: 0;
    padding: 0;
    min-height: 100vh;
  }

  /* Forza ereditarietà tipografica sui figli legacy */
  body.bi-theme table,
  body.bi-theme th,
  body.bi-theme td,
  body.bi-theme caption,
  body.bi-theme input,
  body.bi-theme select,
  body.bi-theme textarea,
  body.bi-theme button,
  body.bi-theme a,
  body.bi-theme li,
  body.bi-theme p,
  body.bi-theme div,
  body.bi-theme span,
  body.bi-theme h1,
  body.bi-theme h2,
  body.bi-theme h3 {
    font-family: "Titillium Web BI", "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }

  /* Focus visibile accessibile da tastiera */
  body.bi-theme a:focus-visible,
  body.bi-theme button:focus-visible,
  body.bi-theme input:focus-visible,
  body.bi-theme select:focus-visible,
  body.bi-theme textarea:focus-visible {
    outline: 3px solid var(--bi-focus-ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.35);
  }

  /* ==========================================================================
     2. Elementi nuovi Bootstrap Italia (visibili a schermo) vs Legacy (nascosti)
     ========================================================================== */
  body.bi-theme .bi-skip-links {
    display: block !important;
  }
  body.bi-theme .bi-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    background: var(--bi-primary-dark);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 0 0 6px 6px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.15s ease-in-out;
  }
  body.bi-theme .bi-skip-link:focus {
    top: 0;
  }

  body.bi-theme .bi-header-wrapper {
    display: block !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
  }

  body.bi-theme .bi-footer {
    display: block !important;
    background-color: var(--bi-primary-dark);
    color: #ffffff;
    margin-top: 48px;
    border-top: 4px solid var(--bi-olive-accent);
  }

  /* Nascondi header, banner freccia e footer legacy solo a schermo */
  body.bi-theme #header,
  body.bi-theme #radio-freccia,
  body.bi-theme #footer {
    display: none !important;
  }

  /* ==========================================================================
     3. Header Istituzionale Bootstrap Italia (Slim + Center Header)
     ========================================================================== */
  body.bi-theme .bi-header-wrapper .it-header-slim-wrapper {
    background-color: var(--bi-primary-dark) !important;
    height: auto !important;
    min-height: 44px;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  body.bi-theme .bi-header-wrapper .it-header-slim-wrapper .it-header-slim-wrapper-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  body.bi-theme .bi-header-wrapper .it-header-slim-wrapper a.navbar-brand {
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    margin: 0;
    padding: 2px 0;
  }
  body.bi-theme .bi-header-wrapper .it-header-slim-wrapper a.navbar-brand:hover {
    text-decoration: underline;
    color: #ffffff !important;
  }
  body.bi-theme .bi-header-wrapper .bi-slim-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #ffffff;
    font-size: 0.875rem;
  }
  body.bi-theme .bi-header-wrapper .bi-slim-right a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
  }
  body.bi-theme .bi-header-wrapper .bi-slim-right a:hover {
    background: rgba(255, 255, 255, 0.26);
    text-decoration: underline;
  }

  body.bi-theme .bi-header-wrapper .it-header-center-wrapper {
    background: linear-gradient(135deg, var(--bi-primary) 0%, var(--bi-primary-dark) 100%) !important;
    color: #ffffff;
    height: auto !important;
    min-height: 88px;
    padding: 18px 0 !important;
    border-bottom: 4px solid var(--bi-olive-accent);
  }
  body.bi-theme .bi-header-wrapper .it-header-center-wrapper .it-header-center-content-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
  }
  body.bi-theme .bi-header-wrapper .it-brand-wrapper {
    padding: 0 !important;
    flex: 1 1 260px;
    min-width: 0;
  }
  body.bi-theme .bi-header-wrapper .it-brand-wrapper a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #ffffff !important;
  }
  body.bi-theme .bi-header-wrapper .bi-logo-box {
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }
  body.bi-theme .bi-header-wrapper .bi-logo-box img {
    height: 48px;
    width: auto;
    display: block;
  }
  body.bi-theme .bi-header-wrapper .it-brand-text {
    padding: 0 !important;
    min-width: 0;
  }
  body.bi-theme .bi-header-wrapper .it-brand-text .bi-brand-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0;
    display: block;
  }
  body.bi-theme .bi-header-wrapper .it-brand-text .bi-brand-tagline {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 2px;
    display: block;
    white-space: normal;
  }
  body.bi-theme .bi-header-wrapper .bi-user-pill {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.35;
    text-align: right;
  }
  body.bi-theme .bi-header-wrapper .bi-user-pill strong {
    display: block;
    font-size: 0.95rem;
    color: #ffffff;
  }

  /* ==========================================================================
     4. Contenitore principale (#cornice, #container, #mainContent) e Griglia
     ========================================================================== */
  body.bi-theme #cornice {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 16px;
    border: none;
    background: transparent;
    box-sizing: border-box;
  }

  body.bi-theme #container {
    background: transparent;
    height: auto;
  }

  body.bi-theme #mainContent {
    background: transparent;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
  }

  /* Annulla float legacy delle colonne dirette di #mainContent */
  body.bi-theme #mainContent > div.span-4,
  body.bi-theme #mainContent > div.span-20,
  body.bi-theme #mainContent > div.span-5 {
    float: none;
    margin: 0;
    box-sizing: border-box;
  }

  /* Nascondi colonna destra quando è vuota */
  body.bi-theme #mainContent > div.span-5:empty,
  body.bi-theme #mainContent > div.span-5:not(:has(*)) {
    display: none !important;
  }

  /* Sidebar di navigazione (.span-4) */
  body.bi-theme #mainContent > div.span-4 {
    flex: 0 0 270px;
    width: 270px;
    background: var(--bi-bg-surface);
    border: 1px solid var(--bi-border-color);
    border-top: 4px solid var(--bi-primary);
    border-radius: 8px;
    padding: 18px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
    color: var(--bi-text-main);
    line-height: 1.45;
  }

  body.bi-theme #mainContent > div.span-4 h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bi-primary-dark);
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bi-border-color);
    line-height: 1.35;
  }

  /* Menu laterale .mainmenuAccount stile Link List Bootstrap Italia */
  body.bi-theme #mainContent > div.span-4 ul.mainmenuAccount {
    list-style: none;
    margin: 14px 0 0 0;
    padding: 0;
    border-top: 1px solid var(--bi-border-color);
  }

  body.bi-theme #mainContent > div.span-4 ul.mainmenuAccount li {
    border-bottom: 1px solid #edf2ed;
    margin: 0;
    padding: 0;
    background-image: none !important;
  }

  body.bi-theme #mainContent > div.span-4 ul.mainmenuAccount li a,
  body.bi-theme #mainContent > div.span-4 ul.mainmenuAccount li a:link,
  body.bi-theme #mainContent > div.span-4 ul.mainmenuAccount li a:visited {
    background-image: none !important;
    display: block;
    padding: 10px 12px;
    color: var(--bi-text-main);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
    text-decoration: none;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }

  body.bi-theme #mainContent > div.span-4 ul.mainmenuAccount li a:hover,
  body.bi-theme #mainContent > div.span-4 ul.mainmenuAccount li.current a {
    background-color: var(--bi-primary-light);
    color: var(--bi-primary-dark);
    border-left-color: var(--bi-primary);
    text-decoration: none;
  }

  body.bi-theme #mainContent > div.span-4 ul.mainmenuAccount li:last-child a {
    color: #842029;
    margin-top: 4px;
  }
  body.bi-theme #mainContent > div.span-4 ul.mainmenuAccount li:last-child a:hover {
    background-color: #f8d7da;
    color: #842029;
    border-left-color: #842029;
  }

  /* Colonna centrale contenuto (.span-20.last.job) */
  body.bi-theme #mainContent > div.span-20,
  body.bi-theme #mainContent > div.span-20.last.job {
    flex: 1 1 640px;
    min-width: 0;
    width: auto;
  }

  /* Colonna destra ancore Moduli (.span-5.last) */
  body.bi-theme #mainContent > div.span-5 {
    flex: 0 0 220px;
    width: 220px;
  }

  body.bi-theme .facetsBox {
    background: var(--bi-bg-surface);
    border: 1px solid var(--bi-border-color);
    border-top: 4px solid var(--bi-olive-accent);
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  body.bi-theme .facetsBox .arrowFacetSx {
    display: none;
  }

  body.bi-theme .facetsBox .greenboxtitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bi-primary-dark);
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bi-border-color);
  }

  body.bi-theme .facetsBox ul.lists {
    border-top: none;
    margin: 0;
    padding: 0;
  }

  body.bi-theme .facetsBox ul.lists li {
    border-bottom: 1px solid #edf2ed;
  }

  body.bi-theme .facetsBox ul.lists li a {
    padding: 7px 6px;
    font-size: 0.875rem;
    color: var(--bi-primary);
    font-weight: 600;
  }

  body.bi-theme .facetsBox ul.lists li a:hover {
    background-color: var(--bi-primary-light);
    color: var(--bi-primary-dark);
    text-decoration: underline;
  }

  /* ==========================================================================
     5. Card Bootstrap Italia (.greenbox, .bluebox, .bgmyeuraxess, .yellowbox)
     ========================================================================== */
  body.bi-theme .greenbox,
  body.bi-theme .bluebox,
  body.bi-theme .blueboxsearch,
  body.bi-theme .yellowbox,
  body.bi-theme .greenbox.bgmyeuraxess {
    background-image: none !important;
    background-color: var(--bi-bg-surface) !important;
    border: 1px solid var(--bi-border-color) !important;
    border-top: 4px solid var(--bi-primary) !important;
    border-radius: 8px;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    color: var(--bi-text-main);
    font-size: 0.95rem;
    line-height: 1.55;
  }

  body.bi-theme .greenbox > .greenboxtitle,
  body.bi-theme .bluebox > .blueboxtitle {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bi-primary-dark) !important;
    background-color: var(--bi-primary-lighter);
    margin: -24px -24px 18px -24px !important;
    padding: 16px 52px 16px 24px;
    border-bottom: 1px solid var(--bi-border-color);
    border-radius: 4px 4px 0 0;
    line-height: 1.3;
  }

  body.bi-theme .greenbox > .subtitle {
    display: inline-block;
    background-color: var(--bi-olive-soft);
    color: var(--bi-olive-text);
    border: 1px solid #cbd49a;
    border-radius: 4px;
    padding: 4px 12px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 14px;
  }

  body.bi-theme .help {
    top: 16px !important;
    right: 18px !important;
    width: 22px;
    height: 22px;
  }

  body.bi-theme .help_edit {
    position: static !important;
    vertical-align: middle;
    margin-left: 8px;
  }

  /* Popup di aiuto contestuale (.divHelp) e ancore laterali (#shortcuts) */
  body.bi-theme .divHelp {
    position: fixed !important;
    right: 24px !important;
    top: 90px !important;
    left: auto !important;
    width: 380px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: 78vh !important;
    overflow-y: auto !important;
    z-index: 1060 !important;
    background-color: #ffffff !important;
    color: var(--bi-text-main) !important;
    border: 1px solid var(--bi-border-strong) !important;
    border-top: 4px solid var(--bi-primary) !important;
    border-radius: 8px !important;
    padding: 18px 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
  }

  body.bi-theme .divHelpArrow {
    display: none !important;
  }

  body.bi-theme #shortcuts {
    position: sticky;
    top: 20px;
    margin-top: 0 !important;
  }

  /* Link generali nel contenuto */
  body.bi-theme a:link,
  body.bi-theme a:visited {
    color: var(--bi-primary);
  }
  body.bi-theme a:hover {
    color: var(--bi-primary-darker);
    text-decoration: underline;
  }

  body.bi-theme a.moreLinks {
    background-image: none !important;
    height: auto !important;
    line-height: 1.4 !important;
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    color: var(--bi-primary) !important;
    text-decoration: none;
    padding: 8px 14px !important;
    background-color: var(--bi-primary-light) !important;
    border-radius: 4px;
    border: 1px solid var(--bi-border-strong);
  }
  body.bi-theme a.moreLinks:hover {
    background-color: var(--bi-primary) !important;
    color: #ffffff !important;
  }

  /* ==========================================================================
     6. Tabelle dati e Tabelle form (.tablesorter, .job table, .tbform)
     ========================================================================== */
  body.bi-theme .job table {
    width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background-color: var(--bi-bg-surface);
    border: 1px solid var(--bi-border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 12px;
    margin-bottom: 16px;
    font-size: 0.92rem;
  }

  body.bi-theme .job table caption {
    caption-side: top;
    background-color: var(--bi-primary-lighter) !important;
    color: var(--bi-primary-dark) !important;
    font-size: 1.08rem;
    font-weight: 700;
    padding: 12px 16px;
    border: 1px solid var(--bi-border-color);
    border-bottom: 2px solid var(--bi-primary);
    text-align: left;
  }

  body.bi-theme .job table th {
    background-color: #e8f0e8 !important;
    color: var(--bi-primary-dark) !important;
    font-weight: 700;
    padding: 10px 12px !important;
    border-bottom: 2px solid var(--bi-border-strong) !important;
    text-align: left;
    vertical-align: middle;
  }

  body.bi-theme .job table td {
    padding: 10px 12px !important;
    border-bottom: 1px solid #e4ece4 !important;
    color: var(--bi-text-main);
    vertical-align: middle;
  }

  body.bi-theme .job table.tablesorter tbody tr:nth-child(even) td {
    background-color: #f9fbf9;
  }

  body.bi-theme .job table.tablesorter tbody tr:hover td {
    background-color: #eef5ee;
  }

  /* Tabelle form (.tbform) */
  body.bi-theme .job table.tbform th {
    background-color: #f6f9f6 !important;
    color: var(--bi-text-main) !important;
    font-weight: 600;
    border-bottom: 1px solid #e4ece4 !important;
    border-right: 1px solid #e4ece4 !important;
    width: 30%;
  }

  /* ==========================================================================
     7. Campi Form, Input, Select, Textarea e Pulsanti Bootstrap Italia
     ========================================================================== */
  body.bi-theme form {
    color: var(--bi-text-main);
  }

  body.bi-theme input[type="text"],
  body.bi-theme input[type="password"],
  body.bi-theme input.text,
  body.bi-theme input.title,
  body.bi-theme textarea,
  body.bi-theme select {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--bi-text-main);
    background-color: #ffffff;
    border: 1px solid #8c9c8c;
    border-radius: 4px;
    padding: 7px 10px;
    box-sizing: border-box;
    max-width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  body.bi-theme input.text,
  body.bi-theme input.title,
  body.bi-theme textarea.textarea {
    width: 100%;
    max-width: 520px;
  }

  body.bi-theme textarea.textarea {
    min-height: 90px;
  }

  body.bi-theme select {
    max-width: 520px;
    min-height: 38px;
  }

  body.bi-theme input[type="text"]:focus,
  body.bi-theme input[type="password"]:focus,
  body.bi-theme input.text:focus,
  body.bi-theme textarea:focus,
  body.bi-theme select:focus {
    border-color: var(--bi-primary);
    box-shadow: 0 0 0 3px rgba(30, 90, 28, 0.2);
    outline: none;
  }

  body.bi-theme .errorField {
    border: 2px solid #b02a37 !important;
    background-color: #fff8f8 !important;
  }

  /* Pulsanti primari e di azione (.button, button) */
  body.bi-theme button.button,
  body.bi-theme a.button,
  body.bi-theme .clearbutton button,
  body.bi-theme .buttonArea button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    float: none;
    background-color: var(--bi-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--bi-primary) !important;
    border-radius: 4px;
    padding: 8px 16px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    cursor: pointer;
    text-decoration: none !important;
    margin: 4px 8px 4px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  body.bi-theme button.button:hover,
  body.bi-theme a.button:hover,
  body.bi-theme .clearbutton button:hover,
  body.bi-theme .buttonArea button:hover {
    background-color: var(--bi-primary-dark) !important;
    border-color: var(--bi-primary-dark) !important;
    color: #ffffff !important;
  }

  body.bi-theme .buttonArea {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
  }
  body.bi-theme .buttonArea form,
  body.bi-theme .buttonArea p {
    margin: 0;
    display: inline-block;
  }

  /* ==========================================================================
     8. Pagina di Login (#loginform) in Card Bootstrap Italia
     ========================================================================== */
  body.bi-theme #mainContent:has(#loginform) {
    justify-content: center;
    padding: 24px 0;
  }

  body.bi-theme #mainContent > h1:first-child {
    display: none;
  }

  body.bi-theme #loginform {
    width: 100%;
    max-width: 460px;
    margin: 12px auto 24px auto;
    background: var(--bi-bg-surface);
    border: 1px solid var(--bi-border-color);
    border-top: 4px solid var(--bi-primary);
    border-radius: 8px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    box-sizing: border-box;
  }

  body.bi-theme #loginform::before {
    content: "Accesso al servizio Bandi MUR";
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bi-primary-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bi-border-color);
  }

  body.bi-theme #loginform p {
    margin: 0 0 16px 0;
  }

  body.bi-theme #loginform label {
    display: block;
    font-weight: 600;
    color: var(--bi-text-main);
    margin-bottom: 6px;
    font-size: 0.95rem;
  }

  body.bi-theme #loginform input[type="text"],
  body.bi-theme #loginform input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
  }

  /* Nascondi vecchio pulsante grafico bottone-login.png a schermo e mostra pulsante BI */
  body.bi-theme #loginform input[type="image"] {
    display: none !important;
  }
  body.bi-theme #loginform .bi-login-submit {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    padding: 11px 20px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    background-color: var(--bi-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--bi-primary) !important;
    border-radius: 4px;
    cursor: pointer;
  }
  body.bi-theme #loginform .bi-login-submit:hover {
    background-color: var(--bi-primary-dark) !important;
  }

  /* ==========================================================================
     9. Paginazione (#paginazione / .paginazione) e Messaggi semantici
     ========================================================================== */
  body.bi-theme #paginazione,
  body.bi-theme .paginazione {
    background-image: none !important;
    height: auto !important;
    margin: 18px 0 !important;
    padding: 8px 0 !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  body.bi-theme #paginazione a,
  body.bi-theme #paginazione span.sel,
  body.bi-theme .paginazione a,
  body.bi-theme .paginazione span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--bi-border-strong);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background-color: #ffffff;
    color: var(--bi-primary);
  }

  body.bi-theme #paginazione span.sel,
  body.bi-theme .paginazione span {
    background-color: var(--bi-primary);
    border-color: var(--bi-primary);
    color: #ffffff;
  }

  body.bi-theme #paginazione a:hover,
  body.bi-theme .paginazione a:hover {
    background-color: var(--bi-primary-light);
    color: var(--bi-primary-dark);
  }

  /* Messaggi di stato semantici */
  body.bi-theme .usermessage,
  body.bi-theme span.error {
    display: block;
    background-color: #f8d7da;
    color: #842029 !important;
    border: 1px solid #f5c2c7;
    border-left: 4px solid #842029;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-weight: 600;
  }

  body.bi-theme span.success,
  body.bi-theme .success-message {
    display: block;
    background-color: #d1e7dd;
    color: #0f5132 !important;
    border: 1px solid #badbcc;
    border-left: 4px solid #0f5132;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-weight: 600;
  }

  body.bi-theme span.notice {
    display: block;
    background-color: #fff3cd;
    color: #664d03 !important;
    border: 1px solid #ffecb5;
    border-left: 4px solid #664d03;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-weight: 600;
  }

  /* ==========================================================================
     10. Footer Istituzionale Bootstrap Italia (.bi-footer)
     ========================================================================== */
  body.bi-theme .bi-footer .it-footer-main {
    background-color: var(--bi-primary-dark) !important;
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 24px !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  body.bi-theme .bi-footer .bi-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  body.bi-theme .bi-footer .bi-footer-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
  }

  body.bi-theme .bi-footer .bi-footer-sub {
    font-size: 0.875rem;
    color: #e6f2e6;
  }

  body.bi-theme .bi-footer a,
  body.bi-theme .bi-footer a:link,
  body.bi-theme .bi-footer a:visited {
    color: #e6f2e6 !important;
    text-decoration: underline;
    font-weight: 600;
  }

  body.bi-theme .bi-footer a:hover {
    color: #ffffff !important;
  }

  /* ==========================================================================
     11. Responsive Mobile & Tablet (< 992px)
     ========================================================================== */
  @media (max-width: 991.98px) {
    body.bi-theme .bi-header-wrapper .it-header-slim-wrapper .it-header-slim-wrapper-content,
    body.bi-theme .bi-header-wrapper .it-header-center-wrapper .it-header-center-content-wrapper {
      padding: 0 14px !important;
    }

    body.bi-theme .bi-header-wrapper .bi-user-pill {
      width: 100%;
      text-align: left;
    }

    body.bi-theme #cornice {
      padding: 16px 12px;
    }

    body.bi-theme #mainContent {
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
    }

    body.bi-theme #mainContent > div.span-4,
    body.bi-theme #mainContent > div.span-20,
    body.bi-theme #mainContent > div.span-20.last.job,
    body.bi-theme #mainContent > div.span-5 {
      flex: 0 0 auto;
      width: 100%;
    }

    body.bi-theme .greenbox,
    body.bi-theme .bluebox,
    body.bi-theme .greenbox.bgmyeuraxess {
      padding: 16px !important;
      overflow-x: auto;
    }

    body.bi-theme .greenbox > .greenboxtitle,
    body.bi-theme .bluebox > .blueboxtitle {
      margin: -16px -16px 14px -16px !important;
      padding: 14px 44px 14px 16px;
      font-size: 1.15rem;
    }

    body.bi-theme .job table {
      display: block;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    body.bi-theme .job table.tbform tr {
      display: block;
      border-bottom: 1px solid #d6dfd6;
      padding: 6px 0;
    }

    body.bi-theme .job table.tbform th,
    body.bi-theme .job table.tbform td {
      display: block;
      width: 100% !important;
      box-sizing: border-box;
      border-right: none !important;
    }
  }
}
