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

body { 
    font-family: 'Roboto', sans-serif; 
    background: #000; 
    color: #eee; 
    line-height: 1.6; 
    overflow-x: hidden;
}

/* ==========================================
   HEADER & NAV
   ========================================== */
header { 
    background: #000; 
    color: #fff; 
    padding: 30px 0; 
    text-align: center; 
}

header h1 { 
    font-size: 2rem; 
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

nav a { 
    color: #888; 
    text-decoration: none; 
    margin: 0 20px; 
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.4s;
}

nav a.active, nav a:hover { 
    color: #fff; 
}

/* ==========================================
   HERO SECTION (HOME PAGE)
   ========================================== */
.hero { 
    position: relative; 
    width: 100%; 
    height: 90vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000; 
}

.hero img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Immagine sempre intera */
    filter: none; /* Immagine nitida e luminosa */
}

/* OMBRA INTELLIGENTE PER LEGGIBILITÀ */
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Crea una leggera ombra circolare solo al centro per far risaltare il testo */
    background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.hero-text { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center; 
    width: 100%;
    z-index: 10;
    /* Ombra esterna alle lettere per massima leggibilità */
    text-shadow: 0 2px 15px rgba(0,0,0,0.8); 
}

.hero-text h1 {
    font-weight: 700;
    letter-spacing: 2px;
}

/* ==========================================
   PULSANTE ELEGANTE (Minimalist Line)
   ========================================== */
.metal-btn {
    display: inline-block;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: transparent;
    border: none;
    /* Linea sottile di base */
    border-bottom: 1px solid rgba(255, 255, 255, 0.4); 
    cursor: pointer;
    transition: all 0.4s ease;
    margin: 15px 20px;
}

.metal-btn:hover, .metal-btn.active {
    color: #fff;
    border-bottom: 1px solid #fff; 
    letter-spacing: 5px; /* Effetto espansione elegante */
    padding-left: 10px;
    padding-right: 10px;
}

/* ==========================================
   SEZIONE BIOGRAFIA & GALLERIA
   ========================================== */
.bio { 
    max-width: 800px; 
    margin: 80px auto; 
    padding: 0 20px; 
    text-align: center;
    animation: fadeInPage 1.5s ease;
}

.bio img { 
    width: 100%; max-width: 500px; height: auto; 
    object-fit: contain; margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.bio p { font-size: 1.1rem; color: #999; font-weight: 300; line-height: 2; }

#gallery { padding: 80px 5%; text-align: center; }
.gallery-menu { margin-bottom: 50px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 15px; }
.gallery img { width: 100%; height: auto; transition: 0.6s ease; cursor: pointer; }
.gallery img:hover { opacity: 0.7; }

/* MODAL & FOOTER */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: #000; }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; object-fit: contain; }
.close { position: absolute; top: 30px; right: 40px; color: #fff; font-size: 30px; cursor: pointer; }

footer { background:#000; color:#444; text-align:center; padding:60px 0; font-size: 0.7rem; letter-spacing: 1px; }

@keyframes fadeInPage { from { opacity: 0; } to { opacity: 1; } }

@media(max-width: 768px) { 
    header h1 { font-size: 1.5rem; }
    .hero-text h1 { font-size: 1.8rem; }
    .metal-btn { font-size: 0.7rem; letter-spacing: 2px; }
}