    /* --- MODAL GENERALE --- */
.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.40) !important;
    transition: opacity 0.4s ease;
    z-index: 999999 !important;
    pointer-events: none;
}

.modal.show {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* --- IL BOX DEL FORM (ALLARGATO) --- */
.content-modal {
    position: relative !important;
    background: #0B0D10 !important;
    width: 90% !important;
    max-width: 650px !important;
    max-height: 90vh !important;
    padding: 50px 45px !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 102, 102, 0.3) !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8) !important;
    overflow-y: auto !important;

    /* FIX PER CENTRARE I FIGLI */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centra orizzontalmente tutti i figli (Titoli, Form, Pulsante) */
}

/* Assicuriamoci che i titoli e i testi rimangano a sinistra se lo desideri */
.content-modal h2,
.content-modal p,
.content-modal form {
    width: 100%; /* Forza il form a occupare tutto lo spazio */
    text-align: left; /* Mantiene il testo allineato a sinistra */
}

.content-modal button[type="submit"] {
    display: block !important; /* Fondamentale per il margine auto */
    width: 50% !important;
    padding: 16px !important;
    background-color: #ff6666 !important; /* Corretto il punto e virgola di troppo */
    border: none !important;
    border-radius: 5px !important;
    color: white !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px;
    cursor: pointer !important;

    /* CENTRATURA */
    margin: 20px auto 0 auto !important;

    transition: all 0.3s ease;
}


.content-modal button[type="submit"]:hover {
    background-color: #e65555 !important;
    transform: translateY(-1px);
}

/* --- TITOLI --- */
.content-modal h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    text-align: left;
    margin: 0 0 10px 0;
}

.content-modal h2::after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background: #ff6666;
    margin-top: 8px;
    border-radius: 2px;
}

/* RIGA SOTTOTITOLO CON LOGO */
.request-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    margin: 25px 0 30px 0 !important;
}

.request-row p {
    color: #888 !important;
    font-size: 1rem !important;
    margin: 0 !important;
    text-transform: uppercase;
    font-weight: 600;
}

.request-row span {
    color: white !important;
}

.brand-logo-modal {
    height: 40px !important; /* Dimensione ottimale logo */
    width: 50 !important;
    object-fit: contain !important;
}

/* --- CAMPI DI INPUT --- */
.content-modal input,
.content-modal textarea {
    width: 100% !important;
    background: #0B0D10 !important;
    border: 1px solid #222 !important;
    border-radius: 4px !important;
    padding: 14px 18px !important;
    color: white !important;
    margin-bottom: 15px !important;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    outline: none !important;
    box-sizing: border-box !important;
}


/* --- TASTO CHIUDI --- */
.close-modal {
    position: absolute !important;
    top: 20px !important;
    right: 25px !important;
    color: #ff6666;
    font-size: 26px;
    opacity: 0.6;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
}

.close-modal:hover {
    opacity: 1;
}

/* BLOCCO SCROLL */
body:has(.modal.show) {
    overflow: hidden !important;
}














/* --- MODAL FEEDBACK (PICCOLA) --- */
#custom-modal-feedBack .content-modal.small {
    max-width: 450px !important; /* Più stretta per i messaggi brevi */
    padding: 40px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0B0D10 !important;
    border: 1px solid rgba(255, 102, 102, 0.3) !important;
    border-radius: 15px !important;
}

/* Stile per l'icona (Check o Errore) */
#custom-modal-feedBack i {
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

#custom-modal-feedBack h2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    color: white;

    /* Centratura del testo */
    text-align: center;

    /* Prepariamo il contenitore per la riga */
    position: relative;
    padding-bottom: 10px;
}

/* Creazione della riga rossa centrata */
#custom-modal-feedBack h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Tecnica per centrare perfettamente un elemento absolute */
    width: 50px; /* Lunghezza della riga */
    height: 3px; /* Spessore della riga */
    background-color: #ff6666; /* Il tuo rosso brand */
    border-radius: 2px;
}


/* Messaggio della modal */
#custom-modal-feedBack p {
    color: #bbb !important;
    font-size: 1rem !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    line-height: 1.5;
}

/* --- BOTTONE "OK" OMOLOGATO --- */
.btn-ok {
    display: inline-block !important;
    width: auto !important; /* Non occupa tutto lo spazio come "Invia" */
    min-width: 150px;
    padding: 12px 30px !important;
    background-color: #ff6666 !important; /* Rosso corallo del brand */
    color: white !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-ok:hover {
    background-color: #ff4444 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 102, 0.3);
}

/* Fix per la X di chiusura anche qui */
#custom-modal-feedBack .close-modal {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    color: #ff6666;
    font-size: 24px;
    text-decoration: none;
    opacity: 0.6;
}

#custom-modal-feedBack .close-modal:hover {
    opacity: 1;
}







/* icona caricamento */




@keyframes pulse {
       0% {
           transform: scale(1);
       }
       50% {
           transform: scale(1.3);
       }
       100% {
           transform: scale(1);
       }
   }

   .pulse-icon {
      visibility: hidden;
       opacity: 0;

       position: fixed;
              top: 0;
              right: 0;
              bottom: 0;
              left: 0;
              display: flex;
              align-items: center;
                     justify-content: center;

       transform: translate(-50%, -50%);
       animation: pulse 1s infinite;
        z-index: 1000;

   }

   .pulse-icon img{
      width: 80px;
      height: 80px;
   }


    .pulse-icon.visible {
         visibility: visible;
                opacity: 1;
     }