/*
 * Public chrome refresh inspired by the compact institutional proportions used
 * on major Italian public-sector sites. The palette remains RCD-owned.
 */
:root {
    --rcd-chrome-navy: rgb(10, 42, 77);
    --rcd-chrome-navy-2: rgb(15, 58, 96);
    --rcd-chrome-accent: rgb(93, 202, 220);
}

.acn-topbar {
    min-height: 32px;
    padding: 0;
    background: var(--rcd-chrome-navy) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
    font-size: .82rem;
}

.acn-topbar-inner {
    min-height: 32px;
    gap: 1rem;
}

.acn-topbar-label {
    min-width: 0;
}

.acn-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .85rem;
    margin-left: auto;
}

.acn-topbar-links {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.acn-topbar-links a {
    margin-left: 0;
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    line-height: 1;
}

.rcd-language-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 28px;
    color: #fff;
}

.rcd-language-control svg {
    flex: 0 0 auto;
    opacity: .86;
}

.rcd-language-select {
    min-width: 94px;
    height: 28px;
    margin: 0;
    padding: 0 1.55rem 0 .35rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .24);
    border-radius: 0;
    background-color: transparent;
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 28px;
    cursor: pointer;
    box-shadow: none !important;
}

.rcd-language-select option {
    background: #fff;
    color: #17324d;
}

.rcd-language-select:focus-visible {
    outline: 2px solid var(--rcd-chrome-accent);
    outline-offset: 2px;
}

.rcd-language-select:disabled {
    cursor: progress;
    opacity: .72;
}

.rcd-language-status {
    max-width: 180px;
    overflow: hidden;
    color: rgba(255, 255, 255, .82);
    font-size: .76rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acn-header {
    background: #fff !important;
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(10, 42, 77, .09);
}

.acn-header-inner {
    min-height: 68px !important;
    padding: 7px 0 !important;
}

.acn-logo {
    gap: 10px;
}

.acn-logo > img {
    width: 50px !important;
    height: 50px !important;
    border-radius: 7px !important;
}

.acn-logo-title {
    color: var(--rcd-chrome-navy) !important;
    font-size: 1.28rem !important;
    font-weight: 700;
    line-height: 1.05;
}

.acn-logo-subtitle {
    margin-top: 3px;
    color: #52606d !important;
    font-size: .82rem !important;
    line-height: 1.12;
}

.acn-nav {
    background: var(--rcd-chrome-navy-2) !important;
    border-top: 0;
    border-bottom: 3px solid var(--rcd-chrome-accent);
}

.acn-nav-list {
    width: 100%;
    justify-content: flex-start;
}

.acn-nav-list > li > a {
    padding: 9px 12px !important;
    border-bottom-width: 0 !important;
    color: rgba(255, 255, 255, .94);
    font-size: .91rem !important;
    font-weight: 600;
    line-height: 1.2;
}

.acn-nav-list > li > a:hover,
.acn-nav-list > li > a:focus-visible,
.acn-nav-list > li > a.active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.acn-nav-list > li > a.active {
    box-shadow: inset 0 -3px 0 var(--rcd-chrome-accent);
}

/* Home hero: less vertical bulk, stronger first-screen hierarchy. */
body.rcd-home .banner-slider {
    height: clamp(340px, 34vw, 405px);
    background: var(--rcd-chrome-navy);
}

body.rcd-home .banner-content h2,
body.rcd-home .acn-banner-content h2 {
    max-width: 19ch;
    margin-bottom: .65rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.02em;
}

body.rcd-home .banner-content p,
body.rcd-home .acn-banner-content p {
    max-width: 60ch;
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.45;
}

body.rcd-home .btn-acn-banner {
    min-height: 42px;
    padding: .55rem 1rem;
}

@media (max-width: 991.98px) {
    .acn-header-inner {
        min-height: 62px !important;
        padding: 6px 0 !important;
    }

    .acn-logo > img {
        width: 46px !important;
        height: 46px !important;
    }

    .acn-logo-title {
        font-size: 1.16rem !important;
    }

    .acn-logo-subtitle {
        max-width: 42ch;
        font-size: .77rem !important;
    }

    .acn-nav {
        border-bottom-width: 2px;
    }

    .acn-nav-list > li > a {
        padding: 9px 15px !important;
    }
}

@media (max-width: 767.98px) {
    .acn-topbar-inner {
        min-height: 34px;
    }

    .acn-topbar-actions {
        width: 100%;
        gap: .45rem;
    }

    .acn-topbar-links {
        gap: .55rem;
    }

    .acn-topbar-links a {
        font-size: .76rem;
    }

    .rcd-language-control {
        margin-right: auto;
    }

    .rcd-language-select {
        min-width: 82px;
        font-size: .78rem;
    }

    .rcd-language-status {
        display: none;
    }

    .acn-logo-subtitle {
        display: none;
    }

    body.rcd-home .banner-slider {
        height: 300px;
    }

    body.rcd-home .banner-content h2,
    body.rcd-home .acn-banner-content h2 {
        font-size: clamp(1.7rem, 8vw, 2.35rem);
    }
}

@media (max-width: 420px) {
    .acn-topbar-links a:last-child {
        display: none;
    }

    .acn-logo-title {
        font-size: 1.05rem !important;
    }

    body.rcd-home .banner-slider {
        height: 275px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rcd-language-select,
    .acn-nav-list > li > a {
        transition: none !important;
    }
}
