body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9; /* Light background color */
}

header {
    background-color: #01033f; /* Dark blue */
    color: #ffffff; /* Testo bianco */
    padding: 1em 0;
    text-align: center;
    position: relative; /* Aggiungi questa linea */
}

.profile-image {
    position: absolute;
    top: 50%; /* Centra verticalmente */
    right: 10px; /* Regola secondo necessità */
    transform: translateY(-50%); /* Centra verticalmente */
    max-height: 120px; /* Altezza massima */
    width: auto;
    border: 2px solid #ffffff; /* Aggiunge un bordo bianco */
}

.profile-image-left {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 10px; /* Adjust as needed */
    transform: translateY(-50%); /* Center vertically */
    max-height: 120px; /* Max height */
    width: auto;
    border: 2px solid #ffffff; /* Add a white border */
    border-radius: 50%; /* Make the image rounded */
}

nav a {
    color: #ffffff;
    margin: 0 1em;
    text-decoration: none;
}

section {
    margin: 2em;
    padding: 1em;
    background-color: #ffffff; /* White background */
    border-radius: 5px;
    box-shadow: 0 0 10px #f0f0f0; /* Even lighter gray */
}

section h2 {
    text-align: center; /* Center the section titles */
}

footer {
    text-align: center;
    padding: 1em 0;
    background-color: #01033f; /* Dark blue */
    color: #ffffff;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer i {
    margin-right: 0.5em;
}

nav a img {
    vertical-align: middle;
    margin-right: 0.5em;
}

/* Additional styles for vibrancy */
h2 {
    color: #333333; /* Dark gray for headings */
}
/* Additional styles for vibrancy */
h1 {
    color: #eaeaea; /* Pearly color */
}

.project-list li {
    background-color: #f0f0f0; /* Even lighter gray background for list items */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.project-list a {
    color: #333333; /* Dark gray for links */
    font-weight: bold;
}

.about-section {
    line-height: 1.6;
    background-color: #f0f0f0; /* Even lighter gray background for combined sections */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.about-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #555555; /* Medium gray for subheadings */
}

.about-section p {
    margin-bottom: 15px;
}

.about-section strong {
    font-weight: bold;
    color: #333333; /* Dark gray for strong text */
}


.mini-index {
    background-color: 0 0 10px rgb(155, 149, 149); /* Light shadow for depth */
    padding: 1em;
    text-align: center;
    margin-bottom: 2em;
    border-radius: 5px;
    box-shadow: 0 0 10px #f0f0f0; /* Even lighter gray shadow for depth */
}

.mini-index ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.mini-index li {
    display: inline;
    margin: 0 1em;
}

.mini-index a {
    text-decoration: none;
    color: #333333; /* Dark gray for links */
    font-weight: bold;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 0 1em;
    }

    header {
        padding: 0.5em 0;
    }

    .profile-image {
        position: static; /* Remove absolute positioning */
        display: block;
        margin: 0 0 10px auto; /* Align the image to the right and add margin */
        max-height: 50px; /* Make the image really small */
    }

    .profile-image-left {
        position: static; /* Remove absolute positioning */
        display: block;
        margin: 0 auto 10px 0; /* Align the image to the left and add margin */
        max-height: 50px; /* Make the image really small */
        border-radius: 50%; /* Make the image rounded */
    }

    nav a {
        display: block;
        margin: 0.5em 0;
    }

    section {
        margin: 1em 0;
        padding: 0.5em;
    }

    .mini-index li {
        display: block;
        margin: 0.5em 0;
    }
}