@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    /*Definizione Layer di sovrapposizione*/
    --layer-last: -1;
    --layer-button: 200;
    --layer-input-form: 300;
    --layer-hover-button: 400;
    --layer-list-header: 500;
    --layer-list-absolute: 550;
    --layer-dropdown: 800;
    --layer-header: 900;
    /*--layer-modal: 1055; DA BOOTSTRAP*/
    --layer-first: 9999;
    /*Definizione colori*/
    --colore-verde-gds: rgb(123, 174, 128);
    --colore-bianco: white;
    --colore-grigio-chiaro: lightgray;
    /*Definizione colori*/
    --colore-verde-gds-70: rgb(123, 174, 128, 0.7);
    --colore-rosso-70: rgba(174, 123, 127, 0.7);
    --colore-rosso-50: rgba(174, 123, 127, 0.5);
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding-right: 2px;
}

@media (min-width: 1500px) {
    .text-responsive {
        font-size: calc(100% + 1vw + 1vh);
    }
}

@media (max-width: 1499.98px) {
    .text-responsive {
        font-size: calc(80% + 1vw + 1vh);
    }
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.row {
    margin-right: calc(var(--bs-gutter-x) * -.0);
    margin-left: calc(var(--bs-gutter-x) * -.0);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.cursor-pointer{
    cursor: pointer;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.page-header {
    background-color: #7bae80 !important;
    color: var(--colore-bianco);
    border-bottom: 1px solid #d6d5d5;
    text-align: center;
    height: 3.5rem;
    align-items: center;
    padding-top: 15px;
    font-size: large;
    font-weight: bold;
}

.page-body {
    width: 100%;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
}

.oi-button {
    padding: 5px;
    cursor: pointer;
    border: 1px solid;
    border-radius: 5px;
}

.oi-primary {
    color: white !important;
    border-color: white !important;
    background-color: #7bae80 !important;
}

.oi-primary-outline {
    color: #7bae80 !important;
    border-color: #7bae80 !important;
    background-color: white !important;
}

.oi-danger {
    color: #d46f78 !important;
}

.btn-primary {
    background-color: #7bae80 !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    border-color: #7bae80 !important;
    color: #7bae80 !important;
}

.btn-outline-primary:hover {
    color: #7bae80 !important;
}

.btn-info {
    background-color: #0fc9ee57 !important;
}

.btn-outline-info {
    background-color: transparent !important;
    border-color: #0fc9ee57 !important;
    color: #0fc9ee57 !important;
}

.btn-outline-info:hover {
    color: #0fc9ee57 !important;
}

.btn-danger {
    background-color: #d46f78 !important;
}

.btn-outline-danger {
    background-color: transparent !important;
    border-color: #d46f78 !important;
    color: #d46f78 !important;
}

.btn-outline-danger:hover {
    color: #d46f78 !important;
}

.btn-secondary {
    background-color: #8f969d !important;
}

.btn-outline-secondary {
    background-color: transparent !important;
    border-color: #8f969d !important;
    color: #8f969d !important;
}

.btn-outline-secondary:hover {
    color: #8f969d !important;
}

.bg-primary {
    background-color: #7bae80 !important;
}

.bg-success {
    background-color: #5369f1 !important;
}

.bg-danger {
    background-color: #d46f78 !important;
}

.bg-secondary {
    background-color: #8f969d !important;
}

.prgb-primary {
    background-color: rgba(212, 111, 120, 0.3) !important;
}

.prbg-success {
    background-color: rgba(83, 105, 241, 0.3) !important;
}

.prgb-warning {
    background-color: rgba(255, 193, 7, 0.3) !important;
}

.prgb-danger {
    background-color: rgba(123, 174, 128, 0.3) !important;
}


.text-primary {
    color: #7bae80 !important;
}

.text-success {
    color: #5369f1 !important;
}

.text-danger {
    color: #d46f78 !important;
}

.text-secondary {
    color: #8f969d !important;
}

.form-check-input {
}

    .form-check-input:checked {
        background-color: #7bae80 !important;
        border-color: #7bae80 !important;
    }

.gestionale .navbar {
    /*    background-image: url(/images/BackgroundTitle.png);
    background-repeat: repeat-y;*/
    background-image: none;
    background-color: #fff !important;
}


.socio .navbar {
    background-image: none;
    background-color: #fff !important;
}

.gestionale .nav-link {
    line-height: normal !important;
}

.nav-link-selected {
    color: #7bae80 !important;
    font-weight: 500;
}

.nav-link-unselected {
    color: #8f969d !important;
}

.btn-card-swiperight {
    position: absolute;
    right: -80px;
    width: 80px;
    top: 0px;
    border-radius: unset;
}

.dropstart .dropdown-toggle {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}

.dropstart .dropdown-toggle::before {
    display: none;
}

.search-field {
}




/* Nav-Bar Tab */
.tab-validation {
    display: flex;
}

    .tab-validation .validation-message {
        position: relative;
        top: 10px;
        right: 12px;
    }


/* Calendar */
.elegant-calendar {
    max-width: 700px;
    text-align: center;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 5px;
    -webkit-box-shadow: 0px 19px 27px -20px rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0px 19px 27px -20px rgba(0, 0, 0, 0.16);
    box-shadow: 0px 19px 27px -20px rgba(0, 0, 0, 0.16);
}

.wrap-header {
    position: relative;
    width: 55%;
    background: lightgray;
}

@media (max-width: 900px) {
    .wrap-header {
        width: 100%;
        padding: 10px 0;
    }
}


#header {
    width: 100%;
    position: relative;
}

    #header .pre-button, #header .next-button {
        cursor: pointer;
        width: 1em;
        height: 1em;
        line-height: 1em;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        -webkit-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
        font-size: 18px;
        min-width: 60px;
        min-height: 80px;
    }

        #header .pre-button i, #header .next-button i {
            color: #fff;
        }

.pre-button {
    left: 5px;
}

.next-button {
    right: 5px;
}

.head-day {
    font-size: 6vw;
    line-height: 1;
    color: #fff;
}

.head-month {
    font-size: 3vw;
    line-height: 1;
    color: #fff;
    text-transform: capitalize;
}

.head-monthyear {
    font-size: 2vw;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
}

.head-year {
    font-size: 6vw;
    line-height: 1;
    color: #fff;
}

.calendar-wrap {
    width: 100%;
    background: #fff;
}

#calendar-day {
    width: 100%;
}

    #calendar-day tr {
        height: 1.5em;
    }

    #calendar-day thead tr {
        color: #000;
        font-weight: 700;
    }

    #calendar-day tbody tr {
        color: #000;
    }

    #calendar-day tbody td {
        width: 14%;
        border-radius: 50%;
        cursor: pointer;
        -webkit-transition: all 0.2s ease-in;
        -o-transition: all 0.2s ease-in;
        transition: all 0.2s ease-in;
        position: relative;
        z-index: 0;
    }

        #calendar-day tbody td:after {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            bottom: 0;
            content: '';
            width: 22px;
            height: 22px;
            margin: 0 auto;
            -webkit-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            transform: translateY(-50%);
            border-radius: 50%;
            -webkit-transition: 0.3s;
            -o-transition: 0.3s;
            transition: 0.3s;
            z-index: -1;
        }

@media (prefers-reduced-motion: reduce) {
    tbody td:after {
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
}

#calendar-day tbody td:hover, .selected, .with-events {
    color: #fff;
    border: none;
}

    #calendar-day tbody td:hover:after {
        background: #2a3246;
    }

#calendar-day tbody .selected:after {
    background: #2a3246;
}

#calendar-day tbody .with-events:after {
    background: #1b6ec2;
}

#calendar-day tbody td:active {
    -webkit-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
}

#calendar-month {
    width: 100%;
}

    #calendar-month tr {
        height: 1.5em;
    }

    #calendar-month thead tr {
        color: #000;
        font-weight: 700;
    }

    #calendar-month tbody tr {
        color: #000;
    }

    #calendar-month tbody td {
        width: 14%;
        border-radius: 50%;
        -webkit-transition: all 0.2s ease-in;
        -o-transition: all 0.2s ease-in;
        transition: all 0.2s ease-in;
        position: relative;
        z-index: 0;
    }

        #calendar-month tbody td:after {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            bottom: 0;
            content: '';
            width: 22px;
            height: 22px;
            margin: 0 auto;
            -webkit-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            transform: translateY(-50%);
            border-radius: 50%;
            -webkit-transition: 0.3s;
            -o-transition: 0.3s;
            transition: 0.3s;
            z-index: -1;
        }

@media (prefers-reduced-motion: reduce) {
    tbody td:after {
        -webkit-transition: none;
        -o-transition: none;
        transition: none;
    }
}

#calendar-month tbody .selected, .with-events {
    color: #fff;
    border: none;
}

    #calendar-month tbody .selected:after {
        background: #2a3246;
    }

#calendar-month tbody .with-events:after {
    background: #1b6ec2;
}

#calendar-month tbody td:active {
    -webkit-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
}



.html-editor-item img {
    max-width: 100%;
    height: auto;
}

.ql-tooltip {
    left: 0px !important;
    top: 0px !important;
    z-index: var(--layer-first);
}

.mobilecontainer {
    overflow: hidden;
    width: 100%; /* Di default, la larghezza è al 100% dello schermo */
    margin: 0 auto; /* Centra il contenitore */
}

@media (min-width: 768px) {
    .mobilecontainer {
        width: 600px; /* Imposta una larghezza massima per i tablet in verticale */
    }
}

@media (min-width: 992px) {
    .mobilecontainer {
        width: 800px; /* Per schermi leggermente più grandi (ad esempio laptop) */
    }
}