/* ===========================================
   I-SERVIZI-OFFERTI.CSS - Pagina Servizi
   Cooperativa IN-CONTRO
   =========================================== */

/* ===== PAGE WRAPPER ===== */
.servizi-page {
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(180deg, #FAFCFF 0%, #F0FFF8 50%, #FFF9F5 100%);
}

/* ===== HERO SECTION ===== */
.servizi-hero {
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F0FFF8 0%, #E6FFF5 50%, #FAFCFF 100%);
    text-align: center;
}

.servizi-hero__blob-1 {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 214, 143, 0.2) 0%, rgba(0, 180, 216, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.servizi-hero__blob-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 217, 61, 0.1) 100%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.servizi-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.servizi-hero__title {
    font-size: 52px;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.servizi-hero__title-highlight {
    background: linear-gradient(135deg, #00A86B 0%, #00B4D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.servizi-hero__subtitle {
    font-size: 20px;
    color: #4A5568;
    line-height: 1.7;
    margin: 0;
}

/* ===== SERVIZI LIST ===== */
.servizi-list {
    padding-top: 40px;
    padding-bottom: 100px;
}

.servizi-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    position: relative;
}

.servizi-card:last-child {
    margin-bottom: 0;
}

.servizi-card--reverse {
    direction: rtl;
}

.servizi-card--reverse > * {
    direction: ltr;
}

/* Image Wrapper */
.servizi-card__image-wrapper {
    position: relative;
}

.servizi-card__image-decoration {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    border-radius: 28px;
    z-index: 0;
}

.servizi-card--reverse .servizi-card__image-decoration {
    left: auto;
    right: -20px;
}

.servizi-card__image-decoration--green {
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
}

.servizi-card__image-decoration--blue {
    background: linear-gradient(135deg, #00B4D8 0%, #48CAE4 100%);
}

.servizi-card__image-decoration--purple {
    background: linear-gradient(135deg, #7C4DFF 0%, #B388FF 100%);
}

.servizi-card__image-decoration--orange {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
}

.servizi-card__image-decoration--red {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FB3 100%);
}

.servizi-card__image-container {
    position: relative;
    z-index: 1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.servizi-card__image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.servizi-card:hover .servizi-card__image {
    transform: scale(1.05);
}


/* Content */
.servizi-card__content {
    position: relative;
}

.servizi-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 168, 107, 0.25);
}

.servizi-card__icon svg {
    width: 30px;
    height: 30px;
    color: #FFFFFF;
}

.servizi-card__icon--green {
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    box-shadow: 0 8px 24px rgba(0, 168, 107, 0.25);
}

.servizi-card__icon--blue {
    background: linear-gradient(135deg, #00B4D8 0%, #48CAE4 100%);
    box-shadow: 0 8px 24px rgba(0, 180, 216, 0.25);
}

.servizi-card__icon--purple {
    background: linear-gradient(135deg, #7C4DFF 0%, #B388FF 100%);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.25);
}

.servizi-card__icon--orange {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F5E 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.25);
}

.servizi-card__icon--red {
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FB3 100%);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.25);
}

.servizi-card__title {
    font-size: 32px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 20px;
    line-height: 1.2;
}

.servizi-card__text {
    font-size: 17px;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 16px;
}

.servizi-card__text:last-of-type {
    margin-bottom: 24px;
}

/* Features */
.servizi-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.servizi-card__feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #FFFFFF;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 168, 107, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.servizi-card__feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.12);
    border-color: rgba(0, 168, 107, 0.3);
}

.servizi-card__feature-icon {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== CTA SECTION ===== */
.servizi-cta {
    background: linear-gradient(135deg, #00A86B 0%, #00D68F 50%, #00B4D8 100%);
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.servizi-cta__decoration-1 {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.servizi-cta__decoration-2 {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.servizi-cta__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.servizi-cta__title {
    font-size: 40px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.servizi-cta__text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
    .servizi-hero__title {
        font-size: 44px;
    }

    .servizi-card {
        gap: 40px;
    }

    .servizi-card__title {
        font-size: 28px;
    }

    .servizi-card__image {
        height: 320px;
    }

}

@media screen and (max-width: 900px) {
    .servizi-card {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }

    .servizi-card--reverse {
        direction: ltr;
    }

    .servizi-card__image-wrapper {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .servizi-card__content {
        text-align: center;
    }

    .servizi-card__icon {
        margin-left: auto;
        margin-right: auto;
    }

    .servizi-card__features {
        justify-content: center;
    }

    .servizi-card__image-decoration {
        left: 50%;
        transform: translateX(-50%);
        bottom: -16px;
    }

    .servizi-card--reverse .servizi-card__image-decoration {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

}

@media screen and (max-width: 768px) {
    .servizi-hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .servizi-hero__title {
        font-size: 36px;
    }

    .servizi-hero__subtitle {
        font-size: 18px;
    }

    .servizi-list {
        padding-top: 20px;
        padding-bottom: 60px;
    }

    .servizi-card {
        margin-bottom: 50px;
    }

    .servizi-card__title {
        font-size: 26px;
    }

    .servizi-card__image {
        height: 280px;
    }

    .servizi-card__icon {
        width: 56px;
        height: 56px;
    }

    .servizi-card__icon svg {
        width: 26px;
        height: 26px;
    }

    .servizi-card__image-decoration {
        width: 140px;
        height: 140px;
    }

    .servizi-cta {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .servizi-cta__title {
        font-size: 30px;
    }

    .servizi-cta__text {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .servizi-hero__title {
        font-size: 30px;
    }

    .servizi-card__title {
        font-size: 24px;
    }

    .servizi-card__text {
        font-size: 16px;
    }

    .servizi-card__image {
        height: 240px;
    }

    .servizi-card__feature {
        font-size: 13px;
        padding: 8px 14px;
    }

    .servizi-cta__title {
        font-size: 24px;
    }
}

/* ===== ANIMATIONS ===== */
.servizi-animate-ready .servizi-hero__content,
.servizi-animate-ready .servizi-card,
.servizi-animate-ready .servizi-cta__content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.servizi-animate-ready .servizi-visible {
    opacity: 1;
    transform: translateY(0);
}

.servizi-animate-ready .servizi-card:nth-child(1) { transition-delay: 0s; }
.servizi-animate-ready .servizi-card:nth-child(2) { transition-delay: 0.1s; }
.servizi-animate-ready .servizi-card:nth-child(3) { transition-delay: 0.1s; }
.servizi-animate-ready .servizi-card:nth-child(4) { transition-delay: 0.1s; }
.servizi-animate-ready .servizi-card:nth-child(5) { transition-delay: 0.1s; }
.servizi-animate-ready .servizi-card:nth-child(6) { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
    .servizi-animate-ready .servizi-hero__content,
    .servizi-animate-ready .servizi-card,
    .servizi-animate-ready .servizi-cta__content {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
