/* style.css - FIX CONTRASTO */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    /* --- SFONDI DEEP BLACK --- */
    --bg-body: #050505;       /* Nero profondo */
    --bg-card: #141414;       /* Grigio antracite molto scuro */
    --bg-card-hover: #1f1f1f; /* Hover leggermente più chiaro */
    
    /* --- TESTI AD ALTO CONTRASTO --- */
    --text-main: #ffffff;     /* Bianco PURO per leggibilità massima */
    --text-muted: #d1d1d1;    /* Grigio CHIARO (prima era troppo scuro) */
    --accent-gold: #CBA500;   /* Brand Gold */
    
    /* --- BORDI --- */
    --border-color: #333333;  /* Bordi un po' più chiari per definire gli spazi */
}

/* --- RESET GENERALE --- */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important; /* Forza i titoli bianchi */
    font-weight: 400;
    letter-spacing: -0.5px;
}

p, span, div, li {
    color: var(--text-main); /* Assicura che il testo normale sia bianco */
}

a { 
    color: var(--text-main); 
    text-decoration: none; 
    transition: 0.2s; 
}
a:hover { color: var(--accent-gold); }

/* --- OVERRIDE BOOTSTRAP (Cruciale per la visibilità) --- */
.text-muted {
    color: var(--text-muted) !important; /* Sovrascrive il grigio scuro di Bootstrap */
}
.text-secondary {
    color: var(--text-muted) !important;
}
.small, small {
    font-size: 0.85em;
    color: var(--text-muted); /* Anche le scritte piccole devono essere chiare */
}

/* --- UTILITIES PBV --- */
.font-serif { font-family: 'Playfair Display', serif; }
.text-gold { color: var(--accent-gold) !important; }
.bg-gold { background-color: var(--accent-gold) !important; color: #000; }
.border-gold { border-color: var(--accent-gold) !important; }

/* --- NAVBAR --- */
.navbar-custom {
    background-color: rgba(5, 5, 5, 0.95); /* Quasi opaco per leggere meglio sopra */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.nav-link {
    color: #e0e0e0 !important; /* Bianco sporco */
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-gold) !important;
}

/* --- BUTTONS --- */
.btn-primary-pbv {
    background-color: var(--accent-gold);
    color: #000000;
    font-weight: 700;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}
.btn-primary-pbv:hover { 
    background-color: #ffd700; /* Oro più luminoso all'hover */
    color: #000; 
    box-shadow: 0 0 15px rgba(203, 165, 0, 0.5);
}

.btn-outline-pbv {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: #ffffff; /* Testo bianco */
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.btn-outline-pbv:hover { 
    border-color: var(--accent-gold); 
    color: var(--accent-gold); 
    background-color: rgba(203, 165, 0, 0.1);
}

/* --- CARDS --- */
.card-pbv {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
}
.card-pbv:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); /* Ombra profonda */
}

/* --- HERO --- */
.hero-section {
    padding: 80px 0;
    text-align: center;
}
.hero-quote {
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.5rem;
    color: #e0e0e0; /* Molto chiaro */
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
    font-style: italic;
}

/* --- FORMS & MODALS --- */
.modal-content {
    background-color: #1a1a1a;
    border: 1px solid var(--accent-gold);
}
.modal-header { border-bottom: 1px solid #333; }
.modal-title { color: var(--accent-gold); }
.btn-close { filter: invert(1); } /* Rende la X bianca */

.form-control, .form-select {
    background-color: #000000;
    border: 1px solid #444;
    color: #ffffff;
}
.form-control::placeholder {
    color: #888888; /* Placeholder visibile */
}
.form-control:focus, .form-select:focus {
    background-color: #050505;
    border-color: var(--accent-gold);
    color: #ffffff;
    box-shadow: none;
}

/* --- INTELLIGENCE DOSSIER STYLES (FIXED) --- */

/* 1. IL BOX PRINCIPALE (Bordo Oro Sicuro) */
.intelligence-box {
    background-color: #000000;      /* Sfondo Nero */
    border: 2px solid #CBA500 !important; /* BORDO ORO FORZATO */
    border-radius: 6px;
    position: relative;
    min-height: 500px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    margin-top: 20px; /* Spazio extra sopra il box */
}

/* 2. MENU DI NAVIGAZIONE (Gold Tabs) */
.nav-pills-gold {
    display: flex;
    gap: 15px;                    /* Spazio tra i bottoni */
    margin-bottom: 30px;          /* Distanza dal box sottostante */
    flex-wrap: wrap;
    border: none;
}

.nav-pills-gold .nav-link {
    border: 1px solid #CBA500;    /* Bordo Oro */
    background-color: #000000;    /* Sfondo Nero */
    color: #CBA500;               /* Scritta Oro */
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* HOVER */
.nav-pills-gold .nav-link:hover {
    color: #ffffff;
    background-color: #111111; 
    box-shadow: 0 0 10px rgba(203, 165, 0, 0.3);
}

/* ATTIVO (Override Bootstrap Blue) */
.nav-pills-gold .nav-link.active {
    background-color: #CBA500 !important; /* SFONDO ORO */
    color: #ffffff !important;            /* SCRITTA BIANCA */
    border-color: #CBA500 !important;     /* BORDO ORO */
}

/* 3. LOADER, BLUR & LOCK */
.gold-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.area-blur { filter: blur(8px); pointer-events: none; user-select: none; }

.lock-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Più scuro */
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* Segue il bordo del box */
}

.cta-box {
    background: #111;
    padding: 2.5rem;
    border: 1px solid #cba500;
    text-align: center;
    border-radius: 8px;
    max-width: 450px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}