/* --- RIMUOVE AURA BLU E FOCUS --- */
* {
    -webkit-tap-highlight-color: transparent;
}
button:focus, input:focus, a:focus {
    outline: none;
}

body {
    margin: 0;
    background-color: white;
    font-family: 'IBM Plex Mono', monospace;
    display: flex;
    /* Rimosso justify-content: center per non far litigare il contenuto con il footer */
    align-items: center;
    min-height: 100vh; 
    flex-direction: column;
    overflow-x: hidden; 
    overflow-y: auto; 
}

.content {
    flex-grow: 1; /* Prende tutto lo spazio centrale e ripristina la centratura perfetta */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0; 
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1vh 0; 
}

.animated-image {
    height: 25vh; 
    width: auto; 
    max-height: 400px; 
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.animated-image:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.image-label {
    margin-top: 0.5vh; 
    font-size: min(1.3em, 3.5vh); 
}

/* --- STILI HAMBURGER MENU (FIX Z-INDEX) --- */
.hamburger-menu {
    position: fixed; 
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.menu__btn {
    position: relative;
    display: flex;
    align-items: center;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 1002; 
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: black;
    transition-duration: .25s;
}

.menu__btn > span::before { content: ''; top: -8px; }
.menu__btn > span::after { content: ''; top: 8px; }

.menu__box {
    display: block;
    position: fixed;
    visibility: hidden;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: #ECEFF1;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
    transition-duration: .25s;
    z-index: 1000;
}

.menu__item {
    display: block;
    padding: 12px 24px;
    color: black;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 20px;
    text-decoration: none;
    transition-duration: .25s;
}

.menu__item:hover { background-color: #CFD8DC; }

#menu__toggle { display: none; }
#menu__toggle:checked ~ .menu__btn > span { transform: rotate(45deg); }
#menu__toggle:checked ~ .menu__btn > span::before { top: 0; transform: rotate(0deg); }
#menu__toggle:checked ~ .menu__btn > span::after { top: 0; transform: rotate(90deg); }
#menu__toggle:checked ~ .menu__box { visibility: visible; left: 0; }

/* =========================================
   STILI FOOTER
   ========================================= */
.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; 
    width: 100%;
    padding: 40px 20px 30px 20px; /* Aumentato il padding-bottom per staccarlo dal bordo basso */
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85em; 
    color: #555; 
    margin-top: auto; 
}

.footer-logo {
    height: 20px; 
    width: auto;
    object-fit: contain;
}

.site-footer a {
    color: black;
    font-weight: bold;
    text-decoration: none; 
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #888; 
    text-decoration: underline; 
}