/* Project Page Styles */

.project-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('../images/day-night-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.project-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.project-hero-content p {
    font-size: 1.3rem;
    color: var(--secondary);
}

.project-info {
    padding: 60px 0;
    background: var(--light);
}

.project-credits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.credit-item h3 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.credit-item p {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.project-description {
    padding: 80px 0;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.description-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.description-content .highlight {
    font-style: italic;
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.3rem;
}

.project-gallery {
    padding: 80px 0;
    background: var(--light);
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-gallery-item:hover img {
    transform: scale(1.1);
}

.back-section {
    padding: 60px 0;
    text-align: center;
}

/* ========================================
   PAGE HERO - GALLERIA (RIFATTO DA ZERO)
   ======================================== */

.page-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-hero .hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 40px 20px;
}

.page-hero .hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    margin-bottom: 30px;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.9);
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-hero .hero-content p {
    font-size: 1.5rem;
    margin: 0;
    margin-top: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    white-space: normal;
    word-wrap: break-word;
}

/* Responsive */
@media (max-width: 968px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-credits {
        grid-template-columns: 1fr;
    }

    .project-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .page-hero {
        height: 45vh;
        min-height: 350px;
    }
    
    .page-hero .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 25px;
    }
    
    .page-hero .hero-content p {
        font-size: 1.3rem;
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .project-gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }
    
    .page-hero .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .page-hero .hero-content p {
        font-size: 1.1rem;
        margin-top: 20px;
    }
}
