.sing-cover {
    width: 100%;
    height: 75vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sing-cover-title {
    font-size: 2.5em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 15px 40px;
    border-radius: 100px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.storia {
    width: 70%;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 19px;
    padding: 50px;
    margin: -100px auto 50px;
    position: relative;
    text-align: justify;
    border-radius: 10px;
}

.storia h2 {
    color: #c3a53f;
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.storia p {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
    overflow: hidden;
    max-height: 150px;
    transition: all 0.3s ease-in-out;
}

.storia p.expanded {
    -webkit-line-clamp: unset;
    max-height: 1000px;
    transition: all 0.3s ease-in-out;
}

#toggle-button {
    margin: 20px 15px 0px 0px;
    background-color: #5c8167;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

#toggle-button:hover {
    background-color: #42674d;
}

.sing-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 800px;
}

.sing-details p {
    font-size: 18px;
    line-height: 1.6;
}

.sing-details strong {
    color: #c3a53f;
    font-weight: bold;
}

.sing-list {
    max-width: 80%;
    margin: auto;
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
}

.sing-list.overflow {
    justify-content: left;
}

.sing-list img {
    height: 250px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    cursor: pointer;
}

.errore {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.errore h2 {
    color: #c3a53f;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .sing-cover {
        height: 40vh;
    }

    .sing-cover-title {
        font-size: 30px;
        padding: 12px 30px;
    }

    .storia {
        margin-top: -50px;
        width: calc(90% - 50px);
        font-size: 16px;
        padding-top: 40px;
        padding-left: 25px;
        padding-bottom: 40px;
        padding-right: 25px;
    }

    .storia h2 {
        font-size: 27px;
    }

    .sing-details {
        width: calc(90% - 40px);
    }

    .sing-details p {
        font-size: 16px;
    }

    .sing-list {
        max-width: 90%;
        justify-content: left;
    }

    .sing-list img {
        width: 200px;
        height: 150px;
        object-fit: cover;
    }
}