@import url("index.css");
.progetti{
    margin-bottom:80px;
}
.projects-title {
    font-size: 18px;
    font-weight: 300;
    color: #999;
    margin-bottom: 16px;
    padding-left: 50px;
}

.project-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
}

.project-item:hover {
    background: #fff;
    -webkit-transition: background-color 0.3s linear;
    -ms-transition: background-color 0.3s linear;
    transition: background-color 0.3s linear;
}

.project-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 98%;
    margin: 0 auto;
    border: 1px solid #000;
    border-radius: 24px;
    padding: 30px 30px 60px;
    margin-bottom: -45px;
    height: auto;
    z-index: 1;
    background-color: var(--accent);
}

.project-number {
    position: relative;
    font-size: 16px;
    font-weight: 400;
    width: 40px;
    color: #000;
    top: -70px;
}

.project-title {
    font-size: 100px;
    font-weight: 500;
    line-height: 1;
    flex-grow: 1;
    text-align: center;
    letter-spacing: -0.02em;
}

.project-arrow {
    font-size: 60px;
    font-weight: 400;
    margin-right: 10px;
}

/* Dimensioni specifiche per ciascun progetto */


/* Gestione degli z-index per la sovrapposizione corretta */
.project-item:nth-child(1) {
    z-index: 1;
}

.project-item:nth-child(2) {
    z-index: 2;
}

.project-item:nth-child(3) {
    z-index: 3;
}

.project-item:nth-child(4) {
    z-index: 4;
}

.project-item:nth-child(5) {
    z-index: 5;
    padding-bottom: 65px;
}

@media screen and (max-width:768px) {
    .project-title {
        font-size: 30px;
    }

    .project-number {
        top: -30px;
    }

    .project-arrow {
        font-size: 40px;
    }
}