body {
    background:
        radial-gradient(circle at 0% 0%, rgba(134, 181, 196, 0.10), transparent 28%),
        radial-gradient(circle at 100% 12%, rgba(97, 151, 173, 0.08), transparent 24%),
        linear-gradient(180deg, #fcfdfe 0%, #f4f7fa 52%, #ffffff 100%);
    color: var(--grigio2);
}

.serv-header-shell {
    position: relative;
    width: 100%;
    min-height: 5.5rem;
}

.servizi {
    width: 100%;
    overflow: hidden;
}

.serv-container {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
}

.serv-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(134, 181, 196, 0.13);
    color: var(--primario-scuro2);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
}

/* HERO */

.serv-hero {
    padding: 5.4rem 0 4.8rem;
}

.serv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    gap: 4.5rem;
    align-items: center;
}

.serv-hero-copy h1 {
    max-width: 1100px;
    margin: 1.25rem 0 1.35rem;
    font-size: clamp(3rem, 6vw, 6.15rem);
    line-height: .9;
    letter-spacing: -0.075em;
    color: #26343d;
    font-weight: 600;
}

.serv-hero-copy p {
    max-width: 650px;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.9;
    color: var(--grigio);
}

.serv-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2.1rem;
}

.serv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    transition:
        background-color .25s ease,
        color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.serv-btn:hover {
    transform: translateY(-2px);
}

.serv-btn-primary {
    background: var(--primario-scuro2);
    color: var(--bianco);
    border: 1px solid var(--primario-scuro2);
    box-shadow: 0 14px 28px rgba(43, 103, 131, 0.18);
}

.serv-btn-primary:hover {
    background: var(--primario-scuro);
    border-color: var(--primario-scuro);
    color: var(--bianco);
}

.serv-btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--primario-scuro);
    border: 1px solid rgba(43, 103, 131, 0.13);
}

.serv-btn-ghost:hover {
    background: rgba(134, 181, 196, 0.12);
    color: var(--primario-scuro2);
}

/* HERO PANEL */

.serv-hero-panel {
    position: relative;
    display: grid;
    gap: 1rem;
}

.serv-hero-panel::before {
    content: "";
    position: absolute;
    inset: -22px;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(218, 242, 252, 0.28));
    border: 1px solid rgba(43, 103, 131, 0.08);
    z-index: -1;
}

.serv-panel-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(75, 107, 128, 0.10);
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 18px 44px rgba(28, 40, 51, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.serv-panel-main {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 248, 250, 0.95));
}

.serv-panel-card span,
.serv-panel-card small {
    display: inline-block;
    margin-bottom: .8rem;
    color: var(--primario-chiaro2);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.serv-panel-card strong {
    display: block;
    color: #26343d;
    font-size: 1.22rem;
    line-height: 1.25;
    font-weight: 600;
}

.serv-panel-card p {
    margin-top: .8rem;
    color: var(--grigio2);
    font-size: .94rem;
    line-height: 1.7;
}

.serv-panel-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .85rem;
}

.serv-panel-row .serv-panel-card {
    padding: 18px 16px;
    border-radius: 22px;
}

/* SECTION HEAD */

.serv-overview {
    padding: 2rem 0 5.5rem;
}

.serv-section-head {
    max-width: 760px;
    margin-bottom: 2.8rem;
}

.serv-section-head h2,
.serv-method-box h2,
.serv-final-box h2 {
    margin: 1rem 0 0;
    color: #26343d;
    font-size: clamp(2rem, 3.5vw, 3.45rem);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 600;
}

.serv-section-head p {
    margin-top: 1.15rem;
    max-width: 660px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--grigio2);
}

/* CATEGORY CARDS */

.serv-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
}

.serv-category-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 30px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 252, 0.97));
    border: 1px solid rgba(75, 107, 128, 0.10);
    box-shadow: 0 18px 48px rgba(28, 40, 51, 0.055);
}

.serv-category-card::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(134, 181, 196, 0.12);
    pointer-events: none;
}

.serv-category-card-wide {
    grid-column: 1 / -1;
}

.serv-category-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.serv-number {
    color: rgba(43, 103, 131, 0.28);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .18em;
}

.serv-icon {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(134, 181, 196, 0.13);
    color: var(--primario-scuro2);
}

.serv-icon i {
    font-size: 1.45rem;
}

.serv-category-card h3 {
    position: relative;
    z-index: 1;
    max-width: 560px;
    color: #26343d;
    font-size: clamp(1.7rem, 2.35vw, 2.45rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.serv-category-card > p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    color: var(--grigio2);
    font-size: .98rem;
    line-height: 1.8;
    margin-bottom: 1.6rem;
}

/* SERVICE CARDS */

.serv-service-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
}

.serv-service-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.serv-service-card {
    position: relative;
    display: block;
    min-height: 132px;
    padding: 22px 58px 24px 22px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(134, 181, 196, 0.18), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 252, 0.96));
    border: 1px solid rgba(75, 107, 128, 0.10);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(28, 40, 51, 0.045);
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease,
        background-color .28s ease;
}

.serv-service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(43, 103, 131, 0.08), transparent 46%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.serv-service-card::after {
    content: "";
    position: absolute;
    left: 22px;
    bottom: 18px;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: rgba(43, 103, 131, 0.22);
    transition:
        width .28s ease,
        background-color .28s ease;
}

.serv-service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(43, 103, 131, 0.22);
    box-shadow:
        0 18px 42px rgba(28, 40, 51, 0.10),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.serv-service-card:hover::before {
    opacity: 1;
}

.serv-service-card:hover::after {
    width: 62px;
    background: var(--primario-scuro2);
}

.serv-service-card h4 {
    position: relative;
    z-index: 2;
    max-width: 92%;
    color: var(--primario-scuro);
    font-size: 1.08rem;
    line-height: 1.22;
    font-weight: 600;
    margin-bottom: .48rem;
    transition:
        color .28s ease,
        transform .28s ease;
}

.serv-service-card p {
    position: relative;
    z-index: 2;
    max-width: 96%;
    color: var(--grigio2);
    font-size: .92rem;
    line-height: 1.62;
    transition:
        color .28s ease,
        transform .28s ease;
}

.serv-service-card:hover h4 {
    color: var(--primario-scuro2);
    transform: translateY(-2px);
}

.serv-service-card:hover p {
    color: var(--grigio);
    transform: translateY(-1px);
}

.serv-service-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(134, 181, 196, 0.13);
    color: var(--primario-scuro2);
    font-size: 1rem;
    opacity: .82;
    transition:
        transform .28s ease,
        background-color .28s ease,
        color .28s ease,
        opacity .28s ease;
}

.serv-service-card:hover .serv-service-arrow {
    transform: translate(3px, -3px);
    background: var(--primario-scuro2);
    color: var(--bianco);
    opacity: 1;
}
/* METHOD */

.serv-method {
    padding: 0 0 5.5rem;
}

.serv-method-box {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    padding: 44px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(38, 52, 61, 0.98), rgba(43, 103, 131, 0.92));
    box-shadow: 0 22px 60px rgba(28, 40, 51, 0.16);
}

.serv-method-box .serv-kicker {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
}

.serv-method-box h2 {
    color: var(--bianco);
}

.serv-method-box p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    line-height: 1.85;
}

/* FINAL CTA */

.serv-final-cta {
    padding: 0 0 5.8rem;
}

.serv-final-box {
    text-align: center;
    padding: 4.2rem 2rem 4.4rem;
    border-radius: 38px;
    background:
        radial-gradient(circle at 50% 0%, rgba(134, 181, 196, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 252, 0.96));
    border: 1px solid rgba(75, 107, 128, 0.10);
    box-shadow: 0 18px 48px rgba(28, 40, 51, 0.055);
}

.serv-final-box .serv-kicker {
    margin: 0 auto;
}

.serv-final-box h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.serv-final-box p {
    max-width: 680px;
    margin: 1rem auto 0;
    color: var(--grigio2);
    font-size: 1rem;
    line-height: 1.85;
}

.serv-final-box .serv-btn {
    margin-top: 2rem;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .serv-hero {
        padding-top: 4.2rem;
    }

    .serv-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .serv-hero-copy h1 {
        max-width: 900px;
    }

    .serv-hero-panel {
        max-width: 760px;
    }

    .serv-method-box {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 880px) {
    .serv-category-grid {
        grid-template-columns: 1fr;
    }

    .serv-category-card-wide {
        grid-column: auto;
    }

    .serv-service-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .serv-header-shell {
        min-height: 3.5rem;
    }

    .serv-container {
        width: min(100% - 28px, 1180px);
    }

    .serv-hero {
        padding: 3.2rem 0 3.8rem;
    }

    .serv-hero-copy h1 {
        margin-top: 1rem;
        font-size: clamp(2.55rem, 13vw, 4.4rem);
        line-height: .92;
    }

    .serv-hero-copy p {
        font-size: .98rem;
        line-height: 1.78;
    }

    .serv-hero-actions {
        gap: .7rem;
    }

    .serv-btn {
        width: 100%;
        min-height: 46px;
    }

    .serv-hero-panel::before {
        inset: -12px;
        border-radius: 28px;
    }

    .serv-panel-main {
        min-height: 220px;
    }

    .serv-panel-row {
        grid-template-columns: 1fr;
    }

    .serv-overview {
        padding-bottom: 4.2rem;
    }

    .serv-section-head {
        margin-bottom: 2rem;
    }

    .serv-section-head h2,
    .serv-method-box h2,
    .serv-final-box h2 {
        font-size: clamp(2rem, 9vw, 3rem);
        line-height: 1.03;
    }

    .serv-section-head p,
    .serv-category-card > p,
    .serv-method-box p,
    .serv-final-box p {
        font-size: .96rem;
        line-height: 1.75;
    }

    .serv-category-card {
        padding: 24px 20px;
        border-radius: 28px;
    }

    .serv-category-top {
        margin-bottom: 1.5rem;
    }

    .serv-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .serv-category-card h3 {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .serv-service-card {
        padding: 16px;
        border-radius: 19px;
    }

    .serv-method {
        padding-bottom: 4.2rem;
    }

    .serv-method-box {
        padding: 30px 22px;
        border-radius: 30px;
    }

    .serv-final-cta {
        padding-bottom: 4.2rem;
    }

    .serv-final-box {
        padding: 3.2rem 1.2rem 3.4rem;
        border-radius: 30px;
    }
}

@media (max-width: 420px) {
    .serv-category-card {
        padding: 22px 18px;
    }

    .serv-panel-card {
        padding: 19px;
    }
}

@media (max-width: 768px) {

    .serv-service-card {
        padding: 20px 20px 22px 20px; /* togli spazio extra a destra */
    }

    .serv-service-arrow {
        top: 14px;
        right: 14px;

        width: 26px;
        height: 26px;

        font-size: .9rem;

        background: rgba(134, 181, 196, 0.10);
        opacity: .9;
    }

    .serv-service-card:hover .serv-service-arrow {
        transform: translate(2px, -2px);
        opacity: .9;
    }
}

/* =========================
   PAGE ANIMATIONS — ELEGANT
========================= */

.serv-hero-copy .serv-kicker,
.serv-hero-copy h1,
.serv-hero-copy p,
.serv-section-head,
.serv-category-card,
.serv-method-box {
    opacity: 0;
    transform: translateY(18px);
}

.serv-hero-copy .serv-kicker {
    animation: servElegantReveal .72s cubic-bezier(.22, .61, .36, 1) forwards;
}

.serv-hero-copy h1 {
    animation: servElegantReveal .82s cubic-bezier(.22, .61, .36, 1) .08s forwards;
}

.serv-hero-copy p {
    animation: servElegantReveal .82s cubic-bezier(.22, .61, .36, 1) .16s forwards;
}

.serv-animate-in {
    animation: servElegantReveal .62s cubic-bezier(.22, .61, .36, 1) forwards;
}

.serv-category-card:nth-child(1).serv-animate-in {
    animation-delay: .03s;
}

.serv-category-card:nth-child(2).serv-animate-in {
    animation-delay: .08s;
}

.serv-category-card:nth-child(3).serv-animate-in {
    animation-delay: .13s;
}

@keyframes servElegantReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .serv-hero-copy .serv-kicker,
    .serv-hero-copy h1,
    .serv-hero-copy p,
    .serv-section-head,
    .serv-category-card,
    .serv-method-box {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .serv-animate-in {
        animation: none;
    }
}

@media (max-width: 768px) {
    .serv-section-head,
    .serv-category-card,
    .serv-method-box {
        transform: translateY(26px);
    }

    .serv-animate-in {
        animation-duration: .82s;
    }
}