/* =========================================
   PAGE HEADER (Coerente con le altre pagine)
   ========================================= */
.page-header {
    position: relative;
    height: 50vh;
    /* Metà schermo */
    min-height: 400px;
    background: url('../immagini/sfondi/1.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Molto scuro */
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    color: var(--main-white);
    padding: 0 20px;
}

.header-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 1px;
    color: #ccc;
    text-transform: uppercase;
}

/* =========================================
   LAYOUT SERVIZI (ZIG-ZAG)
   ========================================= */
.services-list {
    background-color: var(--main-white);
    padding-bottom: 100px;
}

.service-row {
    scroll-margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 60vh;
    /* Ogni sezione occupa buona parte dello schermo */
    border-bottom: 1px solid #eee;
    /* Linea sottile tra i servizi */
}

/* Inversione per righe pari */
.service-row.reverse {
    flex-direction: row-reverse;
    background-color: #fafafa;
    /* Leggero grigio per alternare */
}

/* --- COLONNA IMMAGINE --- */
.service-image {
    flex: 1;
    min-width: 400px;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.5s ease;
}

/* Effetto Zoom all'hover */
.service-row:hover .service-image img {
    transform: scale(1.05);
}

/* NUMERO GIGANTE SOPRA L'IMMAGINE */
.img-number {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 8rem;
    color: var(--main-white);
    line-height: 1;
    opacity: 0.9;
    z-index: 2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Linea rossa decorativa accanto al numero */
.img-number::after {
    content: '';
    position: absolute;
    left: 100%;
    bottom: 20px;
    width: 60px;
    height: 10px;
    background: var(--main-red);
    margin-left: 20px;
}

/* --- COLONNA TESTO --- */
.service-text {
    flex: 1;
    min-width: 400px;
    padding: 60px 80px;
    /* Tanto spazio bianco */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--main-black);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.separator-red {
    width: 60px;
    height: 4px;
    background: var(--main-red);
    margin-bottom: 30px;
}

.service-text p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
    /* Testo giustificato elegante */
    margin-bottom: 40px;
}

/* LINK DETTAGLI */
.details-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--main-black);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.details-link i {
    color: var(--main-red);
    transition: transform 0.3s;
}

.details-link:hover {
    color: var(--main-red);
}

.details-link:hover i {
    transform: translateX(10px);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {

    .service-row,
    .service-row.reverse {
        flex-direction: column;
        /* Tutto in colonna su tablet/mobile */
        height: auto;
    }

    .service-image {
        width: 100%;
        min-width: 100%;
        height: 350px;
        /* Altezza fissa immagine su mobile */
    }

    .service-text {
        width: 100%;
        min-width: 100%;
        padding: 40px 20px;
    }

    .img-number {
        font-size: 5rem;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }
}