/* =========================================================
   GPA — SOLUZIONI.CSS
   Stili specifici per soluzioni.html.

   Gli elementi condivisi arrivano da style.css:
   - navbar
   - footer
   - font
   - variabili globali
   - bottoni comuni
   ========================================================= */

/* =========================================================
   VARIABILI LOCALI
   ========================================================= */

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

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

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

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

.soluzioni-page img {
    display: block;
    max-width: 100%;
}

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

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

.soluzioni-page .header_solutions {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    background-image: url("img/bg_solutions.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* If the image is named bg-soluzioni.jpg in your folder, use:

.soluzioni-page .header_solutions {
    background:
        linear-gradient(120deg, rgba(4, 20, 35, .58), rgba(10, 66, 114, .16)),
        url("img/bg-soluzioni.jpg") center / cover no-repeat;
}
*/

/* =========================================================
   CONTAINER
   ========================================================= */

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

.soluzioni-page .divider {
    margin: 20px 0;
}

/* =========================================================
   SOLUZIONI INTRO
   ========================================================= */

.soluzioni-page .section_soluzioni {
    min-height: 900px;
    padding: 115px 0 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.soluzioni-page .soluzioni_text {
    width: min(100%, 900px);
    margin-bottom: 62px;
    text-align: center;
}

.soluzioni-page .soluzioni_title {
    margin: 0 0 25px;
    color: var(--ink);
    font-family: var(--display-font);
    font-size: clamp(48px, 5.4vw, 78px);
    font-weight: 400;
    letter-spacing: -3px;
    line-height: 1;
}

.soluzioni-page .soluzioni_subtext {
    max-width: 720px;
    margin-inline: auto;
    color: var(--muted);
    font-family: var(--body-font);
    font-size: 15px;
    line-height: 1.8;
}

/* =========================================================
   CATEGORY BUTTONS
   ========================================================= */

.soluzioni-page .soluzioni_content {
    width: 100%;
}

.soluzioni-page .soluzioni_btns {
    margin-bottom: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.soluzioni-page .soluzioni_btns button {
    min-width: 145px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid var(--soluzioni-blue);
    border-radius: 7px;
    color: var(--soluzioni-blue);
    background: var(--soluzioni-white);
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
            color .25s ease,
            background-color .25s ease,
            border-color .25s ease;
}

.soluzioni-page .soluzioni_btns button:hover {
    color: var(--soluzioni-white);
    background: var(--soluzioni-blue);
    border-color: var(--soluzioni-blue);
}

.soluzioni-page .soluzioni_btns button.active {
    color: var(--soluzioni-white);
    background: var(--soluzioni-blue);
    border-color: var(--soluzioni-blue);
}

/* =========================================================
   PRODUCT CARDS — OPACITY ONLY
   ========================================================= */

.soluzioni-page .soluzioni_divs {
    position: relative;
    width: 100%;
    min-height: 680px;
    overflow: visible;
}

/*
   Every category panel occupies the same position.
   There is no max-height animation and no translateY.
*/

.soluzioni-page .sol_card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: max-content;
    max-height: none;
    overflow: visible;
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    pointer-events: none;
    transition:
            opacity .4s ease,
            visibility 0s linear .4s;
}

.soluzioni-page .sol_card.active {
    position: relative;
    inset: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition:
            opacity .4s ease,
            visibility 0s linear 0s;
}

/* =========================================================
   PRODUCT CARDS STYLE
   ========================================================= */

.soluzioni-page .enterprise_card,
.soluzioni-page .process_card,
.soluzioni-page .innovation_card {
    width: calc(33.333% - 16px);
    min-height: 300px;
    padding: 35px 28px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--soluzioni-grey);
    border-radius: 18px;
    color: var(--soluzioni-ink);
    background: var(--soluzioni-white);
    box-shadow: 0 8px 24px rgba(10, 66, 114, .07);
    text-align: center;
    text-decoration: none;
    transition:
            transform .3s ease,
            box-shadow .3s ease;
}

.soluzioni-page .enterprise_card:hover,
.soluzioni-page .process_card:hover,
.soluzioni-page .innovation_card:hover {
    color: var(--soluzioni-ink);
    background: var(--soluzioni-white);
    border-color: var(--soluzioni-grey);
    box-shadow: 0 16px 32px rgba(10, 66, 114, .14);
    transform: translateY(-6px);
}

.soluzioni-page .enterprise_card p,
.soluzioni-page .process_card p,
.soluzioni-page .innovation_card p {
    margin-top: 28px;
    color: var(--soluzioni-muted);
    font-family: var(--body-font);
    font-size: 13px;
    line-height: 1.65;
}

/* =========================================================
   PRODUCT LOGOS
   ========================================================= */

.soluzioni-page .sol_logo_gpa,
.soluzioni-page .sol_logo_logi,
.soluzioni-page .sol_logo_claudya,
.soluzioni-page .sol_logo_robo,
.soluzioni-page .sol_logo_dalya,
.soluzioni-page .sol_logo_alex,
.soluzioni-page .sol_logo_tungsten {
    width: auto;
    max-width: 190px;
    height: 72px;
    object-fit: contain;
}

.soluzioni-page .sol_logo_logi {
    max-width: 190px;
}

.soluzioni-page .sol_logo_tungsten {
    max-width: 210px;
}

.soluzioni-page .sol_logo_cobol {
    width: 220px;
    max-width: 220px;
    height: 118px;
    object-fit: contain;
}

/* =========================================================
   PRESENTATION — FULL WIDTH ANIMATED SECTION
   ========================================================= */

.soluzioni-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;
}

.soluzioni-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: soluzioniPresentationDrift
        14s ease-in-out infinite alternate;
}

.soluzioni-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: soluzioniPresentationGlow
        12s ease-in-out infinite alternate;
}

.soluzioni-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;
}

.soluzioni-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;
}

.soluzioni-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;
}

.soluzioni-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;
}

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

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

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

@keyframes soluzioniPresentationGlow {
    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) {
    .soluzioni-page .header_solutions {
        min-height: 280px;
    }

    .soluzioni-page .section_soluzioni {
        min-height: auto;
        padding: 80px 0 95px;
    }

    .soluzioni-page .enterprise_card,
    .soluzioni-page .process_card,
    .soluzioni-page .innovation_card {
        width: calc(50% - 12px);
    }

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

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

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

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

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

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

    .soluzioni-page .header_solutions {
        min-height: 220px;
    }

    .soluzioni-page .section_soluzioni {
        padding: 65px 0 75px;
    }

    .soluzioni-page .soluzioni_title {
        font-size: 42px;
        letter-spacing: -1.5px;
    }

    .soluzioni-page .soluzioni_subtext {
        font-size: 14px;
        line-height: 1.7;
    }

    .soluzioni-page .soluzioni_btns {
        gap: 8px;
        margin-bottom: 30px;
    }

    .soluzioni-page .soluzioni_btns button {
        min-width: 105px;
        padding: 0 15px;
        font-size: 11px;
    }

    .soluzioni-page .enterprise_card,
    .soluzioni-page .process_card,
    .soluzioni-page .innovation_card {
        width: 100%;
        min-height: 260px;
        padding: 30px 24px 26px;
    }

    .soluzioni-page .enterprise_card p,
    .soluzioni-page .process_card p,
    .soluzioni-page .innovation_card p {
        margin-top: 22px;
        font-size: 13px;
    }

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

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

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

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

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

    .soluzioni-page .sol_logo_cobol {
        width: 190px;
        max-width: 190px;
        height: 102px;
    }
}

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

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