/* --- RESET E FONT --- */
body {
    background-color: rgb(248, 248, 248);
    margin: 0;
    font-family: "Anonymous Pro", monospace, sans-serif;
    color: #492e2e;
}

/* Stili Link */
a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.5rem;
}

/* --- NAVIGAZIONE (MOBILE FIRST) --- */
nav {
    display: flex;
    justify-content: flex-end; /* Allinea il burger a destra su mobile */
    align-items: center;
    background-color: #293138;
    height: 6rem;
    padding: 0 20px;
}

/* Lista di navigazione nascosta di default (mobile) */
.nav-list {
    display: none; 
}

/* Stili per Burger Menu */
.burger {
    height: 80px;
    width: 40px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Spazio tra le linee */
}
.burger span {
    height: 4px;
    width: 100%;
    background-color: white; /* Usiamo background-color invece di border per le barre */
    border-radius: 2px;
}

/* Stili menu attivo (gestito da JS) */
.nav-list.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 5rem;
    right: 0;
    background-color: #2e2e2e;
    width: 100%;
    z-index: 10;
    padding: 1rem 0;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}
.nav-list.active .nav-list-li {
    margin: 10px 0;
    margin-left: 10px;
}
.nav-list-li a {
    color: white;
    font-size: 1rem;
}
strong{
    color: #3498db;
}
/* --- LAYOUT SEZIONI DI CONTENUTO (MOBILE FIRST - COLUMN) --- */

.section-container {
    display: flex;
    flex-direction: column; /* MOBILE: Tutti gli elementi sono impilati in colonna */
    align-items: center;
    padding: 50px 20px;
    width: 100%;
}

/* Contenitore del testo */
.content-block {
    width: 100%; /* Occupa tutta la larghezza su mobile */
    max-width: 600px;
    margin-bottom: 30px; /* Spazio tra testo e immagini su mobile */
}

/* Contenitore delle immagini */
.image-gallery {
    display: flex;
    flex-direction: column; /* MOBILE: Le due immagini sono impilate */
    width: 100%;
    max-width: 500px;
}

/* Immagini singole */
.image-gallery .project-img {
    width: 100%; /* A piena larghezza del contenitore su mobile */
    height: auto; /* IMPORTANTE: Mantieni le proporzioni */
    max-height: 350px;
    object-fit: contain;
    border: solid 1px rgb(34, 34, 34);
    margin-bottom: 20px; /* Spazio tra le immagini impilate */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

/* --- TIPOGRAFIA (MOBILE) --- */
h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}
h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 15px;
}
h3{
    margin-bottom: 30px;
}
p, .li-diamond {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* --- CTA BLOCK --- */
.cta-block {
    text-align: center;
    padding: 40px 20px;
    margin: 50px auto;
    max-width: 800px;
    border-radius: 8px;
}
/* ... Stili bottoni (primary-btn, ecc.) ... */
.primary-btn {
    background-color: #3498db;
    color: white !important;
    border: 2px solid #3498db;
    padding: 15px;
    border-radius: 10px;
}
.primary-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* --- FOOTER --- */
.cs-footer-simple {
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}
/* ... Altri stili footer ... */
/* --- MEDIA QUERY PER DESKTOP (Layout Affiancato) --- */
@media (min-width: 769px) {
    
    /* Navigazione (Desktop: Navigazione in riga, Burger nascosto) */
    nav {
        justify-content: center;
        padding: 0;
    }
    .burger {
        display: none;
    }
    .nav-list {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 80%;
    }
    .nav-list-li {
        margin: 0 30px;
    }
    
    /* Layout principale delle sezioni (Content Block e Image Gallery affiancati) */
    .flex-row-desktop {
        flex-direction: row; /* ✅ DESKTOP: Affianca (Content a sx, Immagini a dx) */
        justify-content: space-around;
        align-items: flex-start; /* Allinea il contenuto in alto */
        padding: 80px 40px;
    }
    
    /* Distribuzione della larghezza */
    .content-block, .image-gallery {
        width: 45%; /* Divide lo spazio tra testo e immagini */
        max-width: none;
        margin-bottom: 0;
    }

    /* Contenitore delle Immagini (Le due immagini affiancate) */
    .image-gallery {
        flex-direction: column; 
        align-items: flex-start;
        gap: 100px; 
        margin-left: 100px;
    }

    /* Immagini singole in riga */
    .image-gallery .project-img {
        width: calc(50% - 10px); 
        margin-bottom: 0; 
    }
    
    /* Tipografia Desktop */
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    
    /* Margine superiore per la prima sezione */
    .intro-header {
        padding-top: 100px;
    }
}