/* ============ Base ============ */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    margin-bottom: 50px;
    background-color: #00386B;
    color: #333;
}

#main {
    background-color: white;
    padding: 0 20px;
    border-radius: 10px;
}

/* ============ Headings ============ */
h1, h2, h3, h4, h5, h6 {
    color: #00386B;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
}
h1 { font-size: 3em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

/* ============ Links ============ */
a {
    color: #00386B;
    text-decoration: none;
}
a:hover {
    color: #002244;
    text-decoration: underline;
}

/* ============ Buttons ============ */
.btn-primary {
    background-color: #00386B;
    border-color: #00386B;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #5a6c7d;
    border-color: #5a6c7d;
    text-decoration: none;
}

.btn-outline-primary {
    --bs-btn-color: #00386B;
    --bs-btn-border-color: #00386B;
    --bs-btn-hover-bg: #5a6c7d;
    --bs-btn-hover-border-color: #5a6c7d;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #5a6c7d;
    --bs-btn-active-border-color: #5a6c7d;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #00386B;
    --bs-btn-disabled-border-color: #00386B;
    --bs-btn-focus-shadow-rgb: 0, 56, 107;
}

/* ============ Tables ============ */
/* BS5 non ha più .table-condensed: usiamo .table-sm nei template,
   ma se vuoi mantenere .table-condensed come alias: */
.table-condensed > :not(caption) > * > * {
    padding: 1px 3px;
}

.table-hover > tbody > tr:hover > * {
    background-color: #EEEEEE;
}

/* ============ Alerts ============ */
.alert {
    margin-top: 20px;
}

/* ============ Navbar ============ */
.navbar {
    background-color: white;
}
.navbar .nav-link {
    color: #00386B;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #002244;
}

/* ============ Footer ============ */
.footer {
    color: #CCC;
}
.footer a {
    color: #CCC;
    text-decoration: underline;
}
.footer a:hover {
    color: white;
}

/* ============ Required label (se la usi nei form) ============ */
label.required::after {
    content: " *";
    color: #c0392b;
}

h1 {
    font-size: 3em;
    padding-bottom: 9px;
    margin: 0 0 20px;
    border-bottom: 1px solid #eee;
}

.dropdown-menu {
    --bs-dropdown-font-size: 0.85rem;
    --bs-dropdown-link-hover-bg: #e6ecf3;
    --bs-dropdown-link-hover-color: #00386B;
    --bs-dropdown-link-active-bg: #00386B;
    --bs-dropdown-link-active-color: #fff;
}