* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden; 
}


.testi1 {
    font-family: 'Exo';
}

.testi2 {
    font-family: 'aboreto';
}

.testi3 {
    font-family: 'gloock';
}

.bold {
    font-weight: bold;
}

.titolo1 {
    font-size: 50px;
}

.titolo2 {
    font-size: 40px;
}

.paragrafo {
    font-size: 25px;
}

#hero {
    background-color: #bfaa8c;
}

/*menu*/

#menu {
    background-color: #bfaa8c;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Assicura che il menu sia sovrapposto al resto del contenuto */
}

.container-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    margin: 0;
    display: flex;
    vertical-align: middle;
}

.title a {
    color: black;
    text-decoration: none;
    font-size: 40px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-left: 20px;
    font-size: 20px;
}

nav ul li a {
    color: black;
    text-decoration: none;
}

ul li a:hover {
    color: white;
    border-bottom: 4px solid white;
}

/*presentazione*/

.presentazione {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-bottom: 10px;
    margin-top: 50px;
}

.rounded-image {
    overflow: hidden;
    border-top-left-radius: 50%; /* Arrotonda l'angolo superiore sinistro */
    border-top-right-radius: 50%; /* Arrotonda l'angolo superiore destro */
    width: 50%;
    height: 100%;
}

.rounded-image img {
    width: 100%; /* Per riempire completamente il contenitore */
    height: auto; /* Per mantenere le proporzioni dell'immagine */
    display: block; /* Per eliminare eventuali spazi vuoti sotto l'immagine */
}

/*wave*/

.content-wrapper {
    position: relative;
    z-index: 1; /* Assicura che il contenuto principale rimanga sopra l'onda */
    overflow: hidden;
    height: 100%;
    background-color: #bfaa8c;
}

@keyframes move_wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1)
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.55)
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
}
.waveWrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
    height: 100%;
    z-index: 0; /* Assicura che l'onda sia dietro al contenuto principale */
    pointer-events: none;
}
.waveWrapperInner {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: -1px;
}
.bgTop {
    z-index: 15;
    opacity: 0.5;
}
.bgMiddle {
    z-index: 10;
    opacity: 0.75;
}
.bgBottom {
    z-index: 5;
}
.wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat no-repeat;
    background-position: 0 bottom;
    transform-origin: center bottom;
}
.waveTop {
    background-size: 50% 100px;
    background-image: url('http://front-end-noobs.com/jecko/img/wave-top.png')
}
.waveAnimation .waveTop {
    animation: move_wave 7s linear infinite;
}

.waveMiddle {
    background-size: 50% 120px;
}

.waveAnimation .waveMiddle {
    animation: move_wave 10s linear infinite;
}
.waveBottom {
    background-size: 50% 100px;
}
.waveAnimation .waveBottom {
    animation: move_wave 15s linear infinite;
}

/*su di me*/

#sudime {
    height: 100%;
}

.testo-sudime {
    text-align: justify;
}

/*lavori*/
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Assicura che sia dietro il contenuto */
}

#Lavori {
    position: relative;
    overflow: hidden; /* Assicura che il canvas non fuoriesca */
}

/*lavori*/

/* Stile per la modale */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Sfondo semitrasparente */
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height: 80%;
    margin: 100px auto;
}

.modal-description {
    font-size: 21px;
    font-weight: bold;
}


.close {
    position: absolute;
    top: -13px;
    right: 10px;
    color: #aaa;
    font-size: 40px;
    cursor: pointer;
    z-index: 1000;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    padding: 5px;
    border-radius: 40px;
}


.description {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    transition: top 0.3s ease;
    box-sizing: border-box;
}

.image-container {
    width: 50%;
}

.image-container:hover .description {
    top: 0;
}



.img-lavori {
    display: flex;
    justify-content: space-between;
}

.immagine-modale {
    display: flex;
    align-items: center;
}

/* Aggiungiamo una regola CSS per nascondere il menu quando la modale è aperta 
body.modal-open #menu {
    display: none;
}*/

.container-fluid {
    position: relative;
    z-index: 2;
}
    
.icon-left {
    width: 50px;
    height: 50px;
    background-color: #bfaa8c;
    box-shadow: black 0 3px 10px;
    text-decoration: none;
    line-height: 50px;
    font-size: 22px;
    border-radius: 25px;
}

.title {
    vertical-align: middle;
}

.responsive {
    position: relative;
    z-index: 2;
}

.icon-check {
    width: 30px;
    height: 30px;
    background-color: #bfaa8c;
    box-shadow: black 0 3px 10px;
    text-decoration: none;
    line-height: 50px;
    font-size: 22px;
    border-radius: 25px;
}

.text-check {
    padding-left: 15px;
}

.btn_sito {
    background-color: #bfaa8c;
    font-family: 'exo-bold';
    font-size: 20px;
    box-shadow: black 0 3px 10px;
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: black;
}

.btn_sito a {
    text-decoration: none;
    color: black;
}

.btn_sito:hover {
    background-color: #bfaa8c;
    font-family: 'exo-bold';
    font-size: 20px;
}


/* footer */

footer {
    background-color: #bfaa8c;
}

footer p {
    font-size: 15px;
}

.linkedin {
    width: 20%;
}

.footer_contenuto {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.linkedincontainer {
    text-align: right;
}


@media (max-width: 990px) {

.titolo1 {
    font-size: 40px;
}

.titolo2 {
    font-size: 30px;
}

.responsive-modale {
    display: flex;
    justify-content: center;
 }

 .immagine-modale {
    padding-top: 20px;
    padding-bottom: 10px;
 }

 .modal-content {
    width: 95%;
    height: 100%;
    margin: 0px auto;
}

}



@media (max-width: 770px) {
    .title a {
        font-size: 25px;
    }

    nav ul li {
        font-size: 15px;
    }

    .presentazione {
        display: flex;
        flex-direction: column;
        text-align: center;
        margin-top: 15px;
    }

    .testo-presentazione {
        padding-top: 20px;
        padding-bottom: 65px;
    }

    .rounded-image {
        width: 82%;
    }

    .img-lavori {
        display: flex;
        flex-direction: column;
    }

    .image-container {
        width: 100%;
    }

    footer p {
        font-size: 10px;
    }

    .linkedin {
        width: 50%;
    }
}


@media (max-width: 491px) {
    .title a {
        font-size: 13px;
    }

    nav ul li {
        font-size: 12px;
    }

    .titolo1 {
        font-size: 30px;
    }
    
    .titolo2 {
        font-size: 20px;
    }

    .paragrafo {
        font-size: 17px;
    }
    
    .responsive-modale {
        font-size: 12px;
    }

    .immagine-modale {
        width: 200%;
     }

}