/* Hero Section Styles - Comuni a tutte le pagine */

.hero-section {
    position: relative;
    width: 100%;
    height: 25vw;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 3rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.hero-overlay-40{
    background: rgba(0, 0, 0, 0.4);
}

.hero-overlay-50{
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero per pagine categoria (con icona) */
.category-hero {
    position: relative;
    width: 100%;
    height: 25vw;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.category-hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
}

.category-hero h1 {
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-icon-header {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section,
    .category-hero {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .category-hero h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .category-icon-header {
        width: 60px;
        height: 60px;
    }
}
