		 /* Reset e stili di base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Altezza pari all'intera finestra del browser */
    width: 100%;
}

/* --- INTESTAZIONE (HEADER) --- */
header {
    background-color: #d2d2f6; 
    color: black;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid #0d0dec;
}

.header-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
    background-color: #ddd; /* Colore di fallback se l'immagine manca */
}

.header-title {
    text-align: center;
    flex-grow: 1;
    padding: 0 20px;
}

.header-title h1 {
    font-size: 1.0rem;
    margin-bottom: 5px;
}

.header-title p {
    font-size: 1rem;
    opacity: 0.8;
}

/* --- CONTENITORE PRINCIPALE (LAYOUT) --- */
.main-container {
    display: flex;
    flex: 1; /* Spinge il footer in basso */
    max-width: 1200px;
    margin: 20px auto;
    width: 95%;
    background: #e4e4ef;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* --- BARRA LATERALE (SIDEBAR) --- */
aside {
    background-color: #d2d2f6;
    color: black;
    width: 250px;
    padding: 10px;
    flex-shrink: 0; /* Non rimpicciolire la sidebar */
}

aside h3 {
    border-bottom: 5px solid #0d0dec;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

aside ul {
    list-style: none;
}

aside ul li {
    margin-bottom: 3px;
}

aside ul li a {
    color: black;
    text-decoration: none; 
    display: block;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s;
}

aside ul li a:hover {
    background-color: #e4e4ef;
    color: #0000f6;
}

/* --- CONTENUTO CENTRALE --- */
main {
    padding: 30px;
    flex-grow: 1; /* Occupa tutto lo spazio rimanente */
}

main h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-left: 5px solid #e74c3c;
    padding-left: 10px;
}

main p {
    margin-bottom: 12px;
    text-align: justify;
}

/* --- PIÈ DI PAGINA (FOOTER) --- */
footer {
    background-color: #d2d2f6;
    color: black;
    text-align: center;
    padding: 10px;
    margin-top: auto;
    border-top: 4px solid #0d0dec;
}

.footer-images {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.footer-img {
    height : 90px; 
    object-fit: cover;
    border-radius: 5px;
    background-color: #d2d2f6;
    border: 2px solid white;
}

/* --- RESPONSIVE (MEDIA QUERIES) --- */
@media (max-width: 768px) {
    /* Su tablet e smartphone, l'intestazione diventa verticale */
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-img {
        width: 80px;
        height: 80px;
    }

    /* La sidebar si sposta sopra o sotto il contenuto */
    .main-container {
        flex-direction: column;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    aside {
        width: 100%;
        padding: 15px;
    }

    aside ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    aside ul li {
        margin: 0;
    }
}