﻿:root {
    --color-yellow: #ffb703;
    --color-orange: #f77f00;
    --color-amaranth-red: #d62828;
    --color-jungle-green: #2a9d8f;
    --color-celadon-blue: #0081a7;
}

.bc-yellow {
    background-color: var(--color-yellow);
}

.bc-orange {
    background-color: var(--color-orange);
}

.bc-amaranth-red {
    background-color: var(--color-amaranth-red);
}

.bc-jungle-green {
    background-color: var(--color-jungle-green);
}

.bc-celadon-blue {
    background-color: var(--color-celadon-blue);
}

/*
.select2fix {
    padding: 5px 0px;
}
*/
.selectfix {
    margin-bottom: 10px;
}

#header .nav-item i {
    padding-bottom: 10px;
}


.brick1[disabled] {
    //opacity: 0.3 !important;
    background-color: rgba(100, 100, 100, 0.3) !important;
}

    .brick1[disabled] a {
        cursor: default !important;
    }

a.registerlink {
    color: #1b7df5
}

.btn-bright {
    filter: grayscale();
}

.n-title {
    margin-top: 2rem;
}

/*MARGIN*/
.mar-t-10 {
    margin-top: 10px;
}

.mar-t-20 {
    margin-top: 20px;
}

.mar-t-30 {
    margin-top: 30px;
}

.mar-t-40 {
    margin-top: 40px;
}

.mar-t-50 {
    margin-top: 50px;
}

.mar-b-10 {
    margin-bottom: 10px;
}

.mar-b-20 {
    margin-bottom: 20px;
}

.mar-b-30 {
    margin-bottom: 30px;
}

.mar-b-40 {
    margin-bottom: 40px;
}

.mar-b-50 {
    margin-bottom: 50px;
}

.pad-tb-10 {
    padding: 10px 0;
}

/*FORM*/
input.n-form-check-input {
    width: 20px;
    float: left;
    height: 14px;
    background-color: transparent;
    margin-right: 10px
}


.n-error {
    border: 1px solid #b94a48;
    padding: 5px 7px;
    border-radius: 10px;
    color: white;
    margin-bottom: 10px;
    background-color: #b94a48;
    margin-top: 0px;
}

/*N-PROGRESS*/
.n-progress {
    position: relative;
    height: 4px;
    display: block;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    margin: 0.5rem 0 1rem 0;
    overflow: hidden;
}

    .n-progress .indeterminate {
        background-color: #535353;
    }

        .n-progress .indeterminate:before {
            content: '';
            position: absolute;
            background-color: inherit;
            top: 0;
            left: 0;
            bottom: 0;
            will-change: left, right;
            -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
            animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
        }

        .n-progress .indeterminate:after {
            content: '';
            position: absolute;
            background-color: inherit;
            top: 0;
            left: 0;
            bottom: 0;
            will-change: left, right;
            -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
            animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
            -webkit-animation-delay: 1.15s;
            animation-delay: 1.15s;
        }

@-webkit-keyframes indeterminate {
    0% {
        left: -35%;
        right: 100%;
    }

    60% {
        left: 100%;
        right: -90%;
    }

    100% {
        left: 100%;
        right: -90%;
    }
}

@keyframes indeterminate {
    0% {
        left: -35%;
        right: 100%;
    }

    60% {
        left: 100%;
        right: -90%;
    }

    100% {
        left: 100%;
        right: -90%;
    }
}

@-webkit-keyframes indeterminate-short {
    0% {
        left: -200%;
        right: 100%;
    }

    60% {
        left: 107%;
        right: -8%;
    }

    100% {
        left: 107%;
        right: -8%;
    }
}

@keyframes indeterminate-short {
    0% {
        left: -200%;
        right: 100%;
    }

    60% {
        left: 107%;
        right: -8%;
    }

    100% {
        left: 107%;
        right: -8%;
    }
}

/*TEXT*/
.text-center {
    text-align: center;
}

.text-align-left {
    text-align: left;
}

.text-align-right {
    text-align: right;
}

/*TABLE*/
.n-table {
    background-color: transparent;
    overflow: hidden;
    width: 100%;
    border-collapse: collapse;
}

    .n-table thead tr {
        border-bottom: 1px solid rgb(0, 0, 0, 0.75);
    }

    .n-table tbody tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }

    .n-table th {
        padding: .5rem;
        vertical-align: middle;
    }

    .n-table td {
        padding: .5rem;
        vertical-align: middle;
    }

.padding-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

input.n-table-input {
    height: 50px;
    margin: 0;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.08) !important;
    min-width: 100px;
}

    input.n-table-input:focus {
        border-color: rgba(0, 0, 0, 0.55);
    }


/*.n-extended-input {
    display: flex;
}

.n-extended-input button {
    border: none;
    background: rgba(0, 0, 0, 0.08) !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.35);
    height: 40px;
    width: 40px;
    font-size: 20px;
    color: #717171;
}

.n-extended-input button:hover {
    color: #4b4b4b;
}

.n-extended-input button i {
    font-size: 20px;
    margin: 0;
}

.n-extended-input input {
    flex-grow: 1;
}*/

button.n-table-button {
    height: 40px;
    width: 40px;
    border: none;
    color: white;
}

    button.n-table-button i {
        font-size: 18px;
        margin: 0;
    }

.n-message .text-warning {
    border: 1px solid #e9a23b;
    padding: 5px 7px;
    border-radius: 10px;
    color: white !important;
    margin-bottom: 20px;
    background-color: #e9a23b;
}

/*BUTTONS*/
.n-btn-light {
    background: rgba(0, 0, 0, 0.10) !important;
    color: #222222;
}

    .n-btn-light:hover {
        background: rgba(0, 0, 0, 0.20) !important;
    }

#customInformation .title {
    color: #c40c0c;
    font-size: 1.75rem;
    line-height: 40px;
    margin: 10px 0;
}

.heading {
    margin: 10px 0;
    font-family: 'BebasNeueRegular', sans-serif;
    font-weight: normal;
    line-height: 20px;
    color: inherit;
    text-rendering: optimizelegibility;
}

    .heading.h1 {
        font-size: 2.75rem;
        line-height: 40px;
    }

    .heading.h2 {
        font-size: 2.25rem;
        line-height: 40px;
    }

    .heading.h3 {
        font-size: 1.75rem;
        line-height: 40px;
    }

    .heading.h4 {
        font-size: 1.25rem;
    }

    .heading.h5 {
        font-size: 1rem;
    }

    .heading.h6 {
        font-size: 0.85rem;
    }

.text-decoration-underline {
    text-decoration: underline;
}

.btn:focus, input:focus {
    outline: 3px solid #1b7df5 !important;
    outline-offset: 1px !important;
}

a:focus-visible {
    outline: 2px solid #1b7df5 !important;
    outline-offset: 1px !important;
}

.footer a:focus-visible,
.footer a:focus {
    outline: 2px solid white !important;
}

/*COOKIE BAR*/

#cookie-bar {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 1000;
}


    #cookie-bar a {
        border: none;
        background: none !important;
        text-decoration: underline !important;
        border-radius: 0;
    }

        #cookie-bar a:focus-visible,
        #cookie-bar a:focus {
            outline: 2px solid white !important;
        }

label.required:after {
    content: "*";
    color: red;
    margin-left: 3px;
}

label:has(+ input:required):after {
    content: ' *';
    color: red;
}

label.required-before:before,
span.required-before:before {
    content: "*";
    color: red;
    margin-right: 3px;
}

label:has(+ input:required, + select:required):after {
    content: ' *';
    color: red;
}

input:required + label:after {
    content: ' *';
    color: red;
}

.brick1 a {
    text-decoration: none;
}

.bold {
    font-weight: 600;
}

.text-decoration-underline {
    text-decoration: underline;
}

/* ---------- Select2 v4: allineamento Bootstrap 3 form-control ----------
   htmlHead.ascx imposta theme 'flat' -> classe .select2-container--flat.
   Selettori generici (niente --default) così funzionano su qualsiasi tema. */

/* annulla override globale conflittuale presente in style.css */
span.select2.select2-container {
    border: 0 !important;
}

/* width coerente con .form-control (il plugin inietta width inline) */
.select2-container {
    width: 100% !important;
}

    /* container single/multiple: look input progetto (height 30px) */
    .select2-container .select2-selection--single,
    .select2-container .select2-selection--multiple {
        height: 48px !important;
        min-height: 30px !important;
        box-sizing: border-box !important;
        background-color: #fff !important;
        /*border: 1px solid #ccc !important;*/
        border-radius: 4px !important;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) !important;
        margin-bottom: 10px;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }

        /* testo interno single */
        .select2-container .select2-selection--single .select2-selection__rendered {
            line-height: 50px !important;
            color: #555 !important;
            padding-left: 8px !important;
            padding-right: 38px !important;
        }

        .select2-container .select2-selection--single .select2-selection__placeholder {
            color: #999;
        }

        /* freccia single */
        .select2-container .select2-selection--single .select2-selection__arrow {
            height: 28px !important;
            right: 22px !important;
            top: 0 !important;
        }

        /* clear (X) per allowClear */
        .select2-container .select2-selection--single .select2-selection__clear {
            position: absolute;
            right: 6px;
            top: 0;
            height: 28px;
            width: 20px;
            line-height: 28px;
            font-weight: bold;
            color: #888;
            cursor: pointer;
            background: transparent;
            border: 0;
            padding: 0 4px;
        }

            .select2-container .select2-selection--single .select2-selection__clear:hover,
            .select2-container .select2-selection--single .select2-selection__clear:focus {
                color: #d62828;
                outline: 0;
            }

            .select2-container .select2-selection--single .select2-selection__clear span {
                float: right;
                padding: 12px 3px;
            }
            /* multiple: padding coerente + auto height */
            .select2-container .select2-selection--multiple {
                height: auto !important;
                min-height: 30px !important;
                padding: 2px 6px !important;
            }

                .select2-container .select2-selection--multiple .select2-selection__rendered {
                    padding: 0;
                }

                .select2-container .select2-selection--multiple .select2-selection__choice {
                    background-color: #e7f1ff !important;
                    border: 1px solid #b6d4fe !important;
                    border-radius: 3px !important;
                    color: #084298 !important;
                    margin-top: 4px;
                    margin-left: 0;
                    margin-right: 4px;
                    padding: 2px 6px 2px 22px;
                    line-height: 18px;
                }

                .select2-container .select2-selection--multiple .select2-selection__choice__remove {
                    color: #084298 !important;
                    border-right: 1px solid #b6d4fe !important;
                    padding: 0 5px;
                }

                    .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover,
                    .select2-container .select2-selection--multiple .select2-selection__choice__remove:focus {
                        background-color: #d0e3ff !important;
                        color: #052c65 !important;
                    }
            /* focus / open */
            .select2-container.select2-container--focus .select2-selection--single,
            .select2-container.select2-container--focus .select2-selection--multiple,
            .select2-container.select2-container--open .select2-selection--single,
            .select2-container.select2-container--open .select2-selection--multiple {
                border-color: #1b7df5 !important;
                box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(27, 125, 245, 0.25) !important;
                outline: 0 !important;
            }
            /* disabled */
            .select2-container.select2-container--disabled .select2-selection--single,
            .select2-container.select2-container--disabled .select2-selection--multiple {
                background-color: #eee !important;
                border-color: #ccc !important;
                box-shadow: none !important;
                cursor: not-allowed;
                opacity: 1;
            }

                .select2-container.select2-container--disabled .select2-selection--single .select2-selection__rendered {
                    color: #6c757d !important;
                }
            /* dropdown */
            .select2-dropdown {
                border: 1px solid #1b7df5 !important;
                border-radius: 4px !important;
                box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12) !important;
            }

            .select2-container.select2-container--open.select2-container--below .select2-dropdown--below {
                border-top: 1px solid #1b7df5 !important;
                border-top-left-radius: 0 !important;
                border-top-right-radius: 0 !important;
            }

            .select2-container.select2-container--open.select2-container--above .select2-dropdown--above {
                border-bottom: 1px solid #1b7df5 !important;
                border-bottom-left-radius: 0 !important;
                border-bottom-right-radius: 0 !important;
            }

            .select2-container.select2-container--open.select2-container--below .select2-selection--single,
            .select2-container.select2-container--open.select2-container--below .select2-selection--multiple {
                border-bottom-left-radius: 0 !important;
                border-bottom-right-radius: 0 !important;
            }

            .select2-container.select2-container--open.select2-container--above .select2-selection--single,
            .select2-container.select2-container--open.select2-container--above .select2-selection--multiple {
                border-top-left-radius: 0 !important;
                border-top-right-radius: 0 !important;
            }
            /* search field nel dropdown */
            .select2-search--dropdown .select2-search__field {
                border: 1px solid #ccc !important;
                border-radius: 4px !important;
                padding: 6px 10px !important;
                outline: 0 !important;
            }

                .select2-search--dropdown .select2-search__field:focus {
                    border-color: #1b7df5 !important;
                    box-shadow: 0 0 0 2px rgba(27, 125, 245, 0.2) !important;
                }
            /* results */
            .select2-results__option {
                padding: 6px 12px !important;
            }

            .select2-container .select2-results__option--highlighted.select2-results__option--selectable,
            .select2-container .select2-results__option--highlighted[aria-selected] {
                background-color: #1b7df5 !important;
                color: #fff !important;
            }

            .select2-container .select2-results__option--selected,
            .select2-container .select2-results__option[aria-selected="true"] {
                background-color: #e7f1ff !important;
                color: #084298 !important;
            }
            /* rimuove doppio focus outline su single */
            .select2-selection.select2-selection--single:focus {
                outline: 0 !important;
            }
