/* --- Servizi Page Specific Styles --- */

/* Page Section Background override based on main theme */
.page-section {
    background-color: #AEB877;
    /* Light Sage Green */
    padding: 60px 0;
}

.page-section .container {
    background-color: transparent;
    border: none;
    text-shadow: none;
    color: #333;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Layout for Text (Left) and Slideshow (Right) */
.services-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
    justify-content: space-between;
}

.services-text {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: left;
}

.services-text h2 {
    color: #ffb347;
    /* Pastel orange */
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.service-description p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #444;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    background-color: #FAF9F6;
    /* Primary Off-white */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.service-list img {
    flex-shrink: 0;
    margin-top: 5px;
    filter: sepia(100%) hue-rotate(50deg) saturate(300%);
    /* Gives icons a greenish tint to fit theme */
}

.service-list strong {
    display: block;
    font-size: 1.2em;
    color: #29401b;
    /* Dark green from theme */
    margin-bottom: 8px;
}

.service-list p {
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* --- Slideshow Styling --- */
.services-slideshow {
    flex: 1 1 45%;
    min-width: 300px;
    max-width: 600px;
    position: sticky;
    top: 40px;
    /* Sticks with scroll on desktop */
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #AEB877;
    /* Light Sage Green */
}

/* Hide images by default */
.slide {
    display: none;
}

/* Active slide */
.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 600px;
    /* Increased height for bigger images */
    object-fit: cover;
    display: block;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover,
.next:hover {
    background-color: rgba(41, 64, 27, 0.9);
}

/* The dots/bullets */
.dots-container {
    text-align: center;
    padding: 15px 0;
    margin-top: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #C5A880;
    /* Tertiary Gold */
    transform: scale(1.3);
}

/* Fading animation */
.fade {
    animation-name: fadeAnimation;
    animation-duration: 0.8s;
}

@keyframes fadeAnimation {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Responsive updates */
@media screen and (max-width: 768px) {
    .services-layout {
        flex-direction: column;
    }

    .services-slideshow {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 100%;
        order: -1;
        /* Move slideshow to top on mobile */
    }

    .slide img {
        height: 400px;
        /* Increased height for mobile too */
    }
}