/* =========================================================
   CED SOLUTION — MODERN PHP HOME
========================================================= */
:root {
    --ced-green: #5e9e30;
    --ced-green-dark: #477d22;
    --ced-lime: #b8dd72;
    --ced-lime-soft: #e9f5d6;
    --ced-black: #010100;
    --ced-dark: #101510;
    --ced-dark-2: #171d17;
    --ced-ink: #19231b;
    --ced-text: #536055;
    --ced-muted: #768078;
    --ced-white: #ffffff;
    --ced-soft: #f4f7f1;
    --ced-soft-2: #eaf1e4;
    --ced-line: #dce5d7;
    --ced-orange: #ffb45a;
    --ced-blue: #5ba8ff;
    --ced-red: #ff0000;
    --ced-radius-sm: 16px;
    --ced-radius: 26px;
    --ced-radius-lg: 42px;
    --ced-shadow-sm: 0 18px 45px rgba(25, 35, 27, 0.08);
    --ced-shadow: 0 34px 80px rgba(25, 35, 27, 0.15);
    --ced-container: 1240px;
    --ced-transition: 240ms ease;
    --ced-header-height: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ced-text);
    background: var(--ced-white);
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
    margin-bottom: 0;
    color: var(--ced-ink);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -2px;
}
h1 { font-size: clamp(3.5rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2.65rem, 4.5vw, 4.6rem); }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.08; letter-spacing: -1px; }
p { margin-bottom: 0; }
strong, .title-strong { font-weight: 800; }

.container { width: min(calc(100% - 48px), var(--ced-container)); margin-inline: auto; }
.section { padding: 118px 0; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--ced-green-dark);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}
.eyebrow::before {
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: var(--ced-green);
    content: "";
}
.eyebrow--light { color: var(--ced-lime); }
.eyebrow--light::before { background: var(--ced-lime); }
.title-green { color: var(--ced-green); }
.title-lime { color: var(--ced-lime); }

.btn {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    transition: transform var(--ced-transition), background var(--ced-transition), color var(--ced-transition), border-color var(--ced-transition), box-shadow var(--ced-transition);
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { color: var(--ced-white); background: var(--ced-green); box-shadow: 0 18px 40px rgba(94, 158, 48, 0.26); }
.btn-primary:hover { background: var(--ced-green-dark); }
.btn-ghost { color: var(--ced-ink); border-color: var(--ced-line); background: rgba(255,255,255,0.75); }
.btn-ghost:hover { border-color: rgba(94,158,48,0.45); }
.btn-light { color: var(--ced-dark); background: var(--ced-white); }
.btn-dark { color: var(--ced-white); background: var(--ced-dark); }
.btn-dark:hover { background: var(--ced-green-dark); }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ced-ink);
    font-size: 1rem;
    font-weight: 700;
}
.text-link i { transition: transform var(--ced-transition); }
.text-link:hover i { transform: translateX(6px); }

/* HEADER */
.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    border-bottom: 1px solid transparent;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    transition: border-color var(--ced-transition), box-shadow var(--ced-transition), background var(--ced-transition);
}
.site-header.is-scrolled { border-color: var(--ced-line); background: rgba(255,255,255,0.96); box-shadow: 0 14px 36px rgba(25,35,27,0.07); }
.header-inner { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 140px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav > a { position: relative; color: #354037; font-size: 1rem; font-weight: 600; }
.main-nav > a:not(.mobile-nav-cta)::after {
    position: absolute;
    right: 0;
    bottom: -11px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--ced-green);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--ced-transition);
}
.main-nav > a:hover::after, .main-nav > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.mobile-nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--ced-line);
    border-radius: 50%;
    color: var(--ced-green-dark);
    background: var(--ced-white);
}
.header-cta { min-height: 50px; padding: 0 22px; }
.menu-toggle {
    display: none;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 1px solid var(--ced-line);
    border-radius: 15px;
    color: var(--ced-ink);
    background: var(--ced-white);
    font-size: 1.15rem;
}

/* HERO */
.hero {
    position: relative;
    display: flex;
    min-height: calc(100svh - var(--ced-header-height));
    overflow: hidden;
    padding: 0;
    background:
        radial-gradient(circle at 9% 14%, rgba(184,221,114,0.24), transparent 28%),
        linear-gradient(180deg, #fbfdf9 0%, #f5f8f2 100%);
}
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(94,158,48,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94,158,48,0.08) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to right, black, transparent 56%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: calc(100svh - var(--ced-header-height));
    align-items: center;
    grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
    gap: 52px;
}
.hero-copy {
    position: relative;
    z-index: 5;
    padding: 56px 0;
}
.hero-copy h1 { max-width: 12.2ch; }
.hero-lead { max-width: 630px; margin-top: 30px; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 42px; }
.hero-trust > div { display: flex; align-items: center; gap: 12px; }
.hero-trust strong { color: var(--ced-green); font-size: 2.1rem; line-height: 1; letter-spacing: -1px; }
.hero-trust span { color: var(--ced-text); font-size: 1rem; line-height: 1.35; }
.hero-art {
    position: relative;
    align-self: stretch;
    min-height: calc(100svh - var(--ced-header-height));
}
.hero-person {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    width: auto;
    height: min(797px, calc(100svh - var(--ced-header-height) - 18px));
    max-width: none;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 28px 32px rgba(10,20,11,0.18));
}
.hero-blob { position: absolute; z-index: 1; border-radius: 42% 58% 52% 48% / 46% 42% 58% 54%; }
.hero-blob--one {
    width: min(570px, 44vw);
    height: min(550px, 43vw);
    right: 0;
    bottom: 28px;
    background: linear-gradient(145deg, #70b43d 0%, #a9d764 52%, #e0efc5 100%);
    transform: rotate(-7deg);
}
.hero-blob--two {
    z-index: 0;
    width: 410px;
    height: 410px;
    right: -95px;
    top: 34px;
    background: rgba(94,158,48,0.1);
    filter: blur(1px);
    transform: rotate(18deg);
}
.hero-ring {
    position: absolute;
    z-index: 2;
    width: 420px;
    height: 420px;
    right: 34px;
    top: 82px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
}
.hero-ring::after {
    position: absolute;
    inset: 34px;
    border: 1px solid rgba(25,35,27,0.12);
    border-radius: inherit;
    content: "";
}
.hero-dots {
    position: absolute;
    z-index: 3;
    width: 142px;
    height: 142px;
    right: 4px;
    top: 65px;
    opacity: 0.46;
    background-image: radial-gradient(var(--ced-dark) 2px, transparent 2px);
    background-size: 18px 18px;
}
.hero-floating {
    position: absolute;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 290px;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 999px;
    color: var(--ced-ink);
    background: rgba(255,255,255,0.88);
    box-shadow: var(--ced-shadow-sm);
    backdrop-filter: blur(12px);
    font-size: 1rem;
    font-weight: 700;
}
.hero-floating i { color: var(--ced-green); }
.hero-floating--top { top: 16%; left: 0; }
.hero-floating--bottom { right: -2px; bottom: 8%; }

.statement-strip {
    position: relative;
    z-index: 12;
    margin-top: 0;
    background: var(--ced-dark);
}
.statement-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.statement-grid p {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: var(--ced-white);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}
.statement-grid p + p { border-left: 1px solid rgba(255,255,255,0.12); }
.statement-grid i { color: var(--ced-lime); }

/* INTRO */
.intro-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 96px; }
.intro-title h2 { max-width: 10.5ch; }
.intro-copy { max-width: 700px; }
.intro-copy p { font-size: 1.06rem; }
.intro-copy p + p { margin-top: 20px; }
.lead-copy { color: var(--ced-ink); font-size: 1.22rem !important; font-weight: 600; }
.intro-copy .text-link { margin-top: 28px; }

/* SERVICES DARK BENTO */
.services-section { position: relative; overflow: hidden; color: var(--ced-white); background: var(--ced-dark); }
.services-orb {
    position: absolute;
    width: 560px;
    height: 560px;
    right: -250px;
    top: -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94,158,48,0.35), transparent 70%);
    pointer-events: none;
}
.section-heading { display: grid; align-items: end; grid-template-columns: 1.15fr 0.85fr; gap: 80px; margin-bottom: 52px; }
.section-heading h2 { max-width: 13.5ch; }
.section-heading p { max-width: 560px; font-size: 1.06rem; }
.section-heading--light h2, .section-heading--light p { color: var(--ced-white); }
.section-heading--light p { color: rgba(255,255,255,0.68); }
.services-bento {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    grid-template-rows: repeat(2, minmax(265px, auto));
    gap: 18px;
}
.service-card {
    position: relative;
    display: flex;
    min-height: 265px;
    overflow: hidden;
    flex-direction: column;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--ced-radius);
    background: var(--ced-dark-2);
    transition: transform var(--ced-transition), border-color var(--ced-transition), background var(--ced-transition);
}
.service-card::after {
    position: absolute;
    width: 160px;
    height: 160px;
    right: -70px;
    bottom: -70px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    content: "";
    transition: transform var(--ced-transition);
}
.service-card:hover { transform: translateY(-7px); border-color: rgba(184,221,114,0.42); }
.service-card:hover::after { transform: scale(1.22); }
.service-card--large { grid-row: span 2; min-height: 548px; background: linear-gradient(155deg, #1a231a, #101510); }
.service-card--green { background: linear-gradient(145deg, #5e9e30, #477d22); }
.service-card--accent { background: linear-gradient(145deg, #222c21, #2f4329); }
.service-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 38px; }
.service-number { color: rgba(255,255,255,0.45); font-size: 1rem; font-weight: 700; }
.service-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: var(--ced-lime);
    background: rgba(255,255,255,0.08);
    font-size: 1.2rem;
}
.service-card--green .service-icon { color: var(--ced-dark); background: var(--ced-lime); }
.service-card h3 { max-width: 13ch; color: var(--ced-white); }
.service-card--large h3 { margin-top: auto; font-size: clamp(2rem, 3vw, 3.1rem); }
.service-card p { margin-top: 18px; color: rgba(255,255,255,0.66); font-size: 1rem; }
.service-card--green p { color: rgba(255,255,255,0.82); }
.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 26px;
    color: var(--ced-lime);
    font-size: 1rem;
    font-weight: 700;
}
.service-card--green a { color: var(--ced-white); }
.service-card a i { transition: transform var(--ced-transition); }
.service-card a:hover i { transform: translate(4px, -4px); }
.services-marquee {
    position: relative;
    margin-top: 34px;
    overflow: hidden;
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* =========================================================
   CARD ELABORAZIONE BUSTE PAGA
========================================================= */

.service-card--payroll {
    border-color: rgba(184, 221, 114, 0.35);

    color: var(--ced-dark);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(255, 255, 255, 0.5),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            var(--ced-lime) 0%,
            #dcefb7 100%
        );
}

.service-card--payroll::after {
    border-color: rgba(16, 21, 16, 0.12);
}

.service-card--payroll .service-number {
    color: rgba(16, 21, 16, 0.55);
}

.service-card--payroll .service-icon {
    color: var(--ced-white);

    background: var(--ced-dark);
}

.service-card--payroll h3 {
    color: var(--ced-dark);
}

.service-card--payroll p {
    color: rgba(16, 21, 16, 0.72);
}

.service-card--payroll a {
    color: var(--ced-dark);
}

.service-card--payroll:hover {
    border-color: rgba(184, 221, 114, 0.75);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(255, 255, 255, 0.65),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            #c4e58a 0%,
            #e3f2c5 100%
        );
}
.services-marquee-track {
    display: flex;
    width: max-content;
    animation: services-marquee 30s linear infinite;
    will-change: transform;
}
.services-marquee:hover .services-marquee-track { animation-play-state: paused; }
.services-marquee-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
}
.service-label {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    gap: 12px;
    padding: 0 19px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 999px;
    color: var(--ced-white);
    background: rgba(255,255,255,0.06);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}
.service-label i { color: var(--ced-lime); font-size: 0.52rem; }
.services-cta { display: flex; justify-content: flex-end; margin-top: 26px; }
@keyframes services-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* =========================================================
   ADVANTAGES SLIDER — LOOP CONTINUO
========================================================= */

.advantages-section {
    overflow: hidden;

    background: var(--ced-white);
}


.slider-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 48px;
}


.slider-heading h2 {
    max-width: 15ch;
}


.slider-controls {
    display: flex;

    gap: 12px;
}


.slider-arrow {
    display: grid;

    width: 58px;
    height: 58px;

    place-items: center;

    flex: 0 0 auto;

    border: 1px solid var(--ced-line);
    border-radius: 50%;

    color: var(--ced-ink);
    background: var(--ced-white);

    font-size: 1rem;

    transition:
        color var(--ced-transition),
        background var(--ced-transition),
        border-color var(--ced-transition),
        transform var(--ced-transition);
}


.slider-arrow:hover {
    color: var(--ced-white);

    border-color: var(--ced-green);

    background: var(--ced-green);

    transform: translateY(-3px);
}


.slider-arrow:focus-visible {
    outline: 3px solid rgba(94, 158, 48, 0.25);
    outline-offset: 4px;
}


/*
 * Il contenitore nasconde le slide che escono dalla viewport.
 * La larghezza delle card consente di vedere una parte
 * della slide successiva.
 */
.advantages-slider {
    position: relative;

    overflow: hidden;

    cursor: grab;

    touch-action: pan-y;

    user-select: none;

    -webkit-user-select: none;
}


.advantages-slider.is-dragging {
    cursor: grabbing;
}


/*
 * Il movimento viene gestito mediante transform,
 * evitando gli errori di calcolo di scrollLeft.
 */
.advantages-track {
    display: flex;

    width: max-content;

    gap: 22px;

    transform: translate3d(0, 0, 0);

    transition:
        transform 650ms cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        );

    will-change: transform;
}


.advantages-track.is-no-transition,
.advantages-slider.is-dragging .advantages-track {
    transition: none !important;
}


.advantage-slide {
    flex:
        0 0
        min(72vw, 860px);

    min-height: 390px;

    padding: 42px;

    border: 1px solid var(--ced-line);
    border-radius: var(--ced-radius-lg);

    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(184, 221, 114, 0.34),
            transparent 28%
        ),
        var(--ced-soft);

    box-shadow: var(--ced-shadow-sm);

    user-select: none;

    -webkit-user-select: none;
}


.advantage-slide--dark {
    border-color:
        rgba(255, 255, 255, 0.09);

    background:
        radial-gradient(
            circle at 90% 8%,
            rgba(94, 158, 48, 0.22),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            var(--ced-dark),
            #243024
        );
}


.advantage-slide--dark h3 {
    color: var(--ced-white);
}


.advantage-slide--dark p {
    color: rgba(255, 255, 255, 0.67);
}


.advantage-slide-top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 70px;
}


.advantage-number {
    color: var(--ced-green);

    font-size: 1.15rem;
    font-weight: 800;
}


.advantage-icon {
    display: grid;

    width: 64px;
    height: 64px;

    place-items: center;

    flex: 0 0 auto;

    border-radius: 20px;

    color: var(--ced-green-dark);
    background: var(--ced-lime-soft);

    font-size: 1.3rem;
}


.advantage-slide--dark .advantage-icon {
    color: var(--ced-dark);
    background: var(--ced-lime);
}


.advantage-slide h3 {
    max-width: 16ch;

    font-size:
        clamp(
            2rem,
            3.2vw,
            3.5rem
        );
}


.advantage-slide p {
    max-width: 680px;

    margin-top: 24px;

    font-size: 1.06rem;
}


/*
 * Barra di avanzamento.
 * La larghezza viene calcolata in base al numero
 * reale di slide, senza considerare i due cloni.
 */
.slider-progress {
    height: 4px;

    margin-top: 34px;

    overflow: hidden;

    border-radius: 999px;

    background: var(--ced-line);
}


.slider-progress span {
    display: block;

    width:
        calc(
            100% / var(--slides-count)
        );

    height: 100%;

    border-radius: inherit;

    background: var(--ced-green);

    transform: translateX(0);

    transition:
        transform 500ms
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        );
}


/* =========================================================
   RESPONSIVE SLIDER
========================================================= */

@media (max-width: 900px) {

    .slider-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    .advantage-slide {
        flex-basis:
            min(82vw, 760px);
    }

}


@media (max-width: 640px) {

    .slider-heading {
        margin-bottom: 38px;
    }


    .slider-controls {
        width: 100%;

        justify-content: flex-end;
    }


    .slider-arrow {
        width: 54px;
        height: 54px;
    }


    .advantage-slide {
        flex-basis: 82vw;

        min-height: 430px;

        padding: 29px;
    }


    .advantage-slide-top {
        margin-bottom: 55px;
    }


    .advantage-slide h3 {
        font-size: 2.2rem;
    }

}


@media (prefers-reduced-motion: reduce) {

    .advantages-track {
        transition-duration: 0.01ms;
    }

}

/* =========================================================
   PLATFORM
========================================================= */

.platform-section {
    overflow: hidden;
    background: var(--ced-soft-2);
}

.platform-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 86px;
}

.platform-copy h2 {
    max-width: 13.4ch;
}

.platform-section h2 {
    font-size: clamp(2.65rem, 4.5vw, 4.2rem);
}

.platform-copy > p {
    margin-top: 28px;
    font-size: 1.06rem;
}

.platform-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 32px 0;
}

.platform-features span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(94, 158, 48, 0.18);
    border-radius: 16px;
    color: var(--ced-ink);
    background: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    font-weight: 600;
}

.platform-features i {
    color: var(--ced-green);
}

.platform-visual {
    position: relative;
    min-height: 560px;
}

.platform-panel {
    position: absolute;
    inset: 20px 0 20px 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 34px;
    background: var(--ced-white);
    box-shadow: var(--ced-shadow);
}

.platform-panel-head {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--ced-line);
}

.platform-panel-head > div {
    display: flex;
    align-items: center;
    gap: 11px;
}

.platform-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ced-green);
    box-shadow: 0 0 0 7px rgba(94, 158, 48, 0.11);
}

.platform-panel-head strong,
.platform-panel-head span {
    color: var(--ced-ink);
    font-size: 1rem;
}

.platform-dashboard {
    display: grid;
    min-height: 450px;
    grid-template-columns: 80px 1fr;
}

.dashboard-nav {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 27px;
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.55);
    background: var(--ced-dark);
}

.dashboard-logo {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    place-items: center;
    border-radius: 13px;
    color: var(--ced-dark);
    background: var(--ced-lime);
    font-size: 1rem;
    font-weight: 800;
}

.dashboard-content {
    padding: 27px;
    background: #fbfcfa;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dashboard-welcome span,
.dashboard-welcome strong {
    display: block;
    color: var(--ced-ink);
    font-size: 1rem;
}

.dashboard-avatar {
    display: grid !important;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: var(--ced-white) !important;
    background: var(--ced-green);
    font-weight: 800;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dashboard-stats article {
    position: relative;
    min-height: 126px;
    padding: 18px;
    border: 1px solid var(--ced-line);
    border-radius: 18px;
    background: var(--ced-white);
}

.dashboard-stats span,
.dashboard-stats strong {
    display: block;
    color: var(--ced-ink);
    font-size: 1rem;
}

.dashboard-stats strong {
    margin-top: 7px;
}

.dashboard-stats i {
    position: absolute;
    right: 16px;
    bottom: 16px;
    color: var(--ced-green);
    font-size: 1.2rem;
}

.dashboard-list {
    margin-top: 16px;
    padding: 8px 18px;
    border: 1px solid var(--ced-line);
    border-radius: 18px;
    background: var(--ced-white);
}

.dashboard-list > div {
    display: grid;
    min-height: 68px;
    align-items: center;
    grid-template-columns: 12px 1fr auto;
    gap: 12px;
}

.dashboard-list > div + div {
    border-top: 1px solid var(--ced-line);
}

.dashboard-list strong,
.dashboard-list span {
    color: var(--ced-ink);
    font-size: 1rem;
}

.status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status--green {
    background: var(--ced-green);
}

.status--orange {
    background: var(--ced-orange);
}

.status--blue {
    background: var(--ced-blue);
}

.platform-floating {
    position: absolute;
    z-index: 4;
    right: -18px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 310px;
    padding: 18px 20px;
    border-radius: 20px;
    color: var(--ced-white);
    background: var(--ced-dark);
    box-shadow: var(--ced-shadow);
    font-size: 1rem;
}

.platform-floating i {
    color: var(--ced-lime);
    font-size: 1.3rem;
}

.platform-floating span {
    line-height: 1.45;
}

/* NEWS */
.news-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 50px; }
.news-heading h2 { max-width: 13ch; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { display: flex; min-height: 100%; overflow: hidden; flex-direction: column; border: 1px solid var(--ced-line); border-radius: var(--ced-radius); background: var(--ced-white); box-shadow: var(--ced-shadow-sm); transition: transform var(--ced-transition), box-shadow var(--ced-transition); }
.news-card:hover { transform: translateY(-7px); box-shadow: var(--ced-shadow); }
.news-visual { position: relative; display: grid; min-height: 280px; overflow: hidden; place-items: center; background: linear-gradient(145deg, #5e9e30, #9dca61); }
.news-card--featured .news-visual { min-height: 280px; background: linear-gradient(145deg, var(--ced-dark), #334533); }
.news-card--green .news-visual { background: linear-gradient(145deg, #6dab3b, #d8edb7); }
.news-card--dark .news-visual { background: linear-gradient(145deg, #202b22, #5e9e30); }
.news-visual > i { position: relative; z-index: 3; color: var(--ced-white); font-size: 3rem; }
.news-category { position: absolute; z-index: 4; top: 20px; left: 20px; padding: 9px 14px; border-radius: 999px; color: var(--ced-ink); background: var(--ced-white); font-size: 1rem; font-weight: 700; }
.news-shape { position: absolute; width: 210px; height: 210px; right: -50px; bottom: -75px; border: 28px solid rgba(255,255,255,0.12); border-radius: 50%; }
.news-shape::after { position: absolute; width: 78px; height: 78px; top: -95px; left: -85px; border-radius: 22px; background: rgba(255,255,255,0.12); content: ""; transform: rotate(18deg); }
.news-content { display: flex; flex: 1; flex-direction: column; padding: 28px; }
.news-date { display: block; margin-bottom: 14px; color: var(--ced-muted); font-size: 1rem; }
.news-content h3 { line-height: 1.12; }
.news-content p { margin-top: 18px; font-size: 1rem; }
.news-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 22px; color: var(--ced-ink); font-size: 1rem; font-weight: 700; }
.news-link i { transition: transform var(--ced-transition); }
.news-link:hover i { transform: translateX(6px); }

/* CONTACT */
.contact-section { position: relative; overflow: hidden; padding: 118px 0; color: var(--ced-white); background: var(--ced-dark); }
.contact-glow { position: absolute; width: 650px; height: 650px; left: -330px; bottom: -330px; border-radius: 50%; background: radial-gradient(circle, rgba(94,158,48,0.42), transparent 70%); }
.contact-grid { position: relative; z-index: 2; display: grid; align-items: start; grid-template-columns: 0.86fr 1.14fr; gap: 88px; }
.contact-copy h2, .contact-copy p { color: var(--ced-white); }
.contact-copy h2 {
    max-width: 11.8ch;
    display: inline;
    font-size: clamp(2.65rem, 4.5vw, 3.9rem);
}
.contact-copy > p { max-width: 590px; margin-top: 28px; color: rgba(255,255,255,0.67); font-size: 1.06rem; }
.contact-direct { display: grid; gap: 12px; margin-top: 34px; }
.contact-direct > a, .contact-direct > div { display: flex; align-items: center; gap: 15px; padding: 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; background: rgba(255,255,255,0.05); }
.contact-direct i { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; color: var(--ced-dark); background: var(--ced-lime); font-size: 1.1rem; }
.contact-direct span, .contact-direct strong { display: block; color: var(--ced-white); font-size: 1rem; }
.contact-direct span { color: rgba(255,255,255,0.58); }
.contact-direct strong { margin-bottom: 2px; }
.contact-form { padding: 38px; border-radius: 30px; background: var(--ced-white); box-shadow: var(--ced-shadow); }
.form-heading { margin-bottom: 28px; }
.form-heading span { color: var(--ced-green-dark); font-size: 1rem; font-weight: 700; }
.form-heading h3 { margin-top: 8px; color: var(--ced-ink); font-size: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: grid; gap: 9px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { color: var(--ced-ink); font-size: 1rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--ced-line); border-radius: 15px; color: var(--ced-ink); background: var(--ced-white); font-size: 1rem; outline: none; transition: border-color var(--ced-transition), box-shadow var(--ced-transition); }
.form-field input, .form-field select { min-height: 54px; padding: 0 15px; }
.form-field textarea { min-height: 130px; padding: 14px 15px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--ced-green); box-shadow: 0 0 0 4px rgba(94,158,48,0.1); }
.privacy-check { display: flex; align-items: flex-start; gap: 11px; color: var(--ced-text); font-size: 1rem; }
.privacy-check input { margin-top: 6px; }
.form-submit { width: 100%; }
.form-response { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 15px 17px; border: 1px solid rgba(94,158,48,0.24); border-radius: 15px; color: #315b2c; background: rgba(94,158,48,0.09); font-size: 1rem; font-weight: 600; }
.form-response i { margin-top: 5px; color: var(--ced-green); }

/* FOOTER */
.site-footer { padding: 76px 0 28px; color: rgba(255,255,255,0.65); background: #080b08; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.65fr 1.25fr; gap: 55px; }
.footer-brand img { width: 210px; height: auto; }
.footer-brand p { max-width: 430px; margin-top: 22px; color: rgba(255,255,255,0.58); font-size: 1rem; }
.footer-column { display: grid; align-content: start; gap: 11px; }
.footer-column h3 { margin-bottom: 10px; color: var(--ced-white); font-size: 1.2rem; letter-spacing: -1px; }
.footer-column a, .footer-column p { color: rgba(255,255,255,0.62); font-size: 1rem; }
.footer-column a:hover { color: var(--ced-lime); }
.footer-company p + p { margin-top: 9px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 54px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { color: rgba(255,255,255,0.48); font-size: 1rem; }
.credits span, .credits a { color: var(--ced-lime); }
.credits .red { color: var(--ced-red); }

/* FLOATING ACTIONS */
.whatsapp-float {
    position: fixed;
    z-index: 950;
    right: 22px;
    bottom: 92px;
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    gap: 11px;
    padding: 0 20px;
    border-radius: 999px;
    color: var(--ced-white);
    background: #25d366;
    box-shadow: 0 20px 40px rgba(37,211,102,0.28);
    font-size: 1rem;
    font-weight: 700;
    transition: transform var(--ced-transition), box-shadow var(--ced-transition);
}
.whatsapp-float:hover { transform: translateY(-4px); box-shadow: 0 24px 46px rgba(37,211,102,0.36); }
.whatsapp-float i { font-size: 1.35rem; }
.back-to-top {
    position: fixed;
    z-index: 950;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--ced-white);
    background: var(--ced-dark);
    box-shadow: 0 18px 36px rgba(25,35,27,0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity var(--ced-transition), visibility var(--ced-transition), transform var(--ced-transition), background var(--ced-transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--ced-green); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 760ms ease, transform 760ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/** Pagination **/
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style-type: none;
    align-items: center;
}
.page-item.active {
    background-color: #5E9E30;
    padding: .25rem .8rem;
    border-radius: 50px;
}
.page-item.active span {
    color: #fff;
}
.page-item:has(a) {
    border: 1px solid #131B11;
    padding: .25rem .8rem;
    border-radius: 50px;
}
.page-item:has(a):hover {
    background-color: #5E9E30;
    border-color: #5E9E30;
}
.page-item:has(a):hover a{
    color: #fff;
}


/** Alerts **/
.alert {
    padding: 1rem;
    border: 1px solid #e7e0e1;
    position: relative;
    border-radius: 0.375rem;
}
.alert-danger {
    color: #58151c;
    background-color: #f8d7da;
    border-color: #f1aeb5;
}
.alert-success {
    color: #0a3622;
    background-color: #d1e7dd;
    border-color: #a3cfbb;
}
.resultDiv {
    margin: 1rem 0;
}

/** Modal **/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-wrapper{
    display: flex;
    align-items: center;
    min-height: calc(100% - 1.75rem * 2);
    height: 100%;
    overflow-y: auto;
    padding: 1rem 0;
}
.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  width: 50%;
  border-radius: 5px;
}
.modal-header{
    margin-bottom: 3rem;
}
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.contact-section label{
    color: #111;
}

.news-card img{
    aspect-ratio: 5 / 3;
    object-fit: cover;
    height: 100%;
}

/* RESPONSIVE */
@media (max-width: 1160px) {
    .main-nav {
        position: fixed;
        top: 92px;
        right: 22px;
        left: 22px;
        display: none;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        align-items: stretch;
        flex-direction: column;
        gap: 3px;
        padding: 16px;
        border: 1px solid var(--ced-line);
        border-radius: 22px;
        background: var(--ced-white);
        box-shadow: var(--ced-shadow);
    }
    .main-nav.is-open { display: flex; }
    .main-nav > a { padding: 14px; border-radius: 13px; }
    .main-nav > a::after { display: none; }
    .main-nav > a:hover, .main-nav > a.is-active { background: var(--ced-soft); }
    .mobile-nav-cta { display: inline-flex; justify-content: center; margin-top: 7px; color: var(--ced-white) !important; background: var(--ced-green) !important; }
    .header-cta { display: none; }
    .menu-toggle { display: grid; }
    .hero-grid { grid-template-columns: 0.96fr 1.04fr; gap: 24px; }
    .hero-person { right: -28px; height: min(660px, calc(100svh - var(--ced-header-height) - 24px)); }
    .services-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .service-card--large { grid-row: auto; min-height: 340px; }
    .platform-grid, .contact-grid { gap: 58px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-company { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .section { padding: 92px 0; }
    h1 { font-size: clamp(3.25rem, 10vw, 5.25rem); }
    h2 { font-size: clamp(2.45rem, 8vw, 4rem); }
    .hero { min-height: calc(100svh - var(--ced-header-height)); padding-top: 34px; }
    .hero-grid { min-height: calc(100svh - var(--ced-header-height)); grid-template-columns: 1fr; }
    .hero-copy { padding: 20px 0 0; }
    .hero-copy h1 { max-width: 10ch; }
    .hero-art { min-height: 560px; }
    .hero-person { right: 50%; bottom: 0; width: auto; height: 560px; transform: translateX(54%); }
    .hero-blob--one { width: 560px; height: 530px; right: 50%; bottom: 18px; transform: translateX(55%) rotate(-7deg); }
    .hero-blob--two { right: -90px; }
    .hero-ring { right: 50%; transform: translateX(59%); }
    .hero-floating--top { top: 90px; left: 5%; }
    .hero-floating--bottom { right: 3%; bottom: 45px; }
    .statement-grid { grid-template-columns: 1fr; }
    .statement-grid p + p { border-top: 1px solid rgba(255,255,255,0.12); border-left: 0; }
    .intro-grid, .section-heading, .platform-grid, .contact-grid { grid-template-columns: 1fr; gap: 46px; }
    .intro-title h2, .section-heading h2, .platform-copy h2, .contact-copy h2 { max-width: 12ch; }
    .services-bento { grid-template-columns: 1fr; }
    .services-cta { justify-content: flex-start; }
    .advantage-slide { flex-basis: min(84vw, 760px); }
    .platform-visual { min-height: 560px; }
    .news-heading { align-items: flex-start; flex-direction: column; }
    .modal-content {
        background-color: #fff;
        margin: auto;
        padding: 20px;
        width: 92%;
        border-radius: 5px;
    }
}

@media (max-width: 640px) {
    body { padding-bottom: 74px; }
    .container { width: min(calc(100% - 28px), var(--ced-container)); }
    .section { padding: 76px 0; }
    .header-inner { min-height: 78px; }
    .brand img { width: 120px; }
    .main-nav { top: 78px; right: 14px; left: 14px; }
    .header-phone { display: none; }
    .menu-toggle { width: 47px; height: 47px; }
    h1 { font-size: 3.05rem; letter-spacing: -2px; }
    h2 { font-size: 2.55rem; letter-spacing: -2px; }
    h3 { font-size: 1.55rem; }
    :root { --ced-header-height: 78px; }
    .hero { min-height: calc(100svh - var(--ced-header-height)); padding-top: 30px; }
    .hero-copy h1 { max-width: 11.6ch; }
    .hero-lead { font-size: 1rem; }
    .hero-actions, .hero-actions .btn { width: 100%; }
    .hero-trust { display: grid; grid-template-columns: 1fr; gap: 15px; }
    .hero-art { min-height: 470px; margin-top: -10px; }
    .hero-person { width: auto; height: 470px; max-width: none; transform: translateX(55%); }
    .hero-blob--one { width: 440px; height: 430px; transform: translateX(54%) rotate(-7deg); }
    .hero-ring { width: 340px; height: 340px; top: 80px; transform: translateX(61%); }
    .hero-dots { display: none; }
    .hero-floating { max-width: 240px; padding: 13px 15px; font-size: 1rem; }
    .hero-floating--top { top: 72px; left: 0; }
    .hero-floating--bottom { right: 0; bottom: 26px; }
    .statement-grid p { min-height: 76px; justify-content: flex-start; text-align: left; }
    .section-heading { margin-bottom: 38px; }
    .service-card { min-height: 310px; padding: 25px; }
    .service-card--large { min-height: 390px; }
    .service-card--large h3 { font-size: 2.2rem; }
    .slider-heading { align-items: flex-start; flex-direction: column; }
    .advantage-slide { flex-basis: 88vw; min-height: 430px; padding: 29px; }
    .advantage-slide-top { margin-bottom: 55px; }
    .advantage-slide h3 { font-size: 2.2rem; }
    .platform-features { grid-template-columns: 1fr; }
    .platform-visual { min-height: 500px; }
    .platform-panel { inset: 10px 0 25px; }
    .platform-panel-head > span { display: none; }
    .platform-dashboard { grid-template-columns: 58px 1fr; }
    .dashboard-nav { gap: 23px; }
    .dashboard-content { padding: 17px 13px; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-stats article { min-height: 82px; }
    .dashboard-list { display: none; }
    .platform-floating { right: 0; bottom: 0; max-width: 260px; }
    .news-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
    .news-visual, .news-card--featured .news-visual { min-height: 260px; }
    .form-field--full { grid-column: auto; }
    .contact-form { padding: 26px 20px; }
    .footer-company { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .whatsapp-float {
        right: 12px;
        bottom: 10px;
        left: 12px;
        justify-content: center;
        min-height: 56px;
        border: 2px solid rgba(255,255,255,0.35);
    }
    .grecaptcha-badge {
        bottom: 150px !important;
    }
    .back-to-top { right: 16px; bottom: 82px; width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .services-marquee { overflow-x: auto; mask-image: none; }
    .services-marquee-track { animation: none; }
}

/* =========================================================
   AGGIORNAMENTO POSIZIONAMENTO — PIATTAFORMA HR
========================================================= */

/* Hero con logo aziendale al posto della figura umana */
.hero-brand-art {
    display: grid;
    place-items: center;
}

.hero-logo-halo {
    position: absolute;
    z-index: 2;
    width: min(520px, 42vw);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 0 0 42px rgba(255, 255, 255, 0.08),
        0 34px 90px rgba(25, 35, 27, 0.12);
    backdrop-filter: blur(4px);
}

.hero-brand-logo {
    position: relative;
    z-index: 5;
    width: min(470px, 38vw);
    height: auto;
    filter: drop-shadow(0 25px 36px rgba(10, 20, 11, 0.17));
}

.platform-section--primary {
    position: relative;
    border-top: 1px solid rgba(94, 158, 48, 0.14);
    border-bottom: 1px solid rgba(94, 158, 48, 0.14);
    background:
        radial-gradient(circle at 6% 12%, rgba(184, 221, 114, 0.22), transparent 28%),
        var(--ced-soft-2);
}

.platform-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.platform-actions .text-link {
    color: var(--ced-ink);
}

.service-availability {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--ced-lime);
    background: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
    font-weight: 700;
}

.service-card--green .service-availability {
    color: var(--ced-dark);
    border-color: rgba(16, 21, 16, 0.12);
    background: rgba(255, 255, 255, 0.35);
}

.service-card--request {
    border-color: rgba(184, 221, 114, 0.35);
    color: var(--ced-dark);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.5), transparent 38%),
        linear-gradient(145deg, var(--ced-lime) 0%, #dcefb7 100%);
}

.service-card--request::after {
    border-color: rgba(16, 21, 16, 0.12);
}

.service-card--request .service-number {
    color: rgba(16, 21, 16, 0.55);
}

.service-card--request .service-icon {
    color: var(--ced-white);
    background: var(--ced-dark);
}

.service-card--request .service-availability {
    color: var(--ced-dark);
    border-color: rgba(16, 21, 16, 0.13);
    background: rgba(255, 255, 255, 0.38);
}

.service-card--request h3,
.service-card--request a {
    color: var(--ced-dark);
}

.service-card--request p {
    color: rgba(16, 21, 16, 0.72);
}

.services-partner-note {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.055);
}

.services-partner-note > i {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    color: var(--ced-dark);
    background: var(--ced-lime);
}

.services-partner-note p,
.services-partner-note strong {
    color: inherit;
    font-size: 1rem;
}

.services-partner-note strong {
    color: var(--ced-white);
}

@media (max-width: 900px) {
    .hero-brand-logo {
        width: min(480px, 72vw);
    }

    .hero-logo-halo {
        width: min(540px, 80vw);
    }
}

@media (max-width: 640px) {
    .hero-brand-art {
        min-height: 390px;
    }

    .hero-brand-logo {
        width: min(390px, 82vw);
    }

    .hero-logo-halo {
        width: min(430px, 94vw);
    }

    .platform-actions,
    .platform-actions .btn,
    .platform-actions .text-link {
        width: 100%;
    }

    .platform-actions .text-link {
        justify-content: center;
    }

    .services-partner-note {
        flex-direction: column;
    }
}


/* =========================================================
   V3 — HERO LOGO, GRIGLIE A 6 E COLLEGAMENTI INTERNI
========================================================= */
.btn-outline-dark {
    color: var(--ced-ink);
    border-color: rgba(25, 35, 27, 0.24);
    background: rgba(255,255,255,0.58);
}
.btn-outline-dark:hover { color: var(--ced-white); border-color: var(--ced-green-dark); background: var(--ced-green-dark); }

.hero-brand-stage { position: relative; display: grid; min-height: calc(100svh - var(--ced-header-height)); align-self: stretch; place-items: center; }
.hero-brand-orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-brand-orbit--outer { width: min(590px, 45vw); aspect-ratio: 1; border: 1px solid rgba(94,158,48,0.22); box-shadow: inset 0 0 0 58px rgba(94,158,48,0.035); }
.hero-brand-orbit--outer::before { position: absolute; inset: 62px; border: 1px solid rgba(25,35,27,0.1); border-radius: inherit; content: ""; }
.hero-brand-orbit--middle { width: min(430px, 34vw); aspect-ratio: 1; background: linear-gradient(145deg, rgba(94,158,48,0.18), rgba(184,221,114,0.56)); transform: rotate(-9deg); border-radius: 44% 56% 51% 49% / 47% 43% 57% 53%; }
.hero-brand-core { position: relative; z-index: 5; display: grid; width: min(410px, 32vw); aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,0.95); border-radius: 50%; background: rgba(255,255,255,0.98); box-shadow: 0 34px 85px rgba(25,35,27,0.16), inset 0 0 0 16px rgba(244,247,241,0.9); }
.hero-brand-core img { width: 76%; height: auto; filter: none; }
.hero-brand-dots { position: absolute; z-index: 2; width: 150px; height: 150px; right: 0; top: 13%; opacity: 0.36; background-image: radial-gradient(var(--ced-green-dark) 2px, transparent 2px); background-size: 18px 18px; }
.hero-brand-chip { position: absolute; z-index: 7; display: inline-flex; min-height: 58px; align-items: center; gap: 11px; padding: 0 19px; border: 1px solid rgba(255,255,255,0.9); border-radius: 999px; color: var(--ced-ink); background: rgba(255,255,255,0.94); box-shadow: var(--ced-shadow-sm); backdrop-filter: blur(12px); font-size: 1rem; font-weight: 700; }
.hero-brand-chip i { color: var(--ced-green); }
.hero-brand-chip--top { top: 18%; left: 0; }
.hero-brand-chip--bottom { right: -10px; bottom: 15%; }

.platform-actions { align-items: stretch; gap: 14px; }
.platform-actions .btn { min-width: 245px; }

.services-bento--six { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
.services-bento--six .service-card,
.services-bento--six .service-card--large,
.services-bento--six .service-card--featured { min-height: 390px; grid-row: auto; grid-column: auto; }
.services-bento--six .service-card h3 { margin-top: 0; font-size: clamp(1.65rem, 2.2vw, 2.35rem); }
.services-bento--six .service-card--featured { background: linear-gradient(155deg, #1a231a, #101510); }
.service-card--lime-dark { background: linear-gradient(145deg, #304529, #5e9e30); }
.service-card--lime-dark .service-icon { color: var(--ced-dark); background: var(--ced-lime); }
.service-card--lime-dark .service-availability { color: var(--ced-dark); background: var(--ced-lime); border-color: transparent; }

.contact-copy { display: block; }
.contact-copy > .eyebrow,
.contact-heading-block .eyebrow { display: flex; width: fit-content; }
.contact-heading-block { display: block; }
.contact-heading-block h2 { display: block; margin-top: 0; }

.inner-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; color: rgba(255,255,255,0.58); font-size: 1rem; }
.inner-breadcrumbs a:hover { color: var(--ced-lime); }
.inner-breadcrumbs i { color: var(--ced-green); font-size: 0.85rem; }
.inner-breadcrumbs span { color: var(--ced-white); }

@media (max-width: 1160px) {
    .services-bento--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-brand-chip--top { left: -20px; }
}
@media (max-width: 900px) {
    .hero-brand-stage { min-height: 560px; }
    .hero-brand-orbit--outer { width: 520px; }
    .hero-brand-orbit--middle { width: 390px; }
    .hero-brand-core { width: 350px; }
    .hero-brand-chip--top { top: 12%; left: 4%; }
    .hero-brand-chip--bottom { right: 3%; bottom: 10%; }
}
@media (max-width: 640px) {
    .hero-brand-stage { min-height: 430px; margin-top: -10px; }
    .hero-brand-orbit--outer { width: 390px; }
    .hero-brand-orbit--middle { width: 305px; }
    .hero-brand-core { width: 280px; }
    .hero-brand-dots { display: none; }
    .hero-brand-chip { min-height: 48px; padding: 0 14px; font-size: 1rem; }
    .hero-brand-chip--top { top: 8%; left: 0; }
    .hero-brand-chip--bottom { right: 0; bottom: 7%; }
    .platform-actions .btn { width: 100%; min-width: 0; }
    .services-bento--six { grid-template-columns: 1fr; }
    .services-bento--six .service-card { min-height: 330px; }
}
