.main-wrapper {
    .services {
        .heading {
            text-align: center;
            max-width: 720px;
            margin: 0 auto var(--gap-xl);
        }

        .heading .h2 {
            color: var(--fg);
        }

        .subtitle {
            color: var(--fg-70);
            font-size: 17px;
            margin-top: 14px;
        }
    }

    .service-block {
        display: grid;
        grid-template-columns: 5fr 6fr;
        gap: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        min-height: 460px;
        scroll-margin-top: 140px;

        & + .service-block {
            margin-top: var(--gap-lg);
        }

        &.reverse {
            grid-template-columns: 6fr 5fr;
        }

        &.reverse .service-image {
            order: 2;
        }

        @media (max-width: 980px) {
            &, &.reverse {
                grid-template-columns: 1fr;
            }

            &.reverse .service-image {
                order: 0;
            }
        }

        .service-image {
            position: relative;
            min-height: 320px;
            overflow: hidden;

            img {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                max-width: none;
                object-fit: cover;
                object-position: center;
            }
        }

        .service-body {
            padding: clamp(32px, 4vw, 56px);
            display: flex;
            flex-direction: column;
            justify-content: center;

            h3 {
                font-size: clamp(30px, 3vw, 40px);
                font-weight: 800;
                letter-spacing: -0.015em;
                color: var(--fg);
                margin-bottom: 16px;
            }

            p {
                color: var(--fg-70);
                font-size: 16px;
                margin-bottom: 26px;
            }

            .sub-title {
                font-size: 11px;
                letter-spacing: 0.18em;
                text-transform: uppercase;
                font-weight: 700;
                color: var(--fg-55);
                margin-bottom: 12px;
            }
        }

        .pills {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: var(--gap-sm);

            @media (max-width: 980px) {
                grid-template-columns: 1fr;
            }
        }

        .service-pill {
            background: #ffffff;
            border: 1px solid var(--border);
            padding: 14px 16px;
            font-size: 14px;
            font-weight: 600;
            letter-spacing: 0;
            color: var(--fg);
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;

            &:hover {
                border-color: var(--accent);
                color: var(--accent);
            }

            .dot {
                width: 8px;
                height: 8px;
                background: var(--accent);
                display: inline-block;
                flex-shrink: 0;
            }
        }

        .service-cta {
            margin-top: 28px;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;

            @media (max-width: 980px) {
                flex-direction: column;

                .btn {
                    width: 100%;
                }
            }
        }
    }

    .multiservizi {
        background: var(--surface);
        scroll-margin-top: 140px;

        .heading {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: end;
            gap: var(--gap-lg);
            margin-bottom: var(--gap-xl);

            @media (max-width: 720px) {
                grid-template-columns: 1fr;
            }
        }

        h2 {
            color: var(--fg);
        }
    }

    .multi-card {
        position: relative;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        isolation: isolate;
        color: #ffffff;
        display: flex;
        align-items: flex-end;
        transition: transform 0.35s ease;

        > img {
            position: absolute;
            inset: 0;
            z-index: -2;
            width: 100%;
            height: 100%;
            max-width: none;
            object-fit: cover;
            object-position: center;
        }

        &::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            background: linear-gradient(180deg, transparent 40%, rgba(46, 54, 58, 0.85) 100%);
            transition: background 0.35s ease;
        }

        &:hover::after {
            background: linear-gradient(180deg, rgba(0, 142, 214, 0.15) 40%, rgba(46, 54, 58, 0.92) 100%);
        }

        &:hover {
            transform: translateY(-4px);
        }

        .body {
            padding: 28px;
            width: 100%;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: var(--gap-md);

            h3 {
                font-size: 22px;
                font-weight: 800;
                letter-spacing: -0.01em;
                line-height: 1.15;
                max-width: 22ch;
            }

            .arrow {
                width: 48px;
                height: 48px;
                background: var(--accent);
                display: grid;
                place-items: center;
                color: #ffffff;
                transition: transform 0.25s ease;
            }
        }

        &:hover .body .arrow {
            transform: translateX(4px);
        }
    }

    .intermezzo {
        background: var(--fg);
        color: #ffffff;

        h2 {
            color: #ffffff;
            max-width: 22ch;
            margin-bottom: 48px;
        }

        .cols {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--gap-xl);

            @media (max-width: 980px) {
                grid-template-columns: 1fr;
                gap: var(--gap-lg);
            }

            p {
                color: #ffffff;
                opacity: 0.88;
                font-size: 16px;
                line-height: 1.65;
            }

            .col, & > p {
                padding-top: 22px;
                border-top: 2px solid var(--accent);
            }
        }

        .gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--gap-lg);
            margin-top: var(--gap-xl);

            @media (max-width: 780px) {
                grid-template-columns: 1fr;
                gap: var(--gap-md);
            }
        }

        .photo {
            position: relative;
            aspect-ratio: 4 / 3;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: transform 0.35s ease, border-color 0.25s ease;

            &:hover {
                transform: translateY(-4px);
                border-color: var(--accent);
            }

            img {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                max-width: none;
                object-fit: cover;
                object-position: center;
            }
        }
    }

    .carousel-section {
        .heading {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: end;
            gap: var(--gap-lg);
            margin-bottom: var(--gap-xl);

            @media (max-width: 780px) {
                grid-template-columns: 1fr;
            }
        }

        h2 {
            color: var(--fg);
            margin: 12px 0 14px;
        }

        .subtitle {
            color: var(--fg-70);
            font-size: 17px;
            max-width: 56ch;
        }
    }

    .carousel-controls {
        display: flex;
        gap: 8px;
        align-items: end;
    }

    .carousel-arrow {
        width: 52px;
        height: 52px;
        background: var(--accent);
        border: 1px solid var(--accent);
        border-radius: 0;
        color: #ffffff;
        display: grid;
        place-items: center;
        transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;

        &:hover {
            background: #ffffff;
            color: var(--fg);
            border-color: var(--accent);
        }

        svg {
            width: 20px;
            height: 20px;
        }
    }

    .carousel {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(360px, calc((100% - 2 * var(--gap-lg)) / 3));
        gap: var(--gap-lg);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding-bottom: 4px;

        &::-webkit-scrollbar {
            display: none;
        }

        @media (max-width: 980px) {
            grid-auto-columns: minmax(300px, 84%);
        }
    }

    .carousel-card {
        background: #ffffff;
        border: 1px solid var(--border);
        padding: 36px 32px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        scroll-snap-align: start;
        transition: box-shadow 0.25s ease, transform 0.25s ease;

        &:hover {
            box-shadow: 0 20px 40px -24px rgba(46, 54, 58, 0.24);
            transform: translateY(-2px);
        }

        .index {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            letter-spacing: 0.24em;
            text-transform: uppercase;
            font-weight: 700;
            color: var(--accent);

            i {
                width: 24px;
                height: 1px;
                background: var(--accent);
                display: inline-block;
            }
        }

        h3 {
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.005em;
            color: var(--fg);
            margin-top: 6px;
        }

        p {
            color: var(--fg-70);
            font-size: 15px;
            line-height: 1.65;
        }

        p + p {
            margin-top: 12px;
        }
    }
}

main.service {
    .service-hero {
        background: var(--hero-bg);
        border-bottom: 1px solid var(--hero-bg);
        padding: 0;

        > .container {
            max-width: none;
            margin: 0;
            padding: 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            align-items: stretch;
            min-height: min(72vh, 720px);
        }

        .text-half {
            position: relative;
            padding: clamp(48px, 5vw, 96px);
            display: flex;
            flex-direction: column;
            justify-content: center;

            &::before {
                content: "";
                position: absolute;
                top: 0;
                bottom: 0;
                left: 0;
                width: 4px;
                background: var(--accent);
            }
        }

        h1 {
            font-size: clamp(28px, 3.2vw, 44px);
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.15;
            color: #ffffff;
            margin-bottom: 24px;
            max-width: 24ch;
        }

        .incipit {
            p {
                font-size: 16px;
                color: rgba(255, 255, 255, 0.85);
                max-width: 52ch;
                line-height: 1.65;
                margin-bottom: 14px;
            }

            p:last-child {
                margin-bottom: 28px;
            }
        }

        .hero-cta-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            width: 100%;
            max-width: 540px;
            align-self: flex-start;

            .btn {
                padding-inline: 14px;
                white-space: normal;
                text-align: center;

                svg {
                    flex-shrink: 0;
                }
            }

            .btn-full {
                grid-column: 1 / -1;
            }

            @media (max-width: 480px) {
                grid-template-columns: 1fr;
            }

            .btn-primary {
                background: #ffffff;
                border-color: #ffffff;
                color: var(--hero-bg);

                &:hover, &:active {
                    background: var(--accent);
                    border-color: var(--accent);
                    color: #ffffff;
                }
            }

            .btn-navcta {
                background: var(--accent);
                border-color: var(--accent);
                color: #ffffff;

                &:hover, &:active {
                    background: #ffffff;
                    border-color: #ffffff;
                    color: var(--hero-bg);
                }
            }

            .btn-wa {
                background: transparent;
                border-color: rgba(255, 255, 255, 0.6);
                color: #ffffff;

                svg {
                    fill: none;
                    stroke: currentColor;
                    stroke-width: 1.6;
                    stroke-linejoin: round;
                }

                &:hover, &:active {
                    background: #ffffff;
                    border-color: #ffffff;
                    color: var(--hero-bg);
                }
            }
        }

        .visual {
            position: relative;
            min-height: 320px;
            overflow: hidden;

            img {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                max-width: none;
                object-fit: cover;
                object-position: center;
            }

            &::after {
                content: "";
                position: absolute;
                inset: 0;
                background: linear-gradient(115deg, rgba(46, 54, 58, 0.10) 0%, transparent 40%);
            }
        }

        @media (max-width: 980px) {
            > .container {
                grid-template-columns: minmax(0, 1fr);
                min-height: 0;
            }

            .text-half::before {
                top: auto;
                bottom: 0;
                left: 0;
                right: 0;
                width: auto;
                height: 4px;
            }

            .visual {
                aspect-ratio: 4 / 5;
                min-height: 0;
            }
        }
    }

    .when-section {
        background: var(--surface);

        .heading {
            text-align: center;
            max-width: 780px;
            margin: 0 auto var(--gap-xl);
        }

        h2 {
            color: var(--fg);
            margin: 16px 0 18px;
        }

        .subtitle {
            color: var(--fg-70);
            font-size: 17px;
            line-height: 1.6;
        }
    }

    .when-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-lg);

        @media (max-width: 780px) {
            grid-template-columns: 1fr;
        }
    }

    .when-card {
        background: #ffffff;
        border: 1px solid var(--border);
        border-left: 3px solid var(--accent);
        padding: 36px 32px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        transition: box-shadow 0.25s ease, transform 0.25s ease;

        &:hover {
            box-shadow: 0 20px 40px -24px rgba(46, 54, 58, 0.24);
            transform: translateY(-2px);
        }

        .check-icon {
            width: 44px;
            height: 44px;
            color: var(--accent);
            margin-bottom: 8px;
            display: block;

            svg {
                width: 100%;
                height: 100%;
                display: block;
            }
        }

        h3 {
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.005em;
            color: var(--fg);
            margin-bottom: 6px;
        }

        p {
            color: var(--fg-70);
            font-size: 15px;
            line-height: 1.65;
        }
    }

    .story-block {
        background: var(--surface);
        border: 1px solid var(--border);
        display: grid;
        grid-template-columns: 5fr 6fr;
        min-height: 480px;

        & + .story-block {
            margin-top: var(--gap-lg);
        }

        &.reverse {
            grid-template-columns: 6fr 5fr;
        }

        &.reverse .story-image {
            order: 2;
        }

        @media (max-width: 980px) {
            &, &.reverse {
                grid-template-columns: minmax(0, 1fr);
            }

            &.reverse .story-image {
                order: 0;
            }
        }
    }

    .story-image {
        position: relative;
        min-height: 320px;
        overflow: hidden;

        img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            max-width: none;
            object-fit: cover;
            object-position: center;
        }
    }

    .story-body {
        padding: clamp(32px, 4vw, 56px);
        display: flex;
        flex-direction: column;
        justify-content: center;

        h2 {
            font-size: clamp(28px, 3vw, 40px);
            font-weight: 800;
            letter-spacing: -0.015em;
            color: var(--fg);
            margin-bottom: 20px;
        }

        p {
            color: var(--fg-70);
            font-size: 16px;
            line-height: 1.7;
            margin-bottom: 14px;
        }

        h3 {
            font-size: 20px;
            font-weight: 800;
            line-height: 1.3;
            color: var(--fg);
            margin: 10px 0 14px;
        }

        .actions {
            margin-top: 14px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;

            @media (max-width: 560px) {
                .btn {
                    white-space: normal;
                    text-align: center;
                }
            }
        }
    }

    .band {
        scroll-margin-top: 140px;
    }

    .overview {
        .heading {
            max-width: 760px;
            margin-bottom: var(--gap-xl);
        }

        h2 {
            color: var(--fg);
            margin-bottom: 20px;
        }

        .text p {
            color: var(--fg-70);
            font-size: 17px;
            line-height: 1.7;

            & + p {
                margin-top: 14px;
            }
        }
    }

    .overview-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--gap-md);

        @media (max-width: 1100px) {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        @media (max-width: 600px) {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    .overview-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 28px 24px;
        background: #ffffff;
        border: 1px solid var(--border);
        border-top: 3px solid var(--accent);
        color: var(--fg);
        transition: transform 0.25s ease, box-shadow 0.25s ease;

        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 40px -24px rgba(46, 54, 58, 0.24);
        }

        .index {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.24em;
            color: var(--accent);

            i {
                width: 24px;
                height: 1px;
                background: var(--accent);
                display: inline-block;
            }
        }

        .title {
            font-family: var(--font-display);
            font-size: 20px;
            font-weight: 800;
            line-height: 1.25;
        }

        .text {
            flex: 1;
            color: var(--fg-70);
            font-size: 15px;
            line-height: 1.6;
        }

        .arrow {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            background: var(--accent);
            color: #ffffff;

            svg {
                width: 18px;
                height: 18px;
            }
        }
    }

    .cta-final p {
        opacity: 0.9;
    }

    .cta-form header b {
        font-size: 17px;
        font-weight: 700;
        letter-spacing: -0.005em;
        line-height: 1.4;
    }

    .type-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--gap-md);

        @media (max-width: 1100px) {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        @media (max-width: 600px) {
            grid-template-columns: minmax(0, 1fr);
        }
    }

    .type-card {
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid var(--border);
        border-top: 3px solid var(--accent);
        transition: transform 0.25s ease, box-shadow 0.25s ease;

        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 40px -24px rgba(46, 54, 58, 0.24);
        }

        .type-image {
            position: relative;
            aspect-ratio: 4 / 3;
            overflow: hidden;

            img {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                max-width: none;
                object-fit: cover;
                object-position: center;
            }
        }

        .body {
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        h3 {
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.005em;
            line-height: 1.25;
            color: var(--fg);
        }

        p {
            color: var(--fg-70);
            font-size: 15px;
            line-height: 1.65;
        }
    }

    .faq-section {
        .heading {
            display: grid;
            grid-template-columns: 1fr 1.4fr;
            gap: var(--gap-2xl);
            align-items: start;
            margin-bottom: var(--gap-xl);

            @media (max-width: 980px) {
                grid-template-columns: 1fr;
                gap: var(--gap-md);
            }
        }

        h2 {
            color: var(--fg);
            margin-top: 14px;
        }

        .subtitle {
            color: var(--fg-70);
            font-size: 17px;

            a {
                color: var(--accent);
                font-weight: 700;
            }
        }
    }

    .faq-list {
        display: flex;
        flex-direction: column;
    }

    .faq-item {
        border-top: 1px solid var(--border);

        &:last-child {
            border-bottom: 1px solid var(--border);
        }

        summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--gap-md);
            padding: 26px 0;
            font-family: var(--font-display);
            font-size: 19px;
            font-weight: 700;
            color: var(--fg);
            letter-spacing: -0.005em;
            list-style: none;
            cursor: pointer;
            transition: color 0.15s ease;

            &::-webkit-details-marker {
                display: none;
            }

            &:hover {
                color: var(--accent);
            }

            h3 {
                margin: 0;
                font: inherit;
                letter-spacing: inherit;
            }

            .plus {
                width: 32px;
                height: 32px;
                display: grid;
                place-items: center;
                color: var(--accent);
                border: 1px solid var(--border);
                flex-shrink: 0;
                transition: transform 0.25s ease, background 0.15s ease, color 0.15s ease;

                svg {
                    width: 14px;
                    height: 14px;
                }
            }
        }

        &[open] summary .plus {
            transform: rotate(45deg);
            background: var(--accent);
            color: #ffffff;
            border-color: var(--accent);
        }
    }

    .faq-answer {
        padding: 0 0 26px;
        color: var(--fg-70);
        font-size: 16px;
        line-height: 1.7;
        max-width: 68ch;
    }
}
