body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eaf5ea;
}

header {
    background: linear-gradient(135deg, #4f4fe0, #8b4fe0);
    color: white;
    padding: 20px;
    text-align: center;
}

.menu-toggle {
    background-color: #8b4fe0;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1rem;
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    border-radius: 5px;
}

nav {
    width: 250px;
    height: 100%;
    background-color:#4f4fe0 ;
    position: fixed;
    top: 0;
    left: -250px;
    transition: left 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 70px; /* Pulsanti distanziati dalla X */
}
        
nav ul li {
   padding: 20px;
   border-bottom: 1px solid #ffffff;
}

nav ul li a {
   color: white;
   text-decoration: none;
   font-size: 1.2rem;
   display: block;
   transition: background-color 0.3s ease;
   border-radius: 10px;
   padding: 10px;
}
   
nav ul li a:hover {
   background-color: #8b4fe0;
}
  
.menu-close {
   background-color: transparent;
   border: none;
   color: white;
   font-size: 1.5rem;
   position: absolute;
   top: 10px;
   right: 10px;
   cursor: pointer;
}

.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 20px;
   padding-top: 60px; /* Spazio per il pulsante menu */
   flex-grow: 1; /* Consente alla sezione principale di espandersi */
   display: flex;
   justify-content: space-between; /* Allinea il contenuto e l'immagine */
}

/* Mostra il menu quando si clicca */
.menu-open nav {
   left: 0;
}

/* Overlay per chiudere il menu cliccando fuori */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 99;
}

.menu-open .menu-overlay {
    display: block;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}


main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project {
    display: flex;
    align-items: center;
    background-color: white;
    width: 80%;
    max-width: 800px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 10px;
}

.project img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.project-info {
    flex: 1;
}

.project h2 {
    margin: 5px 0;
    font-size: 1.3em;
}

.project p {
    color: #555;
    font-size: 0.9em;
    margin: 5px 0;
}

.project a {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
}

.project a:hover {
    background-color: #0056b3;
}

footer {
    background-color: #494949;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}
        footer p {
            margin: 0;
        }
