html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top, #3b0a0a 0%, #1a0000 100%);
    font-family: "Cinzel", "Georgia", serif;
    color: #f8e9c6;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

nav {
    background: linear-gradient(to bottom, #4d0000, #2b0000);
    border-bottom: 2px solid #b78a28;
    color: #f8e9c6;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

nav a {
    color: #f8e9c6;
    text-decoration: none;
    margin: 0 25px;
    font-weight: bold;
    letter-spacing: 0.5px;
    font-size: 1.05em;
    transition: 0.3s ease;
}

nav a:hover {
    color: #ffd86b;
    text-shadow: 0 0 8px #ffd86b;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid #b78a28;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(255, 215, 100, 0.4);
}

h1 {
    margin-top: 25px;
    font-size: 2.2em;
    color: #f5d78a;
    text-shadow: 0 0 8px rgba(255, 220, 100, 0.3);
}

p {
    max-width: 600px;
    font-size: 1.1em;
    color: #f0e2b5;
    margin-top: 15px;
    line-height: 1.7;
}

.button {
    margin-top: 40px;
    background: linear-gradient(to bottom, #b78a28, #a0761a);
    color: #2b0000;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.button:hover {
    background: linear-gradient(to bottom, #d8b84a, #b78a28);
    transform: scale(1.06);
    box-shadow: 0 0 15px rgba(255, 220, 100, 0.5);
}

/* 3. Il tuo footer con il margin-top: auto funzionerà alla perfezione! */
footer {
    text-align: center;
    padding: 20px;
    background: #2b0000;
    border-top: 2px solid #b78a28;
    color: #f8e9c6;
    font-size: 14px;
    margin-top: auto;
    /* Questa è la riga magica che spinge il footer in fondo */
    font-family: "Georgia", serif;
    box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.4);
}

/* Nascondiamo la checkbox reale */
.menu-checkbox {
    display: none;
}

/* Nascondiamo il pulsante label su Desktop */
.menu-button {
    display: none;
    font-size: 24px;
    color: #f8e9c6;
    border: 2px solid #b78a28;
    padding: 4px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    justify-content: center;
}

/* ==========================================
   STILI MOBILE (Sotto i 768px) - Pulsante a SINISTRA
   ========================================== */
@media (max-width: 768px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        /* Spinge il pulsante a SINISTRA */
        align-items: center;
        padding: 10px 20px;
    }

    .menu-button {
        display: inline-block;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }

    .menu-checkbox:checked~.nav-links {
        display: flex;
    }

    .nav-links a {
        display: block;
        text-align: left;
        /* Allinea il testo a sinistra */
        padding: 12px 0;
        border-bottom: 1px solid rgba(183, 138, 40, 0.2);
    }
}