/* Configurazione colori personalizzati del brand (Viola) */
:root {
    --colore-viola: #6f42c1; /* Puoi cambiare questo codice esadecimale con la tonalità esatta di viola che preferisci */
    --colore-viola-hover: #5a32a3;

    --purple-brand: #6f42c1;
    --purple-brand-hover: #5a32a3;
    --whatsapp-color: #25D366;
    --whatsapp-color-hover: #1bd741;
}

/* Stilizzazione link principali */
.custom-nav-link {
    color: var(--colore-viola) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    transition: color 0.2s ease-in-out;
}

/* Stato attivo ed hover */
.custom-nav-link:hover,
.custom-nav-link.active {
    color: var(--colore-viola-hover) !important;
}

/* Dropdown styling */
.dropdown-item {
    color: var(--colore-viola) !important;
    font-size: 0.9rem;
}
.dropdown-item:hover {
    background-color: rgba(111, 66, 193, 0.08) !important; /* Sfondo leggero viola all'hover delle sottovoci */
    color: var(--colore-viola-hover) !important;
}

/* Link del telefono a destra */
.link-viola-contatto {
    color: var(--colore-viola);
    font-size: 1.05rem;
    transition: opacity 0.2s;
}
.link-viola-contatto:hover {
    opacity: 0.8;
}

/* Stile per l'icona di WhatsApp dinamica */
.link-whatsapp-pulsante {
    color: #25D366 !important;
    transition: transform 0.2s ease-in-out;
}
.link-whatsapp-pulsante:hover {
    color: #1bd741;
    transform: scale(1.15); /* Effetto zoom molto moderno quando ci si passa sopra */
}
.me-1-5 {
    margin-right: 0.35rem;
}


/* GESTIONE HOVER SUI DROP-DOWN (Solo per schermi desktop grandi) */
@media (min-width: 1200px) {
    /* Crea un ponte invisibile per non far perdere il focus al mouse */
    .custom-dropdown {
        position: relative;
        padding-bottom: 10px; /* Estende l'area sensibile verso il basso */
        margin-bottom: -10px;
    }

    .custom-dropdown:hover .dropdown-menu {
        display: block;
        /* Elimina il margine distanziatore nativo di BS5 che causava la chiusura */
        margin-top: 0 !important;
        /* Sposta leggermente il sottomenu per allinearlo visivamente senza rompere l'hover */
        transform: translateY(0);
    }

    .border-start-xl {
        border-left: 1px solid #dee2e6 !important;
    }
}


/* FOOTER */
/* STILIZZAZIONE FOOTER VIOLA ACCESSIBILE */
.custom-footer {
    background-color: #6f42c1 !important;
    color: #ffffff !important;
    font-size: 1rem;
}

/* Gestione dei link interni al footer */
.footer-link {
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    border-bottom-color: #ffffff;
}

/* Icona mappa ed effetti speciali */
.footer-map-link i {
    transition: transform 0.2s ease-in-out, opacity 0.2s;
}
.footer-map-link:hover i {
    transform: scale(1.2);
    opacity: 0.9;
}

/* Pulsante Torna Su */
.torna-su {
    transition: transform 0.2s ease-in-out, opacity 0.2s;
    opacity: 0.85;
}
.torna-su:hover {
    transform: translateY(-4px); /* Simpatico effetto sollevamento */
    opacity: 1;
}

/* Sfumatura per l'immagine della licenza Creative Commons */
.footer-cc-img:hover {
    opacity: 1 !important;
}
/* FINE ... FOOTER */





/* HOME PAGE */

/* Pulsante Viola Personalizzato */
.btn-purple {
    background-color: var(--purple-brand);
    color: #ffffff;
    border: none;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}
.btn-purple:hover, .btn-purple:focus {
    background-color: var(--purple-brand-hover);
    color: #ffffff;
}
.btn-purple:active {
    transform: scale(0.98);
}

/* Pulsante WhatsApp Grande */
.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: #ffffff;
    border: none;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.btn-whatsapp:hover, .btn-whatsapp:focus {
    background-color: var(--whatsapp-color-hover);
    color: #ffffff;
}

/* Link Viola per le email o testi */
.text-purple {
    color: var(--purple-brand) !important;
}
.text-purple-link {
    color: var(--purple-brand);
    font-weight: 500;
}
.text-purple-link:hover {
    color: var(--purple-brand-hover);
    text-decoration: underline !important;
}

/* Ottimizzazione immagini responsive della Home */
.home-hero-img {
    max-height: 420px;
    object-fit: cover;
    width: 85%;
}

.border-purple-custom {
    border-color: #6f42c1 !important;
}


/* Card ad effetto moderno con micro-interazione all'hover */
.custom-home-card {
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
.custom-home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08) !important;
}

/* Gestione icone di Font Awesome 6 */
.icon-wrapper i {
    font-size: 2.5rem;
}

/* FINE ... HOME PAGE */





/* CHI SONO */
/* BACKGROUND VIOLA DI BRAND COERENTE */
.bg-purple {
    background-color: #6f42c1 !important;
}

/* Stile per l'Avatar di Profilo circolare */
.profile-avatar-img {
    width: 280px;
    height: 280px;
    object-fit: cover; /* Taglia l'immagine a cerchio perfetto senza deformarla */
}

/* BOX ICONA TIMELINE */
.icon-box-timeline {
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.15);
}

/* EFFETTI E STRUTTURA DELLA TIMELINE ASIMMETRICA */
.timeline-container {
    border-color: #e9ecef !important;
}

/* Il pallino sulla linea per ogni voce del curriculum */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -23px; /* Si posiziona perfettamente sopra la linea di confine sinistra */
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border: 3px solid #6f42c1;
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.2s ease-in-out;
}

/* Effetto interattivo quando l'utente legge i corsi passandoci sopra */
.timeline-item {
    transition: padding-left 0.2s ease-in-out;
}
.timeline-item:hover {
    padding-left: 6px;
}
.timeline-item:hover::before {
    background-color: #6f42c1; /* Il pallino si riempie di viola all'hover */
}

/* Lettere leggermente distanziate per l'albo professionale */
.uppercase-tracking {
    letter-spacing: 0.3px;
    line-height: 1.6;
}

/* FINE ... CHI SONO*/


/* Miniature dei servizi allineate e perfette */
.service-thumb {
    height: 180px;
    object-fit: cover; /* Taglia l'immagine in modo armonioso */
    transition: transform 0.4s ease-in-out;
}

/* Leggero zoom dell'immagine quando l'utente passa il mouse sulla scheda */
.custom-home-card:hover .service-thumb {
    transform: scale(1.04);
}




/* SFONDO DINAMICO GRADIENTE */
.bg-modern-gradient {
    background: radial-gradient(circle at 10% 20%, rgba(242, 228, 248, 0.4) 0%, rgba(255, 255, 255, 1) 90%);
}

/* EFFETTO CARD HIGH-END (Form e Istruzioni) */
.card-modern-instructions,
.card-modern-form {
    border-radius: 1.25rem !important;
    box-shadow: 0 1.5rem 4rem rgba(111, 66, 193, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-modern-form:hover {
    box-shadow: 0 2rem 5rem rgba(111, 66, 193, 0.09) !important;
}

/* STRUTTURA TIMELINE NUMERATA DELLE ISTRUZIONI */
.step-timeline .step-number {
    position: absolute;
    left: -17px;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: #6f42c1;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.2);
}
.border-purple-light {
    border-color: #f2e4f8 !important;
}



/* MINIMAL BOX INFORMAZIONI BANCARIE */
.bank-details-box {
    background-color: #fcf8fe !important;
    border-left-color: #6f42c1 !important;
}
.selectable-text {
    user-select: all; /* Permette al cliente di copiare l'IBAN con un solo click */
}

/* EFFETTO INPUT FLUTTUANTI PREMIUM (Form Floating Customization) */
.modern-input {
    border: 1.5px solid #e2d7f5 !important;
    border-radius: 0.75rem !important;
    color: #333333 !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.modern-input:focus {
    border-color: #6f42c1 !important;
    box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.12) !important;
}
.form-floating > label {
    color: #7d6e95 !important;
    padding-left: 1rem;
}

/* DRAG & DROP / FILE UPLOAD AREA STILIZZATA */
.modern-file-upload {
    background-color: #faf8ff !important;
    border-style: dashed !important;
    border-width: 2px !important;
    border-color: #cbb5f1 !important;
    border-radius: 0.75rem !important;
}

/* PULSANTE PREMIUM ANIMATO CON SFUMATURA CROMATICA */
.btn-premium-submit {
    background: linear-gradient(135deg, #6f42c1 0%, #8553d1 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.25);
    transition: all 0.3s ease-in-out;
}
.btn-premium-submit:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #6f42c1 100%);
    box-shadow: 0 12px 28px rgba(111, 66, 193, 0.35);
    transform: translateY(-2px);
}
.btn-premium-submit:active {
    transform: translateY(1px);
}

/* Testi ausiliari */
.max-width-md { max-width: 650px; }
.fw-extrabold { font-weight: 800; }
.tracking-wide { letter-spacing: 1px; }
.xsmall { font-size: 0.75rem; }





/* CONFERMA INVIO */
/* SFONDO MORBIDO VERDE PER L'ICONA DEL SUCCESSO */
.bg-success-light {
    background-color: rgba(25, 135, 84, 0.08) !important;
    width: 100px;
    height: 100px;
}

/* BACKGROUND PURPLE LIGHT COORDINATO CON IL BRAND */
.bg-purple-light {
    background-color: #f2e4f8 !important;
}

/* PERSONALIZZAZIONE CARD DI CONFERMA SUCCESS */
.card-modern-success {
    border-radius: 1.5rem !important;
    box-shadow: 0 2rem 5rem rgba(111, 66, 193, 0.06) !important;
    transition: transform 0.3s ease-in-out;
}
.card-modern-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 2.5rem 6rem rgba(111, 66, 193, 0.1) !important;
}

/* ANIMAZIONE DISCRETA SULL'ICONA AL CARICAMENTO PAGINA */
@keyframes bounceLittle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.animate-bounce {
    animation: bounceLittle 2s infinite ease-in-out;
}
/* FINE ... CONFERMA INVIO */





/* GALLERIA ... LO STUDIO */
/* STRUTTURA DELLE CARD DELLA GALLERIA PREMIUM */
.custom-gallery-card {
    border-radius: 1rem !important;
    box-shadow: 0 0.5rem 1.5rem rgba(111, 66, 193, 0.04) !important;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.custom-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2.5rem rgba(111, 66, 193, 0.08) !important;
}

/* FORZATURA GEOMETRICA DELLE IMMAGINI (Taglio perfetto 4:3) */
.gallery-img {
    height: 230px;
    object-fit: cover; /* Ritaglia l'immagine riempiendo lo spazio senza schiacciarla */
    width: 100%;
    transition: transform 0.4s ease-in-out;
}
.custom-gallery-card:hover .gallery-img {
    transform: scale(1.03); /* Micro zoom immersivo all'hover */
}

/* OVERLAY CON LENTE D'INGRANDIMENTO (Effetto moderno) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(111, 66, 193, 0.4); /* Sfumatura viola semitrasparente */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
}
.gallery-link:hover .gallery-overlay {
    opacity: 1;
}

/* BACKGROUND PURPLE LIGHT COORDINATO CON IL BRAND */
.bg-purple-light {
    background-color: #f2e4f8 !important;
}
/* FINE ... GALLERIA ... LO STUDIO */





/* GALLERIA ... VIDEO TRATTAMENTI */
/* ARROTONDAMENTO FLUIDO PER I LETTORI VIDEO IN 16:9 */
.ratio-16x9 {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    overflow: hidden;
}
.ratio video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita le bande nere laterali adattando il video al box */
}

/* FINE ... GALLERIA ... VIDEO TRATTAMENTI */








/* COOKIE - PRIVACY */
/* SOVRASCRITTURA PREMIUM BANNER COOKIE NIBIRUMAIL */
#nibirumail_cookie_advice {
    background: rgba(255, 255, 255, 0.95) !important; /* Passato da nero a bianco sfumato moderno */
    color: #333333 !important; /* Testo scuro ad alta leggibilità */
    box-shadow: 0 -10px 40px rgba(111, 66, 193, 0.08) !important; /* Ombra morbida viola superiore */
    border-top: 3px solid #6f42c1 !important; /* Linea di contrasto viola istituzionale */
    padding: 20px 24px !important; /* Più respiro e spazio interno */
    font-size: 0.92rem !important; /* Carattere più grande e leggibile rispetto ai 12px originari */
    font-family: system-ui, -apple-system, sans-serif !important;
    backdrop-filter: blur(10px); /* Effetto vetro sfocato premium sui browser moderni */
}

/* Stilizzazione dei pulsanti agganciati all'interno della stringa JavaScript */
#nibirumail_cookie_advice a {
    text-decoration: none !important; /* Rimosse le vecchie sottolineature brutte di sistema */
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
}

/* Pulsante Leggi la Policy (Viola) */
#nibirumail_cookie_advice .btn-purple {
    background-color: #6f42c1 !important;
    color: #ffffff !important;
    border: none !important;
    transition: background-color 0.2s ease;
}
#nibirumail_cookie_advice .btn-purple:hover {
    background-color: #5a32a3 !important;
}

/* Pulsante Accetto (Verde) */
#nibirumail_cookie_advice .btn-success {
    background-color: #198754 !important;
    color: #ffffff !important;
    border: none !important;
    transition: background-color 0.2s ease;
}
#nibirumail_cookie_advice .btn-success:hover {
    background-color: #157347 !important;
}

/* Ottimizzazione spaziature su schermi piccoli (Mobile) */
@media (max-width: 767.98px) {
    #nibirumail_cookie_advice {
        text-align: center !important;
        font-size: 0.88rem !important;
    }
    #nibirumail_cookie_advice a {
        display: block !important;
        margin: 8px auto 0 auto !important;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}
/* FINE ... COOKIE - PRIVACY */




.text-muted {
    text-transform: uppercase;
}
.torna-su {
    margin-left: 300px;
    opacity: 0.2;
}


