﻿


.popover {
    z-index: 1102;
}

.offcanvas {
    z-index: 1101;
}

.offcanvas-backdrop {
    z-index: 1100;
}

.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #eee;
    border-left-width: .25rem;
    border-radius: .25rem;
}

    .bd-callout h4 {
        margin-top: 0;
        margin-bottom: .25rem;
    }

    .bd-callout p:last-child {
        margin-bottom: 0;
    }

    .bd-callout code {
        border-radius: .25rem;
    }

    .bd-callout + .bd-callout {
        margin-top: -.25rem;
    }

.bd-callout-info {
    border-left-color: #5bc0de;
}

    .bd-callout-info h4 {
        color: #5bc0de;
    }

.bd-callout-warning {
    border-left-color: #f0ad4e;
}

    .bd-callout-warning h4 {
        color: #f0ad4e;
    }

.bd-callout-danger {
    border-left-color: #d9534f;
}

    .bd-callout-danger h4 {
        color: #d9534f;
    }

.float-left {
    float: left !important;
}

.float-right {
    float: right !important;
}

.bg-fixed {
    background-attachment: fixed
}

.bg-image {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50%
}

.mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-attachment: fixed
}

.hover-overlay .mask {
    --mdb-image-hover-transition: all 0.3s ease-in-out;
    opacity: 0;
    transition: var(--mdb-image-hover-transition)
}

    .hover-overlay .mask:hover {
        opacity: 1
    }

.hover-zoom {
    --mdb-image-hover-zoom-transition: all 0.3s linear;
    --mdb-image-hover-zoom-transform: scale(1.1)
}

    .hover-zoom img, .hover-zoom video {
        transition: var(--mdb-image-hover-zoom-transition)
    }

    .hover-zoom:hover img, .hover-zoom:hover video {
        transform: var(--mdb-image-hover-zoom-transform)
    }


.myli:hover {
    background-color: #efefef;
}

.form-control-custom {
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #373a3c;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    border-radius: 5px;
    width: 300px;
}

.accordion > .card {
    overflow: initial !important;
}

.accordion-button:not(.collapsed) {
    background-color: white;
    color: black !important,
}

.form-switch .form-check-input {
    border-radius: 20px;
}

.form-control {
    border-radius: 5px;
}

.table-fixed {
    position: sticky;
    top: 0;
}

.table-responsive .dropdown,
.table-responsive .btn-group,
.table-responsive .btn-group-vertical {
    position: static;
}

.center-col {
    float: none;
    margin: 0 auto;
}

.btn dropdown-toggle {
    border-radius: 14px;
}

body.modal-open {
    overflow: hidden;
}

.btn {
    cursor: pointer;
    border-radius: 5px;
}


.custom-control {
    position: relative;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    min-height: 1.5rem;
    padding-left: 1.5rem;
    margin-right: 1rem;
    cursor: pointer;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

    .custom-control-input:checked ~ .custom-control-indicator {
        color: #fff;
        background-color: #0275d8;
    }

    .custom-control-input:focus ~ .custom-control-indicator {
        -webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 3px #0275d8;
        box-shadow: 0 0 0 1px #fff, 0 0 0 3px #0275d8;
    }

    .custom-control-input:active ~ .custom-control-indicator {
        color: #fff;
        background-color: #8fcafe;
    }

    .custom-control-input:disabled ~ .custom-control-indicator {
        cursor: not-allowed;
        background-color: #eceeef;
    }

    .custom-control-input:disabled ~ .custom-control-description {
        color: #636c72;
        cursor: not-allowed;
    }

.custom-control-indicator {
    position: absolute;
    top: 0.25rem;
    left: 0;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #ddd;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: 50% 50%;
    background-size: 50% 50%;
}

.custom-checkbox .custom-control-indicator {
    border-radius: 0.25rem;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-indicator {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
}

.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-indicator {
    background-color: #0275d8;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E");
}

.custom-radio .custom-control-indicator {
    border-radius: 50%;
}

.custom-radio .custom-control-input:checked ~ .custom-control-indicator {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
}

.custom-controls-stacked {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

    .custom-controls-stacked .custom-control {
        margin-bottom: 0.25rem;
    }

        .custom-controls-stacked .custom-control + .custom-control {
            margin-left: 0;
        }

.form-inline .custom-control {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-left: 0;
}

.form-inline .custom-control-indicator {
    position: static;
    display: inline-block;
    margin-right: 0.25rem;
    vertical-align: text-bottom;
}

.form-inline .has-feedback .form-control-feedback {
    top: 0;
}

@media all and (min-width:1040px) {
    /*.container {
        max-width: 1080px;
    }*/
    .modal-dialog {
        width: 1080px;
    }
}

@media all and (min-width:1200px) {

    .modal-dialog {
        width: 1140px;
    }
}

@media all and (min-width:320px) {
    .nav > li > a {
        padding-left: 20px;
    }
}

@media (max-width: 767px) {
    .table-responsive .dropdown-menu {
        position: static !important;
    }
}

@media (min-width: 1040px) {
    /* .table-responsive {
        overflow: visible;
    }*/
}

.dropdown-menu-navbar {
    min-width: 13rem;
}

.button-dropdown-navbar-menu {
    border-color: white;
    background-color: transparent;
}

    .button-dropdown-navbar-menu:active {
        background-color: green;
    }

    .button-dropdown-navbar-menu:hover {
        background-color: green;
    }


.control-label {
    font-weight: bold !important;
    display: inline-block;
    margin-bottom: 0.2rem;
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.radio-toolbar input[type="radio"] {
    opacity: 0;
    position: fixed;
    width: 0;
}

.radio-toolbar label {
    display: inline-block;
    background-color: #ddd;
    padding: 5px 10px;
    font-family: sans-serif, Arial;
    font-size: 12px;
    border: 2px solid #444;
    border-radius: 4px;
}

.radio-toolbar input[type="radio"]:checked + label {
    background-color: #bfb;
    border-color: #4c4;
}

.radio-toolbar input[type="radio"]:focus + label {
    border: 3px dotted #444;
}

.radio-toolbar label:hover {
    background-color: #dfd;
}

.btn-sospendi {
    background-color: darkmagenta !important;
    border-color: darkmagenta !important;
    color: white !important;
}

    .btn-sospendi:hover {
        color: white !important;
        background-color: #7c008b !important;
    }

.btn-evadi {
    background-color: #026502 !important;
    border-color: #026502 !important;
    color: white !important;
}

    .btn-evadi:hover {
        color: white !important;
        background-color: #015701 !important;
    }

.bg-bozza {
    --bs-bg-opacity: 1;
    background-color: #8fcafe !important;
}

.bg-1 {
    --bs-bg-opacity: 1;
    background-color: #f0ad4e !important;
}

.bg-2 {
    --bs-bg-opacity: 1;
    background-color: #d9534f !important;
}



.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.m-5 {
    margin: 3rem !important;
}

.m-auto {
    margin: auto !important;
}

.mx-0 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.mx-1 {
    margin-right: 0.25rem !important;
    margin-left: 0.25rem !important;
}

.mx-2 {
    margin-right: 0.5rem !important;
    margin-left: 0.5rem !important;
}

.mx-3 {
    margin-right: 1rem !important;
    margin-left: 1rem !important;
}

.mx-4 {
    margin-right: 1.5rem !important;
    margin-left: 1.5rem !important;
}

.mx-5 {
    margin-right: 3rem !important;
    margin-left: 3rem !important;
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.my-auto {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mr-3 {
    margin-right: 1rem !important;
}

.mr-4 {
    margin-right: 1.5rem !important;
}

.mr-5 {
    margin-right: 3rem !important;
}

.mr-auto {
    margin-right: auto !important;
}


.ml-0 {
    margin-left: 0 !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.ml-3 {
    margin-left: 1rem !important;
}

.ml-4 {
    margin-left: 1.5rem !important;
}

.ml-5 {
    margin-left: 3rem !important;
}

.ml-auto {
    margin-left: auto !important;
}


.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mb-auto {
    margin-bottom: auto !important;
}

.ms-0 {
    margin-left: 0 !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.ms-4 {
    margin-left: 1.5rem !important;
}

.ms-5 {
    margin-left: 3rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}

.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.px-1 {
    padding-right: 0.25rem !important;
    padding-left: 0.25rem !important;
}

.px-2 {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
}

.px-3 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.px-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-1 {
    padding-top: 0.25rem !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-4 {
    padding-top: 1.5rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pe-0 {
    padding-right: 0 !important;
}

.pe-1 {
    padding-right: 0.25rem !important;
}

.pe-2 {
    padding-right: 0.5rem !important;
}

.pe-3 {
    padding-right: 1rem !important;
}

.pe-4 {
    padding-right: 1.5rem !important;
}

.pe-5 {
    padding-right: 3rem !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-1 {
    padding-bottom: 0.25rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.pb-5 {
    padding-bottom: 3rem !important;
}

.ps-0 {
    padding-left: 0 !important;
}

.ps-1 {
    padding-left: 0.25rem !important;
}

.ps-2 {
    padding-left: 0.5rem !important;
}

.ps-3 {
    padding-left: 1rem !important;
}

.ps-4 {
    padding-left: 1.5rem !important;
}

.ps-5 {
    padding-left: 3rem !important;
}

.card-block {
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

.card-body {
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}


.border {
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border-0 {
    border: 0 !important;
}

.border-top {
    border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border-top-0 {
    border-top: 0 !important;
}

.border-end {
    border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border-end-0 {
    border-right: 0 !important;
}

.border-bottom {
    border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border-bottom-0 {
    border-bottom: 0 !important;
}

.border-start {
    border-left: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border-start-0 {
    border-left: 0 !important;
}

.border-primary {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-primary-rgb), var(--bs-border-opacity)) !important;
}

.border-secondary {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-secondary-rgb), var(--bs-border-opacity)) !important;
}

.border-success {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-success-rgb), var(--bs-border-opacity)) !important;
}

.border-info {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-info-rgb), var(--bs-border-opacity)) !important;
}

.border-warning {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-warning-rgb), var(--bs-border-opacity)) !important;
}

.border-danger {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-danger-rgb), var(--bs-border-opacity)) !important;
}

.border-light {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-light-rgb), var(--bs-border-opacity)) !important;
}

.border-dark {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-dark-rgb), var(--bs-border-opacity)) !important;
}

.border-white {
    --bs-border-opacity: 1;
    border-color: rgba(var(--bs-white-rgb), var(--bs-border-opacity)) !important;
}

.border-1 {
    --bs-border-width: 1px;
}

.border-2 {
    --bs-border-width: 2px;
}

.border-3 {
    --bs-border-width: 3px;
}

.border-4 {
    --bs-border-width: 4px;
}

.border-5 {
    --bs-border-width: 5px;
}

.border-opacity-10 {
    --bs-border-opacity: 0.1;
}

.border-opacity-25 {
    --bs-border-opacity: 0.25;
}

.border-opacity-50 {
    --bs-border-opacity: 0.5;
}

.border-opacity-75 {
    --bs-border-opacity: 0.75;
}

.border-opacity-100 {
    --bs-border-opacity: 1;
}

/* ==========================================================================
   BOOTSTRAP DROPDOWN - LOOK PASTELLO (FIX COLORI DINAMICI)
   ========================================================================== */

.dropdown-menu {
    border: 1px solid #edf2f7 !important;
    border-radius: 12px !important;
    padding: 8px !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    margin-top: 8px !important;
    /* Animazione fluida */
    opacity: 0;
    display: block;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

    .dropdown-menu.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

/* 2. Voci interne - LOGICA COLORI */
.dropdown-item {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    /* BOLD PER TUTTI */
    font-weight: 600 !important;
    /* COLORE BASE: Nero se non ci sono classi specifiche */
    color: #000000;
    transition: background-color 0.15s ease !important;
}

    /* --- IL TRUCCO: RISPETTA LE CLASSI DI BOOTSTRAP --- */
    /* Se ha text-danger, usa il rosso di Flatly */
    .dropdown-item.text-danger {
        color: #e74c3c !important;
    }
    /* Se ha text-success, usa il verde di Flatly */
    .dropdown-item.text-success {
        color: #18bc9c !important;
    }
    /* Se ha text-primary, usa il blu del sito (#0970b7) */
    .dropdown-item.text-primary {
        color: #0970b7 !important;
    }

    /* Forza il colore del testo anche sull'icona SVG */
    .dropdown-item svg {
        fill: currentColor !important;
        color: inherit !important;
        margin-right: 10px;
    }

    /* 3. HOVER pastello azzurro */
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f0f9ff !important;
        /* Non cambiamo il color qui, così resta rosso se è text-danger */
    }

    /* 4. Stato ACTIVE (Verde Pastello) */
    .dropdown-item.active,
    .dropdown-item:active {
        background-color: #d1f2eb !important;
    }

/* Divider leggero */
.dropdown-divider {
    border-top: 1px solid #ecf0f1 !important;
    margin: 5px 0 !important;
}

/* ==========================================================================
   FIX HOVER DROPDOWN - TESTO SEMPRE VISIBILE
   ========================================================================== */

/* 1. Sfondo pastello al passaggio del mouse */
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f0f9ff !important; /* Azzurro pastello molto chiaro */
    /* TRUCCO: Usiamo inherit così non diventa bianco ma resta del suo colore */
    color: inherit !important;
    text-decoration: none;
}

/* 2. Se una voce è nera, deve restare nera anche in hover (non bianca!) */
.dropdown-item:not(.text-danger):not(.text-success):not(.text-primary):hover {
    color: #000000 !important;
}

/* 3. Se una voce è rossa (Löschen), deve restare rossa anche in hover */
.dropdown-item.text-danger:hover {
    color: #e74c3c !important;
}

/* 4. Se una voce è verde, deve restare verde anche in hover */
.dropdown-item.text-success:hover {
    color: #18bc9c !important;
}

/* 5. Forza lo stesso comportamento sulle icone SVG */
.dropdown-item:hover svg {
    fill: currentColor !important;
    color: inherit !important;
}

/* ==========================================================================
   FRECCETTA (TRIANGOLO) SUPERIORE
   ========================================================================== */

.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px; /* Metà dell'altezza per farlo uscire */
    left: 20px; /* Posizionamento orizzontale (regola in base al tuo bottone) */
    width: 12px;
    height: 12px;
    background-color: #ffffff; /* Stesso colore dello sfondo menu */
    border-left: 1px solid #edf2f7; /* Stesso colore del bordo menu */
    border-top: 1px solid #edf2f7; /* Stesso colore del bordo menu */
    transform: rotate(45deg);
    z-index: -1; /* Sta dietro al contenuto ma sopra l'ombra */
}

/* Se il tuo dropdown è allineato a destra (dropdown-menu-right), 
   usa questa variante per la posizione della freccia: */
.dropdown-menu-right::before {
    left: auto;
    right: 20px;
}

/* 1. FRECCETTA PER I PULSANTI ARANCIONI (AZIONE) */
/* Usiamo .btn per colpire solo i veri bottoni e non i link della sidebar */
[data-bs-toggle="dropdown"]::after, button.dropdown-toggle::after {
    display: inline-block !important;
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    margin-left: 10px !important;
    vertical-align: middle !important;
    border-top: 5px solid white !important; /* Freccia bianca */
    border-right: 5px solid transparent !important;
    border-left: 5px solid transparent !important;
    border-bottom: 0 !important;
    transition: transform 0.2s;
}

/* Ruota la freccia quando il menu è aperto */
button.dropdown-toggle.show::after {
    transform: rotate(180deg);
}

/* 2. FIX PER LA SIDEBAR (MENU LATERALE) */
/* Rimuoviamo la freccetta aggiuntiva dai link della sidebar per non rompere il layout */
.nav-link.dropdown-toggle::after,
.sidebar-link.dropdown-toggle::after {
    display: none !important;
}

/* Ripristiniamo l'allineamento a sinistra per la sidebar */
.nav-item, .nav-link {
    text-align: left !important;
    justify-content: flex-start !important;
}

/* 3. ASSICURIAMOCI CHE IL PULSANTE ARANCIONE SIA UN FLEXBOX */
button.dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

[data-bs-toggle="dropdown"].show::after {
    transform: rotate(180deg);
}

/* 2. Rimuovi la freccia dalla sidebar se appare doppia o fuori posto */
/* Questo serve a "pulire" la sidebar che abbiamo visto nell'immagine */
.nav-link[data-bs-toggle="dropdown"]::after,
.sidebar [data-bs-toggle="dropdown"]::after {
    display: none !important;
}

/* Forza la freccia su TUTTI i pulsanti che hanno l'attributo dropdown */
/*[data-bs-toggle="dropdown"]::after,
    .dropdown-toggle::after {
        display: inline-block !important;
        visibility: visible !important;
        content: "" !important;
        width: 0 !important;
        height: 0 !important;
        margin-left: 8px !important;
        vertical-align: middle !important;*/
/* Disegna il triangolo */
/*border-top: 5px solid white !important;*/ /* Forza il colore bianco */
/*border-right: 5px solid transparent !important;
        border-left: 5px solid transparent !important;
        border-bottom: 0 !important;
    }*/

/* Evita che il testo e la freccia si sovrappongano */
/*.dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}*/

/* ==========================================================================
   COLORE PRIMARY DEL SITO: #0970b7 (sovrascrive il blu di default #0d6efd)
   Sovrascrive le custom property di Bootstrap (bootstrap.min.css e' caricato
   PRIMA di questo file, quindi qui vince): copre .text-primary, .bg-primary,
   .border-primary, .link-primary, alert/list-group/accordion "primary" e il
   focus-ring, che usano tutti var(--bs-primary[-rgb]).
   .btn-primary invece imposta i propri valori --bs-btn-* fissi in hex (non
   legge --bs-primary), quindi va sovrascritto a parte qui sotto.
   ========================================================================== */
:root {
    --bs-primary: #0970b7;
    --bs-primary-rgb: 9, 112, 183;
    --bs-primary-text-emphasis: #032740;
    --bs-primary-bg-subtle: #e6f1f8;
    --bs-primary-border-subtle: #90bfdf;
}

.btn-primary {
    --bs-btn-bg: #0970b7;
    --bs-btn-border-color: #0970b7;
    --bs-btn-hover-bg: #0865a5;
    --bs-btn-hover-border-color: #075a92;
    --bs-btn-active-bg: #075a92;
    --bs-btn-active-border-color: #074c7d;
    --bs-btn-focus-shadow-rgb: 9, 112, 183;
    --bs-btn-disabled-bg: #0970b7;
    --bs-btn-disabled-border-color: #0970b7;
}
