/* static/css/base.css - STILI GLOBALI (Sfondo, Header, Footer) */

:root {
    --bg-dark-fallback: #121212;
    --text-main: #e0e0e0;
    --hot-pink: #ff1493; 
    --hot-pink-dim: rgba(255, 20, 147, 0.3);
    --hot-pink-glow: rgba(255, 20, 147, 0.15);
    --cream-white: #fdfbf7; 
    --glass-bg: rgba(20, 20, 20, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark-fallback);
    background-image: url('../assets/texture.png');
    background-repeat: repeat;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding: 0.5rem 2rem;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 1px;
}

/* --- HEADER E NAVIGAZIONE SNELLA --- */
.slim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    
    /* I 3 MARGINI NEGATIVI PER ATTACCARLA AI BORDI */
    margin-top: -0.5rem; /* Tira la barra verso il soffitto */
    margin-left: -2rem;  /* Tira la barra verso sinistra */
    margin-right: -2rem; /* Tira la barra verso destra */
    
    padding: 0.4rem 2rem;  
    
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-dark-fallback); 
}

/* IL LOGO IMMAGINE NELLA BARRA (Piccolo e discreto) */
.nav-logo {
    height: 45px; /* Rimpicciolito per non rubare la scena alla Hero Section */
    border: none; 
    box-shadow: none; 
    transition: all 0.3s ease;
    display: block; 
}

.nav-logo:hover {
    transform: scale(1.05); 
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav ul li {
    font-size: 0.95rem;
    letter-spacing: 1.8px;
}

/* --- CORREZIONE LINK MENU --- */
nav ul li a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: var(--hot-pink);
    text-shadow: 0 0 10px var(--hot-pink-dim);
}

/* --- FOOTER --- */
footer {
    text-align: right;
    margin-top: 5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-family: 'Playfair Display', serif;
    letter-spacing: 2.5px;
    color: #888;
}

footer p {
    font-size: 0.95rem;
}

/* =========================================
   RESPONSIVE MENU (MOBILE ONLY)
   ========================================= */

/* L'icona è nascosta su PC */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001; 
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    /* Barra più sottile e hamburger a destra */
    .slim-header {
        position: relative; 
        flex-direction: row; 
        justify-content: flex-end; 
        min-height: 55px; /* Abbassato da 75px per una barra molto più fina */
        padding: 0.4rem 1.5rem; /* Margini laterali regolati */
    }

    /* Posiziona il logo al centro esatto */
    .logo-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%); 
    }

    .hamburger {
        display: flex;
    }

    /* Nascondi il menu classico e lo trasforma in tendina */
    nav {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        border-bottom: 1px solid rgba(255, 0, 127, 0.3);
        display: none; 
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    }

    /* La classe che si attiva col JavaScript */
    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column; 
        align-items: center;
        gap: 2rem;
    }

    /* Animazione Hamburger -> X */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--hot-pink);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--hot-pink);
    }
}