/* =========================================================
   GPA — LOGISTICA.CSS
   Stili specifici per logistica.html.

   style.css gestisce gli elementi condivisi:
   - navbar
   - footer
   - font
   - variabili globali
   - bottoni comuni
   ========================================================= */

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

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

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

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

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

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

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

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

.logistica-page .header_logistica {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background:
        linear-gradient(
            120deg,
            rgba(4, 20, 35, .48),
            rgba(10, 66, 114, .16)
        ),
        url("img/bg-logistica.png") center / cover no-repeat;
}

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

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

/* =========================================================
   BACK TO SOLUTIONS
   ========================================================= */

.logistica-page .back-to-solutions {
    width: fit-content;
    margin-top: 34px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--logistica-blue);
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
    text-decoration: none;
    transition:
        color .25s ease,
        gap .25s ease;
}

.logistica-page .back-to-solutions i {
    font-size: 18px;
    line-height: 1;
}

.logistica-page .back-to-solutions:hover {
    gap: 13px;
    color: var(--logistica-blue-dark);
}

/* =========================================================
   INTRODUZIONE
   ========================================================= */

.logistica-page .section_gpa {
    min-height: 600px;
    padding: 90px 0 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.logistica-page .gpa_content {
    width: min(620px, 100%);
    flex: 1 1 0;
}

.logistica-page .gpa_title {
    margin: 0 0 28px;
    color: var(--logistica-ink);
    font-family: var(--display-font);
    font-size: clamp(54px, 6.5vw, 94px);
    font-weight: 400;
    letter-spacing: -4px;
    line-height: .95;
}

.logistica-page .gpa_text {
    max-width: 560px;
    margin-bottom: 30px;
    color: var(--logistica-muted);
    font-family: var(--body-font);
    font-size: 15px;
    line-height: 1.8;
}

.logistica-page .img_gpa {
    width: min(480px, 42%);
    height: auto;
    flex: 0 1 480px;
    object-fit: contain;
}

/* Technical-sheet button */
.logistica-page .log_btn {
    min-height: 48px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--logistica-blue);
    border-radius: 7px;
    color: var(--logistica-white);
    background: var(--logistica-blue);
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease;
}

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

/* =========================================================
   LOGO
   ========================================================= */

.logistica-page .section_img {
    min-height: 220px;
    padding: 30px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logistica-page .sol_logo_logi {
    width: min(260px, 70%);
    height: auto;
    object-fit: contain;
}

/* =========================================================
   FEATURES
   ========================================================= */

.logistica-page .section_info {
    padding: 85px 0 125px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 65px;
}

.logistica-page .info_content {
    display: flex;
    flex-direction: column;
    gap: 38px;
}

.logistica-page .info_info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.logistica-page .info_info > img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: contain;
}

.logistica-page .info_text {
    min-width: 0;
}

.logistica-page .info_title {
    margin: 0 0 9px;
    color: var(--logistica-blue);
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.logistica-page .info_subtitle {
    color: var(--logistica-muted);
    font-family: var(--body-font);
    font-size: 13px;
    line-height: 1.65;
}

/* =========================================================
   PRESENTAZIONE FULL WIDTH
   ========================================================= */

.logistica-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(--logistica-white);
    text-align: center;
}

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

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

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

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

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

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

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

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

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

@keyframes logisticaPresentationGlow {
    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) {
    .logistica-page .header_logistica {
        min-height: 260px;
    }

    .logistica-page .section_gpa {
        min-height: auto;
        padding: 80px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .logistica-page .gpa_content {
        width: 100%;
    }

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

    .logistica-page .section_info {
        gap: 45px;
    }

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

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

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

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

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

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

    .logistica-page .header_logistica {
        min-height: 220px;
    }

    .logistica-page .back-to-solutions {
        margin-top: 25px;
        font-size: 11px;
    }

    .logistica-page .section_gpa {
        padding: 65px 0;
        gap: 45px;
    }

    .logistica-page .gpa_title {
        font-size: 62px;
        letter-spacing: -2px;
    }

    .logistica-page .gpa_text {
        font-size: 14px;
        line-height: 1.7;
    }

    .logistica-page .section_img {
        min-height: 160px;
        padding: 20px 0 55px;
    }

    .logistica-page .sol_logo_logi {
        width: min(230px, 75%);
    }

    .logistica-page .section_info {
        padding: 55px 0 80px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .logistica-page .info_content {
        gap: 30px;
    }

    .logistica-page .info_info {
        gap: 14px;
    }

    .logistica-page .info_info > img {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .logistica-page .info_title {
        font-size: 14px;
    }

    .logistica-page .info_subtitle {
        font-size: 12px;
        line-height: 1.6;
    }

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

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

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

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

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

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

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