
body {
    font-family: "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    line-height: 1.45;
}

/*    background-color: #ececec;
*/


html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  /*margin-bottom: 60px;*/
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
}

fieldset > .fieldset-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

fieldset.tobe-enlarged:not(.collapsed) > .fieldset-content {
    padding-bottom: 1rem; /* spazio extra per bottone */
}

legend.tobe-collapsible {
    cursor: pointer;
    user-select: none;
}

    legend.tobe-collapsible .collapse-icon {
        pointer-events: none;
        margin-right: 0.5rem;
    }

.array-item, .input {
    margin-bottom: 0.5rem;
}

legend.tobe-collapsible .collapse-icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.25s ease;
}

/* stato chiuso */
fieldset.collapsed legend.tobe-collapsible .collapse-icon {
    transform: rotate(-90deg);
}

.box .collapse-marker {
    display: inline-block;
    transition: transform 0.25s ease;
}

/* chiuso → freccia destra */
.collapse-toggle:not(.active-toggle) .collapse-marker {
    transform: rotate(-90deg);
}

/* aperto → freccia giù */
.collapse-toggle.active-toggle .collapse-marker {
    transform: rotate(0deg);
}

.collapse-marker {
    transform-origin: center;
}

.popup-notification {
    min-width: 250px;
    padding: 10px 15px;
    border-radius: 6px;
    color: white;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

    .popup-notification.show {
        opacity: 1;
        transform: translateX(0);
    }

    /* Tipi */
    .popup-notification.success {
        background: #4caf50;
    }

    .popup-notification.error {
        background: #f44336;
    }

    .popup-notification.warning {
        background: #ff9800;
    }

    .popup-notification.info {
        background: #2196f3;
    }

[data-role="tabs"] > ul {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

[data-role="tabs"] > ul li {
    margin-right: 2px;
}

[data-role="tabs"] > ul li a {
    display: block;
    padding: 8px 14px;
    border: 1px solid #dcdcdc;
    background: #f8f8f8;
    text-decoration: none;
    color: #333;

    /*background: #f3f3f3;
    color: #555;
    transition: all 0.2s ease;*/
}

[data-role="tabs"] > ul li.active a {
    /*
    18/05/2026 il tab che è selezionato è poco visibile dagli altri non selezioanti
    background: white;
    border-bottom: 1px solid white;
*/
    background: #6f86d6 !important;
    color: white !important;
    border-color: #6f86d6 !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(111, 134, 214, 0.20);
}

[data-role="tabs"] > ul li a:hover { /* hover -->> quando il mouse passa sopra, cambia temporaneamente il colore di sfondo del tab. */
    background: #e5e9ff;
}

.box-content > .tabs {
    border: 0px !important;
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-tab {
    font-size: 12px;
    opacity: 0.6;
    cursor: pointer;
}

    .remove-tab:hover {
        opacity: 1;
        color: red;
    }

/*.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);*/ /* opaco */
    /*z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}*/

/* nascondi */
.d-none {
    display: none !important;
}

/* spinner semplice */
/*.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
*/
/* animazione */
/*@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
*/

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.loading-card {
    min-width: 170px;
    padding: 24px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: loadingFadeIn 180ms ease-out;
}

.loading-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(37, 99, 235, 0.15);
    border-top-color: #2563eb;
    animation: loadingSpin 0.9s linear infinite;
}

.loading-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    letter-spacing: 0.02em;
}

@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-form label {
    font-weight: var(--base-text-weight-ultralight) !important;
}

.custom-form .input,
.custom-form .form-control,
.custom-form .form-select {
    /*    border: none;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid transparent;
    background: transparent;
*/
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-left: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;

    transition: all 0.2s ease !important;
}

    .custom-form .input:focus,
    .custom-form .input:focus-within,
    .custom-form .input.focused,
    .custom-form .input.small:focus,
    .custom-form .input.small:focus-within,
    .custom-form .input.small.focused {
        /*        border-bottom: 2px solid #0078d7 !important;
        border-left: 2px solid #0078d7 !important;
*/
        border-bottom-color: #3671a9 !important;
    }

.custom-form .input input,
.custom-form .select-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.fieldmessage-danger {
    color: #dd0e37 !important;
    font-size: 0.85em;
}

.border-red {
    border: 1px solid #dc3545 !important;
}

.input input.border-red {
    border: 1px solid #dc3545 !important;
}

.select-readonly {
    /*
    background-color: var(--input-background-disabled) !important;
    pointer-events: none; / blocca interazioni /
    opacity: 0.8;
    */

    background-color: #f5f5f5 !important;
    color: #222 !important;
    pointer-events: none;
    opacity: 1 !important;
    font-weight: 600;
}

.select-readonly option {
    color: #222 !important;
}

.select-group {
    display: flex;
}

.select-prepend {
    background-color: var(--input-prepend-background);
    color: var(--input-prepend-color);
    align-items: center;
    justify-content: center;
    padding: 0 calc(var(--input-height) / 2);
    white-space: nowrap;
}

/*#tblUsers tbody tr {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-radius: 10px;
}
*/


/*.comune-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
}
*/

#globalDropdownAutocomplete {
    max-height: 250px;
    overflow-y: auto;
}

#globalDropdownAutocomplete .item.active {
    background: #e3f2fd;
}

.tabs-list a.text-danger {
    color: #dc3545 !important;
    font-weight: bold;
}

.box-title-inner {
    display: flex;
    align-items: center;
}

    .box-title-inner .btnNewItem {
        margin-left: auto;
    }

.swal2-popup {
    border-radius: 6px;
    font-family: inherit;
}

.swal2-title {
    font-size: 1.2rem;
}

.swal2-html-container {
    font-size: 0.95rem;
}

/*td.dt-control {
    cursor: pointer;
    width: 32px;
}

td.dt-control::before {
    content: '▶';
    font-size: 11px;
}

tr.shown td.dt-control::before {
    content: '▼';
}

.order-line-table {
    width: calc(100% - 40px);
    margin-left: 40px;
}
*/

/* Riga espansione */
tr.shown td.details-control {
    background: #dff0ff;
}

td.details-control {
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    width: 42px;
}

    td.details-control .mif-plus,
    td.details-control .mif-minus {
        font-size: 18px;
    }

/* Contenitore dettaglio */
.order-lines-wrapper {
    padding: 10px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Spinner */
.line-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: #666;
}

/* Tabella detail */
table.order-lines-table {
    width: 100%;
    border-collapse: collapse;
}

    table.order-lines-table th {
        background: #f0f0f0;
        padding: 8px;
        text-align: left;
        border-bottom: 1px solid #ccc;
    }

    table.order-lines-table td {
        padding: 8px;
        border-bottom: 1px solid #eee;
    }

    table.order-lines-table tr:hover {
        background: #f8f8f8;
    }

.line-empty {
    padding: 12px;
    color: #888;
    font-style: italic;
}

.line-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
    padding: 24px;
    color: #666;
}

.metro-loading {
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.custom-loader {
    width: 24px;
    height: 24px;
    border: 3px solid #dcdcdc;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}
*/

/*.order-lines-wrapper {
    margin-left: 32px !important;
    padding: 16px !important;
    background: #fcfcfc;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}
*/
.line-loader span {
    font-size: 13px;
    color: #888;
}

.box-darkblue {
    border-color: #4866bf;
}

/*body {
    min-height: 100vh;
    background: linear-gradient( 180deg, #ffffff 0%, #f7f8ff 30%, #e7eaff 65%, #c5ccff 100% );
    background-attachment: fixed;
}
*/

/*body {
    background: linear-gradient( to top, #d9defd 0%, #eef1ff 45%, #fafbff 75%, #ffffff 100% );
}
*/

body {
    min-height: 100vh;
    background: radial-gradient( circle at bottom center, rgba(129, 140, 248, 0.20), transparent 45% ), linear-gradient( to top, #dfe3ff 0%, #f5f7ff 60%, #ffffff 100% );
    background-attachment: fixed;
}


/* CHILD ROW DATATABLE */
/*table.dataTable tbody tr td.child {
    padding: 0 !important;
    max-width: 0;
    overflow: hidden;
}*/

/* wrapper generale */
/*.order-lines-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    box-sizing: border-box;
    padding: 10px;
}*/

/* tabella dettaglio */
/*.order-lines-table {
    min-width: 900px;
    border-collapse: collapse;
}*/

/* evita wrap */
/*.order-lines-table td,
.order-lines-table th {
    white-space: nowrap;
}

.dataTables_wrapper {
    overflow-x: hidden;
}*/

/*#tblOrders {
    width: 100% !important;
}
*/
/*#tblOrders_wrapper {
    width: 100%;
    overflow-x: hidden;
}*/

@media (max-width: 768px) {

    .order-lines-table thead {
        display: none;
    }

    .order-lines-table,
    .order-lines-table tbody,
    .order-lines-table tr,
    .order-lines-table td {
        display: block;
        width: 100%;
    }

        .order-lines-table tr {
            margin-bottom: 14px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background: #fff;
            padding: 10px;
            box-shadow: 0 1px 4px rgba(0,0,0,.05);
        }

        .order-lines-table td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: none;
            border-bottom: 1px solid #f0f0f0;
            padding: 8px 10px;
            text-align: right;
        }

            .order-lines-table td:last-child {
                border-bottom: none;
            }

            .order-lines-table td::before {
                content: attr(data-label);
                font-weight: 600;
                color: #666;
                text-align: left;
                margin-right: 16px;
            }
}

.checkbox-field {
    display: flex;
    align-items: center;
    min-height: 36px;
}

@media screen and (max-width: 768px) {

    .responsive-tabs .tabs-list {
        display: block !important;
    }

        .responsive-tabs .tabs-list li {
            display: block !important;
            width: 100%;
        }

            .responsive-tabs .tabs-list li a {
                display: block !important;
                width: 100%;
            }
}

/* Nasconde il burger delle tabs MetroUI */
.tabs-expand > .hamburger.menu-down {
    display: none !important;
}

/* Allinea titolo tab a sinistra e cestino a destra */
.dynamic-tabs .tabs-list li a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

    /* Evita che il bottone cestino faccia comportamenti strani dentro il link */
    .dynamic-tabs .tabs-list li a button {
        margin-left: auto;
        flex-shrink: 0;
    }


select.select-readonly,
select:disabled,
select[readonly],
.form-select.select-readonly,
.form-select:disabled {
    background-color: #f5f5f5 !important;
    color: #505050 !important;
    opacity: 1 !important;
    font-weight: 400;
    -webkit-text-fill-color: #505050 !important;
}

input.disabled {
    background-color: #f5f5f5 !important;
    color: #505050 !important;
    -webkit-text-fill-color: #505050 !important;
}

label.disabled {
    color: #6e6e6e !important;
}

table.dataTable.manual-reorder thead th {
    cursor: default !important;
}

table.dataTable.manual-reorder thead .sorting:before,
table.dataTable.manual-reorder thead .sorting:after,
table.dataTable.manual-reorder thead .sorting_asc:before,
table.dataTable.manual-reorder thead .sorting_asc:after,
table.dataTable.manual-reorder thead .sorting_desc:before,
table.dataTable.manual-reorder thead .sorting_desc:after,
table.dataTable.manual-reorder thead .sorting_disabled:before,
table.dataTable.manual-reorder thead .sorting_disabled:after {
    display: none !important;
}

.responsive-dialog {
    width: min(900px, 95vw) !important;
}

@media (max-width: 768px) {

    .responsive-dialog {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }

        .responsive-dialog .dialog-content {
            max-height: calc(100vh - 120px);
        }
}

#menuOverlay {
    position: fixed;
    inset: 0;
    /*    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
*/

    background: rgba(0,0,0,.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
}

    /* overlay attivo */
    #menuOverlay.active {
        opacity: 1;
        visibility: visible;
    }

/* nav sopra overlay */
#mainNav {
    position: relative;
    z-index: 2100;
}

.page-header {
    position: relative;
    margin: 12px 0 24px 0;
    padding-bottom: 12px;
}

.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient( 90deg, rgba(4,63,117,.35) 0%, rgba(4,63,117,.18) 100% );
}

.page-title {
    display: inline-block;
    position: relative;
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
}

.dynamic-tabs .tabs-list {
    border-bottom: 1px solid #cfd8dc;
    padding-bottom: 0;
    margin-bottom: 0;
}

    .dynamic-tabs .tabs-list li {
        margin-bottom: -1px;
    }

        .dynamic-tabs .tabs-list li a {
            border: 1px solid transparent;
            border-bottom: none;
            border-radius: 6px 6px 0 0;
            padding: 8px 14px;
        }

        .dynamic-tabs .tabs-list li.active a {
            background: #fff;
            border-color: #cfd8dc;
            border-bottom: 1px solid #fff;
        }

.dynamic-tabs .tabs-list {
    border-bottom: 2px solid #e0e0e0;
}

    .dynamic-tabs .tabs-list li.active a {
        border-bottom: 3px solid #1976d2;
    }

.dynamic-tabs {
    width: 100%;
}

    .dynamic-tabs .tabs-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        list-style: none;
        padding: 0;
        margin: 0 0 10px 0;
        border-bottom: 1px solid #ccc;
    }

        .dynamic-tabs .tabs-list li {
            margin: 0;
        }

            .dynamic-tabs .tabs-list li a {
                display: block;
                padding: 8px 14px;
                text-decoration: none;
                border: 1px solid #ccc;
                border-bottom: none;
                background: #f5f5f5;
                border-radius: 6px 6px 0 0;
                color: #333;
            }

            .dynamic-tabs .tabs-list li.active a {
                background: white;
                font-weight: bold;
            }

    .dynamic-tabs .tabs-content {
        border: 1px solid #ccc;
        padding: 12px;
        background: white;
    }

    .dynamic-tabs .tab-panel,
    .dynamic-tabs .nested-tab-panel {
        display: none;
    }

        .dynamic-tabs .tab-panel.active,
        .dynamic-tabs .nested-tab-panel.active {
            display: block;
        }

.doc-file-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .doc-file-wrap .native-file {
        display: none;
    }

.doc-file-button {
    cursor: pointer;
    margin: 0;
}

.doc-file-name {
    color: #666;
    font-size: .9rem;
}

@media screen and (max-width: 768px) {
    .dialog.responsive-dialog[data-role-dialog="true"] {
        top: 64px !important;
        max-height: calc(100vh - 64px - 16px);
        overflow-y: auto;
    }
}

.dialog.responsive-dialog[data-role-dialog="true"] {
    box-sizing: border-box;
}

@media screen and (max-width: 400px) {
    .account-page {
        padding: 0px !important;
    }

    .account-wrapper {
        padding: 0px !important;
    }
}

.button-new-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*:root {
    --arete-filter-height: 34px;
}*/

/* select Metro */
/*.arete-select-small-wrapper {
    height: var(--arete-filter-height) !important;
    min-height: var(--arete-filter-height) !important;
    margin: 0 !important;
    padding: 0 34px 0 10px !important;
    display: inline-flex !important;
    align-items: center !important;
}

    .arete-select-small-wrapper .select-input {
        height: var(--arete-filter-height) !important;
        min-height: var(--arete-filter-height) !important;
        line-height: var(--arete-filter-height) !important;
        padding: 0 !important;
        font-size: .875rem !important;
    }

    .arete-select-small-wrapper .dropdown-toggle,
    .arete-select-small-wrapper .dropdown-caret {
        height: var(--arete-filter-height) !important;
    }*/

/* input Metro */
/*.arete-filter-row .input.small {
    height: var(--arete-filter-height) !important;
    min-height: var(--arete-filter-height) !important;
}

    .arete-filter-row .input.small input {
        height: var(--arete-filter-height) !important;
        min-height: var(--arete-filter-height) !important;
        line-height: var(--arete-filter-height) !important;
    }*/

/* bottone */
/*.arete-filter-row .button.small,
.arete-filter-row button.small,
.arete-filter-row .pill-button.small {
    height: var(--arete-filter-height) !important;
    min-height: var(--arete-filter-height) !important;
    line-height: calc(var(--arete-filter-height) - 2px) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-radius: 26px !important;
}*/

:root {
    --arete-filter-height: 34px;
}

.custom-form .arete-filter-row .input.small,
.custom-form .arete-filter-row .arete-select-small-wrapper {
    height: var(--arete-filter-height) !important;
    min-height: var(--arete-filter-height) !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    border-left: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

    .custom-form .arete-filter-row .input.small:focus-within,
    .custom-form .arete-filter-row .input.small.focused,
    .custom-form .arete-filter-row .arete-select-small-wrapper:focus-within,
    .custom-form .arete-filter-row .arete-select-small-wrapper.focused {
        border-bottom-color: #3671a9 !important;
    }

    .custom-form .arete-filter-row .input.small input,
    .custom-form .arete-filter-row .arete-select-small-wrapper .select-input {
        height: var(--arete-filter-height) !important;
        min-height: var(--arete-filter-height) !important;
        line-height: var(--arete-filter-height) !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

.arete-footer{
}

.arete-footer-container{
}

.arete-footer-grid{
}

.arete-footer-row{
}

.arete-footer-cell{
}

.arete-footer-acell {
}

.arete-footer-bcell {
}

.arete-footer-ccell {
}

.input.input-readonly .input-clear-button {
    display: none !important;
}

.input.input-readonly {
    opacity: .75;
}

.ric-ric-subheader {
    font-size: medium;
}
.ric-ric-detail-row {
    border-bottom: solid 1px lightgray;
    padding-top: 4px;
    padding-bottom: 6px;
}
.ric-ric-detail-lbl {
    font-weight: 500;
}
.ric-ric-message {
    margin-top: 30px;
    font-size: medium;
}
.ric-ric-footer {
    font-size: smaller;
}

/*.arete-toggle {
    display: inline-block;
    position: relative;
}

    .arete-toggle input {
        display: none;
    }

    .arete-toggle span {
        position: relative;
        display: inline-flex;
        align-items: center;
        width: 130px;
        height: 34px;
        border-radius: 999px;
        background: #d1d5db;
        cursor: pointer;
        overflow: hidden;
    }

        .arete-toggle span::before {
            content: attr(data-off);
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 16px;
            font-size: .72rem;
            font-weight: 700;
        }

        .arete-toggle span::after {
            content: "";
            position: absolute;
            width: 30px;
            height: 30px;
            left: 2px;
            top: 2px;
            border-radius: 50%;
            background: #fff;
            transition: .2s ease;
        }

    .arete-toggle input:checked + span::before {
        content: attr(data-on);
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 0;
    }

    .arete-toggle input:checked + span::after {
        left: 98px;
    }
*/

.arete-toggle {
    display: inline-block;
    user-select: none;
}

    .arete-toggle input {
        display: none;
    }

    .arete-toggle span {
        position: relative;
        display: inline-flex;
        align-items: center;
        width: 140px;
        height: 36px;
        border-radius: 999px;
        overflow: hidden;
        background: #c0392b; /* PRELEVA */
        cursor: pointer;
        transition: background .25s ease;
    }

        /* testo */

        .arete-toggle span::before {
            content: attr(data-off);
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 16px;
            color: white;
            font-size: .78rem;
            font-weight: 600;
            letter-spacing: .02em;
            transition: .25s;
        }

        /* cursore */

        .arete-toggle span::after {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: white;
            box-shadow: 0 2px 6px rgba(0,0,0,.25);
            transition: all .25s ease;
        }

    /* ===========================
   CHECKED = ASSEGNA
   =========================== */

    .arete-toggle input:checked + span {
        background: #10b981; /* Emerald */
    }

        .arete-toggle input:checked + span::before {
            content: attr(data-on);
            justify-content: flex-start;
            padding-left: 16px;
            padding-right: 0;
        }

        .arete-toggle input:checked + span::after {
            left: calc(100% - 33px);
        }

    .arete-toggle span::after {
        box-shadow: 0 2px 6px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.9);
    }

    .arete-toggle:hover span {
        filter: brightness(1.05);
    }

    .arete-toggle:active span::after {
        transform: scale(.94);
    }
