body{
    font-family: "Open Sans", serif;
    font-weight: 300;
    font-size: 16px;
    position: relative;
}
a{
    text-decoration: none;
}
.btn-0{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 20px;
    text-decoration: none;
}
.btn-0 i{
    margin-right: 10px;
}
.btn-1{
    color: #fff;
    background-color: #352D3A;
    border: 2px solid #352D3A;
}
.btn-1:hover{
    background-color: #2d2531;
    border: 2px solid #2d2531;
}
body.bg-dark{
    color: #fff;
    background-color: #201822;
}
body.bg-dark a{
    color: #fff;
}
#dsk-menu ul{
    margin-bottom: 0;
    list-style: none;
}
#dsk-menu .col-12{
    display: grid;
    grid-template-columns: 30% 40% 30%;
}
#dsk-menu .navbar-brand img{
    width: 135px;
}
#dsk-menu-voices{
    display: flex;
    justify-content: center;
}
#dsk-menu-voices ul li{
    padding-left: 10px;
    padding-right: 10px;
}
#dsk-menu-voices ul li a{
    font-size: 17px;
}
#dsk-menu-social i{
    font-size: 20px;
    transition: all .3s;
}
#dsk-menu-social i.bi-whatsapp:hover{
    color: #25d366;
}
#dsk-menu-social i.bi-instagram:hover{
    color: #E12F6C;
}
#dsk-menu-social i.bi-linkedin:hover{
    color: #0D76A8;
}
#dsk-menu-social i.bi-facebook:hover{
    color: #3C5997;
}
#section-simulator,
#section-simulator .col-12{
    height: calc(100vh - 60px);
    position: relative;
}
#section-simulator .col-12{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#section-simulator.started .col-12.started{
    display: block;
    padding-top: 35px;
}
.section-simulator-title{
   transform: translateY(-70px);
}
#bySim-simulator-box{
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}
#bySim-simulator-input-container{
    transition: all 0.7s;
    margin: 0 auto;
    position: absolute;
    right: 0;
    left: 0;
    bottom: 50%;
    transform: translateY(100%);
}
#section-simulator.started #bySim-simulator-input-container{
    bottom: 5%;
    transform: unset;
}
#bySim-simulator-input-box{
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}
#bySim-simulator-textarea-box,
#bySim-simulator-btn-box{
    width: 100%;
}
#bySim-simulator-textarea-box{
    position: relative;
    min-height: 80px;
}
#bySim-simulator-textarea-box textarea{
    background-color: #352D3A;
    border: 2px solid #352D3A;
    border-radius: 55px;
    padding: 25px 100px 25px 25px;
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #fff;
    white-space: pre-wrap;
    overflow: hidden;
    resize: none;
    font-size: 18px;
}
#section-simulator.started #bySim-simulator-textarea-box textarea{
    padding: 16px 50px 14px 25px;
    font-size: 16px;
}
#bySim-simulator-textarea-box textarea:hover,
#bySim-simulator-textarea-box textarea:focus{
    border-color: #2b242f;
    outline: 0;
    box-shadow: 0 0 0 0;
}
#bySim-simulator-textarea-box textarea::placeholder{
    color: #6C5C7B;
    font-weight: 500;
}
#bySim-simulator-btn-box{
    display: flex;
    padding-left: 25px;
    margin-top: 5px;
}
#bySim-simulator-input-container button{
    background-color: transparent;
    border: 0;
    color: #6C5C7B;
}
#bySim-simulator-input-container button{
    font-size: 18px;
}
#bySim-simulator-input-container .btn-send,
#bySim-simulator-input-container .btn-audio{
    position: absolute;
    bottom: 25px;
    background-color: #fff;
    border-radius: 50%;
    width: 33px;
    height: 33px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#section-simulator.started #bySim-simulator-input-container .btn-send,
#section-simulator.started #bySim-simulator-input-container .btn-audio{
    bottom: 14px;
    width: 30px;
    height: 30px;
}
#bySim-simulator-input-container .btn-send{
    right: 60px;
}
#bySim-simulator-input-container .btn-audio{
    right: 20px;
}
#bySim-simulator-canvas{
    display: none;
    opacity: 0;
    max-height: calc(100vh - 250px);
    overflow: scroll;
    padding-left: 25px;
    padding-right: 25px;
}
#bySim-simulator-canvas.show{
    opacity: 1;
    display: block;
    transition: all .3s;
}
.bySim-simulator-message-box{
    line-height: 28px;
}
.bySim-simulator-message-box+.bySim-simulator-message-box{
    margin-top: 35px;
}
.bySim-simulator-message-box.user{
    width: max-content;
    max-width: 75%;
    margin-left: auto;
    margin-right: 0;
    background-color: #352D3A;
    padding: 20px;
    border-radius: 30px;
}
#bySim-simulator-canvas>div.bySim-simulator-message-box.user{
    margin-right: -200px;
}
#bySim-simulator-canvas.show>div.bySim-simulator-message-box.user{
    animation-name: firstMessage;
    animation-timing-function: ease-in;
    animation-fill-mode: forwards;
    animation-duration: 0.3s;
}
@keyframes firstMessage{
    from {margin-right: -200px;}
    to {margin-right: 0;}
}
.bySim-simulator-message-box.bot{
    display: grid;
    grid-template-columns: 60px calc(100% - 60px);
}
.bySim-simulator-message-box.bot .bot-answer{
    position: relative;
    padding-top: 3px;
}
.bySim-simulator-message-box.bot .bot-answer.waiting>div{
   opacity: 0;
}
.bySim-simulator-message-box.bot .bot-answer.waiting::before{
    content:'';
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 10px;
    animation-name: botAnswerLoading;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-duration: 0.8s;
}
@keyframes botAnswerLoading{
    from {opacity: 0.8;}
    to {opacity: 0.45;}
}
.bySim-simulator-avatar-box>div{
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 50%;
}
.bySim-simulator-avatar-box>div img{
    width: 22px;
    height: 22px;
}
.section-articles-slider .article-slide {
    height: auto; /* Rimuovi altezza fissa */
    min-height: 450px; /* Altezza minima */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.section-articles-slider .article-slide-categories{
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 15px;
}

.section-articles-slider .article-slide-categories>div{
    background-color: rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 1px 8px;
}
.section-articles-slider .article-slide-categories>div+div{
    margin-left: 7px;
}
.section-articles-slider .article-slide-categories>div>a{
    text-decoration: none;
}
.section-articles-slider .swiper{
    overflow: hidden;
}
.section-articles-slider .swiper-button-next,
.section-articles-slider .swiper-button-prev{
    top: -45px;
}
.section-articles-slider .swiper-button-next{
    right: 40px;
    left: unset;
}
.section-articles-slider .swiper-button-prev{
    right: 80px;
    left: unset;
}
.section-articles-slider .swiper-button-next:after,
.section-articles-slider .swiper-button-prev:after{
    font-size: 22px;
    color: #fff;
}
article#article{
    margin-top: 70px;
}
.article-date{
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 20, 147,0.65);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 15px 8px 30px;
    border-radius: 15px;
    white-space: nowrap;
    height: 30px;
    
}
.article-date:before {
    content: "";
    display: block;
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    left: 14px;
    top: 12px;
    background: #fff;
}
.article-title,
.article-summary{
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.article-title{
    width: 800px;
    font-size: 60px;
}
.article-summary{
    width: 600px;
    margin-top: 20px;
    font-size: 18px;
}
.article-main-image{
    width: 100%;
    height: 550px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}
#article-content{
    font-size: 17px;
    margin-bottom: 45px;
}
#article-content h2,
#article-content h3{
    margin-top: 50px;
    margin-bottom: 20px;
}
#article-content h4{
    margin-top: 35px;
    margin-bottom: 15px;
}
#article-content a{
    text-decoration: underline;
    text-decoration-color: rgba(255, 20, 147,0.8);
}
#article-content a:hover{
    text-decoration-color: rgba(255, 20, 147,0.4);
}
@media (max-width: 992px){
    #dsk-menu .col-12{
        display: flex;
        justify-content: space-between;
        grid-template-columns: unset;
    }
    #bySim-simulator-canvas{
        padding-left: 10px;
        padding-right: 10px;
    }
    .section-articles-slider .article-slide{
        height: 400px;
    }
    .article-title{
        font-size: 50px;
    }
}
@media (max-width: 768px){
    #dsk-menu .navbar-brand img{
        width: 125px;
    }
    .section-simulator-title {
        transform: translateY(-80px);
    }
    .section-articles-slider .article-slide{
        height: 325px;
        padding: 15px;
    }
    .section-articles-slider .swiper-button-next,
    .section-articles-slider .swiper-button-prev{
        display: none;
    }
    .section-articles-slider .article-slide-categories{
        font-size: 11px;
    }
    .section-articles-slider .article-slide-title .h5{
        font-size: 18px;
    }
    .article-title{
        font-size: 40px;
    }
    .article-main-image{
        height: unset;
        max-height: 500px;
    }
}
@media (max-width: 575px){
    article#article {
        margin-top: 55px;
    }
    .article-main-image{
        height: unset;
        max-height: 375px;
    }
    .article-date{
        padding: 6px 12px 6px 28px;
    }
    .article-title{
        font-size: 36px;
    }
}






.bot-message-container span {
    display: block;
    margin-bottom: 5px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sostituisci le animazioni precedenti con */
.bySim-simulator-message-box.bot .bot-answer {
    position: relative;
    padding-top: 3px;
}

.bySim-simulator-message-box.bot .bot-answer.waiting::before {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    left: 0;
    top: 10px;
    animation: botAnswerLoading 0.8s linear infinite alternate;
}

.message-container {
    display: inline-block !important;
    white-space: pre-wrap;
    word-break: keep-all;
    position: relative;
    word-spacing: normal !important;
    letter-spacing: normal !important;
}

.message-container span {
    display: inline !important;
    opacity: 1 !important;
    animation: none !important;
    margin-right: 4px;
    overflow: hidden;
    vertical-align: bottom;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

/* Animazione pallino VIP */
@keyframes botAnswerLoading {
    0% { opacity: 0.8; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
    100% { opacity: 0.8; transform: scale(1) rotate(360deg); }
}

.bySim-simulator-message-box.bot .bot-answer.waiting::before {
    content: '';
    display: block;
    width: 24px !important; /* DIMENSIONE RADDOPPIATA */
    height: 24px !important;
    background: #FF1493 !important; /* COLORE FLUO */
    border-radius: 50%;
    position: absolute;
    left: -10px !important; /* SPOSTATO PIÃ™ A DESTRA */
    top: 50% !important;
    transform: translateY(-50%) !important;
    animation: botAnswerLoading 0.8s linear infinite !important;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.7); /* EFFETTO NEON */
    border: 2px solid #fff;
}





@keyframes letterAppear {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-container span::after {
    content: '';
    display: inline-block;
    width: 2px;
    margin-left: 2px;
    animation: blink 1s infinite;
}

.message-container::after {
    content: '|';
    animation: blink 1s infinite;
    color: #8A2BE2;
    margin-left: 3px;
}

@keyframes blink {
    50% { opacity: 0; }
}

#bySim-simulator-canvas {
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 15px; /* Previene il layout shift */
}

/* Nascondi la scrollbar */
#bySim-simulator-canvas::-webkit-scrollbar {
    width: 0 !important;
}

#bySim-simulator-textarea {
    min-height: 40px !important;
    max-height: 120px !important;
    line-height: 1.4 !important;
    overflow-y: auto !important;
}

#bySim-simulator-textarea {
    transition: height 0.2s ease !important;
}

/* Aggiungi queste regole CSS */
#bySim-simulator-textarea {
    overflow-y: hidden !important;
    resize: none !important;
    line-height: 1.4;
}

/* Nascondi la scrollbar per Chrome/Safari/Edge */
#bySim-simulator-textarea::-webkit-scrollbar {
    display: none;
}

.char-counter {
    color: #666;
    font-size: 0.8em;
    text-align: right;
    margin-top: 5px;
}

.warning {
    color: #dc3545;
    display: none;
}

.attachment-option {
    display: none;
    margin-top: 10px;
}

/* Contatore principale */
.char-counter {
    /*position: absolute;
    right: 15px;
    bottom: 10px;*/
    font-size: 0.75rem; /* 12px */
    color: #6C5C7B; /* Colore del tuo tema */
    opacity: 0.7;
    pointer-events: none; /* Permette di cliccare attraverso */
}

/* Avviso superamento limite */
.char-counter .warning {
    display: none;
    color: #FF1493; /* Colore acceso per notifica */
    font-size: 0.65rem; /* 10px */
    margin-left: 5px;
}

.debug-options {
    display: flex;
    align-items: center;
}

.debug-options button {
    background: none;
    border: none;
    color: #6C5C7B;
    padding: 5px;
    font-size: 0.9em;
}

.debug-options button:hover {
    color: #8A2BE2;
}

.input-footer {
    margin-top: 8px;
    text-align: right;
}

.char-counter {
    font-size: 0.75rem;
    color: #6C5C7B;
    opacity: 0.8;
}

.warning {
    color: #FF1493;
    font-size: 0.65rem;
    display: none;
}

.btn-reset {
    margin-left: 10px;
    padding: 4px 8px !important;
    border-radius: 15px;
    background: #352D3A !important;
    color: white !important;
}

.bottom-controls {
    margin-top: 8px;
    width: 100%;
}

.char-counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px; /* Spazio ridotto */
    margin-top: 5px;
}

.char-counter {
    font-size: 0.7rem; /* Ridotto da 0.75rem */
    color: #6C5C7B;
    opacity: 0.9;
    order: 1;
}

.btn-reset {
    order: 2;
    padding: 3px 8px !important; /* Ridotto il padding */
    border-radius: 12px; /* Bordo piÃ¹ morbido */
    font-size: 0.75rem !important; /* Ridotto da 0.8rem */
    background: #352D3A !important;
    color: white !important;
    border: none;
    line-height: 1.2;
}

.warning {
    font-size: 0.65rem;
    margin-left: 4px;
}

/* Allineamento verticale */
.btn-reset i {
    vertical-align: -2px;
    margin-right: 3px;
}

/* Modifica i selettori per maggiore specificitÃ  */
#bySim-simulator-textarea-box .btn-send {
    display: none !important;
}

#bySim-simulator-textarea-box.textarea-has-text .btn-send {
    display: block !important;
}

#bySim-simulator-textarea-box.textarea-has-text .btn-audio {
    display: none !important;
}

.action-buttons button {
    width: 40px;
    height: 40px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Animazione di transizione */
.btn-send, .btn-audio {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.textarea-has-text .btn-audio {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.textarea-has-text .btn-send {
    opacity: 1;
    transform: translateY(0);
}

.btn-audio {
    opacity: 1;
    transform: translateY(0);
}

#bySim-simulator-textarea-box:not(.textarea-has-text) .btn-audio {
    display: flex !important;
    opacity: 1 !important;
}

#bySim-simulator-textarea-box:not(.textarea-has-text) .btn-send {
    display: none !important;
    opacity: 0 !important;
}

.action-buttons {
    position: absolute;
    bottom: 14px;
    right: 20px;
    width: 30px;
    height: 30px;
}

.action-buttons .btn-send,
.action-buttons .btn-audio {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    padding: 5px;
    display: none;
    align-items: center;
    justify-content: center;
}

.message-container pre {
    background: #352D3A;
    padding: 15px;
    border-radius: 8px;
    position: relative;
    margin: 10px 0;
}

.message-container pre code {
    color: #fff;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    overflow-x: auto;
}

.message-container .code-block-header {
    background: #2d2531;
    padding: 8px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #fff;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copy-button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.copy-button:hover {
    background: #fff;
    color: #2d2531;
}

.copy-button.copied {
    background: #4CAF50;
    border-color: #4CAF50;
}

.code-block {
    background: #352D3A;
    border-radius: 8px;
    margin: 0;
    width: 95%;
    max-width: 900px;
}


.code-block-header {
    background: #2d2531;
    padding: 5px 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #fff;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-block pre {
    margin: 0;
    padding: 10px;
}

.code-block code {
    color: #fff;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    overflow-x: auto;
}

/* Loading indicator per i blocchi di codice */
.bot-answer.waiting .code-block::before {
    content: "</>";
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(53, 45, 58, 0.9);
    color: #fff;
    font-family: monospace;
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

.code-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #352D3A;
    border-radius: 8px;
}

.code-indicator {
    font-family: monospace;
    font-size: 20px;
    color: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
.think-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #8A2BE2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.think-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.think-content {
    background: #2d2531;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 500px;
    color: white;
}

.close-think {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.btn-think {
    background: none;
    border: none;
    color: #6C5C7B;
    padding: 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-think:hover {
    color: #FF1493;
    transform: scale(1.1);
}

.think-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.think-popup-content {
    background: #2d2531;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.think-body {
    color: #a0a0a0;
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9em;
}

.close-think {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #6C5C7B;
    cursor: pointer;
    font-size: 1.2em;
}

.close-think:hover {
    color: #FF1493;
}

.btn-think {
    background: none;
    border: none;
    color: #6C5C7B;
    margin-left: 10px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    top: -5px;
}

.btn-think:hover {
    color: #FF1493;
    transform: scale(1.2);
}

.think-popup {
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(3px);
}

.think-content {
    background: #352D3A;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Nascondi qualsiasi elemento think residuo */
think, .think, [class*="think"], [id*="think"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Stile nucleare per il pulsante */
.btn-think {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #FF1493 !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 0 15px rgba(255,20,147,0.5);
    z-index: 9999;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); }
    50% { transform: scale(1.1); }
    100% { transform: scale(0.95); }
}

/* CSS */
.btn-reason {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.btn-reason.active {
    color: #8A2BE2 !important;
}

/* Stili per i bottoni audio */
.btn-audio {
    position: absolute !important;
    right: 22px !important;
    width: 30px !important;
    height: 30px !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.btn-audio.recording {
    background-color: #FF1493 !important; /* Colore magenta per lo stato di registrazione */
    animation: pulseRecording 1.5s infinite !important;
}

@keyframes pulseRecording {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 20, 147, 0.4);
    }
    70% { 
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 20, 147, 0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 20, 147, 0);
    }
}

/* Stili per le icone */
.btn-audio svg {
    width: 18px;
    height: 18px;
    fill: #352D3A;
}

.btn-audio.recording svg {
    fill: #fff;
}

/* Nascondi bottone durante la registrazione */
#bySim-simulator-textarea-box.recording .btn-send {
    display: none !important;
}

#bySim-simulator-textarea-box:not(.recording) .btn-stop {
    display: none !important;
}

/* Animazione di transizione tra i bottoni */
.btn-audio, .btn-send {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.textarea-has-text .btn-audio {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.textarea-has-text .btn-send {
    opacity: 1;
    transform: translateY(0);
}

.btn-send {
    position: absolute !important;
    bottom: 25px !important;
    width: 30px !important;
    height: 30px !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    padding: 5px 5px 5px 5px !important; /* top right bottom left */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    transition: all 0.3s ease !important;
    margin-right: -38px !important; /* Aggiungiamo sempre il margin-right */
}

.btn-send.post-transcription {
    margin-right: -38px !important;
}

.contact-buttons-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.whatsapp-btn, .email-btn {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.email-btn {
    background: #8A2BE2;
    color: white;
}

.whatsapp-btn:hover, .email-btn:hover {
    transform: scale(1.05);
}

/* Bottoni nella chat */
.bot-buttons-container {
    margin-top: 15px;
}

.btn-try {
    background: #8A2BE2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
    display: inline-block;
}

.btn-try:hover {
    background: #6a1b9a;
}

/* Stile del bottone News */
#news-btn {
    margin-right: 10px;
    padding: 8px 15px;
    background-color: #352D3A;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#news-btn:hover {
    background-color: #2d2531;
}

/* Gestione layout su mobile */
.d-flex.align-items-center {
    flex-wrap: wrap;
    justify-content: center; /* Centrare su mobile */
}

.languages {
    margin-top: 10px; /* Spazio per mobile */
}

@media (max-width: 991.98px) {
    .swiper-slide {
        width: 100% !important;
        margin-right: 0 !important;
    }
}