.chisiamo-page {
    --chisiamo-white: #ffffff;
    --chisiamo-ink: #111111;
    --chisiamo-blue: #0a4272;
    --chisiamo-blue-dark: #062d4e;
    --chisiamo-blue-soft: #d3ebff;
    --chisiamo-grey: #e7ebef;
    --chisiamo-muted: #66717b;
    --chisiamo-max-width: 1480px;
}

/* =========================================================
   BASE
   ========================================================= */

.chisiamo-page {
    min-width: 320px;
    color: var(--chisiamo-ink);
    background: var(--chisiamo-white);
}

.chisiamo-page main {
    width: 100%;
    overflow: hidden;
}

.chisiamo-page img {
    display: block;
}

.chisiamo-page .mobile-menu a.active,
.chisiamo-page .nav-desktop a.active {
    color: var(--blue);
}

/* =========================================================
   HERO
   ========================================================= */

.chisiamo-page .header_chisiamo {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    background:
            linear-gradient(
                    120deg,
                    rgba(4, 20, 35, .64),
                    rgba(10, 66, 114, .20)
            ),
            url("img/bg-chisiamo1.jpg") center / cover no-repeat;
}

/* =========================================================
   CONTENITORE
   ========================================================= */

.chisiamo-page .container {
    width: min(calc(100% - 48px), var(--chisiamo-max-width));
    margin-inline: auto;
}

/* =========================================================
   CHI SIAMO / COSA FACCIAMO
   ========================================================= */

.chisiamo-page .section_chisiamo {
    min-height: 760px;
    padding: 105px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 75px;
}

.chisiamo-page .content_chisiamo {
    width: min(650px, 100%);
    flex: 1 1 0;
}

.chisiamo-page .maintext_chisiamo {
    margin-bottom: 52px;
}

.chisiamo-page .title_chisiamo,
.chisiamo-page .title_chefacciamo {
    margin: 0 0 24px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(46px, 5vw, 48px);
    font-weight: 400;
    letter-spacing: -3px;
    line-height: 1;
    text-transform: none;
}

.chisiamo-page .title_chisiamo em,
.chisiamo-page .title_chefacciamo em {
    color: var(--blue);
    font-style: normal;
}

.chisiamo-page .text_chisiamo,
.chisiamo-page .text_chefacciamo {
    max-width: 620px;
    color: var(--muted);
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.chisiamo-page .text_chisiamo span,
.chisiamo-page .text_chefacciamo span,
.chisiamo-page .span_text {
    color: var(--blue);
    font-weight: 600;
}

.chisiamo-page .img_second_chisiamo {
    width: min(500px, 42%);
    height: auto;
    flex: 0 1 500px;
    object-fit: contain;
}

/* =========================================================
   PER CHI LAVORIAMO / PRINCIPI
   ========================================================= */

.chisiamo-page .section_lavoriamo {
    padding: 90px max(24px, calc((100vw - var(--chisiamo-max-width)) / 2));
    color: var(--chisiamo-white);
    background: var(--chisiamo-blue);
}

.chisiamo-page .card_lavoriamo,
.chisiamo-page .card_lavoriamo_one {
    max-width: var(--chisiamo-max-width);
    margin-inline: auto;
    padding: 55px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.chisiamo-page .card_lavoriamo_one {
    flex-direction: row-reverse;
}

.chisiamo-page .lavoriamo_title {
    width: 35%;
    color: var(--chisiamo-white);
    font-family: var(--display-font);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1;
}

.chisiamo-page .lavoriamo_text {
    width: 55%;
    color: rgba(255, 255, 255, .84);
    font-family: var(--body-font);
    font-size: 15px;
    line-height: 1.8;
}

.chisiamo-page .divider_chisiamo {
    max-width: var(--chisiamo-max-width);
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, .28);
}

/* =========================================================
   CLIENTI
   ========================================================= */

.chisiamo-page .section_clienti {
    padding: 115px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chisiamo-page .clienti_maintext {
    width: min(100%, 900px);
    margin-bottom: 62px;
}

.chisiamo-page .clienti_title {
    margin: 0 0 23px;
    color: var(--blue);
    font-family: var(--body-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.chisiamo-page .clienti_subtitle {
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -1.5px;
    line-height: 1.12;
}

.chisiamo-page .clienti_logos,
.chisiamo-page .hidden_logos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.chisiamo-page .clienti_logo {
    width: 180px;
    height: 82px;
    object-fit: contain;
}

.chisiamo-page .clienti_logo_ibm {
    width: 120px;
    height: 56px;
    object-fit: contain;
}

.chisiamo-page .hidden_logos {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .5s ease, opacity .35s ease;
}

.chisiamo-page .hidden_logos.open {
    max-height: 600px;
    opacity: 1;
}

.chisiamo-page .hidden_btn {
    min-height: 48px;
    margin: 42px 0 80px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--blue);
    border-radius: 7px;
    color: var(--white);
    background: var(--blue);
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease;
}

.chisiamo-page .hidden_btn:hover {
    color: var(--blue);
    background: var(--blue-soft);
}

.chisiamo-page .hidden_btn i {
    font-size: 18px;
    transition: transform .3s ease;
}

.chisiamo-page .hidden_btn.is-open i {
    transform: rotate(180deg);
}

/* =========================================================
   PRESENTAZIONE — FULL WIDTH ANIMATED SECTION
   Identical logic to .presentation-reference in index.html.
   ========================================================= */

.chisiamo-page .section_collaborators {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 485px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--white);
    text-align: center;
}

.chisiamo-page .section_collaborators::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 68%;
    pointer-events: none;
    background:
            radial-gradient(
                    ellipse at 50% 100%,
                    rgba(211, 235, 255, .95) 0%,
                    rgba(211, 235, 255, .62) 35%,
                    rgba(211, 235, 255, .20) 68%,
                    rgba(211, 235, 255, 0) 100%
            ),
            radial-gradient(
                    circle,
                    rgba(10, 66, 114, .28) 1px,
                    transparent 1.25px
            );
    background-size: 130% 100%, 5px 5px;
    background-position: 50% 100%, 0 0;
    -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, .4) 18%,
            black 48%,
            black 100%
    );
    mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, .4) 18%,
            black 48%,
            black 100%
    );
    animation: chisiamoPresentationBackgroundDrift
    14s ease-in-out infinite alternate;
}

.chisiamo-page .section_collaborators::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 8%;
    bottom: -160px;
    width: 520px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(211, 235, 255, .52);
    filter: blur(42px);
    animation: chisiamoPresentationBackgroundGlow
    12s ease-in-out infinite alternate;
}

.chisiamo-page .collab_text {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), 980px);
    min-height: 485px;
    margin: 0 auto;
    padding: 72px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.chisiamo-page .collab_title {
    margin: 0 0 28px;
    color: var(--blue);
    font-family: var(--body-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.chisiamo-page .collab_subtitle {
    width: auto;
    margin: 0 auto 40px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(48px, 5.8vw, 48px);
    font-weight: 400;
    letter-spacing: -4px;
    line-height: .98;
    text-wrap: balance;
}

.chisiamo-page .solution_btn {
    min-width: 180px;
    min-height: 48px;
    padding: 0 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue);
    border-radius: 7px;
    color: var(--white);
    background: var(--blue);
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 600;
    transition:
            color .25s ease,
            background-color .25s ease,
            border-color .25s ease;
}

.chisiamo-page .solution_btn:hover {
    color: var(--blue);
    background: var(--blue-soft);
    border-color: var(--blue-soft);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes chisiamoPresentationBackgroundDrift {
    0% {
        background-position: 42% 100%, 0 0;
        transform: scale(1);
    }

    100% {
        background-position: 58% 94%, 16px 10px;
        transform: scale(1.04);
    }
}

@keyframes chisiamoPresentationBackgroundGlow {
    0% {
        right: 8%;
        bottom: -160px;
        transform: scale(.9) rotate(-4deg);
        opacity: .42;
    }

    100% {
        right: 20%;
        bottom: -120px;
        transform: scale(1.12) rotate(6deg);
        opacity: .72;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
    .chisiamo-page .section_chisiamo {
        min-height: auto;
        padding: 80px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .chisiamo-page .content_chisiamo {
        width: 100%;
    }

    .chisiamo-page .img_second_chisiamo {
        width: min(520px, 100%);
        align-self: center;
        flex-basis: auto;
    }

    .chisiamo-page .card_lavoriamo,
    .chisiamo-page .card_lavoriamo_one {
        gap: 45px;
    }

    .chisiamo-page .section_collaborators {
        min-height: 450px;
    }

    .chisiamo-page .section_collaborators::before {
        height: 64%;
        background-size: 145% 100%, 5px 5px;
    }

    .chisiamo-page .section_collaborators::after {
        right: 2%;
        bottom: -150px;
        width: 430px;
        height: 310px;
    }

    .chisiamo-page .collab_text {
        width: min(calc(100% - 36px), 760px);
        min-height: 450px;
        padding: 64px 0;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
    .chisiamo-page .container {
        width: calc(100% - 36px);
    }

    .chisiamo-page .header_chisiamo {
        min-height: 240px;
    }

    .chisiamo-page .section_chisiamo {
        padding: 65px 0;
        gap: 45px;
    }

    .chisiamo-page .maintext_chisiamo {
        margin-bottom: 42px;
    }

    .chisiamo-page .title_chisiamo,
    .chisiamo-page .title_chefacciamo {
        font-size: 42px;
        letter-spacing: -1.5px;
        line-height: 1.05;
    }

    .chisiamo-page .text_chisiamo,
    .chisiamo-page .text_chefacciamo {
        font-size: 14px;
        line-height: 1.7;
    }

    .chisiamo-page .section_lavoriamo {
        padding: 48px 18px;
    }

    .chisiamo-page .card_lavoriamo,
    .chisiamo-page .card_lavoriamo_one {
        padding: 36px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    .chisiamo-page .lavoriamo_title,
    .chisiamo-page .lavoriamo_text {
        width: 100%;
    }

    .chisiamo-page .lavoriamo_title {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .chisiamo-page .lavoriamo_text {
        font-size: 14px;
        line-height: 1.7;
    }

    .chisiamo-page .section_clienti {
        padding-top: 75px;
    }

    .chisiamo-page .clienti_maintext {
        margin-bottom: 40px;
    }

    .chisiamo-page .clienti_subtitle {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .chisiamo-page .clienti_logos,
    .chisiamo-page .hidden_logos {
        gap: 12px;
    }

    .chisiamo-page .clienti_logo {
        width: 135px;
        height: 62px;
    }

    .chisiamo-page .clienti_logo_ibm {
        width: 100px;
        height: 48px;
    }

    .chisiamo-page .hidden_btn {
        margin-bottom: 65px;
    }

    .chisiamo-page .section_collaborators {
        min-height: 430px;
    }

    .chisiamo-page .collab_text {
        width: calc(100% - 36px);
        min-height: 430px;
        padding: 60px 0;
    }

    .chisiamo-page .collab_title {
        margin-bottom: 24px;
    }

    .chisiamo-page .collab_subtitle {
        width: 100%;
        margin-bottom: 30px;
        font-size: 42px;
        letter-spacing: -2px;
        line-height: 1;
    }

    .chisiamo-page .section_collaborators::after {
        right: -25%;
        bottom: -130px;
        width: 380px;
        height: 280px;
    }
}

/* =========================================================
   ACCESSIBILITÀ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .chisiamo-page *,
    .chisiamo-page *::before,
    .chisiamo-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}