﻿/* ==========================
   bootstrap4-compat.css
   Compatibilità BS4 → BS5
   Da includere DOPO Bootstrap 5.2.3
   ========================== */

/* -------------------------
   Containers
   ------------------------- */
@media (min-width: 1400px) {
    .container,
    .container-xl,
    .container-xxl {
        max-width: 1140px !important;
    }
}

@media (min-width: 992px) {
    .container-lg {
        max-width: 960px !important;
    }
}

/* -------------------------
   Navbar / Navbar-brand
   ------------------------- */
.navbar-brand {
    display: inline-block;
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
}

.navbar .navbar-brand {
    align-self: center;
}

.navbar-light .navbar-brand {
    color: rgba(0, 0, 0, .9);
}

    .navbar-light .navbar-brand:hover,
    .navbar-light .navbar-brand:focus {
        color: rgba(0, 0, 0, .9);
    }

.navbar-dark .navbar-brand {
    color: #fff;
}

    .navbar-dark .navbar-brand:hover,
    .navbar-dark .navbar-brand:focus {
        color: #fff;
    }

.navbar-brand > img {
    display: inline-block;
    height: 62px!important;
    max-height: 100%;
}
/* -------------------------
   Footer
   ------------------------- */
.footer {
    padding: 3rem 0;
    background-color: #f8f9fa;
    color: #6c757d;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.5;
}

    .footer a {
        color: #6c757d;
        text-decoration: none;
    }

        .footer a:hover,
        .footer a:focus {
            color: #343a40;
            text-decoration: underline;
        }

    .footer .row {
        margin-right: 0;
        margin-left: 0;
    }

    .footer .col {
        padding-right: 15px;
        padding-left: 15px;
    }

.footer-nav,
.footer-nav .list-inline {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

    .footer-nav .list-inline-item {
        display: inline-block;
        margin-right: .5rem;
    }

        .footer-nav .list-inline-item:last-child {
            margin-right: 0;
        }

/* -------------------------
   Modal
   ------------------------- */
.modal-dialog {
    margin: 30px auto;
}

.modal-backdrop {
    background-color: rgba(0,0,0,.5);
}

body.modal-open {
    padding-right: 15px;
}

/* -------------------------
   Carousel
   ------------------------- */
.carousel-item {
    min-height: 200px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100%, 100%;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #999;
    margin: 1px;
    display: inline-block;
}


/* -------------------------
   Layout / Grid / Forms
   ------------------------- */
.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

    .form-row > [class*="col-"] {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

.form-inline {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

    .form-inline .form-control {
        width: auto;
        vertical-align: middle;
    }

.form-group > label {
    display: block;
}

.ml-auto {
    margin-left: auto !important;
}

.mr-auto {
    margin-right: auto !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.ml-1 {
    margin-left: .25rem !important;
}

.mr-1 {
    margin-right: .25rem !important;
}

.ml-2 {
    margin-left: .5rem !important;
}

.mr-2 {
    margin-right: .5rem !important;
}
.ml-3 {
    margin-left: 1rem !important;
}

.mr-3 {
    margin-right: 1rem !important;
}
.ml-4 {
    margin-left: 1.5rem !important;
}

.mr-4 {
    margin-right: 1.5rem !important;
}
.ml-4 {
    margin-left: 3rem !important;
}

.mr-4 {
    margin-right: 3rem !important;
}

.border-left {
    border-left: 1px solid rgba(0,0,0,.125) !important;
}

.border-right {
    border-right: 1px solid rgba(0,0,0,.125) !important;
}

/* -------------------------
   Floats
   ------------------------- */
.float-left {
    float: left !important;
}

.float-right {
    float: right !important;
}

.float-start {
    float: left !important;
}

.float-end {
    float: right !important;
}

/* -------------------------
   Badges
   ------------------------- */
.badge-pill {
    border-radius: 50rem !important;
    padding-right: .6em;
    padding-left: .6em;
}

.badge-primary {
    color: #fff;
    background-color: var(--bs-primary) !important;
}

.badge-secondary {
    color: #fff;
    background-color: var(--bs-secondary) !important;
}

/* -------------------------
   Text utilities
   ------------------------- */
.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* -------------------------
   Custom form controls / inputs
   ------------------------- */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.75rem;
}

.custom-checkbox .custom-control-input,
.custom-radio .custom-control-input {
    position: absolute;
    left: 0;
    top: .25rem;
}

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    margin-bottom: 0;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    padding: .375rem .75rem;
    pointer-events: none;
}

.input-group.has-validation > .form-control,
.input-group.has-validation > .form-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-control-file {
    display: block;
    width: 100%;
}

.form-control-range {
    display: block;
    width: 100%;
}

/* -------------------------
   Buttons / Navs
   ------------------------- */
.btn-block {
    display: block;
    width: 100%;
}

.nav .nav-item .active {
    font-weight: 600;
}

/* -------------------------
   Card / embed / utilities
   ------------------------- */
.card > .card-block {
    padding: 1rem;
}

.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

    .embed-responsive .embed-responsive-item,
    .embed-responsive iframe,
    .embed-responsive embed,
    .embed-responsive video,
    .embed-responsive object {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

.font-weight-bold {
    font-weight: 700 !important;
}

/* Screen reader utilities */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Small global tweak */
button, input, select, textarea {
    -webkit-appearance: none;
}

/* ==========================
   FINE bootstrap4-compat.css
   ========================== */


.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

@media (min-width: 576px) {
    .text-sm-left {
        text-align: left !important;
    }

    .text-sm-right {
        text-align: right !important;
    }

    .text-sm-center {
        text-align: center !important;
    }
}

@media (min-width: 768px) {
    .text-md-left {
        text-align: left !important;
    }

    .text-md-right {
        text-align: right !important;
    }

    .text-md-center {
        text-align: center !important;
    }
}

@media (min-width: 992px) {
    .text-lg-left {
        text-align: left !important;
    }

    .text-lg-right {
        text-align: right !important;
    }

    .text-lg-center {
        text-align: center !important;
    }
}

@media (min-width: 1200px) {
    .text-xl-left {
        text-align: left !important;
    }

    .text-xl-right {
        text-align: right !important;
    }

    .text-xl-center {
        text-align: center !important;
    }
}


.carousel-indicators li {
    box-sizing: content-box;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    width: 30px;
    height: 3px;
    border-radius:0;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    opacity: .5;
    transition: opacity 0.6s ease;
}
.carousel-indicators .active {
    background-color: #e30615
}

/* ==========================================================
   BS4 → BS5 compat: pulsante .close
   ========================================================== */
.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    background: none;
    border: 0;
    padding: 0.75rem 1rem;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        opacity: .75;
        outline: none;
    }

    /* Se contiene &times; o testo, allinealo correttamente */
    .close:not(:disabled):not(.disabled) {
        cursor: pointer;
    }



.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.input-group-prepend > * {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append > * {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}


.alert-dismissible {
    padding-right: 4rem;
}
.input-group-append, .input-group-prepend {
    display: -ms-flexbox;
    display: flex;
}
.input-group-prepend {
    margin-right: -1px;
}
.input-group-append {
    margin-left: -1px;
}