/* ============================================
   NCO HOLDING — Stylesheet
   Mobile-first · BlackRock-inspired corporate
   ============================================ */

/* RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

button {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

ul {
    list-style: none;
}

/* VARS
   ============================================ */
:root {
    --color-black: #000000;
    --color-ink: #1a1a1a;
    --color-graphite: #3a3a3a;
    --color-gray: #6b6b6b;
    --color-line: #e5e5e5;
    --color-mist: #f5f5f3;
    --color-bone: #faf9f7;
    --color-white: #ffffff;
    --color-accent: #3d5a80; /* logo navy blue */
    --color-accent-dark: #2c4768;
    --color-accent-soft: #6585b0;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container: 1320px;
    --gutter: 24px;

    --radius: 0;
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

/* TYPOGRAPHY UTILS
   ============================================ */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--color-ink);
}

p {
    color: var(--color-graphite);
}

/* LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 80px 0;
}

.section--light {
    background: var(--color-bone);
}

.section--dark {
    background: var(--color-ink);
    color: #d4d4d4;
}

.section--accent {
    background: var(--color-black);
    color: var(--color-white);
}

.section__header {
    max-width: 760px;
    margin-bottom: 56px;
}

.section__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.section__eyebrow--light {
    color: var(--color-accent);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 500;
    letter-spacing: -.025em;
    margin-bottom: 24px;
}

.section--dark .section__title,
.section--accent .cta__title {
    color: var(--color-white);
}

.section__sub {
    font-size: 18px;
    color: var(--color-gray);
    max-width: 640px;
}

.section--dark .section__sub {
    color: #a0a0a0;
}

/* LANG SWITCH
   ============================================ */
.nav__langs {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 16px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, .15);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 6px 8px;
    color: rgba(255, 255, 255, .55);
    transition: color .2s ease;
}

.lang-switch:hover {
    color: #fff;
}

.lang-switch.active {
    color: var(--color-accent-soft);
    font-weight: 600;
}

.lang-switch::after {
    display: none !important;
}

/* HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: box-shadow var(--transition), background var(--transition);
}

.header.is-scrolled {
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

@media (min-width: 1024px) {
    .header {
        background: rgba(10, 10, 10, .94);
        backdrop-filter: saturate(180%) blur(12px);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
    }
    .header.is-scrolled {
        background: rgba(0, 0, 0, .98);
    }
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    line-height: 0;
}

.logo__img {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.logo__img--light {
    height: 56px;
    width: auto;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
    opacity: .95;
}

.logo__wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: .04em;
    color: var(--color-black);
    line-height: 1;
    padding-bottom: 2px;
}

.logo__wordmark--light {
    color: var(--color-white);
    font-size: 28px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.nav__list {
    display: none;
    gap: 36px;
    align-items: center;
}

.nav__list a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .85);
    position: relative;
    padding: 4px 0;
}

.nav__list a:hover {
    color: #fff;
}

.nav__list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent-soft);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s ease;
}

.nav__list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin: -8px;
}

.nav-toggle span {
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.nav.is-open {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .98);
    backdrop-filter: blur(12px);
    z-index: 99;
    padding: 40px 24px;
    overflow-y: auto;
}

.nav.is-open .nav__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.nav.is-open .nav__list a {
    font-size: 22px;
    font-family: var(--font-display);
    font-weight: 500;
    color: #fff;
}

.nav.is-open .nav__langs {
    margin-left: 0;
    padding-left: 0;
    padding-top: 28px;
    margin-top: 12px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .12);
    width: 100%;
}

.nav.is-open .nav__langs .lang-switch {
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    padding: 8px 14px 8px 0;
}

/* HERO
   ============================================ */
.hero {
    padding: 60px 0 0;
    background: var(--color-white);
    position: relative;
    border-bottom: 1px solid var(--color-line);
}

.hero__content {
    max-width: 920px;
    padding-bottom: 80px;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 28px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-accent);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(44px, 9vw, 104px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.035em;
    color: var(--color-black);
    margin-bottom: 36px;
}

.hero__lead {
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
    max-width: 640px;
    color: var(--color-graphite);
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__actions .btn {
    min-width: 240px;
}

.hero__meta {
    background: var(--color-bone);
    border-top: 1px solid var(--color-line);
    padding: 32px 0;
}

.hero__meta-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--color-gray);
}

.hero__meta-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-ink);
}

/* BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn--primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.btn--ghost {
    background: transparent;
    color: var(--color-ink);
    border-color: var(--color-ink);
}

.btn--ghost:hover {
    background: var(--color-ink);
    color: var(--color-white);
}

/* GRID
   ============================================ */
.grid {
    display: grid;
    gap: 48px;
}

.grid--2 {
    grid-template-columns: 1fr;
}

/* PROSE
   ============================================ */
.prose__lead {
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-ink);
    margin-bottom: 24px;
    font-weight: 400;
}

.prose p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* STATS
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--color-line);
    border: 1px solid var(--color-line);
}

.stat {
    background: var(--color-bone);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat__value {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 500;
    line-height: 1;
    color: var(--color-black);
    letter-spacing: -.02em;
}

.stat__label {
    font-size: 13px;
    color: var(--color-gray);
    line-height: 1.4;
}

/* COMPANIES
   ============================================ */
.companies {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.company {
    background: var(--color-bone);
    padding: 36px 28px;
    border: 1px solid var(--color-line);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.company:hover {
    background: var(--color-white);
    border-color: var(--color-ink);
    transform: translateY(-2px);
}

.company--coming {
    background: transparent;
    border-style: dashed;
}

.company__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 8px;
}

.company__tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--color-accent);
}

.company__status {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-gray);
    padding: 4px 10px;
    border: 1px solid var(--color-line);
    background: var(--color-white);
}

.company--coming .company__status {
    background: transparent;
}

/* Flags — pure CSS */
.flag {
    display: inline-block;
    width: 32px;
    height: 22px;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
    flex-shrink: 0;
}

.flag--it {
    background: linear-gradient(
        to right,
        #008C45 0%,
        #008C45 33.333%,
        #F4F5F0 33.333%,
        #F4F5F0 66.666%,
        #CD212A 66.666%,
        #CD212A 100%
    );
}

.company__name {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--color-black);
}

.company__desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-graphite);
    margin-bottom: 28px;
    flex-grow: 1;
}

.company__meta {
    border-top: 1px solid var(--color-line);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.company__meta li {
    font-size: 13px;
    color: var(--color-graphite);
    display: flex;
    gap: 12px;
}

.company__meta li span:first-child {
    color: var(--color-gray);
    min-width: 70px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .1em;
    padding-top: 2px;
}

.company__meta a {
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-line);
    padding-bottom: 1px;
}

.company__meta a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* PRINCIPLES
   ============================================ */
.principles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.principle {
    border-top: 1px solid #2a2a2a;
    padding-top: 28px;
}

.principle__num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: .15em;
    display: block;
    margin-bottom: 20px;
}

.principle__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    color: var(--color-white);
    margin-bottom: 16px;
    font-weight: 500;
}

.principle__desc {
    font-size: 15px;
    line-height: 1.65;
    color: #a8a8a8;
}

/* GOVERNANCE
   ============================================ */
.governance {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.governance__item {
    border-left: 2px solid var(--color-accent);
    padding-left: 24px;
}

.governance__item h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--color-black);
}

.governance__item p {
    font-size: 15px;
    line-height: 1.65;
}

/* CTA
   ============================================ */
.cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--color-white);
    letter-spacing: -.02em;
}

.cta__lead {
    font-size: 17px;
    line-height: 1.6;
    color: #b5b5b5;
    max-width: 540px;
}

.cta__info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.cta__block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
    border-top: 1px solid #2a2a2a;
}

.cta__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--color-accent);
}

.cta__value {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-white);
}

a.cta__value:hover {
    color: var(--color-accent-soft);
}

.cta__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
}

.contact-form__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form__row label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--color-accent-soft);
}

.contact-form__row label span {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, .4);
    margin-left: 4px;
}

.contact-form input,
.contact-form textarea {
    font-family: inherit;
    font-size: 15px;
    color: var(--color-white);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    padding: 10px 0;
    border-radius: 0;
    transition: border-color .2s ease;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-bottom-color: var(--color-accent-soft);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, .3);
}

.contact-form textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--color-white);
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-in-out 0s;
}

.contact-form__actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.contact-form__privacy {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .4);
    margin: 0;
}

.btn--accent {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.btn--accent:hover {
    background: var(--color-accent-soft);
    border-color: var(--color-accent-soft);
    color: var(--color-white);
}

/* FOOTER
   ============================================ */
.footer {
    background: var(--color-ink);
    color: #a0a0a0;
    padding: 64px 0 24px;
    font-size: 14px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #2a2a2a;
}

.footer__tagline {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.footer__col h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col a {
    color: #a0a0a0;
    font-size: 14px;
}

.footer__col a:hover {
    color: var(--color-accent);
}

.footer__col li {
    color: #888;
    font-size: 14px;
}

.footer__brand-legal {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 14px;
}

.footer__brand-legal > div:first-child {
    grid-column: 1 / -1;
}

.footer__brand-legal > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer__brand-legal dt {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #777;
}

.footer__brand-legal dd {
    font-size: 12px;
    line-height: 1.5;
    color: #b5b5b5;
}

.footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #2a2a2a;
    font-size: 12px;
    color: #888;
}

.footer__legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__legal a {
    color: #888;
}

.footer__legal a:hover {
    color: var(--color-white);
}

/* RESPONSIVE BREAKPOINTS
   ============================================ */

/* SM — Small tablet (≥640px) */
@media (min-width: 640px) {
    .section {
        padding: 96px 0;
    }

    .hero {
        padding: 80px 0 0;
    }

    .hero__content {
        padding-bottom: 100px;
    }

    .hero__meta-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .companies {
        gap: 32px;
    }

    .company {
        padding: 44px 36px;
    }

    .footer__cols {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cta__info {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .principles {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .governance {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* MD — Tablet (≥768px) */
@media (min-width: 768px) {
    :root {
        --gutter: 32px;
    }

    .section {
        padding: 120px 0;
    }

    .section__header {
        margin-bottom: 72px;
    }

    .hero__meta-inner {
        grid-template-columns: repeat(4, 1fr);
    }

    .companies {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--2 {
        grid-template-columns: 1.2fr 1fr;
        gap: 64px;
        align-items: start;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: start;
    }

    .cta__info {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer__top {
        grid-template-columns: 1fr 2fr;
        gap: 64px;
    }
}

/* LG — Desktop (≥1024px) */
@media (min-width: 1024px) {
    .nav__list {
        display: flex;
    }

    .nav-toggle {
        display: none;
    }

    .header__inner {
        min-height: 84px;
    }

    .logo__img {
        height: 46px;
    }

    .hero {
        padding: 100px 0 0;
    }

    .hero__content {
        padding-bottom: 120px;
    }

    .section {
        padding: 140px 0;
    }

    .principles {
        gap: 56px;
    }

    .governance {
        gap: 48px;
    }
}

/* XL — Large desktop (≥1280px) */
@media (min-width: 1280px) {
    .hero__title {
        max-width: 1100px;
    }
}

/* ============================================
   LEGAL PAGES (privacy / cookies / legal)
   ============================================ */
.legal {
    padding: 56px 0 80px;
    background: var(--color-bone);
    min-height: 70vh;
}

.legal__inner {
    max-width: 880px;
}

.legal__head {
    margin-bottom: 48px;
}

.legal__back {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray);
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.legal__back:hover {
    color: var(--color-accent);
}

.legal__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -.025em;
    color: var(--color-black);
    margin: 16px 0 20px;
}

.legal__sub {
    font-size: 17px;
    line-height: 1.55;
    color: var(--color-graphite);
    max-width: 640px;
    margin-bottom: 16px;
}

.legal__updated {
    font-size: 12px;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 500;
}

.legal__body {
    background: var(--color-white);
    padding: 48px 32px;
    border: 1px solid var(--color-line);
}

.legal__body h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 600;
    color: var(--color-black);
    margin: 40px 0 14px;
    letter-spacing: -.01em;
}

.legal__body h2:first-child {
    margin-top: 0;
}

.legal__body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ink);
    margin: 24px 0 10px;
}

.legal__body p,
.legal__body li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-graphite);
}

.legal__body p {
    margin-bottom: 14px;
}

.legal__body ul {
    margin: 0 0 16px 0;
    padding-left: 22px;
    list-style: disc;
}

.legal__body li {
    margin-bottom: 6px;
}

.legal__body strong {
    color: var(--color-ink);
    font-weight: 600;
}

.legal__body a {
    color: var(--color-accent);
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

.legal__body a:hover {
    color: var(--color-accent-dark);
}

.legal__table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 13px;
}

.legal__table th,
.legal__table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-line);
    vertical-align: top;
}

.legal__table th {
    font-weight: 600;
    color: var(--color-ink);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    background: var(--color-bone);
}

.legal__table td {
    color: var(--color-graphite);
}

@media (min-width: 768px) {
    .legal {
        padding: 80px 0 120px;
    }
    .legal__body {
        padding: 64px 56px;
    }
}

/* ---- Show/hide per lingua ---- */
.legal__page {
    display: none;
}

.legal__page.is-active {
    display: block;
}

/* ---- Mobile optimizzato pagine legali ---- */
@media (max-width: 767px) {
    .legal {
        padding: 32px 0 56px;
    }

    .legal__inner {
        text-align: left;
    }

    .legal__head {
        margin-bottom: 32px;
        text-align: left;
    }

    .legal__back {
        margin-bottom: 24px;
    }

    .legal__title {
        font-size: clamp(28px, 8vw, 40px);
        margin: 12px 0 16px;
    }

    .legal__sub {
        font-size: 15px;
    }

    .legal__body {
        padding: 28px 20px;
        text-align: left;
    }

    .legal__body h2 {
        font-size: 19px;
        margin: 28px 0 12px;
    }

    .legal__body h3 {
        font-size: 15px;
    }

    .legal__body p,
    .legal__body li {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
    }

    .legal__body ul {
        padding-left: 20px;
        text-align: left;
    }

    /* Tabelle responsive: scroll orizzontale */
    .legal__table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 12px;
    }

    .legal__table th,
    .legal__table td {
        padding: 8px 10px;
        white-space: normal;
    }

    /* Pulsante "Gestisci preferenze cookie" full-width */
    .legal__body .btn {
        width: 100%;
        min-width: 0;
    }
}

/* ============================================
   COOKIE BANNER (GDPR)
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 9999;
    background: rgba(10, 10, 10, .98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--color-white);
    padding: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
    transform: translateY(140%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1320px;
    margin: 0 auto;
}

.cookie-banner__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-white);
}

.cookie-banner__body {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .75);
    margin: 0;
}

.cookie-banner__body a {
    color: var(--color-accent-soft);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-banner__btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 14px 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    border-radius: 0;
    text-align: center;
}

.cookie-banner__btn--primary {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.cookie-banner__btn--primary:hover {
    background: var(--color-accent-soft);
    color: var(--color-white);
    border-color: var(--color-accent-soft);
}

.cookie-banner__btn--ghost {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, .35);
}

.cookie-banner__btn--ghost:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--color-white);
}

@media (min-width: 768px) {
    .cookie-banner {
        bottom: 24px;
        left: 24px;
        right: 24px;
        padding: 28px 32px;
    }
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }
    .cookie-banner__text {
        flex: 1;
    }
    .cookie-banner__actions {
        flex-direction: row;
        gap: 12px;
        flex-shrink: 0;
    }
    .cookie-banner__btn {
        white-space: nowrap;
    }
}

/* ════ Cookie preferences modal ════ */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .25s ease;
}

.cookie-modal.is-visible {
    opacity: 1;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
}

.cookie-modal__panel {
    position: relative;
    background: var(--color-white);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

.cookie-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--color-gray);
    cursor: pointer;
    padding: 4px 8px;
}

.cookie-modal__close:hover {
    color: var(--color-black);
}

.cookie-modal__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px;
    padding-right: 32px;
    color: var(--color-black);
}

.cookie-modal__group {
    padding: 18px 0;
    border-top: 1px solid var(--color-line);
}

.cookie-modal__group:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cookie-modal__group p {
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-graphite);
    margin: 8px 0 0;
}

.cookie-modal__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-modal__row h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
    margin: 0;
}

.cookie-modal__always {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--color-accent);
}

.cookie-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
}

@media (min-width: 480px) {
    .cookie-modal__panel {
        padding: 40px 36px;
    }
    .cookie-modal__actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background: #d4d4d4;
    transition: .25s;
    cursor: pointer;
}

.cookie-toggle__slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    transition: .25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background: var(--color-accent);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
    transform: translateX(18px);
}

.cookie-toggle input:focus-visible + .cookie-toggle__slider {
    outline: 2px solid var(--color-accent-soft);
    outline-offset: 2px;
}

/* ============================================
   MOBILE — drawer fix + centratura testi
   ============================================ */
@media (max-width: 1023px) {
    /* ---- Drawer hamburger robusto ---- */
    .nav.is-open {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        background: #0a0a0a;
        z-index: 200;
        padding: 32px 24px 48px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.is-open .nav__list {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 28px;
        width: 100%;
    }

    .nav.is-open .nav__list > li {
        width: 100%;
        text-align: center;
    }

    .nav.is-open .nav__list a {
        display: inline-block;
    }

    .nav.is-open .nav__langs {
        justify-content: center;
        gap: 8px;
    }
}

@media (max-width: 767px) {
    /* ---- Centratura globale ---- */
    .container {
        text-align: center;
    }

    /* ---- Spacing sezioni ---- */
    .section {
        padding: 64px 0;
    }

    .section__header {
        margin: 0 auto 40px;
    }

    .section__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .section__title {
        font-size: clamp(28px, 8vw, 40px);
    }

    /* ---- HERO ---- */
    .hero {
        padding: 40px 0 0;
    }

    .hero__content {
        max-width: 100%;
        margin: 0 auto;
        padding-bottom: 56px;
    }

    .hero__title {
        font-size: clamp(38px, 10vw, 56px);
        margin-bottom: 24px;
    }

    .hero__lead {
        margin: 0 auto 32px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__meta {
        padding: 24px 0;
    }

    .hero__meta-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }

    .hero__meta-item {
        align-items: center;
        text-align: center;
    }

    /* ---- Prose / Stats ---- */
    .grid {
        gap: 36px;
    }

    .prose,
    .prose p,
    .prose__lead {
        text-align: center;
    }

    .stat {
        align-items: center;
        text-align: center;
        padding: 28px 18px;
    }

    /* ---- Companies ---- */
    .companies {
        gap: 20px;
    }

    .company {
        padding: 28px 22px;
        text-align: center;
        align-items: center;
    }

    .company__head {
        justify-content: space-between;
        margin-bottom: 24px;
    }

    .company__name {
        font-size: clamp(22px, 6vw, 28px);
    }

    .company__meta {
        align-items: center;
        width: 100%;
    }

    .company__meta li {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }

    .company__meta li span:first-child {
        min-width: 0;
    }

    /* ---- Strategia ---- */
    .principles {
        gap: 28px;
    }

    .principle {
        text-align: center;
        padding-top: 24px;
    }

    /* ---- Governance ---- */
    .governance {
        gap: 28px;
    }

    .governance__item {
        border-left: none;
        border-top: 2px solid var(--color-accent);
        padding-left: 0;
        padding-top: 20px;
        text-align: center;
    }

    /* ---- CTA / Form ---- */
    .cta {
        text-align: center;
        gap: 32px;
    }

    .contact-form {
        text-align: left;
        padding: 24px 18px;
    }

    .contact-form__actions {
        align-items: center;
        text-align: center;
    }

    .contact-form__actions .btn {
        width: 100%;
    }

    .contact-form__privacy {
        text-align: center;
    }

    /* ============================================
       FOOTER — mobile redesign
       ============================================ */
    .footer {
        padding: 48px 0 28px;
        text-align: center;
    }

    .footer__top {
        gap: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .footer__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 32px;
        margin-bottom: 32px;
        border-bottom: 1px solid #2a2a2a;
    }

    .logo__img--light {
        height: 44px;
        margin: 0 auto 16px;
    }

    .footer__tagline {
        margin: 0 0 4px;
        max-width: 320px;
    }

    .footer__brand-legal {
        grid-template-columns: 1.4fr 1fr;
        column-gap: 20px;
        row-gap: 0;
        margin-top: 24px;
        width: 100%;
        max-width: 420px;
        justify-items: stretch;
    }

    /* Sede legale — sinistra */
    .footer__brand-legal > div:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
        text-align: left;
        padding: 0;
        border-top: none;
    }

    /* Codice registro — destra */
    .footer__brand-legal > div:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        align-items: flex-end;
        text-align: right;
        padding: 0;
        border-top: none;
    }

    /* Partita IVA — sotto Codice registro, a destra, senza riga */
    .footer__brand-legal > div:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        align-items: flex-end;
        text-align: right;
        margin-top: 12px;
        padding-top: 0;
        border-top: none;
    }

    .footer__brand-legal dt {
        margin-bottom: 4px;
    }

    .footer__cols {
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: 0;
    }

    .footer__col {
        padding: 0;
        border-top: none;
    }

    /* Società — colonna sinistra */
    .footer__cols .footer__col:nth-child(2) {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }

    .footer__cols .footer__col:nth-child(2) ul {
        align-items: flex-start;
    }

    /* Gruppo — colonna destra */
    .footer__cols .footer__col:nth-child(1) {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .footer__cols .footer__col:nth-child(1) ul {
        align-items: flex-end;
    }

    /* Nascondi Contatti nel footer */
    .footer__cols .footer__col:nth-child(3) {
        display: none;
    }

    .footer__col h4 {
        margin-bottom: 14px;
    }

    .footer__col ul {
        align-items: center;
        gap: 10px;
    }

    .footer__bottom {
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid #2a2a2a;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .footer__legal {
        justify-content: center;
        gap: 18px;
    }

    /* ---- Cookie banner ---- */
    .cookie-banner {
        padding: 20px;
        text-align: left;
    }

    .cookie-banner__btn {
        width: 100%;
    }
}

/* ---- Schermi molto piccoli (≤380px) ---- */
@media (max-width: 380px) {
    :root {
        --gutter: 18px;
    }

    .hero__title {
        font-size: clamp(32px, 9vw, 42px);
    }

    .section__title {
        font-size: clamp(24px, 7vw, 32px);
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .company {
        padding: 24px 18px;
    }
}

/* PRINT
   ============================================ */
@media print {
    .header,
    .top-bar,
    .nav-toggle,
    .footer__legal {
        display: none;
    }
}

/* REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
