    :root {
        --brand-color: #6BB02C;
    }

    html, body {
        font-family: "Quicksand", sans-serif !important;
        font-optical-sizing: auto;
        font-style: normal;
        background-color: #000 !important;
        background-image: url('../images/background.jpg');
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-attachment: fixed !important;
    }

    #aisaac_box {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0 !important;
        bottom: 0 !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        background-color: transparent !important;
    }
    #_ai_container_chat {
        height: 100vh !important;
    }

    #_ai_condition {
        max-width: 100%;
        margin: 0;
        padding-top: 30px;
        font-size: 1.1rem !important;
        color: #383838 !important;
    }

    #_ai_condition > p > a {
        color: #383838 !important;
        text-decoration: none !important;
        font-style: italic !important;
    } 

    #_ai_condition > p > a:hover {
        text-decoration: underline !important;
    } 

    ._ai_condition_box_center {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    #_ai_box_chat {
        z-index: 99;
        overflow: hidden !important;
    }

    #_ai_box_send{
        position: absolute;
        left: 300px;
        width: calc(1980px / 4);
        bottom: 50px;
    }

    #_ai_box_send, #_ai_box_copy{
        z-index: 101;
    }

    #_ai_avatar {
        z-index: 10001 !important;
        display: inline !important;
    }

    #openfl-content-, #canvasID {
        position: absolute;
        bottom: 0;
    }

    ._ai_question {
        background-color: rgba(107 176 44 0.80) !important;
    }

    ._ai_conversation_welcome, ._ai_answer, ._ai_conversation, .text-response, ._ai_question {
        color: #fff !important;
        font-size: 1.1rem !important;
        line-height: 1.5rem !important;
        padding: 10px !important;
    }

    ._ai_answer, ._ai_conversation {
        background-color: rgba(255, 255, 255, 0.7) !important;
        padding: 5px !important;
    }    

    ._ai_languageSelected {
        border-radius: 20px;
    }

    ._ai_conversation_welcome > .text-response {
        color: #fff !important;
    }

    .text-response, ._ai_title_select_language {
        color: #3c3c3c !important;
    }

    .form-buttons a {
        font-size: 1.2rem !important;
    }

    #_ai_chat {
        z-index: 20000;
        position: absolute;
        top: 15%;
        left: 40px;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 70% !important;
        min-height: 70% !important;
        min-width: 25%;
        width: 25% !important;
        padding: 30px 15px !important; /* padding right aumentato per spazio barra */
        border-radius: 15px 0 0 15px;
        background-color: rgba(0, 0, 0, 0.1);
        color: #fff !important;
        font-size: 1.25rem !important;
        scrollbar-gutter: stable both-edges;
        backdrop-filter: blur(30px);

        /* quanto deve sfumare */
        --fade: 40px;

        /* Maschera: trasparente in alto/basso, pieno al centro */
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0,0,0,0),
            rgba(0,0,0,1) var(--fade),
            rgba(0,0,0,1) calc(100% - var(--fade)),
            rgba(0,0,0,0)
        );
        mask-image: linear-gradient(
            to bottom,
            rgba(0,0,0,0),
            rgba(0,0,0,1) var(--fade),
            rgba(0,0,0,1) calc(100% - var(--fade)),
            rgba(0,0,0,0)
        );

        /* opzionali, migliorano resa su alcuni browser */
        mask-mode: alpha;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;

    }

    .form-chat-button {
        background-color: var(--brand-color);
        color: #fff;
        border: none;
        border-radius: 25px !important;
        padding: 10px 20px;
        cursor: pointer;
    }

    /* Scrollbar personalizzata per #_ai_chat */
    #_ai_chat::-webkit-scrollbar {
        width: 10px;
        background: transparent;
    }
    #_ai_chat::-webkit-scrollbar-thumb {
        background: rgba(107, 176, 44, 0.7);
        border-radius: 8px;
        border: 3px solid transparent;
        background-clip: padding-box;
        margin-right: 10px;
    }
    #_ai_chat {
        scrollbar-width: thin;
        scrollbar-color: rgba(107,176,44,0.7) transparent;
    }

    #_ai_chat::before {
        content: "";
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 10%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1)); /* Entrambi gli stop sono completamente trasparenti */
        pointer-events: none;
    }

    #slogan {
        position: absolute;
        width: 30%;
        right: 50px;
        top: 25%;
        z-index: 10000;
    }

    #slogan h1{
        font-weight: bold;
        font-size: 4rem;
    }

    #slogan h2 {
        font-weight: 300;
        font-size: 2rem;
        margin-top: 20px;
    }

    #slogan a.btn-success {
        background-color: var(--brand-color) !important;
        border: none !important;
    }

    /* AVATAR >>> */

    #attatchID_1 > canvas {
        position: sticky !important;
        top: 33% !important;
        max-height: 65%;
        left: 20% !important;
        transform-origin: 0px 0px 0px;
        transition: opacity 0.4s ease-in-out !important;
        opacity: 1;
    }

    #attatchID_1, .vhss_character, .vhss_main_container {
        background-color: transparent !important;
    } 

    .vhss_main_container {
        background-image: none !important;
    }

    /* <<< AVATAR */

    #stopAudioButton {
        position: relative;
        left: calc(50% - 25px);
        width: 100px;
        height: 50px;
    }

    #_ai_logo_aisaac {
        position: absolute;
        z-index: 1500 !important;
        width: 100%;
        padding: 20px;
        display: flex;
        justify-content: space-between;
    }
    .logo_ai_digital_humans {
        height: 60px;
    }

    #_ia_options {
        position: absolute;
        bottom: 45px;
        left: 25px;
        z-index: 10000;
        display: flex;
        width: 250px;
    }

    #_ai_langs {
        display: flex;
        justify-content: space-between;
        position: fixed;
        top: 90px;
        left: 40px;
    }

    #_ai_langs img {
        height: 32px;
        cursor: pointer;
        margin: 0;
    }

    #_ia_star_button {
        display: flex;
        justify-content: right;
        width: 100%;
    }

    #_ia_star_button button {
        background-color: var(--brand-color);
        cursor: pointer;

    }

    #_ai_avatar_listener img {
        position: absolute;
        height: 40px;
        bottom: 50px;
        left: calc(1980px / 3 * 2);
        z-index: 99999;
    }

    /* SEND TEXT */

    #_ai_box_send {
        position: absolute;
        left: 40px;
        right: auto;
        width: 25%;
        max-width: 30%;
        bottom: 60px;
        margin: 0 !important;
        padding: 0 !important;       
    }

    #questionForm {
        background-color: rgba(0, 0, 0, 0.1) !important;
        scrollbar-gutter: stable both-edges;
        backdrop-filter: blur(40px);         
    }
   
    #_ai_textToSay {
        background-color: rgba(0, 0, 0, 0.2) !important;
        /* color: #000 !important; */
        border: 0px !important;
        border-radius: 10px;
    }

    #_ai_textToSay:focus {
        outline: none !important;
        border: none !important;
        font-weight: 500;
    }

    ._ai_timing {
        color: #3c3c3c !important;
    }

    .labelListening {
        color: #fff;
        font-size: 2rem;
    }

    .text-response {
        line-height: 1.40rem !important;
    }

    #_ai_audio_on, #_ai_audio_off {
        top: 15px !important;
        right: -50px !important;
    }

    #_ai_audio_on {
        background-color: #808080 !important;
    }

    #startup_program {
        position: absolute;
        bottom: 40px;
        right: 0px;
    }

    /* TOTEM CSS */
    #_ai_button_container_totem {
        position: absolute;
        bottom: 45px;
        left: 25px;
        z-index: 15000;
        display: flex;
        left: 33%;
    }

    #_ai_menu {
        display: none !important;
        position: absolute;
        top: 100px;
    }

    #_ai_button_reset {
        position:absolute;
        bottom: 45px;
        right: 8px;
        z-index: 10000;
    }

    #resetButton {
        background-color: transparent !important;
        border: none !important;
    }

    #resetButton > svg {
        color: aliceblue !important;
    }

    #_ai_box_copy_no_link {
        position: absolute;
        bottom: 0px;
        left: 0px;
        right: 0px;
        z-index: 10000;
        background-color: #000 !important;
        color: #fff !important;
    }

    #_ai_box_copy_no_link a {
        color: #fff !important;
        text-decoration: none !important;
    }

    #_ai_box_copy_no_link a:hover {
        color: var(--brand-color) !important;
    }

    /* MEDIA */
    @media (min-width: 768px) {
        .vhss_main_container {
            position: fixed !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            margin-left: auto !important;
            margin-right: auto !important;
            z-index: 10000 !important;
        }
    }

    @media (min-width: 768px) {
        #_ai_avatar {
            position: fixed !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            margin-left: auto !important;
            margin-right: auto !important;
            z-index: 10001 !important;
        }
    }

    @media (min-width: 1600px) {
        #_ai_avatar {
            position: fixed !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            margin-left: auto !important;
            margin-right: auto !important;
            z-index: 10001 !important;
        }

        #_ai_container_chat {
            max-height: 100vh !important;
        }

    }