/* ==========================================================================
   MB "THE DIRECTOR" THEME - V5.0 (Luxury Corporate)
   Designed for High-Ticket Authority
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    /* --- COLOR PALETTE: AUTHORITY & WEALTH --- */
    --navy-dark: #020617;      /* Quasi nero, sfondo Hero */
    --navy-primary: #0f172a;   /* Blu istituzionale profondo */
    --navy-card: #1e293b;      /* Per card scure */
    
    /* Gold Gradient (Non un colore piatto, ma una lamina d'oro) */
    --gold-start: #C5A059;
    --gold-end: #E6C888;
    --gold-text: #b4862e;
    
    /* Neutrals */
    --text-main: #334155;      /* Grigio scuro per lettura */
    --text-muted: #64748b;     /* Grigio medio */
    --bg-body: #ffffff;
    --bg-light: #f8fafc;       /* Grigio chiarissimo ghiaccio */
    --border-light: #e2e8f0;

    /* --- SPACING SYSTEM (RHYTHM) --- */
    --section-pad: 120px;      /* Spazio ampio tra sezioni */
    --container-w: 1200px;
    
    /* --- EFFECTS --- */
    --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --radius: 4px;             /* Spigoli vivi/leggermente stondati = Professionalità */
}

/* =========================================
   BASE & RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    line-height: 1.7; 
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased; /* Font più nitidi su Mac */
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

/* =========================================
   TYPOGRAPHY (The "Financial Times" Look)
   ========================================= */
h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
    color: var(--navy-primary); 
    font-weight: 700; 
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive typography */
    margin-bottom: 1.5rem; 
    color: white; /* H1 è sempre in Hero */
}

h2 { 
    font-size: clamp(2rem, 4vw, 2.8rem); 
    margin-bottom: 1rem;
}

h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
    font-weight: 600;
}

p { margin-bottom: 1.5rem; font-weight: 300; font-size: 1.05rem; }

.text-center { text-align: center; }
.text-gold { color: var(--gold-text); }

/* Sottotitoli di sezione eleganti */
.section-subtitle {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--gold-text);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

/* =========================================
   COMPONENTS & BUTTONS (High End)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px; /* Spigoli quasi vivi */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Bottone "Luxury Gold" */
.btn-primary, .btn {
    background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4);
    filter: brightness(1.1);
}

/* Bottone Outline (Bordi) */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white !important;
    box-shadow: none;
}

.btn-outline:hover {
    background: white;
    color: var(--navy-primary) !important;
    border-color: white;
}

/* Bottone Navigazione */
.btn-nav {
    background: var(--navy-primary) !important;
    color: white !important;
    padding: 10px 24px;
    font-size: 0.85rem;
    box-shadow: none;
}
.btn-nav:hover { background: var(--navy-light) !important; }

/* =========================================
   HEADER (Glassmorphism Light)
   ========================================= */
.header {
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.header-wrap { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--navy-primary);
    line-height: 1;
    letter-spacing: -0.5px;
}

.logo span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: var(--gold-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    font-weight: 600;
}

.nav ul { display: flex; gap: 40px; align-items: center; }
.nav a { 
    font-size: 0.9rem; 
    font-weight: 500; 
    color: var(--navy-primary);
    position: relative;
}

/* Underline animation for menu */
.nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold-start);
    transition: width 0.3s;
}
.nav a:not(.btn-nav):hover::after, .nav a.active::after { width: 100%; }

.mobile-toggle { display: none; font-size: 1.5rem; color: var(--navy-primary); cursor: pointer; }

/* =========================================
   HERO SECTION (Cinematic Dark)
   ========================================= */
.hero {
    /* Sfondo complesso e profondo */
    background: 
        radial-gradient(circle at top right, rgba(30, 41, 59, 0.5), transparent 40%),
        linear-gradient(135deg, #020617 0%, #0f172a 100%);
    color: white;
    padding: 180px 0 140px; /* Molto spazio verticale */
    position: relative;
    overflow: hidden;
}

/* Pattern sottile sopra lo sfondo */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero p {
    color: #94a3b8;
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero strong { color: white; font-weight: 600; }

/* =========================================
   SECTIONS & CARDS (The "Boutique" Feel)
   ========================================= */
.section { padding: var(--section-pad) 0; position: relative; }
.bg-light { background-color: var(--bg-light); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; align-items: center; }

/* Le Card non sono piatte */
.card {
    background: white;
    padding: 50px 40px; /* Padding generoso */
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all 0.4s ease;
    position: relative;
    top: 0;
}

.card:hover {
    top: -10px; /* Lift effect */
    box-shadow: var(--shadow-soft);
    border-color: rgba(197, 160, 89, 0.3); /* Gold border on hover */
}

/* Icone eleganti */
.card-icon {
    width: 70px; height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--gold-text);
    transition: 0.3s;
}

.card:hover .card-icon {
    background: var(--navy-primary);
    color: white;
}

/* Liste "Check" personalizzate */
.check-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-main);
}

.check-list i {
    color: var(--gold-start);
    margin-right: 15px;
    margin-top: 5px;
    flex-shrink: 0;
}

/* =========================================
   FORMS (Clean & Trustworthy)
   ========================================= */
.form-box {
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover); /* Ombra più forte per il form */
    border-top: 5px solid var(--gold-start);
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    background: var(--bg-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
    color: var(--navy-primary);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold-start);
    background: white;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

/* =========================================
   FOOTER (Dark Mode Authority)
   ========================================= */
.footer {
    background-color: var(--navy-dark);
    color: #94a3b8;
    padding: 100px 0 40px;
    font-size: 0.95rem;
    border-top: 1px solid #1e293b;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.footer ul li { margin-bottom: 12px; }
.footer a { color: #cbd5e1; transition: 0.3s; }
.footer a:hover { color: var(--gold-start); padding-left: 5px; } /* Small movement on hover */

.socials { display: flex; gap: 20px; margin-top: 25px; }
.socials a { 
    width: 40px; height: 40px; 
    background: rgba(255,255,255,0.05); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%;
    transition: 0.3s;
}
.socials a:hover { background: var(--gold-start); color: white; transform: translateY(-3px); }

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* =========================================
   UTILITIES & COOKIE
   ========================================= */
#cookie-banner {
    position: fixed; bottom: 30px; right: 30px; max-width: 400px;
    background: white; padding: 25px; 
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    border-left: 5px solid var(--gold-start);
    z-index: 9999; display: none;
}
.cookie-btn {
    background: var(--navy-primary); color: white;
    padding: 8px 20px; border: none; margin-top: 15px; cursor: pointer;
    font-size: 0.85rem; font-weight: 600;
}

/* =========================================
   RESPONSIVE (Mobile Optimization)
   ========================================= */
@media (max-width: 1024px) {
    .container { max-width: 900px; }
    h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .header { height: 70px; }
    
    .nav { 
        display: none; position: absolute; top: 70px; left: 0; width: 100%; 
        background: white; padding: 30px; 
        box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
        border-top: 1px solid var(--border-light);
    }
    .nav.active { display: block; animation: slideDown 0.3s ease; }
    
    @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

    .nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
    .nav a { font-size: 1.1rem; display: block; width: 100%; }
    .nav .btn-nav { width: 100%; text-align: center; margin-top: 10px; }
    
    .mobile-toggle { display: block; }
    
    .grid-3, .grid-2, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    
    .hero { padding: 140px 0 80px; text-align: left; }
    .hero h1 { font-size: 2.5rem; line-height: 1.2; }
    .hero p { font-size: 1.1rem; margin-left: 0; }
    .hero .btn { width: 100%; text-align: center; margin-bottom: 15px; }
    .hero .btn-outline { margin-left: 0; }
    
    .section { padding: 80px 0; }
    .card { padding: 30px 20px; }
    
    #cookie-banner { left: 20px; right: 20px; bottom: 20px; width: auto; }
}