/* 
 * Stili personalizzati per le card dei progetti
 * Elettrosystem Srl - Design migliorato
 */

/* Stile generale delle card */
.project-one__single {
    position: relative;
    display: block;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.project-one__single:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Contenitore immagine */
.project-one__img-box {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
}

/* Immagine del progetto */
.project-one__img {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    height: 280px; /* Altezza fissa per uniformità */
}

.project-one__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-one__single:hover .project-one__img img {
    transform: scale(1.05);
}

/* Overlay con effetto gradiente */
.project-one__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(30, 64, 175, 0.85), rgba(0, 0, 0, 0.2));
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.project-one__single:hover .project-one__overlay {
    opacity: 1;
}

/* Pulsante visualizza progetto */
.view-project {
    color: #fff;
    background-color: #FCD34D;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    color: #1E40AF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.project-one__single:hover .view-project {
    transform: translateY(0);
    opacity: 1;
}

/* Contenuto della card */
.project-one__content {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 20px;
    background-color: #fff;
    transform: translateY(0);
    transition: transform 0.4s ease;
    border-top: 3px solid #FCD34D;
    z-index: 2;
}

.project-one__single:hover .project-one__content {
    transform: translateY(0);
}

/* Meta informazioni */
.project-one__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.project-one__sub-title {
    font-size: 14px;
    font-weight: 700;
    color: #1E40AF;
    text-transform: uppercase;
    margin: 0;
}

.project-one__date {
    font-size: 13px;
    color: #666;
}

/* Titolo del progetto */
.project-one__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin: 5px 0 0;
    color: #333;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-one__single:hover .project-one__title {
    color: #1E40AF;
}

/* Badge per categoria */
.project-category-badge {
    display: inline-block;
    background-color: #1E40AF;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 991px) {
    .project-one__img {
        height: 240px;
    }
    
    .project-one__title {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .project-one__img {
        height: 220px;
    }
    
    .project-one__content {
        padding: 15px;
    }
}
