/* --- VARIABILI E RESET --- */
:root {
    --bg-black: #050505;
    --card-bg: #0f0f0f;
    --gold: #d4af37;
    --gold-light: #f1d592;
    --white: #ffffff;
    --gray-text: #999999;
    --font-main: 'Inter', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.gold-text {
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- HEADER & NAV --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background-color: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo img {
    width: 182px;
    height: 35px;
    aspect-ratio: 182 / 35;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-desktop a:hover, .nav-desktop a.active {
    color: var(--gold);
}

/* --- HAMBURGER MENU --- */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.menu-btn span {
    width: 30px;
    height: 2px;
    background-color: var(--gold);
    transition: 0.3s;
}

/* --- FOOTER --- */
footer {
    padding: 60px 10%;
    background-color: #050505;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info p {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.footer-info span {
    color: #999999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-links a:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -15px;
    color: #222;
    pointer-events: none;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links a:not(:last-child)::after {
        display: none;
    }
}

/* --- RESET E CENTRATURA TOTALE FOOTER BOTTOM --- */
.footer-bottom {
    margin-top: 50px !important;
    padding: 30px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    
    /* Forza la disposizione verticale e centrata */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 20px !important;
}

.external-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important; /* Allineamento verticale */
    justify-content: center !important; /* Allineamento orizzontale */
    gap: 25px !important;
    width: 100% !important;
}

/* Fix per i link e i badge Iubenda che iniettano stili propri */
.external-links a, 
.external-links iframe, 
.iubenda-white {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important; /* Rimuove margini forzati da Iubenda */
    float: none !important; /* Evita che vadano a sinistra/destra */
}

/* Ridimensionamento e centratura Badge Bronze */
.external-links img {
    height: 45px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
    filter: grayscale(1);
    transition: 0.3s;
}

.external-links img:hover {
    filter: grayscale(0);
}

/* Sezione Social */
.social-links {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.social-links a {
    color: var(--gold) !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    letter-spacing: 2px !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    padding: 8px 20px !important;
    transition: 0.3s !important;
}

.social-links a:hover {
    background: rgba(212, 175, 55, 0.1) !important;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-black);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

@media (max-width: 991px) {
    .menu-overlay.active {
        display: flex;
        opacity: 1;
    }
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.nav-mobile a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .nav-desktop { display: none; }
    .menu-btn { display: flex; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .bio-container { grid-template-columns: 1fr; }
    
    .menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-btn.active span:nth-child(2) { opacity: 0; }
    .menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
}
