﻿:root {
    --bs-body-font-family: 'Raleway', sans-serif;
    --primary-color: #e30613;
    --bs-primary: #e30613;
    --bs-primary-rgb: 227,6,19;
    --fc-event-text-color: black;
    --project-life-color: #92c033;
}

/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/raleway-latin-ext-400-italic.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/raleway-latin-400-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../webfonts/raleway-latin-ext-700-italic.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../webfonts/raleway-latin-700-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/raleway-latin-ext-400.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/raleway-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../webfonts/raleway-latin-ext-700.woff2') format('woff2');
    unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../webfonts/raleway-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* STILI */

main > .container,
main > .container-fluid {
    padding-top: 60px; /* per header fixed */
    padding-bottom: 50px; /* per footer fixed */
}

body.login-body {
    height: 100%;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #f5f5f5;
}

.form-signin {
    max-width: 400px;
    margin: 0 auto;
}

    .form-signin .checkbox {
        font-weight: 400;
    }

    .form-signin .form-control {
        position: relative;
        box-sizing: border-box;
        height: auto;
        padding: 10px;
        font-size: 16px;
    }

        .form-signin .form-control:focus {
            z-index: 2;
        }

.show-password:hover {
    text-decoration: none;
}

.highlighted {
    color: #466580;
}

.bg-card-header {
    background-color: #337ab7 !important;
}

.border-card {
    border-color: #337ab7 !important;
}

.badge-card {
    color: #337ab7;
    background-color: #fff;
}

.list-group-head {
    border-bottom-color: #212529;
    border-bottom-width: 2px;
}

.list-group-item + .list-group-item.d-none + .list-group-item {
    border-top-width: 0px;
}

.type-teacher-multiple,
.type-classroom-multiple,
.type-virtual-multiple,
.type-tutor-multiple {
    margin-top: -1.5rem !important;
}

.text-life {
    color: var(--project-life-color);
}

li.life-list::marker {
    color: var(--project-life-color);
    font-weight: bolder;
}

.post-list img,
.search-list img {
    max-width: 100%;
    height: auto;
}

.post-list iframe,
.search-list iframe {
    max-width: 100%;
}

@media (max-width: 767.98px) {
    .list-group-item.d-none + .list-group-item {
        border-top-width: 1px;
    }
}

@media (min-width: 768px) {
    .list-group-item.d-none:not(.d-md-block) + .list-group-item,
    .list-group-item.d-md-none + .list-group-item {
        border-top-width: 1px;
    }
    .w-md-auto {
        width: auto !important;
    }
}

/* CUSTOM SWEET ALERT */

.swal2-confirm {
    background-color: var(--primary-color) !important;
}

.swal2-cancel {
    background-color: var(--bs-secondary) !important;
}

/* ICONE */

.fa-check-circle {
    color: green;
}

.fa-times-circle {
    color: red;
}

/* CUSTOM BOOTSTRAP */

a.nav-link, a.nav-link:focus, a.nav-link:hover,
.nav-link, .nav-link:focus, .nav-link:hover {
    color: black;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(#f5f5f5, #fff);
}

.nav-tabs a.nav-link.active {
    background: linear-gradient(#f5f5f5, #fff);
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, .9);
}

.nav-link.dropdown-toggle::after {
    vertical-align: 0.1em;
}

.nav-item .dropdown-menu {
    margin-top: -0.3rem;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 50);
}

.nav-item .dropdown-item {
    padding-left: .75rem;
    padding-right: .75rem;
}

.bg-success {
    background-color: #9ee8b0 !important;
}

.bg-error {
    background-color: #f2dede !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
    color: black;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

a {
    color: var(--primary-color);
}

    a:hover, a:active {
        color: #ba050f;
    }

    a.btn-primary, a.btn-primary:link,
    .btn-primary, .btn-primary:active,
    .btn-primary.disabled, .btn-primary:disabled,
    .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active,
    .btn-primary.focus, .btn-primary:focus,
    .show > .btn-primary.dropdown-toggle {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

        .btn-primary:hover {
            background-color: #ba050f;
            border-color: #ba050f;
        }

        .btn-primary:focus {
            box-shadow: 0 0 0 3px rgba(61, 61, 56, 0.50);
        }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.btn-link {
    color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

a.text-primary:hover {
    color: var(--primary-color) !important;
}

a.text-dark:hover {
    color: #ba050f !important;
}

.page-link, .page-link:hover {
    color: black;
    border: none;
}

.page-item.active .page-link {
    background-color: var(--bs-white);
    color: var(--primary-color);
    font-weight: bold;
}

.page-item:not(:first-child) .page-link {
    margin-left: 0px;
}

ul.pagination {
    margin-top: 0;
    margin-bottom: 0;
}

.pagination > li.disabled > a, .pagination > li.disabled > a:hover,
.pagination > li.disabled > span, .pagination > li.disabled > span:hover {
    cursor: default;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--primary-color);
    color: #fff !important;
}

.form-control:focus, .form-select:focus,
.form-check-input:focus:not(:checked),
.form-check-input:checked {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 .2rem rgba(61, 61, 56, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
}

.offcanvas-start, .offcanvas-end {
    width: 90%;
}

/* CUSTOM VALIDATOR */

.field-validation-error {
    color: #dc3545;
    font-size: 80%;
}

.input-validation-error,
.input-validation-error ~ .form-check-label::before {
    border-color: #dc3545 !important;
}

.validation-summary-errors > ul {
    margin-bottom: 0;
}

/* CUSTOM BOOTSTRAP-SELECT */

.bootstrap-select > .dropdown-toggle.bs-placeholder,
.bootstrap-select > .dropdown-toggle.bs-placeholder:active,
.bootstrap-select > .dropdown-toggle.bs-placeholder:focus,
.bootstrap-select > .dropdown-toggle.bs-placeholder:hover {
    color: #495057;
}

.bootstrap-select > .dropdown-toggle,
.bootstrap-select > .dropdown-toggle:active,
.bootstrap-select > .dropdown-toggle:focus,
.bootstrap-select > .dropdown-toggle:hover {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right .75rem center/16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

    .bootstrap-select > .dropdown-toggle:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 .2rem rgba(61, 61, 56, 0.25);
    }

    .bootstrap-select > .dropdown-toggle:focus,
    .bootstrap-select > select.mobile-device:focus + .dropdown-toggle {
        outline: 0 !important;
    }

    .bootstrap-select > .dropdown-toggle:after {
        content: none;
    }

.bootstrap-select .dropdown-menu li a.dropdown-item.active,
.bootstrap-select .dropdown-menu li a.dropdown-item:active {
    background-color: var(--primary-color);
}

.input-group-sm > .bootstrap-select > .dropdown-toggle {
    padding-top: 0.25rem;
    padding-right: 1.75rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
    height: calc(1.5em + .5rem + 2px);
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.bootstrap-select.form-control-sm > .dropdown-toggle {
    padding-top: 0.25rem;
    padding-right: 1.75rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
    height: calc(1.5em + .5rem + 2px);
}

/* CUSTOM FULL-CALENDAR */

.fc-dayGridMonth-button.btn.btn-primary.active,
.fc-timeGridWeek-button.btn.btn-primary.active,
.fc-timeGridDay-button.btn.btn-primary.active {
    background: #ba050f;
    border-color: #ba050f;
}

    .fc-dayGridMonth-button.btn.btn-primary.active:focus,
    .fc-timeGridWeek-button.btn.btn-primary.active:focus,
    .fc-timeGridDay-button.btn.btn-primary.active:focus {
        box-shadow: none;
    }

.fc-event {
    color: var(--fc-event-text-color);
}

@media (max-width: 767.98px) {
    .fc-toolbar {
        display: block !important;
        text-align: center;
    }

        .fc-toolbar .fc-center {
            display: block;
            margin-top: 20px;
            margin-bottom: 20px;
        }

    .fc-toolbar-chunk {
        margin-bottom: 1rem;
    }

    .fc-event-title {
        display: none;
    }
}
