/* Header styles with high specificity */
body:not(.home-page) .page-header,
body:not(.home-page) .servizi-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
    margin-top: 80px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    width: 100%;
}

/* Pattern a puntini in background */
body:not(.home-page) .page-header::before,
body:not(.home-page) .servizi-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
}

.page-header .header-content,
.servizi-header .header-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header h1,
.servizi-header h1 {
    font-size: 2.5rem;
    margin: 0 0 15px;
}

.page-header p,
.servizi-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    body:not(.home-page) .page-header,
    body:not(.home-page) .servizi-header {
        height: 200px;
        margin-top: 80px;
        padding: 0 20px;
    }

    .page-header h1,
    .servizi-header h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .page-header p,
    .servizi-header p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .page-header .header-content,
    .servizi-header .header-content {
        padding: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body:not(.home-page) .page-header,
    body:not(.home-page) .servizi-header {
        padding: 90px 15px 30px;
    }

    .page-header h1,
    .servizi-header h1 {
        font-size: 1.8rem;
    }
}
