
.btnCloseModal {
    width: 176px;
    height: 66px;
    background: #D4ECE4;
    border-radius: 15px;
    color: #2BABB0;
    text-align: center;
    font: normal normal 600 30px/45px Montserrat;
    letter-spacing: 0px;
    text-transform: uppercase;
    z-index: 999;
    border: none;
    text-align: center;
    font: normal normal 600 30px/45px Montserrat;
    letter-spacing: 0px;
    color: #2BABB0;
}


.btnNextStep {
    width: 176px;
    height: 66px;
    background: #9DC448 0% 0% no-repeat padding-box;
    border-radius: 15px;
    color: #fff;
    text-align: center;
    font: normal normal 600 30px/45px Montserrat;
    letter-spacing: 0px;
    color: #FFFFFF;
    text-transform: uppercase;
    z-index: 999;
    border: none;
}

.btnCancelStep {
    width: 176px;
    height: 66px;
    background: #EEB98C 0% 0% no-repeat padding-box;
    border-radius: 15px;
    color: #fff;
    text-align: center;
    font: normal normal 600 30px/45px Montserrat;
    letter-spacing: 0px;
    color: #FFFFFF;
    text-transform: uppercase;
    z-index: 999;
    border: none;
}

.btnSaveModal {
    width: 176px;
    height: 66px;
    background: #d4ecd9;
    border-radius: 15px;
    text-align: center;
    font: normal normal 600 30px/45px Montserrat;
    letter-spacing: 0px;
    text-transform: uppercase;
    z-index: 999;
    border: none;
    text-align: center;
    color: #27a15a;
}


/* immagini nel dialogo quando riconosco o no persona */
.boxrecognize {
    margin-left: 32px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 90px;
    height: 90px;
    border-radius: 90%;
    margin-top: 12px;
}

.boxSuccess {
    background-color: #89B02B;
}


.checkrecognize {
    width: 33px;
    height: 100%;
}



/*Modale Mappe */
#_modalMappe,
#_modalVideoIndicazioni,
#_ModalRequestEmail,
#_modalMenu,
#_modalTessera,
#_modalImmagineStanza {
    display: none;
    background-color: rgb(0, 0, 0, 0.4);
    z-index: 1000000;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    overflow: hidden;
}


#_modalMappe .close,
#_modalVideoIndicazioni .close,
#_ModalRequestEmail .close,
#_modalMenu .close,
#_modalTessera .close,
#_modalImmagineStanza .close {
    position: absolute;
    top: 44px;
    right: 45px;
    height: 39px;
    border: none;
    outline: none;
    background: transparent;
    color: #0C6638;
}

#_modalPannelli .close {
    position: absolute;
    top: 20px;
    right: 45px;
    height: 39px;
    border: none;
    outline: none;
    background: transparent;
    color: #0C6638;
}

#_modalVideo .close {
    position: absolute;
    top: 20px;
    right: 45px;
    height: 39px;
    border: none;
    outline: none;
    background: transparent;
    color: #0C6638;
}


#_modalMappe .modal-content,
#_ModalRequestEmail .modal-content{
    top: var(--top-modal);
    left: 48px;
    width: 984px;
    height: var(--height-modal);
    background: #FBFBFB 0% 0% no-repeat padding-box;
    position: fixed;
    border-radius: 40px;
}

#_modalImmagineStanza .modal-content{
    top: var(--top-modal);
    left: 48px;
    width: 984px;
    height: auto;
    min-height: 400px;
    max-height: 90vh;
    background: #FBFBFB 0% 0% no-repeat padding-box;
    position: fixed;
    border-radius: 40px;
}

#_modalMenu .modal-content {
    top: var(--top-modal);
    left: 48px;
    width: 984px;
    height: var(--height-modal);
    background: #FBFBFB 0% 0% no-repeat padding-box;
    position: fixed;
    border-radius: 40px;
    height: fit-content;
}

#_modalTessera .modal-content{
    top: var(--top-modal);
    left: 48px;
    width: 984px;
    height: var(--height-modal);
    background: #FBFBFB 0% 0% no-repeat padding-box;
    position: fixed;
    border-radius: 40px;
   height: fit-content; 
}


#_modalVideoIndicazioni .modal-content {
    top: 20%;
    left: 48px;
    width: 984px;
    height: var(--height-modal);
    background: #FBFBFB 0% 0% no-repeat padding-box;
    position: fixed;
    border-radius: 40px;
}

#_modalMappe .modal-title,
#_modalVideoIndicazioni .modal-title,
#_ModalRequestEmail .modal-title,
#_modalMenu .modal-title,
#_modalImmagineStanza .modal-title {
    top: var(--top-title-modal);
    position: relative;
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 76px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    color: #2BABB0;
    margin-bottom: var(--marginBottom-modal);
    text-transform: uppercase;
}

#_modalTessera .modal-title{
    top: var(--top-title-modal);
    position: relative;
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 76px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    color: #2BABB0;
    margin-bottom: var(--marginBottom-modal);
    text-transform: uppercase;
    width:500px;
    text-wrap:wrap;
}


#_modalTessera  #reader{
    width:100%;
    overflow: hidden;
    height: 100%;
}

#_modalTessera  #reader__scan_region {
    background: white;
    width:100%;
}

#_modalTessera  #html5-qrcode-button-camera-stop{
    display: none !important;  
}


    #_modalTessera  #reader,
    #_modalTessera  #reader__scan_region > video {
        width: 100% !important;
    }


#_modalTessera .layerBgScanner{
    width:100%;
    height: 100%;
    background: #00000080;
    opacity: 1; 
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

#_modalTessera .successLayer{
    height: 304px;
    width: 304px;
    background: #89B02B;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#_modalTessera .successLayer > img{
    width: 113px;
    height: 77px;
}


#_modalMappe .modal-header,
#_modalVideoIndicazioni .modal-header,
#_ModalRequestEmail .modal-header,
#_modalMenu .modal-header,
#_modalTessera .modal-header,
#_modalImmagineStanza .modal-header{
    border-bottom: 0px !important;
}

#_modalMappe .modal-footer,
#_modalVideoIndicazioni .modal-footer,
#_ModalRequestEmail .modal-footer,
#_modalMenu .modal-footer,
#_modalTessera .modal-footer,
#_modalImmagineStanza .modal-footer{
    border-bottom: 0px !important;
    border-top: 0px !important;
}


#_modalMappe .modalContent{
    width: 80%;
    height: 95%;
    position: relative;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
}

#_modalVideoIndicazioni .modalContent {
    width: 95%;
    height: 100%;
    position: relative;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
}

#_modalMenu .modalContent,
#_modalTessera .modalContent {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
}

#_modalMenu .modalContent .immagineMenu {
    width: 95%;
    border-radius: 25px;
    margin: 0 auto;
    position: relative;
    display: block;
}


#_ModalRequestEmail .modalContent {
    width: 80%;
    position: relative;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
    margin-top: 100px;
    height: 50%;
}

#_modalMappe .modalContent .iframe_container,
#_modalVideoIndicazioni .modalContent .iframe_container {
    width: 100%;
    height: 100%;
    position: relative;
}

#_modalMappe .modalContent .iframe_container>iframe,
#_modalVideoIndicazioni .modalContent .iframe_container>video {
    width: 100%;
    height: 100%;
}

#_modalVideoIndicazioni .modalContent .iframe_container>video::-webkit-media-controls {
    display: none;
}

/* Stili per modale immagine stanza - adattata al contenuto */
#_modalImmagineStanza .modalContent{
    width: 80%;
    height: auto;
    position: relative;
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#_modalImmagineStanza .modalContent .immagine_stanza_container {
    width: 100%;
    height: auto;
    position: relative;
}

#_modalImmagineStanza .modalContent .immagine_stanza_container>img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}


#_ModalRequestEmail .input-group {
    flex-wrap: initial !important;
    align-items: inherit !important;
    width: 100% !important;
}


#_ModalRequestEmail .input-group-prepend {
    width: 382px;
    height: 91px;
}

#_ModalRequestEmail .input-group-text {
    width: 100%;
    height: 100%;
    justify-content: center;
    text-align: center;
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    color: #666666;
    border: 1px solid #666666 !important;
    border-radius: 25px 0px 0px 25px;
}

#_ModalRequestEmail .form-label {
    text-align: center;
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    color: #666666;
}

#_ModalRequestEmail input::placeholder {
    text-align: left;
    position: relative;
    font-style: normal;
    font-size: 40px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    color: #C6C6C6;
}

#_ModalRequestEmail input[type='text'].form-control,
#_ModalRequestEmail input[type='email'].form-control {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border: 1px solid #707070;
    width: 707px;
    height: 91px;
    font-size: 40px;
    font-weight: 400;
    font-family: "Montserrat"
}

#_ModalRequestEmail input.form-control {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border: 1px solid #707070;
    width: 707px;
    height: 91px;
    font-size: 40px;
    font-weight: 400;
    font-family: "Montserrat"
}


#_ModalRequestEmail .emailField {
    width: 100% !important;
}

#_ModalRequestEmail .input-group .btn {
    background: #F2F2F2 0% 0% no-repeat padding-box;
    border: 1px solid #707070;
    border-radius: 0px 25px 25px 0px;
    width: 129px;
    height: 91px;
}

#_ModalRequestEmail .input-group .btn.active {
    background-color: red !important;
}

#_ModalRequestEmail .input-group .btn>img {
    width: 38px;
    height: 49px;
}


#_ModalRequestEmail .messageBox {
    width: 100%;
    display: flex;
    justify-content: space-around;
    position: absolute;
    bottom: 140px;
    height: fit-content;
}

#_ModalRequestEmail #Message {
    font-size: 32px;
    font-weight: 700;
    color: #27a15a;
}


#_ModalRequestEmail .modalButton {
    width: 100%;
    display: flex;
    justify-content: space-around;
    position: absolute;
    bottom: 30px;
}


/* Modale Registrazione Scansione documento */

.boxReaderDocument {
    width: 100%;
    margin-bottom: 50px;
    height: 100%;
    position: relative;
}

#boxReaderDocument {
    width: 100%;
    border: 1px solid red;
    margin-bottom: 50px;
    height: 400px;
}


#documentReader {
    width: 100%;
    height: 100%;
    transform: rotate(180deg);
}

.boxDocument {
    border: 5px solid red;
    width: 450px;
    height: 300px;
    position: absolute;
    top: 50%; right: 50%;
    transform: translate(50%,-50%);
}

#_modalVideo .modal-dialog {
    max-width: 100%;
    width: unset;
    height: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
}

#_modalVideo .modal-content {
    height: 100%;
    background: transparent !important;
    border: none;
}

#_modalVideo #modalContentVideo {
    overflow: hidden !important;
    width: 100%;
    height: 100%;
}

#myVideo {
    height: auto;
    transform: rotate(90deg);
    top: 420px;
    position: relative;
    left: -420px;
    width: 1920px;
}


/* modale sociale */
.containerModal {
    position: fixed;
    right: 80px;
    top: 320px;
}

.containerModalSocial {
    top: 100px;
}

.containerQrCode {
    width: 190px;
    height: 190px;
    border-radius: 100%;
    background-color: #fff;
    margin-bottom:25px;
    background: radial-gradient(circle, rgba(255,255,255,1) 65%,  rgba(255,255,255,0) 70%, rgba(255,255,255,0) 100%);
    box-shadow: 0px 0px 5px 0px #fff;
}

.containerQrCodeImage {
    position: relative;
    top: 35px;
    left: 35px;
    width: 120px;
    height: 120px;
}

#_modalMappe .modal-subtitle {
    text-align: center;
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    font-family: Montserrat;
    letter-spacing: 0px;
    color: #666666;
    margin-top: 120px;
}

/* ========================================== */
/* Modale Domande Stile - Glass Effect */
/* ========================================== */

#_modaleDomanda {
    display: none;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000000;
    /* NESSUN backdrop-filter qui - il background non deve essere blurrato */
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#_modaleDomanda .modal-dialog {
    max-width: none;
    width: auto;
    margin: 0;
}

#_modaleDomanda .modal-content-domanda {
    position: fixed;
    top: 723px;
    left: 50%;
    transform: translateX(-50%);
    bottom: 140px;

    /* Layout esatto */
    display: flex;
    width: 984px;
    height: auto;
    max-height: calc(100vh - 723px - 85px);
    padding: 40px;
    flex-direction: column;
    align-items: center;

    /* Font Montserrat per tutta la modale */
    font-family: "Montserrat", sans-serif;

    /* Style esatto come richiesto */
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(333deg, rgba(242, 242, 242, 0.40) 0%, rgba(242, 242, 242, 0.20) 50%, rgba(242, 242, 242, 0.40) 100%);

    /* White effect glass background */
    box-shadow: -4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                8px 0 8px 0 rgba(53, 53, 53, 0.20),
                4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 4px 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 8px 8px 0 rgba(53, 53, 53, 0.20);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    overflow: hidden;
}

/* Assicura che tutti gli elementi dentro la modale usino Montserrat */
#_modaleDomanda .modal-content-domanda * {
    font-family: "Montserrat", sans-serif;
    color: #FDFBFB;
}

#_modaleDomanda .modal-header {
    border-bottom: 0px !important;
    padding: 0 0 30px 0;
    position: relative;
    width: 100%;
}

#_modaleDomanda .modal-title-domanda {
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 72px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    text-transform: uppercase;
    width: 100%;
    margin: 0;
    line-height: 1.2;
}

#_modaleDomanda .close {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 45px;
    width: 45px;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

#_modaleDomanda .close img {
    filter: brightness(0) invert(1);
    width: 35px;
    height: 35px;
}

#_modaleDomanda .close:hover {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#_modaleDomanda .modal-body {
    padding: 0;
    width: 100%;
}

/* Container domanda */
.domanda-container {
    margin-bottom: 35px;
    text-align: center;
    width: 100%;
}

.domanda-text {
    font-family: "Montserrat";
    font-size: 32px !important;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.5;
}

.domanda-subtitle {
    font-family: "Montserrat";
    font-size: 24px !important;
    font-weight: 300;
    /*color: rgba(255, 255, 255, 0.9);*/
    margin: 0;
}

/* Container risposte */
.risposte-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
    width: 100%;
}

/* Singola risposta - layout ORIZZONTALE come nell'immagine casella.png */
.risposta-item {
    display: flex;
    padding: 12px !important;
    height: 110px;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    align-self: stretch;

    /* Style esatto */
    border-radius: 16px;
    border: 1px solid rgba(17, 17, 22, 0.05);
    background: linear-gradient(105deg, rgba(17, 17, 22, 0.20) 0.47%, rgba(17, 17, 22, 0.05) 50.23%, rgba(17, 17, 22, 0.20) 100%);
    box-shadow: -4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                8px 0 8px 0 rgba(53, 53, 53, 0.20),
                4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 4px 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 8px 8px 0 rgba(53, 53, 53, 0.20);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    cursor: pointer;
    transition: all 0.3s ease;
}

.risposta-item:hover {
    transform: translateY(-2px);
    box-shadow: -4px 0 8px 0 rgba(253, 253, 253, 0.35) inset,
                8px 0 12px 0 rgba(53, 53, 53, 0.30),
                4px 0 8px 0 rgba(253, 253, 253, 0.35) inset,
                0 4px 8px 0 rgba(253, 253, 253, 0.35) inset,
                0 12px 12px 0 rgba(53, 53, 53, 0.30);
}

.risposta-item:active {
    transform: translateY(0px);
}

/* Box con lettera (non più cerchio, box squadrato con bordi arrotondati) */
.risposta-lettera {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.risposta-lettera span {
    font-family: "Montserrat";
    font-size: 40px;
    font-weight: 700;
}

/* Testo risposta */
.risposta-testo {
    flex: 1;
    font-family: "Montserrat";
    font-size: 22px;
    font-weight: 400;
    text-align: left;
    line-height: 1.4;
}

/* ========================================
   BARRA DI STATO MODALE DOMANDE
   Indicatore visivo per Gaia parla / Microfono attivo
   ======================================== */

.modal-status-bar {
    width: 400px;
    height: 4px;
    border-radius: 2px;
    margin: 15px auto 0;
    background: rgba(255, 255, 255, 0.15);
    overflow: visible;
    transition: all 0.5s ease;
}

/* Stato: Gaia sta parlando - Barra SOTTILE + arancione + shadow piccolo */
.modal-status-bar.gaia-talking {
    height: 2px;
    background: rgba(255, 165, 0, 0.8);
    animation: pulse-slow 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.4);
}

/* Stato: Microfono attivo - Barra SPESSA + verde + glow intenso */
.modal-status-bar.mic-active {
    height: 8px;
    background: rgba(0, 255, 0, 0.9);
    animation: pulse-fast 0.8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6),
                0 0 40px rgba(0, 255, 0, 0.3);
}

/* Animazione pulse LENTA per "Gaia parla" (2 secondi) */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.85;
    }
    50% {
        opacity: 1;
    }
}

/* Animazione pulse VELOCE per "Microfono attivo" (0.8 secondi) */
@keyframes pulse-fast {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1400px) {
    #_modaleDomanda .modal-content-domanda {
        width: 95vw;
    }

    #_modaleDomanda .modal-title-domanda {
        font-size: 60px;
    }

    .domanda-text {
        font-size: 36px;
    }

    .domanda-subtitle {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    #_modaleDomanda .modal-header,
    #_modaleDomanda .modal-body {
        padding: 20px 30px;
    }

    #_modaleDomanda .modal-title-domanda {
        font-size: 42px;
    }

    .domanda-text {
        font-size: 28px;
    }

    .domanda-subtitle {
        font-size: 22px;
    }

    .risposta-lettera {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }

    .risposta-lettera span {
        font-size: 36px;
    }

    .risposta-testo {
        font-size: 22px;
    }

    .risposta-item {
        padding: 15px 20px;
    }
}

/* ========================================
   MODALE PHOTOBOOTH
   Stile ispirato alla modale domande con glassmorphism
   ======================================== */

#_modalePhotobooth {
    display: none;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000000;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#_modalePhotobooth .modal-dialog {
    max-width: none;
    width: auto;
    margin: 0;
}

#_modalePhotobooth .modal-content-photobooth {
    position: fixed;
    top: 184px;
    left: 50%;
    transform: translateX(-50%);

    /* Layout */
    display: flex;
    width: 984px;
    height: auto;
    max-height: calc(100vh - 723px - 85px);
    padding: 40px;
    flex-direction: column;
    align-items: center;

    /* Font Montserrat */
    font-family: "Montserrat", sans-serif;

    /* Glassmorphism style come modale domande */
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(333deg, rgba(242, 242, 242, 0.40) 0%, rgba(242, 242, 242, 0.20) 50%, rgba(242, 242, 242, 0.40) 100%);

    /* White effect glass background */
    box-shadow: -4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                8px 0 8px 0 rgba(53, 53, 53, 0.20),
                4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 4px 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 8px 8px 0 rgba(53, 53, 53, 0.20);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    overflow: hidden;
}

#_modalePhotobooth .modal-content-photobooth * {
    font-family: "Montserrat", sans-serif;
    color: #FDFBFB;
}

#_modalePhotobooth .modal-header {
    border-bottom: 0px !important;
    padding: 0 0 30px 0;
    position: relative;
    width: 100%;
}

#_modalePhotobooth .modal-title-photobooth {
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 72px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    text-transform: uppercase;
    width: 100%;
    margin: 0;
    line-height: 1.2;
}

#_modalePhotobooth .close {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 45px;
    width: 45px;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

#_modalePhotobooth .close img {
    filter: brightness(0) invert(1);
    width: 35px;
    height: 35px;
}

#_modalePhotobooth .close:hover {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#_modalePhotobooth .modal-body {
    padding: 0;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#_modalePhotobooth .modalContent {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Camera container */
.photobooth-camera-container {
    position: relative;
    width: 600px;
    height: 800px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

#videoPhotoboothModal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Countdown overlay */
.photobooth-countdown {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.countdown-label {
    font-family: "Montserrat";
    font-size: 48px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.countdown-number {
    font-family: "Montserrat";
    font-size: 180px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
    animation: countdownPulse 1s ease-in-out;
}

@keyframes countdownPulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Preview foto */
.photobooth-preview-container {
    width: 600px;
    height: 800px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.photobooth-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* QR Code container */
.photobooth-qr-container {
    text-align: center;
    width: 100%;
}

.qr-message {
    font-family: "Montserrat";
    font-size: 36px;
    font-weight: 600;
    color: #FDFBFB;
    margin-bottom: 15px;
}

.qr-subtitle {
    font-family: "Montserrat";
    font-size: 24px;
    font-weight: 400;
    color: #FDFBFB;
    margin-bottom: 30px;
}

.qrcode-display {
    display: inline-block;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Footer e bottoni */
#_modalePhotobooth .modal-footer {
    border-top: 0px !important;
    padding: 30px 0 0 0;
    width: 100%;
}

.btnPhotoboothAction {
    min-width: 300px;
    height: 80px;
    border-radius: 16px;
    border: 1px solid rgba(17, 17, 22, 0.05);
    background: linear-gradient(105deg, rgba(17, 17, 22, 0.20) 0.47%, rgba(17, 17, 22, 0.05) 50.23%, rgba(17, 17, 22, 0.20) 100%);
    box-shadow: -4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                8px 0 8px 0 rgba(53, 53, 53, 0.20),
                4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 4px 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 8px 8px 0 rgba(53, 53, 53, 0.20);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);    border: 1px solid #666666;

    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 30px;
}

.btnPhotoboothAction:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

.btnPhotoboothAction:active {
    transform: scale(0.98);
}

/* Bottoni conferma */
.photobooth-confirm-buttons {
    display: flex;
    gap: 20px;
}

.btnPhotoboothYes {
    background: #4CAF50;
    color: #FFFFFF;
    border: 1px solid #4CAF50;
}

.btnPhotoboothYes:hover {
    background: #45a049;
}

.btnPhotoboothNo {
    background: #f44336;
    color: #FFFFFF;
    border: 1px solid #f44336;
}

.btnPhotoboothNo:hover {
    background: #da190b;
}

/* Responsive */
@media (max-width: 1400px) {
    #_modalePhotobooth .modal-content-photobooth {
        width: 95vw;
    }

    #_modalePhotobooth .modal-title-photobooth {
        font-size: 60px;
    }

    .photobooth-camera-container,
    .photobooth-preview-container {
        width: 500px;
        height: 667px;
    }
}

@media (max-width: 768px) {
    #_modalePhotobooth .modal-title-photobooth {
        font-size: 42px;
    }

    .photobooth-camera-container,
    .photobooth-preview-container {
        width: 400px;
        height: 533px;
    }

    .btnPhotoboothAction {
        min-width: 200px;
        height: 60px;
        font-size: 24px;
    }

    .countdown-number {
        font-size: 120px;
    }

    .countdown-label {
        font-size: 32px;
    }
}

/* ========================================
   MODALE STILE - Risultato stile utente
   Stile ispirato alla modale domande con gradienti
   ======================================== */

/* Fix: z-index per modale parent sopra al logo centrale */
#_modaleStile {
    z-index: 10000 !important;
}

#_modaleStile .modal-content-stile {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Layout migliorato */
    display: flex;
    width: 900px;
    height: 1200px;
    max-height: 85vh;
    padding: 35px 40px;
    flex-direction: column;
    align-items: center;

    /* Font Montserrat per tutta la modale */
    font-family: "Montserrat", sans-serif;

    /* Style esatto come modale domande */
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(333deg, rgba(242, 242, 242, 0.40) 0%, rgba(242, 242, 242, 0.20) 50%, rgba(242, 242, 242, 0.40) 100%);

    /* White effect glass background */
    box-shadow: -4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                8px 0 8px 0 rgba(53, 53, 53, 0.20),
                4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 4px 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 8px 8px 0 rgba(53, 53, 53, 0.20);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    /* Fix: z-index superiore al logo centrale (boxLogoGaia z-index: 9999) */
    z-index: 10000;

    overflow: hidden;
}

/* Font Montserrat per tutti gli elementi */
#_modaleStile .modal-content-stile * {
    font-family: "Montserrat", sans-serif;
    color: #FDFBFB;
}

#_modaleStile .modal-header {
    border-bottom: 0px !important;
    padding: 0 0 20px 0;
    position: relative;
    width: 100%;
}

#_modaleStile .modal-title-stile {
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 56px;
    font-family: "Montserrat";
    letter-spacing: 0px;
    text-transform: uppercase;
    width: 100%;
    margin: 0;
    line-height: 1.1;
}

#_modaleStile .close {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 45px;
    width: 45px;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

#_modaleStile .close img {
    filter: brightness(0) invert(1);
    width: 35px;
    height: 35px;
}

#_modaleStile .close:hover {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#_modaleStile .modal-body {
    padding: 0;
    flex: 1;
    overflow: visible;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#_modaleStile .modalContent {
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
}

#_modaleStile .modalContent .immagine_stile_container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#_modaleStile .modalContent .immagine_stile_container>img {
    width: 50%;
    height: 50%;
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 20px;
    position: absolute;
}

#_modaleStile .modalContent .immagine_stile_container>img.immagine-stile{
    top:0;
    left:0;
}

#_modaleStile .modalContent .immagine_stile_container>img.immagine-stile2{
    bottom:0;
    right:0;
}

#_modaleStile .modal-footer {
    border-top: 0px !important;
    padding: 20px 0 0 0;
    width: 100%;
}

#_modaleStile .btnCloseModal {
    width: 320px;
    height: 75px;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600;
    font-size: 36px;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s ease;

    border-radius: 16px;
    border: 1px solid rgba(17, 17, 22, 0.05);
    background: linear-gradient(105deg, rgba(17, 17, 22, 0.20) 0.47%, rgba(17, 17, 22, 0.05) 50.23%, rgba(17, 17, 22, 0.20) 100%);
    box-shadow: -4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                8px 0 8px 0 rgba(53, 53, 53, 0.20),
                4px 0 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 4px 8px 0 rgba(253, 253, 253, 0.25) inset,
                0 8px 8px 0 rgba(53, 53, 53, 0.20);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

}

#_modaleStile .btnCloseModal:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}

#_modaleStile .btnCloseModal:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 1400px) {
    #_modaleStile .modal-content-stile {
        width: 95vw;
    }

    #_modaleStile .modal-title-stile {
        font-size: 60px;
    }

    #_modaleStile .btnCloseModal {
        width: 320px;
        height: 80px;
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    #_modaleStile .modal-header,
    #_modaleStile .modal-body {
        padding: 0 20px;
    }

    #_modaleStile .modal-title-stile {
        font-size: 42px;
    }

    #_modaleStile .btnCloseModal {
        width: 280px;
        height: 70px;
        font-size: 32px;
    }

    #_modaleStile .modalContent .immagine_stile_container>img {
        max-height: 50vh;
    }
}

.modal-content-scansione {
    font-size: 50px;
}

.modal-title-scansione {
    font-size: larger;
    font-weight: bold;
}

#modalContentScanner{
    font-size: 17px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}