/* =========================================================
   COBOL.CSS
   Foglio autonomo per cobol.html.
   Caricarlo dopo style.css.
   ========================================================= */

.cobol-page {
    --cobol-white: #ffffff;
    --cobol-ink: #111111;
    --cobol-blue: #0a4272;
    --cobol-blue-dark: #062d4e;
    --cobol-blue-soft: #d3ebff;
    --cobol-muted: #66717b;
    --cobol-max: 1400px;

    min-width: 320px;
    margin: 0;
    color: var(--cobol-ink);
    background: var(--cobol-white);
    font-family: "Montserrat", Arial, sans-serif;
}

.cobol-page *,
.cobol-page *::before,
.cobol-page *::after {
    box-sizing: border-box;
}

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

.cobol-page a {
    color: inherit;
}

/* NAVBAR */

.cobol-nav {
    position: relative;
    z-index: 20;
    width: 100%;
    background: var(--cobol-white);
}

.cobol-nav__inner {
    width: min(calc(100% - 48px), var(--cobol-max));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.cobol-nav__logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}

.cobol-nav__logo img {
    width: 120px;
    height: 50px;
    object-fit: contain;
}

.cobol-nav__links {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    list-style: none;
}

.cobol-nav__links a {
    position: relative;
    display: block;
    padding: 7px 0;
    color: var(--cobol-ink);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.cobol-nav__links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: transparent;
    transition: background-color .25s ease;
}

.cobol-nav__links li:hover a::after,
.cobol-nav__links li.is-active a::after {
    background: var(--cobol-blue-soft);
}

.cobol-nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    color: var(--cobol-blue);
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

/* HERO */

.cobol-hero {
    width: 100%;
    min-height: 300px;
    background:
            linear-gradient(120deg, rgba(4, 20, 35, .38), rgba(10, 66, 114, .08)),
            url("img/bg-claudya.png") center / cover no-repeat;
}

/* CONTENT */

.cobol-shell {
    width: min(calc(100% - 48px), var(--cobol-max));
    margin: 0 auto;
}

.cobol-back-link {
    width: fit-content;
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cobol-blue);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease, gap .25s ease;
}

.cobol-back-link i {
    font-size: 18px;
    line-height: 1;
}

.cobol-back-link:hover {
    gap: 13px;
    color: var(--cobol-blue-dark);
}

.cobol-intro {
    min-height: 610px;
    padding: 80px 0 105px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
    align-items: center;
    gap: 90px;
}

.cobol-intro__content {
    max-width: 650px;
}

.cobol-intro__title {
    margin: 0 0 28px;
    color: var(--cobol-blue);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(54px, 6.5vw, 92px);
    font-weight: 400;
    letter-spacing: -4px;
    line-height: .95;
}

.cobol-intro__text {
    max-width: 600px;
    margin: 0 0 32px;
    color: var(--cobol-muted);
    font-size: 15px;
    line-height: 1.8;
}

.cobol-intro__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cobol-intro__visual img {
    width: min(100%, 480px);
    height: auto;
    object-fit: contain;
}

/* BUTTON — usa colori espliciti per evitare conflitti con style.css */

.cobol-page .cobol-button,
.cobol-page a.cobol-button,
.cobol-page a.cobol-button:link,
.cobol-page a.cobol-button:visited {
    min-height: 48px;
    padding: 0 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0a4272;
    border-radius: 6px;
    color: #ffffff;
    background-color: #0a4272;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

.cobol-page .cobol-button:hover,
.cobol-page .cobol-button:focus-visible {
    color: #0a4272;
    background-color: #d3ebff;
    border-color: #d3ebff;
}

/* BRAND */

.cobol-brand {
    min-height: 220px;
    padding: 25px 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cobol-brand img {
    width: min(290px, 75%);
    height: auto;
    object-fit: contain;
}

/* FEATURES */

.cobol-features {
    padding: 35px 0 120px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px 65px;
}

.cobol-feature {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.cobol-feature > img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.cobol-feature h2 {
    margin: 0 0 9px;
    color: var(--cobol-blue);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.cobol-feature p {
    margin: 0;
    color: var(--cobol-muted);
    font-size: 13px;
    line-height: 1.7;
}

/* PRESENTATION */

.cobol-presentation {
    position: relative;
    isolation: isolate;
    min-height: 485px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.cobol-presentation::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 70%;
    background:
            radial-gradient(ellipse at 50% 100%, rgba(211, 235, 255, .95) 0%, rgba(211, 235, 255, .58) 38%, rgba(211, 235, 255, 0) 100%),
            radial-gradient(circle, rgba(10, 66, 114, .26) 1px, transparent 1.25px);
    background-size: 130% 100%, 5px 5px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .5) 30%, black 72%);
    mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .5) 30%, black 72%);
}

.cobol-presentation__content {
    width: min(calc(100% - 48px), 980px);
    min-height: 485px;
    padding: 72px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cobol-presentation__eyebrow {
    margin: 0 0 28px;
    color: var(--cobol-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.cobol-presentation__title {
    max-width: 750px;
    margin: 0 0 40px;
    color: var(--cobol-ink);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(44px, 5.5vw, 48px);
    font-weight: 400;
    letter-spacing: -3px;
    line-height: 1;
}

.cobol-page a.gpa-button,
.cobol-page a.gpa-button-dark,
.cobol-page a.gpa-button-dark:link,
.cobol-page a.gpa-button-dark:visited {
    color: #ffffff !important;
    background-color: #0a4272 !important;
    border-color: #0a4272 !important;
}

.cobol-page a.gpa-button-dark:hover,
.cobol-page a.gpa-button-dark:focus-visible {
    color: #0a4272 !important;
    background-color: #d3ebff !important;
    border-color: #d3ebff !important;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .cobol-nav__links {
        gap: 17px;
    }

    .cobol-intro {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .cobol-intro__content {
        max-width: 100%;
    }

    .cobol-intro__visual img {
        width: min(520px, 100%);
    }
}

@media (max-width: 760px) {
    .cobol-nav__inner {
        width: calc(100% - 36px);
        min-height: 74px;
    }

    .cobol-nav__logo img {
        width: 110px;
        height: 46px;
    }

    .cobol-nav__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .cobol-nav__links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 18px 24px 24px;
        background: var(--cobol-white);
        box-shadow: 0 12px 25px rgba(0, 0, 0, .08);
    }

    .cobol-nav__links.is-open {
        display: flex;
    }

    .cobol-nav__links a {
        padding: 13px 0;
    }

    .cobol-hero {
        min-height: 220px;
    }

    .cobol-shell {
        width: calc(100% - 36px);
    }

    .cobol-back-link {
        margin-top: 25px;
        font-size: 11px;
    }

    .cobol-intro {
        min-height: auto;
        padding: 65px 0;
        gap: 45px;
    }

    .cobol-intro__title {
        font-size: 54px;
        letter-spacing: -2px;
    }

    .cobol-intro__text {
        font-size: 14px;
        line-height: 1.7;
    }

    .cobol-brand {
        min-height: 160px;
        padding: 20px 0 55px;
    }

    .cobol-brand img {
        width: min(240px, 80%);
    }

    .cobol-features {
        padding: 20px 0 80px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cobol-feature {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
    }

    .cobol-feature > img {
        width: 46px;
        height: 46px;
    }

    .cobol-feature h2 {
        font-size: 14px;
    }

    .cobol-feature p {
        font-size: 12px;
        line-height: 1.6;
    }

    .cobol-presentation {
        min-height: 430px;
    }

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

    .cobol-presentation__title {
        margin-bottom: 30px;
        font-size: 42px;
        letter-spacing: -2px;
    }
}

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