/* Palette Cromatica e Variabili Strutturali */
:root {
    --color-bg-deep: #0f0c1b;
    --color-bg-soft: #161229;
    --color-gold: #d4af37;
    --color-gold-glow: rgba(212, 175, 55, 0.3);
    --color-purple: #8152cc;
    --color-text-muted: #a395b8;
    --font-serif: 'Playfair Display', 'Georgia', serif;
}

/* Gestione Spaziature Elitarie (Whitespace) */
.section-premium {
    padding-top: 7.5rem !important;
    padding-bottom: 7.5rem !important;
    background-color: var(--color-bg-deep);
}

.tracking-wide-premium {
    letter-spacing: 3px !important;
}

/* Stile Hero Section */
.hero-esoteric {
    background: linear-gradient(180deg, rgba(15, 12, 27, 0.4) 0%, var(--color-bg-deep) 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-serif);
    color: var(--color-gold) !important;
    font-weight: 700;
    text-shadow: 0 0 20px var(--color-gold-glow);
}

/* Componenti d'Interfaccia Minimali (Pulsanti Oro Antico) */
.btn-esoteric-outline {
    background: transparent !important;
    border: 1px solid var(--color-gold) !important;
    color: var(--color-gold) !important;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.9rem 2.2rem;
    border-radius: 0px; /* Taglio geometrico minimale premium */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-esoteric-outline:hover {
    background: var(--color-gold) !important;
    color: var(--color-bg-deep) !important;
    box-shadow: 0 0 25px var(--color-gold-glow);
    transform: translateY(-2px);
}

/* Card e Contenitori Grafici Interattivi */
.card-esoteric-path {
    background: var(--color-bg-soft) !important;
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
    border-radius: 0px;
    transition: all 0.4s ease;
}

.card-esoteric-path:hover {
    border-color: var(--color-gold) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-4px);
}

.title-serif {
    font-family: var(--font-serif);
}
/* ========================================================================= */
/* ESTENSIONI STILE - BLOCCO 2: LA VISIONE                                    */
/* ========================================================================= */

/* Sfondi ed Isolamento Cromatico */
.bg-esoteric-deep {
    background-color: #0f0c1b !important;
}

.bg-esoteric-soft {
    background-color: rgba(22, 18, 41, 0.4) !important;
}

/* Colore di contrasto morbido per i testi esplicativi (Evita il text-muted invisibile) */
.text-muted-premium {
    color: #c0b7d1 !important;
}

/* Dettaglio geometrico ad accento verticale in oro antico */
.border-left-gold {
    border-left: 2px solid #d4af37 !important;
    border-top: 1px solid rgba(212, 175, 55, 0.05) !important;
    border-right: 1px solid rgba(212, 175, 55, 0.05) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.05) !important;
}

/* Transizioni fluide per effetti hover raffinati */
.transition-all-premium {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.transition-all-premium:hover {
    background-color: rgba(22, 18, 41, 0.75) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-left-color: #ffffff !important; /* L'accento passa ad un bianco lucido al passaggio */
    transform: translateY(-2px);
}
/* ========================================================================= */
/* ESTENSIONI STILE - BLOCCO 3: IL COLLEGIO DEGLI ESPERTI                     */
/* ========================================================================= */

/* Contenitore scheda relatore minimale */
.card-expert-wrapper {
    background: rgba(15, 12, 27, 0.4) !important;
    border: 1px solid rgba(212, 175, 55, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-expert-wrapper:hover {
    border-color: rgba(212, 175, 55, 0.4) !important;
    background: rgba(22, 18, 41, 0.6) !important;
    transform: translateY(-4px);
}

/* Placeholder geometrico dell'avatar */
.expert-avatar-placeholder {
    width: 90px;
    height: 90px;
    background: #0f0c1b;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0px; /* Rigorosamente squadrato per estetica d'élite */
    transition: all 0.4s ease;
}

.card-expert-wrapper:hover .expert-avatar-placeholder {
    border-color: var(--color-gold);
    box-shadow: 0 0 15px var(--color-gold-glow);
}

/* Link di approfondimento minimal */
.link-premium-arrow {
    text-decoration: none !important;
    font-size: 0.7rem !important;
    letter-spacing: 2px !important;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.link-premium-arrow:hover {
    color: #ffffff !important;
}

.link-premium-arrow .small-icon {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.link-premium-arrow:hover .small-icon {
    transform: translateX(4px);
}
/* ========================================================================= */
/* ESTENSIONI STILE - BLOCCO 4: I SENTIERI SAPIENZIALI                       */
/* ========================================================================= */

/* Struttura base del contatore numerico esoterico */
.path-number {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 2px;
}

.path-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-gold);
    transform: scaleX(0.4);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Modifiche dinamiche all'hover sulla card macro-categoria */
.card-esoteric-path:hover .path-number::after {
    transform: scaleX(1);
}

.card-esoteric-path:hover h3.text-gold {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* Ottimizzazione stacco bordi per il sottomenu delle card */
.border-dark-subtle {
    border-color: rgba(74, 55, 101, 0.25) !important;
}
/* ========================================================================= */
/* ESTENSIONI STILE - BLOCCO 5: PRIVATI & ASSOCIAZIONI                       */
/* ========================================================================= */

/* Sfondo specifico della sezione con micro-gradiente viola mistico */
.bg-esoteric-box-texture {
    background: linear-gradient(135deg, #0f0c1b 0%, #130e24 100%) !important;
}

/* Il guscio protettivo del modulo Tailor-Made */
.tailor-made-container {
    background-color: #161229 !important;
    border: 1px solid #d4af37 !important; /* Sigillo perimetrale in oro antico */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transition: box-shadow 0.4s ease;
}

.tailor-made-container:hover {
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.1);
}

/* Filigrana Esoterica di sfondo che respira geometricamente */
.esoteric-watermark-bg {
    position: absolute;
    bottom: -30px;
    right: 5%;
    font-size: 14rem;
    color: rgba(212, 175, 55, 0.02); /* Quasi impercettibile, per veri cultori */
    pointer-events: none;
    transform: rotate(-15deg);
    transition: color 0.5s ease, transform 0.5s ease;
}

.tailor-made-container:hover .esoteric-watermark-bg {
    color: rgba(212, 175, 55, 0.04);
    transform: rotate(-10deg) scale(1.05);
}

/* Pulsante dedicato con transizione oro invertita */
.btn-tailor-premium {
    padding: 1.1rem 2.4rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Separatori soft per la palette di testata */
.border-purple-subtle {
    border-color: rgba(129, 82, 204, 0.15) !important;
}
/* ========================================================================= */
/* ESTENSIONI STILE - BLOCCO 6: PRE-FOOTER DI CORTESIA                      */
/* ========================================================================= */

/* Link del pre-footer minimali */
.footer-link-premium {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-link-premium:hover {
    color: #d4af37 !important; /* Accensione oro antico all'hover */
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Scatola di contenimento del sigillo tecnico INTERINCOMING */
.sigillo-organizzativo-box {
    border-radius: 0px;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: border-color 0.4s ease;
}

.sigillo-organizzativo-box:hover {
    border-color: rgba(212, 175, 55, 0.25) !important;
}
/* ========================================================================= */
/* RISOLUZIONE CRITICITÀ OVERFLOW-X E CONTENIMENTO GRIGLIA MOBILE            */
/* ========================================================================= */

/* Blocca tassativamente lo scivolamento orizzontale dell'intera pagina */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

#homepage-esoteric-flow {
    overflow-x: hidden !important;
    width: 100% !important;
}

/* Correzione di sicurezza per impedire alle righe di Bootstrap di sbordare */
.section-premium .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Ottimizzazione padding per le card dei relatori su schermi piccoli */
@media (max-width: 767.98px) {
    .card-expert-wrapper {
        margin-left: 10px !important;
        margin-right: 10px !important;
        padding: 2rem 1.5rem !important; /* Rende la spaziatura interna più compatta su mobile */
    }
    
    .section-premium {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important; /* Riduce i maxi-spazi bianchi desktop che su mobile allungano troppo */
    }
}
/* ========================================================================= */
/* ARMONIZZAZIONE CROMATICA: SFONDO SCALDATO TOR TORA/FANGO CHIARISSIMO      */
/* ========================================================================= */

/* Sostituisce il grigio freddo con un fango/tortora chiarissimo e caldo */
.section-premium.bg-esoteric-soft,
section.bg-esoteric-soft {
    background-color: #dcd7cf !important; /* Grigio fango/tortora caldissimo e desaturato */
}

/* Aggiornamento dei testi per garantire un contrasto impeccabile sul nuovo sfondo */
.section-premium.bg-esoteric-soft h2,
.section-premium.bg-esoteric-soft .text-gold {
    color: #161229 !important; /* I titoli passano al viola profondo per massima leggibilità */
    text-shadow: none !important;
}

.section-premium.bg-esoteric-soft span.text-gold {
    color: #8152cc !important; /* Il monogramma di testata passa al viola mistico */
    font-weight: 600;
}

.section-premium.bg-esoteric-soft p.text-muted-premium {
    color: #4a3e56 !important; /* Testo introduttivo fango scuro leggibile */
}

/* Bilanciamento cromatico delle card dei relatori per farle risaltare sul tortora */
.card-expert-wrapper {
    background: #1a152e !important; /* Sfondo viola-nero compatto ed elitario */
    border: 1px solid rgba(212, 175, 55, 0.25) !important; /* Bordo oro antico più marcato */
    box-shadow: 0 15px 35px rgba(22, 18, 41, 0.15);
}

.card-expert-wrapper h3.text-white {
    color: #ffffff !important;
}

.card-expert-wrapper p.text-gold {
    color: #d4af37 !important; /* Ruolo del relatore in oro splendente */
}

.card-expert-wrapper p.text-muted-premium {
    color: #c0b7d1 !important; /* Testo biografico interno in lilla chiaro leggibile */
}

/* L'avatar di sfondo si scurisce per aumentare il distacco tridimensionale */
.expert-avatar-placeholder {
    background: #0f0c1b !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}
