﻿
html, body {
}

footer .container small {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    font-size: 0.85rem;
}

footer small i,
footer small a,
footer small b,
footer small strong,
footer small span {
    display: inline-flex;
    align-items: center;
}

.main-scroll {
    height: 93%;
    overflow-y: auto;
}

@media (max-width: 700px) {
    footer .container small {
        flex-wrap: wrap;
    }

    #splitSide {
        flex-basis: 100%;
        justify-content: center;
        margin-top: 0.25rem;
        text-align: center;
    }

    .main-scroll {
        height: 97.5%;
        overflow-y: auto;
        padding: 0.2rem 0.2rem 0.2rem 0.2rem;
    }
}

/* ===== LAYOUT BASE ===== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* corretto */
}

/* HEADER sticky */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

/* FOOTER sticky */
.sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    flex-shrink: 0;
}

/* AREA CENTRALE SCROLLABILE */
.main-wrapper {
    flex: 1 1 auto;
    overflow: hidden;
}

hr.double {
    border-top: 3px double #333;
    color: #333;
    text-align: center;
    height: 0;
}

hr.gradient {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

/* RESET AUTOFILL */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #000 !important;
    background-color: transparent !important;
    background-image: none !important;
    filter: none !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    transition: background-color 9999s ease-out 0s !important;
}

@media (max-width: 700px) {
    .drag-indicator-hidden {
        display: none;
    }

    .badge-circle.home {
        width: 24px;
        height: 24px;
    }
}

.box-info {
    border: 1px solid #e0dedb;
    background: #fafafa;
    padding: 1rem;
    border-radius: 0.5rem;
}

.action-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 700px) {
    #footerOwner {
        padding: 2px 0;
    }

        #footerOwner span,
        #footerOwner i {
            font-size: 0.7rem;
        }
}
/* ============================================================
   RIDUZIONE CONTENUTO PER TUTTE LE PAGINE (<768px)
   ============================================================ */

/* ============================================================
   RIDUZIONE CONTENUTO PER TUTTE LE PAGINE (<768px)
   ============================================================ */
@media (max-width: 700px) {

    .page-scale-responsive {
        font-size: 0.945rem;
    }

        .page-scale-responsive h1,
        .page-scale-responsive h2,
        .page-scale-responsive h3,
        .page-scale-responsive h4,
        .page-scale-responsive h5,
        .page-scale-responsive h6 {
            font-size: 0.945em;
        }

        .page-scale-responsive p,
        .page-scale-responsive li,
        .page-scale-responsive label,
        .page-scale-responsive span {
            font-size: 0.945em;
            line-height: 1.26;
        }

        .page-scale-responsive .btn {
            padding: 0.3675rem 0.63rem;
            font-size: 0.8925rem;
        }

        .page-scale-responsive i,
        .page-scale-responsive .fa,
        .page-scale-responsive .fas,
        .page-scale-responsive .far {
            font-size: 0.945em;
        }

        .page-scale-responsive input,
        .page-scale-responsive select,
        .page-scale-responsive textarea {
            font-size: 0.945em;
            padding: 0.3675rem 0.525rem;
        }
}



@media (max-width: 700px) {
    .btn-responsive-adapt {
        font-size: 12px !important;
    }

    .sepa-responsive-adapt {
        display: none !important;
    }

    .small-media-box {
        font-size: 12px !important;
        width: 24px !important;
        height: auto !important;
        padding: 2px !important;
        margin-right: 1px !important;
    }

    .small-media-icon {
        font-size: 14px !important;
    }

    .small-media-text {
        font-size: 14px !important;
    }
}

@media (max-width: 400px) {
    .btn-responsive-adapt {
        font-size: 10px !important;
    }

    .sepa-responsive-adapt {
        display: none !important;
    }
}

.text-info-darkblue {
    color: #4c90f3;
}


.btn-info-dark,
.text-info-dark {
    color: white;
    background-color: #0e7490;
}

    .text-info-dark,
    .btn-info-dark:hover {
        color: white;
        background-color: #0f86a7;
    }

.icon-box-sm {
    font-size: 24px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-box-md {
    width: 36px;
    height: 36px;
    font-size: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-box-lg {
    width: 52px;
    height: 52px;
    font-size: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.text-primary-light {
    color: #1ac5f5 !important;
}

.text-success-light {
    color: #4ff15c !important;
}

.text-success-light-bold {
    color: #4ff15c !important;
    font-weight: 700;
}

.text-warning-light {
    color: yellow !important;
}

.text-label-light {
    color: #d394ee !important;
}


.text-danger-light {
    color: #ff0000 !important;
}

.text-info-light {
    color: cyan !important;
}

.bg-dark-elegant {
    background: linear-gradient(135deg, #0f0f11 0%, #1a1a1f 100%);
}

.dark-elegant-box {
    background: linear-gradient(135deg, #0f0f11 0%, #1a1a1f 100%);
    padding: 1rem;
    border-radius: 0.2rem;
    color: white;
}

.dark-elegant-box-light {
    background: linear-gradient(135deg, #0f0f11 0%, #1a1a1f 100%);
    padding: 1px 5px 1px 5px;
    border-radius: 0.4rem;
    color: white;
}

#lblMessaggioDomande {
    margin-right: 3px;
}

@media (max-width: 700px) {
    #lblMessaggioDomande {
        margin-right: 0;
    }
}

.boxBadgeQueryInfo,
.boxBadgeQueryWarning {
    display: inline-flex; /* si restringe al contenuto */
    align-items: center; /* icona + testo allineati */
    gap: 0.35rem; /* spazio automatico tra icona e testo */
    background: #65d1ee;
    color: white;
    padding: 0.4rem;
    border-radius: 0.4rem;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 1px 2px 3px black;
    white-space: nowrap; /* evita che vada a capo */
}

.boxBadgeQueryWarning {
    color: white;
    background: #e498f6;
}

@media (max-width: 700px) {
    .boxBadgeQueryInfo,
    .boxBadgeQueryWarning {
        width: 100%;
    }
}

.ellipsisLabel {
    display: block; /* o inline-block */
    max-width: 100%; /* oppure una larghezza fissa */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.custom-icon-warning {
    color: yellow;
    text-shadow: 1px 2px 4px black;
}
/* Scrollbar più evidente su mobile */
@media (max-width: 700px) {

    /* Per tutti gli elementi scrollabili */
    * {
        scrollbar-width: auto; /* Firefox */
        scrollbar-color: #4a90e2 #e0e0e0; /* colore barra + sfondo */
    }

        /* Chrome, Edge, Safari */
        *::-webkit-scrollbar {
            width: 10px; /* larghezza più grande */
            height: 10px; /* per scroll orizzontale */
        }

        *::-webkit-scrollbar-track {
            background: #e0e0e0; /* colore sfondo */
            border-radius: 6px;
        }

        *::-webkit-scrollbar-thumb {
            background-color: #4a90e2; /* colore barra */
            border-radius: 6px;
            border: 2px solid #e0e0e0; /* effetto “pill” */
        }

            *::-webkit-scrollbar-thumb:hover {
                background-color: #2f6bb2; /* colore più scuro al tocco */
            }
}

.box-soft-gray {
    background-color: #f7f7f7; /* grigio chiarissimo */
    border-radius: 5px;
    padding: 0.75rem 1rem; /* opzionale, ma lo rende più bello */
}

.box-soft-lime {
    background-color: #f4ffcf; /* lime chiarissimo */
    border-radius: 5px;
    padding: 0.75rem 1rem; /* opzionale, ma lo rende più bello */
}

body {
    scrollbar-width: thin;
    scrollbar-color: #4da3ff #e6f2ff;
}

#searchBoxAcdnInfo {
    background-color: #eaffb5; /* lime soft */
    color: #333;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

    #searchBoxAcdnInfo.show {
        opacity: 1;
    }

.mto-1 {
    margin-top: 1px;
}

.mto-2 {
    margin-top: 2px;
}

.mto-3 {
    margin-top: 3px;
}

.mto-4 {
    margin-top: 4px;
}

.mto--1 {
    margin-top: -1px;
}

.mto--2 {
    margin-top: -2px;
}

.mto--3 {
    margin-top: -3px;
}

.mto--4 {
    margin-top: -4px;
}

.mto--5 {
    margin-top: -5px;
}

.mto--6 {
    margin-top: -6px;
}

.mto--7 {
    margin-top: -7px;
}

.mto--8 {
    margin-top: -8px;
}

.ellipsis-text {
    display: inline-block;
    max-width: 120px; /* puoi aumentare o diminuire */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}


.text-violet {
    color: #d394ee !important;
}

.text-magenta {
    color: #c54ce1;
    font-weight: 400;
}

.text-magenta-dark {
    color: #9e2bcf;
    font-weight: 450;
}

.text-azure {
    color: #5a9ff1
}

.text-gold {
    color: gold;
}

.text-gold-bold {
    color: gold;
    font-weight: 500;
}

.text-navy {
    color: navy;
}

.text-dark-violet {
    color: #530872;
}

.fsg-3 {
    font-size: 18px !important;
}


.fsg-4 {
    font-size: 16px !important;
}

.fsg-5 {
    font-size: 14px !important;
}

.fsg-6 {
    font-size: 12px !important;
}
.fsg-6x {
    font-size: 12px !important;
    position: relative;
    top: -5px;
}

.fsg-6c {
    font-size: 12px;
    font-style: italic;
    font-family: Cambria;
    font-weight: normal
}

.fsg-4c {
    font-size: 14px;
    font-style: italic;
    font-family: Cambria;
    font-weight: normal
}

.fsg-6n {
    font-size: 12px;
    font-family: Cambria;
    letter-spacing: 0.02em;
}

.dynamic-box-left-minpad,
.dynamic-box-right-minpad {
    margin: 0 0 0 0; /* margini uniformi, niente gap laterale */
    border: 1px solid #e0dedb;
    background: #fafafa;
    padding: 0.4rem;
    border-radius: 0.2rem;
}

.quiz-num-btn {
    transition: background-color 0.2s ease, color 0.2s ease;
}

    /* Hover */
    .quiz-num-btn:hover {
        background-color: #0d6efd !important;
        color: white !important;
    }

    /* Stato attivo */
    .quiz-num-btn.active {
        background-color: #0d6efd !important;
        color: white !important;
        border-color: #0d6efd !important;
    }


.option-number-box-enabled {
    width: 60px;
    background: #0d6efd !important;
    color: white !important;
    font-weight: bold !important;
    border-color: #0d6efd !important;
}

.option-number-box-disabled {
    width: 60px;
    background: black !important;
    color: white !important;
    font-weight: normal !important;
    border-color: #0d6efd !important;
}

#quizFinalBox {
    border-left: 5px solid #0d6efd;
    border-radius: 8px;
}

#quizFinalIcon i {
    font-size: 3rem;
}

.info-box {
    background: #fff8d9; /* giallo tenue */
    border-left: 6px solid #f0c040; /* accento elegante */
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.info-box-ok {
    background: #e6f9e6; /* verde chiaro */
    border-left: 6px solid #4caf50; /* verde più intenso */
    border-radius: 6px;
    padding: 6px 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.info-box-no {
    background: #fdeaea; /* rosso chiaro */
    border-left: 6px solid #e53935; /* rosso più intenso */
    border-radius: 6px;
    padding: 6px 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}


.info-box-content {
    color: #6a5d2f;
    font-size: 0.95rem;
    line-height: 1.4;
}


.info-box-left {
    background: #d0fcd3;
    border-left: 6px solid #53e65e; /* accento elegante */
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.info-box-left-content {
    color: #6a5d2f;
    font-size: 0.95rem;
    line-height: 1.4;
}


.info-box-right {
    margin-left: 3px;
    background: #beeaf6;
    border-left: 6px solid #93c1f7; /* accento elegante */
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.info-box-right-content {
    color: #6a5d2f;
    font-size: 0.95rem;
    line-height: 1.4;
}

.info-box-center {
    margin-left: 3px;
    background: #f3cdcd;
    border-left: 6px solid #f58a3e; /* accento elegante */
    border-radius: 6px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.info-box-center-content {
    color: #6a5d2f;
    font-size: 0.95rem;
    line-height: 1.4;
}

.btn-wh-16 {
    width: 16px;
    height: 16px;
    text-align: center;
}

.btn-wh-12 {
    width: 14px;
    height: 12px;
    text-align: center;
}

.btn-wh-24 {
    width: 24px;
    height: 24px;
    text-align: center;
}

.btn-wh-28 {
    width: 28px;
    height: 28px;
    text-align: center;
}

@media (max-width: 700px) {
    .info-box-center
    .info-box-right {
        margin-left: 0;
    }
}

.text-blue-violet {
    color: #4930c8
}

.pointer {
    cursor: pointer !important;
    display: inline-block; /* fondamentale per rendere cliccabile il div */
}

.hide-mobile {
    display: inline-block !important;
}

.show-mobile {
    display: none !important;
}

@media (max-width: 700px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: inline-block !important;
    }
}

@media (max-width: 1400px) {
    .hide-mobile-wide {
        display: none !important;
    }

    .small-mobile-wide {
        font-size: 90% !important;
    }

    .small-mobile-wide-min {
        font-size: 80% !important;
    }
}


.img-fit-center {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* mantiene proporzioni */
    object-position: center !important; /* centra l’immagine */
    display: block !important; /* evita spazi indesiderati */
}

.center-img {
    display: flex;
    justify-content: center !important; /* centro orizzontale */
    align-items: center !important; /* centro verticale */
}

.btn-hw-36 {
    height: 36px !important;
    width: 36px !important;
    padding: 4px !important;
}

@media (max-width: 700px) {

    .btn-menu-mobile i {
        font-size: 1.0rem; /* scegli la dimensione che preferisci */
    }
}

.btn-menu-mobile i {
    font-size: 1.5rem; /* scegli la dimensione che preferisci */
}

.text-privacy {
    color: #961212;
}

.text-font-georgia,
.text-font-georgia * {
    font-family: "Georgia", serif !important;
    font-size: 0.8rem !important;
}

.text-font-vw,
.text-font-vw * {
    font-family: "Cambria", serif !important;
    font-size: 0.7rem !important;
}

.hide-1200 {
    display: inline-block !important;
}

@media (min-width: 1200px) and (max-width: 1350px) {
    .hide-1200 {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    .text-font-georgia,
    .text-font-georgia * {
        font-size: 1rem !important;
    }
}

.pte-icon-24 {
    width: 24px !important;
    height: auto !important;
}

.pte-icon-48 {
    width: 48px !important;
    height: auto !important;
}

@media (max-width: 1000px) {
    .show-mobile-brand {
        width: 50px !important;
        height: auto !important;
    }
}

.text-yellow {
    color: yellow;
}
.text-lightskyblue {
    color: lightskyblue;
}
.text-lightgreen {
    color: lightgreen;
}
.text-orangeered {
    color: orangered;
}
.text-bisque {
    color: #FFE4C4 !important;
}

.text-bisque-lightdark {
    color: #E6CCAF;
}

.text-bisque-dark {
    color: #CCA894;
}

.text-bisque-dark-elegant {
    color: #B38F78;
}

.text-bisque-extra-dark {
    color: #997662;
}

.text-key-id {
    color: #971e1e;
    font-size: 12px;
    position: relative;
    top: -5px;
}

.text-key-id2 {
    color: #187439;
    font-size: 12px;
    position: relative;
    top: -5px;
}

.alert-soft-red {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffd6d6 40%, #ffc2c2 100%);
    border: 1px solid #f5a3a3;
    border-radius: 10px;
    padding: 1px 4px 16px 4px !important;
    color: #7a1f1f;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

    .alert-soft-red b,
    .alert-soft-red strong {
        color: #5f1515;
    }

.modal-mdx {
    max-width: 600px !important;
}

@media (max-width: 1000px) {
    .levels-small,
    .levels-small * {
        font-size: 90% !important;
    }
}

.level-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

/* Colonna 1: etichetta */
.level-col1 {
    font-family: "Georgia", serif;
    flex: 0 0 12%; /* puoi cambiare come vuoi */
}

/* Colonna 2: numero */
.level-col2 {
    flex: 0 0 6%; /* puoi cambiare come vuoi */
    text-align: right;
}

/* Colonna 3: hint */
.level-col3 {
    flex: 1 1 auto; /* prende tutto lo spazio rimanente */
    min-width: 0; /* 🔥 impedisce alla colonna di espandersi */
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 1000px) {
    .level-col1 {
        font-family: "Georgia", serif;
        flex: 0 0 22%; /* puoi cambiare come vuoi */
    }

    .level-col2 {
        flex: 0 0 5%; /* puoi cambiare come vuoi */
        text-align: right;
    }
}

@media (min-width: 1000px) and (max-width: 1900px) {
    .level-col1 {
        font-family: "Georgia", serif;
        flex: 0 0 25%; /* puoi cambiare come vuoi */
    }

    .level-col2 {
        flex: 0 0 5%; /* puoi cambiare come vuoi */
        text-align: right;
    }
}



.hint-ok {
    color: #4cd964 !important; /* verde Apple-like */
    font-family: Cambria, serif !important;
    font-weight: normal !important;
}

.hint-low {
    color: #ff4d4f !important; /* rosso elegante */
    font-family: Cambria, serif !important;
    font-weight: normal !important;
}


.ia-panel-incolla {
    max-height: calc(100vh - 120px) !important; /* regola il valore in base al tuo layout */
    overflow-y: auto;
    overflow-x: hidden;
}

.ia-text-incolla {
    max-height: 50vh; /* puoi aumentare o diminuire */
    resize: vertical; /* opzionale */
}
/********************/
/*Banner Pubblicitari*/
/********************/
.banner-mock {
    width: 100%;
    background: linear-gradient(135deg, #e0e0e0, #cfcfcf);
    border: 1px solid #b5b5b5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Dimensioni standard */
.banner-300x250 {
    height: 250px;
}

.banner-160x600 {
    height: 600px;
}

.banner-728x90 {
    height: 90px;
}

/* Responsive: su mobile i banner diventano più piccoli */
@media (max-width: 768px) {
    .banner-160x600 {
        height: 300px;
    }
}


.info-wrapper {
    max-width: 1140px; /* come modal-xl */
    margin: 0 auto;
}

.dynamic-box {
    border: 1px solid #e0dedb;
    background: #fafafa;
    padding: 1rem;
    border-radius: 0.5rem;
}
.text-grow {
    animation: growEffect 0.35s ease-out forwards;
}

@keyframes growEffect {
    0% {
        font-size: 5px;
    }

    100% {
        font-size: 12px;
    }
}

#txtPromptIA,
#jsonInsertTema,
#jsonInsertArea,
#jsonInsertMateria,
#jsonInsertCategoria,
#txtSuggerimentoDomande {
    font-family: monospace;
    font-size: 12px;
}