
/* ==========================================================================
   🧼 RIMOZIONE SCROLLBAR E PULIZIA INTERFACCIA
   ========================================================================== */
.hide_scroll::-webkit-scrollbar {
    display: none;
}

:root::-webkit-scrollbar {
    display: none;
}
:root {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ==========================================================================
   📐 LOGO AZIENDALE RESPONSIVO (CONVERSIONE DA PX A CQW)
   ========================================================================== */
.img-logo {
    width: 88.8cqw !important; /* 🎯 Convertito 320px (320 / 360 * 100) */
    max-width: 100% !important; /* Impedisce qualsiasi debordamento laterale */
    height: auto !important;
    display: block;
    margin: 0 auto;
}

@media (max-width: 550px) {
    .img-logo {
        min-width: 41.6cqw !important; /* Convertito 150px */
        max-width: 55.5cqw !important; /* Convertito 200px */
        text-align: center !important;
        margin-top: 0.8cqw !important;  /* Convertito 3px */
        margin-bottom: 1.4cqw !important; /* Convertito 5px */
    }
    
    .add-to-home-screen-btn {
        font-size: 4cqw !important; /* Convertito 4vw */
    }
}

/* ==========================================================================
   📸 CONTENITORI AVATAR PROFILO COMPATTI E REATTIVI
   ========================================================================== */
.circular--portrait, 
.shape-square {
    position: relative !important;
    width: 40cqw !important;  /* 🎯 Convertito da 40vw a 43cqw per evitare l'effetto gigante su PC */
    height: 40cqw !important; /* 🎯 Convertito da 40vw a 43cqw */
    overflow: hidden !important;
    margin: 0 auto !important; /* Centratura automatica millimetrica */
    padding: 0px !important;                    
    background-color: transparent !important;       
    box-sizing: border-box !important;          
}

.circular--portrait img, 
.shape-square img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   📝 TIPOGRAFIA IDENTITÀ: NOME E RUOLO PROFESSIONALE
   ========================================================================== */
.main-name h1 {
    font-weight: normal !important; 
    font-size: 8cqw !important; /* 🎯 Convertito 8vw */
    font-family: 'Open Sans', sans-serif !important;
    color: #777 !important; 
    margin-top: 2.7cqw !important;    /* Convertito 10px */
    margin-bottom: 2.7cqw !important; /* Convertito 10px */
    margin-left: 2.7cqw !important;
    margin-right: 2.7cqw !important;
    text-align: center !important;
}

.role {
    font-weight: normal !important; 
    font-size: 6cqw !important; /* 🎯 Convertito 6vw */
    font-family: 'Open Sans', sans-serif !important;
    color: #777 !important; 
    margin-top: 4.8cqw !important;
    margin-bottom: 3.2cqw !important;
    margin-left: 2.7cqw !important;
    margin-right: 2.7cqw !important;
    text-align: center !important;
}

/* ==========================================================================
   🛸 BLOCCO AZIONI EXTRA SUPERIORI (RAGGIO BOTTONI)
   ========================================================================== */
.first-button-row {
    margin-top: 8cqw !important;    /* 🎯 Convertito 8vw */
    margin-bottom: 8cqw !important; /* 🎯 Convertito 8vw */
    text-align: center !important;
}

.first-button-row i {
    font-size: 4cqw !important; /* 🎯 Convertito 4vw */
    color: #ffffff !important;
    text-align: center !important;
}

.first-button-row a:hover {
    text-decoration: none !important;
}

.first-button-row h2 {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 4cqw !important; /* 🎯 Convertito 4vw */
    color: #5d8399 !important;
    text-align: center !important;
    margin-bottom: 4cqw !important; /* 🎯 Convertito 4vw */
}

.fab {
    text-align: center !important;
    vertical-align: middle !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    margin-right: 2cqw !important;
    margin-left: 2cqw !important;
    margin-bottom: 5cqw !important;
    width: 10cqw !important;       /* 🎯 Convertito 10vw */
    height: 10cqw !important;      /* 🎯 Convertito 10vw */
    font-size: 5cqw !important;    /* 🎯 Convertito 5vw */
    line-height: 10cqw !important;  /* Centratura verticale blindata */
    background: #547c8f !important;
    color: #ffffff !important;
}

/* ==========================================================================
   🎛️ COSTRUZIONE ASSE CENTRATO: FOTO + PULSANTI COMPRESI (PROFILE ROW CORE)
   ========================================================================== */
.profile-main-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;        
    justify-content: space-between !important; 
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

.profile-main-row::before {
    content: "" !important;
    flex: 1 !important; 
}

/* 📸 La foto di questo blocco rimane centrata geometricamente */
.profile-main-row .zoom-in-out-box {
    width: 43cqw !important;  /* 🎯 Bilanciato ed allineato a 43cqw come il contenitore principale */
    height: 43cqw !important; /* 🎯 Allineato a 43cqw */
    flex-shrink: 0 !important;
    margin: 0 !important;
}

/* 🎛️ I pulsanti di condivisione laterali si distribuiscono senza scivolare fuori dal guscio */
.profile-main-row .div-btn-share-inline {
    flex: 1 !important;        
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;
    flex-direction: row !important;
    position: static !important; 
    gap: 1.1cqw !important; /* Convertiti i 4px in cqw proporzionali per evitare accavallamenti */        
    flex-shrink: 0 !important;
}

/* Raccordi per gli arrotondamenti di forma dinamica del T2 */
.profile-main-row .zoom-in-out-box.circular--portrait {
    border-radius: 50% !important;
}
.profile-main-row .zoom-in-out-box.shape-square {
    /* 🎯 Convertito 12px fisse in cqw elastici per assecondare lo zoom */
    border-radius: 3.3cqw !important; 
}

/* ⚪ CONFIGURAZIONE PULSANTI INLINE CON CORREZIONE LINE-HEIGHT */


.div-row-link {
    margin-top: 10cqw !important; 
    margin-left: 3cqw !important; 
    margin-right: 3cqw !important; 
}

.scritta-social {
    margin-top: 10cqw !important; 
} 

.div-btn-share-inline i.fas.fa-user-plus,
.div-btn-share-inline i.fas.fa-share-alt {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    margin: 0 !important;        
    padding: 0 !important;
    
    /* 🎯 RISOLTO: Convertiti i parametri 12vw e 6.5vw in cqw rigidi dell'Iframe.
       Questo garantisce che le palline laterali rimangano minuscole e stabili nella modale! */
    width: 12cqw !important;
    height: 12cqw !important;
    font-size: 6.5cqw !important; 
    line-height: 12cqw !important; /* Centratura matematica interna dell'icona (es: l'omino +) */
    
    background: #ffffff !important;
    color: #000000 !important;
    
    box-shadow: 0 1.1cqw 2.7cqw rgba(0,0,0,0.12) !important; /* Convertito 4px 10px */
}

/* ==========================================================================
   🧼 PULIZIA PULSANTI ROUNDED INLINE BOOTSTRAP
   ========================================================================== */
.div-btn-share-inline .btn-rounded {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}
.div-btn-share-inline .btn-rounded a {
    text-decoration: none !important;
    display: block !important;
}

/* ==========================================================================
   📇 BLOCCHI DI CONTATTO RIGIDI (TELEFONI, EMAIL, SOCIAL LINK)
   ========================================================================== */
.bordered-div {
    font-weight: normal !important;
    color: #333333 !important;  
    font-size: 3cqw !important; /* 🎯 Convertito 3vw in cqw */
    font-family: 'Open Sans', sans-serif !important;
    text-align: center !important;
    margin-top: 2.7cqw !important;   /* 🎯 Convertito 10px in cqw (10 / 360 * 100) */
    margin-left: 5.3cqw !important;   /* 🎯 Convertito 5px in cqw */
    margin-right: 5.3cqw !important;  /* 🎯 Convertito 5px in cqw */
    border: 0px solid #e8e8e8 !important;
    border-radius: 2.2cqw !important; /* 🎯 Convertito 8px in cqw */
    padding-top: 4.1cqw !important;    /* 🎯 Convertito 15px in cqw */
    padding-bottom: 4.1cqw !important; /* 🎯 Convertito 15px in cqw */
}

.bordered-div a {
    color: #333333 !important;
    text-decoration: none !important;
}

.bordered-div i {
    color: #5d8399 !important;
    font-size: 8cqw !important; /* 🎯 Convertito 8vw in cqw */
    margin-top: 0cqw !important;
    margin-bottom: 1.4cqw !important; /* 🎯 Convertito 5px in cqw */
}

.social-icon-clear {
    /* [FONDAMENTALE] Forza il browser a usare Font Awesome per questo elemento */
    font-family: "Font Awesome 6 Brands", "Font Awesome 7 Brands", "Font Awesome 6 Free", "Font Awesome 7 Free" !important;
    
    /* [FONDAMENTALE] I brand richiedono un peso specifico per essere renderizzati */
    font-weight: 400 !important; 
    
    /* Assicura che l'icona mantenga uno stile visivo corretto e pulito */
    font-style: normal !important;
    display: inline-block !important;
}

.img-i-link {
    margin-top: 0cqw !important;
    margin-bottom: 1.4cqw !important; /* 🎯 Convertito 5px in cqw */
}

.bordered-div .title {  
    padding: 1.4cqw !important; /* 🎯 Convertito 5px in cqw */
    text-decoration: none !important;
    margin-left: 12cqw !important; /* 🎯 Convertito 12% in cqw stabili per bloccare il testo */
}

.bordered-div .title-elipsis {  
    padding: 1.4cqw !important; /* 🎯 Convertito 5px in cqw */
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    margin-left: 12cqw !important; /* 🎯 Convertito 12% in cqw stabili */
}

.phones-mail-address-link {
    width: 96% !important;
    margin-top: 3cqw !important; /* 🎯 Convertito 3vw in cqw */
    margin-bottom: 0cqw !important;
    border: 0px solid #e8e8e8 !important;
    border-radius: 3.3cqw !important; /* 🎯 Convertito 12px in cqw */
}

.phones-mail-address-link .title {
    font-weight: normal !important;
    color: #777777 !important;  
    font-size: 5cqw !important; /* 🎯 Convertito 5vw in cqw */
    font-family: 'Open Sans', sans-serif !important;
    text-align: center !important;
}

.phones-mail-address-link .title-elipsis {
    font-weight: normal !important;
    color: #777777 !important;  
    font-size: 4.5cqw !important; /* 🎯 Convertito 4.5vw in cqw */
    font-family: 'Open Sans', sans-serif !important;
    text-align: center !important;
}

.phones-mail-address-link a {
    color: #777777 !important;
    text-decoration: none !important;
}
    
/* ==========================================================================
   🧩 SEZIONE ACCORDION STRUTTURALE (SCHEDE DI APPROFONDIMENTO)
   ========================================================================== */
.myaccordion {
    max-width: 100% !important;
    margin-left: 0cqw !important;
    margin-right: 0cqw !important;
    margin-top: 9cqw !important;    /* 🎯 Convertito 30px in cqw (30 / 360 * 100) */
    margin-bottom: 8.3cqw !important; /* 🎯 Convertito 30px in cqw */
}
 
.myaccordion .card {
    margin-top: 5.5cqw !important; /* 🎯 Convertito 20px in cqw */
} 

.myaccordion .card,
.myaccordion .card:last-child .card-header {
    border: 0px solid #e8e8e8 !important;
    margin-top: 0cqw !important;
}
 
.myaccordion .card-header {
    border-bottom-color: transparent !important;
    background: #fafafa !important;
}
 
.myaccordion .card-body {
    background: #ffffff !important;
    font-size: 6cqw !important; /* 🎯 Convertito 6vw in cqw */
    font-family: 'Open Sans', sans-serif !important;
    padding-top: 2.7cqw !important;    /* 🎯 Convertito 10px in cqw */
    padding-bottom: 4.1cqw !important; /* 🎯 Convertito 15px in cqw */
    border-radius: 0px !important;
}
 
.myaccordion .btn {
    width: 100% !important;
    font-weight: normal !important;
    color: #777777 !important;
    padding: 0 !important;
    font-size: 4cqw !important; /* 🎯 Convertito 4vw in cqw */
    font-family: 'Open Sans', sans-serif !important;
    text-decoration: none !important;
}

/* 🎯 ICONE E FRECCE INTERNE DELLE SCHEDE ACCORDION */
.myaccordion i {
    font-size: 5cqw !important; /* 🎯 Convertito 5vw in cqw */
    margin-right: 5.5cqw !important; /* 🎯 Convertito 20px in cqw (20 / 360 * 100) */
    width: 5cqw !important; /* 🎯 Convertito 5vw in cqw */
}

.myaccordion .btn-link:hover,
.myaccordion .btn-link:focus {
    text-decoration: none !important;
}
 
.myaccordion li + li {
    margin-top: 2.7cqw !important; /* 🎯 Convertito 10px in cqw */
}   
    
.margintop10 {
    margin-top: 5.5cqw !important; /* 🎯 Convertito 20px in cqw */
    border-radius: 3.3cqw !important; /* 🎯 Convertito 12px in cqw */
}

/* ==========================================================================
   🚫 RIMOZIONE ALONI DI FOCUS INTEGRALE BOOTSTRAP (T2 SAFETY)
   ========================================================================== */
.myaccordion .btn:focus,
.myaccordion .btn:active,
.myaccordion .btn:focus-visible,
.myaccordion .btn-link:focus,
.myaccordion .btn-link:active {
    box-shadow: none !important;      
    outline: none !important;         
    text-decoration: none !important; 
    border-color: transparent !important;
}

.myaccordion .card-header:focus,
.myaccordion .card-header:focus-within {
    box-shadow: none !important;
    outline: none !important;
}

/* ==========================================================================
   🌍 2. INTEGRAZIONE MULTILINGUA SPECULARE PER ARABO (RTL)
   ========================================================================== */
[dir="rtl"] .myaccordion .card-header button span i {
    margin-inline-end: 2.2cqw !important; /* 🎯 Convertito 8px in cqw */
    transform: scaleX(-1) !important;     /* Capovolge l'icona freccia per la lettura araba */
    display: inline-block !important; 
}


/* ==========================================================================
   🌍 2. CONFIGURAZIONE LINGUA ARABA (RTL) - ULTIMA PARTE
   ========================================================================== */
[dir="rtl"] .myaccordion .card-header button span i {
    margin-inline-end: 2.2cqw !important; /* 🎯 Convertito 8px */
    transform: scaleX(-1) !important;
    display: inline-block !important; 
}

[dir="rtl"] .myaccordion .card-body {
    padding-right: 8.3cqw !important; /* 🎯 Convertito 30px in cqw (30 / 360 * 100) */
    padding-left: 4.1cqw !important;  /* 🎯 Convertito 15px in cqw */
}

.myaccordion .card + .card {
    margin-top: 2.7cqw !important; /* 🎯 Convertito 10px in cqw */
}

/* ==========================================================================
   🎬 COMPONENTI MULTIMEDIALI E LIGHTBOX (VIDEO & GALLERY)
   ========================================================================== */
#baguetteBox-overlay .full-image {
    position: relative !important;
    overflow: hidden !important;
    border: 0px solid #ffffff !important;
    border-radius: 0px !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
} 

#baguetteBox-overlay .full-image img {
    object-fit: contain !important;
    width: 100% !important;
}    

.myaccordion .video {
    border-radius: 3.3cqw !important; /* 🎯 Convertito 12px in cqw */
    margin-top: 3cqw !important;       /* 🎯 Convertito 3vw in cqw */
    margin-bottom: 3cqw !important;    /* 🎯 Convertito 3vw in cqw */
    margin-left: 3cqw !important;      /* 🎯 Convertito 3vw in cqw */
    margin-right: 3cqw !important;     /* 🎯 Convertito 3vw in cqw */
    width: 94cqw !important;           /* 🎯 Convertito 94vw in cqw */
}

#qr_frame {
    width: 69.4cqw !important;  /* 🎯 Convertito 250px in cqw (250 / 360 * 100) */
    height: 69.4cqw !important; /* 🎯 Convertito 250px in cqw */
}
             
/* ==========================================================================
   ↕️ DISTANZIATORI VERTICALI METRICI (INCREMENTAL MARGINS TO CQW)
   ========================================================================== */
.margin10 { margin-top: 2.7cqw !important; } /* 10px */
.margin20 { margin-top: 5.5cqw !important; } /* 20px */
.margin30 { margin-top: 8.3cqw !important; } /* 30px */
.margin40 { margin-top: 11.1cqw !important; } /* 40px */
.margin50 { margin-top: 13.8cqw !important; } /* 50px */
.margintop10 { margin-top: 5.5cqw !important; border-radius: 3.3cqw !important; } /* 20px / 12px */


.profile-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   📸 BOX SATELLITE INTERNO (FOTO PROFILO LIVE RESIZE DETAILED)
   ========================================================================== */
.zoom-in-out-box {
    position: relative !important;
    margin-top: 0 !important; 
    bottom: 5.2cqw !important; 
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.zoom-in-out-box.circular--portrait {
    border: 1.2cqw solid #fafafa !important; /* 🎯 Convertito 5px in cqw (5 / 360 * 100) */
    border-radius: 50% !important; 
    overflow: hidden !important;
}
.zoom-in-out-box.circular--portrait img {
    border-radius: 50% !important;
}

.zoom-in-out-box.shape-square {
    border: 1.2cqw solid #fafafa !important; /* 🎯 Convertito 5px in cqw */
    border-radius: 3.3cqw !important;        /* 🎯 Convertito 12px in cqw */
    overflow: hidden !important;
}
.zoom-in-out-box.shape-square img {
    border-radius: 3.3cqw !important;
}

.zoom-in-out-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; 
}

.zoom-in-out-box img[src*=".svg"] {
    object-fit: contain !important;
    padding: 0.8cqw !important; /* 🎯 Convertito 3px in cqw */
    box-sizing: border-box !important;
}

/* ==========================================================================
   📡 STRUTTURA GENERALE DEL QR CODE DI CHIUSURA (T2 FINALE)
   ========================================================================== */
.public-qrcode-container {
    text-align: center !important;
    margin-top: 6.6cqw !important;    /* 🎯 Convertito 1.5rem in cqw */
    margin-bottom: 6.6cqw !important; /* 🎯 Convertito 1.5rem in cqw */
    width: 100% !important;
}

.public-qrcode-container .scan-me {
    margin-bottom: 0.8cqw !important; /* Convertito 3px */
    letter-spacing: 0.2cqw !important; /* Convertito 1px */
}

.public-qrcode-container .qrcode-wrapper {
    display: inline-block !important;
    padding: 0.8cqw !important; /* Convertito 3px */
    border-radius: 0px !important; 
    box-shadow: 0 1.1cqw 2.7cqw rgba(0,0,0,0.05) !important;
    background-color: transparent !important; 
}

#qrcode-public {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

#qrcode-public canvas,
#qrcode-public img {
    max-width: 66.6cqw !important; /* 🎯 Impedisce distorsioni su PC bloccando il tetto a 240px (240/360*100) */
    width: 66.6cqw !important;     /* 🎯 Sostituito il vecchio 75vw instabile con i cqw */
    height: auto !important;
}


/*  Per rimpicciolire le frecce detra e sinistra nella gallery di baguettebox */

/* 1. Fa trasparente il cerchio/blocco esterno delle frecce laterali */
#baguetteBox-overlay button#next-button,
#baguetteBox-overlay button#previous-button {
     
    background-color: transparent !important; 
}

/* 🎯 RIMPICCIOLISCE LA FRECCIA GRAFICA EFFETTIVA */
#baguetteBox-overlay .baguetteBox-button svg {
    /* Rimpicciolisce la freccia al 60% della sua dimensione originale */
    transform: scale(0.6) !important; 
    
    /* Assicura che la freccia rimanga centrata durante il rimpicciolimento */
    transform-origin: center !important; 
}

/* 🎯 AVVICINA LE FRECCE AI BORDI DELLA SCOCCA DELLO SMARTPHONE */

/* Spinge la freccia sinistra (Previous) verso il bordo sinistro */
#baguetteBox-overlay button#previous-button {
    left: -8px !important; /* Regola questo valore: 0px è il limite massimo attaccato al bordo */
}

/* Spinge la freccia destra (Next) verso il bordo destro */
#baguetteBox-overlay button#next-button {
    right: -8px !important; /* Regola questo valore: 0px è il limite massimo attaccato al bordo */
}
