/* 1. SETUP & RESET */
:root {
    --bg: #050505;
    --gold-bright: #f5d76e; 
    --font-garamond: 'EB Garamond', serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: var(--gold-bright);
    font-family: var(--font-garamond) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER & BRAND --- */
.main-header {
    margin-top: 0 !important;     /* <--- AZZERATO: inchioda l'header al soffitto */
    padding-top: 20px !important; /* <--- Leggerissimo respiro interno per non far sbattere le lettere */
    text-align: center;
    background-color: #000;       /* Assicura che la fascia sia nera fino in cima */
}

.brand-name {
    font-size: 3.5rem;
    letter-spacing: 18px;
    color: var(--gold-bright);
    margin: 0;
    text-transform: uppercase;
    font-weight: 300;
}

.advisor-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--gold-bright);
    margin-top: 15px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- MENU NAVIGATION (STILE LUXURY 11PX) --- */
.nav-top {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-top a {
    color: var(--gold-bright) !important;
    text-decoration: none !important;
    font-size: 11px !important;      /* <--- Ridotto a 11px come richiesto */
    letter-spacing: 3px !important;  /* Aumentato il respiro tra le lettere */
    font-weight: 500 !important;
    text-transform: uppercase !important;
    margin: 0 15px !important;
    transition: color 0.3s ease;
}

.nav-top a:hover {
    color: #fff !important;
}

.header-separator {
    width: 80% !important;
    max-width: 1000px !important;
    height: 1px !important;
    margin: 10px auto 0 !important;
    background: linear-gradient(to right, rgba(245, 215, 110, 0) 0%, rgba(245, 215, 110, 1) 50%, rgba(245, 215, 110, 0) 100%) !important;
}

/* --- CONTENT AREA --- */
main.portal {
    flex: 1;
    width: 100%;
    max-width: 100% !important; /* Il main deve prendere tutto lo schermo */
    display: flex;
    justify-content: center;
    align-items: stretch !important; /* <--- FONDAMENTALE: Tira la pergamena in verticale */
    padding: 0 !important;
}

.pergamena-box {
    background-image: url('../immagini/pergamena.webp'); 
    background-size: contain;  
    background-position: center;
    background-repeat: no-repeat;
    
    width: 100% !important; 
    max-width: 1600px !important; 
    min-height: 900px !important;  /* <--- FORZATURA ASSOLUTA: Box altissimo */
    margin: 0 auto !important; 
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    box-shadow: none;
    border: none;
}

/* --- PIÈ DI PAGINA (FOOTER) --- */
footer {
    width: 100%;
    margin-top: 0 !important; 
    padding: 0 20px 30px !important; /* <--- AZZERATO IL PADDING TOP (prima era 60px o 40px) */
    text-align: center;
    color: var(--gold-bright);
    background-color: var(--nero);
}

.footer-separator {
    width: 100%;
    max-width: 1050px;
    height: 1px;
    margin: 0 auto 35px !important; /* <--- AZZERATO IL MARGIN TOP (prima era 40px) */
    background: linear-gradient(to right, rgba(245, 215, 110, 0) 0%, rgba(245, 215, 110, 1) 50%, rgba(245, 215, 110, 0) 100%);
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.f-col { 
    flex: 1; 
    line-height: 1.3 !important; /* <--- Ridotto da 1.6 a 1.3 per avvicinare le righe */
    text-align: left;
}

.f-col p {
    margin: 0 0 2px 0 !important; /* <--- Ridotto lo spazio tra un paragrafo e l'altro a 2px */
    font-size: 0.85rem;
}

.f-col a { 
    color: inherit; 
    text-decoration: none; 
}

.f-col a:hover { text-decoration: underline; }

.f-center { text-align: center; }
.f-right { text-align: right; }

.f-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px !important;
}

.f-socials-minimal a {
    border: 1px solid rgba(245, 215, 110, 0.35);
    padding: 2px 8px;
    margin-top: 5px;
    display: inline-block;
}

.f-disclaimer-tiny {
    margin-top: 40px;
    padding-bottom: 30px;
    font-size: 0.75rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-columns { flex-direction: column; align-items: center; text-align: center; }
    .f-col, .f-right { text-align: center; }
    .brand-name { font-size: 2.5rem; letter-spacing: 8px; }
}
