/* =========================================================
   ROMA NEXT RP
   HEADER ITALIAN IDENTITY
   ========================================================= */

.rn-header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 84px;

    z-index: 1000;

    background:
        linear-gradient(
            180deg,
            rgba(5, 8, 8, .985),
            rgba(5, 8, 8, .955)
        );

    border-bottom:
        1px solid
        rgba(255, 255, 255, .065);

    backdrop-filter:
        blur(22px);

    -webkit-backdrop-filter:
        blur(22px);

    transition:
        background .25s ease,
        box-shadow .25s ease;
}


/* =========================================================
   SCROLL
   ========================================================= */

.rn-header.is-scrolled {
    background:
        rgba(4, 7, 7, .99);

    box-shadow:
        0 16px 50px
        rgba(0, 0, 0, .42);
}


/* =========================================================
   ITALIAN TOP LINE
   ========================================================= */

.rn-header-italian-line {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    z-index: 5;
}

.rn-header-italian-line span:nth-child(1) {
    background: #009246;
}

.rn-header-italian-line span:nth-child(2) {
    background: #f4f5f3;
}

.rn-header-italian-line span:nth-child(3) {
    background: #ce2b37;
}


/* =========================================================
   INNER
   ========================================================= */

.rn-header-inner {
    width:
        min(
            calc(100% - 70px),
            1500px
        );

    height: 100%;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        300px
        minmax(500px, 1fr)
        250px;

    align-items: center;
}


/* =========================================================
   BRAND
   ========================================================= */

.rn-header-brand {
    width: max-content;

    display: flex;
    align-items: center;

    gap: 14px;
}


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

.rn-header-logo {
    position: relative;

    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.rn-header-logo::after {
    content: '';

    position: absolute;

    left: 50%;
    bottom: -5px;

    width: 27px;
    height: 1px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            90deg,
            #009246 0%,
            #009246 33.33%,
            #f4f5f3 33.33%,
            #f4f5f3 66.66%,
            #ce2b37 66.66%,
            #ce2b37 100%
        );

    opacity: .75;
}

.rn-header-logo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   BRAND COPY
   ========================================================= */

.rn-header-brand-copy {
    display: flex;
    flex-direction: column;

    justify-content: center;
}

.rn-header-brand-title {
    display: flex;
    align-items: center;

    gap: 5px;

    color: #fff;

    font-family:
        var(--rn-heading);

    font-size: 15px;

    line-height: 1;

    letter-spacing: 1.6px;
}

.rn-header-brand-title span {
    font-weight: 500;
}

.rn-header-brand-title strong {
    font-weight: 800;
}


/* =========================================================
   BRAND SUBTITLE
   ========================================================= */

.rn-header-brand-subtitle {
    margin-top: 8px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.rn-header-brand-subtitle > span {
    color: #626a6c;

    font-size: 6px;
    font-weight: 800;

    letter-spacing: 3px;
}


/* =========================================================
   SMALL TRICOLOR
   ========================================================= */

.rn-header-brand-tricolor {
    width: 22px;
    height: 2px;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-radius: 20px;
}

.rn-header-brand-tricolor i:nth-child(1) {
    background: #009246;
}

.rn-header-brand-tricolor i:nth-child(2) {
    background: #f4f5f3;
}

.rn-header-brand-tricolor i:nth-child(3) {
    background: #ce2b37;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.rn-header-nav {
    height: 100%;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 4px;
}

.rn-header-nav-link {
    position: relative;

    height: 100%;

    padding:
        0 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #747c7e;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    transition:
        color .2s ease;
}

.rn-header-nav-link:hover {
    color: #d9dcdb;
}

.rn-header-nav-link.is-active {
    color: #ffffff;
}


/* =========================================================
   NAV INDICATOR
   SEMPRE TRICOLORE
   ========================================================= */

.rn-header-nav-link::after {
    content: '';

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 2px;

    transform:
        translateX(-50%);

    border-radius:
        10px 10px 0 0;

    background:
        linear-gradient(
            90deg,
            #009246 0%,
            #009246 33.33%,
            #f4f5f3 33.33%,
            #f4f5f3 66.66%,
            #ce2b37 66.66%,
            #ce2b37 100%
        );

    opacity: 0;

    transition:
        width .25s ease,
        opacity .25s ease;
}


/* HOVER - TRICOLORE PICCOLO */

.rn-header-nav-link:hover::after {
    width: 18px;

    opacity: .55;
}


/* PAGINA ATTIVA - TRICOLORE */

.rn-header-nav-link.is-active::after {
    width: 28px;

    opacity: 1;

    box-shadow:
        -4px 0 9px
        rgba(0, 146, 70, .16),

        0 0 7px
        rgba(255, 255, 255, .07),

        4px 0 9px
        rgba(206, 43, 55, .16);
}


/* HOVER PAGINA ATTIVA */

.rn-header-nav-link.is-active:hover::after {
    width: 32px;

    opacity: 1;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.rn-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;
}


/* =========================================================
   GAME BUTTON
   ========================================================= */

.rn-game-button {
    position: relative;

    width: 198px;
    height: 52px;

    display: block;

    border-radius: 12px;

    transition:
        transform .22s ease,
        filter .22s ease;
}


/* =========================================================
   GAME BUTTON - TRICOLOR BORDER
   ========================================================= */

.rn-game-button-border {
    position: absolute;

    inset: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            115deg,

            #009246 0%,
            #009246 27%,

            rgba(0, 146, 70, .30) 34%,

            rgba(244, 245, 243, .95) 48%,
            rgba(244, 245, 243, .95) 52%,

            rgba(206, 43, 55, .30) 66%,

            #ce2b37 73%,
            #ce2b37 100%
        );

    box-shadow:
        0 0 18px
        rgba(255, 255, 255, .025);
}

.rn-game-button-border::after {
    content: '';

    position: absolute;

    inset: 1px;

    border-radius: 11px;

    background: #080b0b;
}


/* =========================================================
   GAME BUTTON CONTENT
   ========================================================= */

.rn-game-button-content {
    position: absolute;

    inset: 2px;

    z-index: 2;

    padding:
        0 10px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 10px;

    background:
        linear-gradient(
            110deg,
            rgba(0, 146, 70, .10),
            rgba(10, 13, 13, .98) 37%,
            rgba(10, 13, 13, .98) 63%,
            rgba(206, 43, 55, .10)
        );

    overflow: hidden;
}

.rn-game-button-content::before {
    content: '';

    position: absolute;

    top: -50px;
    left: -30px;

    width: 90px;
    height: 90px;

    border-radius: 50%;

    background:
        rgba(0, 146, 70, .09);

    filter:
        blur(25px);
}

.rn-game-button-content::after {
    content: '';

    position: absolute;

    right: -30px;
    bottom: -50px;

    width: 90px;
    height: 90px;

    border-radius: 50%;

    background:
        rgba(206, 43, 55, .09);

    filter:
        blur(25px);
}


/* =========================================================
   GAME ICON
   ========================================================= */

.rn-game-icon {
    position: relative;

    width: 34px;
    height: 34px;

    z-index: 2;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #f5f6f5;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, .045);

    border:
        1px solid
        rgba(255, 255, 255, .075);
}

.rn-game-icon svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   GAME COPY
   ========================================================= */

.rn-game-button-copy {
    position: relative;

    z-index: 2;

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.rn-game-button-copy small {
    color: #656d6f;

    font-size: 5px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.rn-game-button-copy strong {
    color: #fff;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .8px;

    white-space: nowrap;
}


/* =========================================================
   GAME ARROW
   ========================================================= */

.rn-game-button-arrow {
    position: relative;

    z-index: 2;

    width: 28px;
    height: 28px;

    margin-left: auto;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #b8bdbc;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .035);

    border:
        1px solid
        rgba(255, 255, 255, .07);

    transition:
        transform .22s ease,
        color .22s ease,
        background .22s ease;
}

.rn-game-button-arrow svg {
    width: 13px;
    height: 13px;
}


/* =========================================================
   GAME HOVER
   ========================================================= */

.rn-game-button:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.12);
}

.rn-game-button:hover
.rn-game-button-border {
    box-shadow:
        -8px 0 22px
        rgba(0, 146, 70, .08),

        8px 0 22px
        rgba(206, 43, 55, .08);
}

.rn-game-button:hover
.rn-game-button-arrow {
    transform:
        translateX(2px);

    color: #fff;

    background:
        rgba(255, 255, 255, .07);
}


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

.rn-header-toggle {
    width: 45px;
    height: 45px;

    display: none;

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border-radius: 10px;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    background:
        rgba(255, 255, 255, .025);
}

.rn-header-toggle > span {
    width: 18px;
    height: 1px;

    border-radius: 20px;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.rn-header-toggle > span:nth-child(1) {
    background: #009246;
}

.rn-header-toggle > span:nth-child(2) {
    background: #f4f5f3;
}

.rn-header-toggle > span:nth-child(3) {
    background: #ce2b37;
}

.rn-header-toggle.is-open
> span:nth-child(1) {
    background: #fff;

    transform:
        translateY(6px)
        rotate(45deg);
}

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

.rn-header-toggle.is-open
> span:nth-child(3) {
    background: #fff;

    transform:
        translateY(-6px)
        rotate(-45deg);
}


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

.rn-mobile-menu {
    max-height: 0;

    overflow: hidden;

    opacity: 0;

    background:
        rgba(4, 7, 7, .995);

    border-top:
        1px solid
        rgba(255, 255, 255, .06);

    transition:
        max-height .35s ease,
        opacity .25s ease;
}

.rn-mobile-menu.is-open {
    max-height: 720px;

    opacity: 1;
}

.rn-mobile-menu-inner {
    width:
        min(
            calc(100% - 36px),
            700px
        );

    margin: 0 auto;

    padding:
        20px 0 26px;
}


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

.rn-mobile-menu-brand {
    padding-bottom: 18px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .07);
}

.rn-mobile-menu-logo {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;
}

.rn-mobile-menu-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.rn-mobile-menu-brand > div:nth-child(2) {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.rn-mobile-menu-brand strong {
    color: #fff;

    font-family:
        var(--rn-heading);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1px;
}

.rn-mobile-menu-brand
> div:nth-child(2) > span {
    color: #60686a;

    font-size: 6px;
    font-weight: 800;

    letter-spacing: 2.2px;
}


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

.rn-mobile-flag {
    width: 27px;
    height: 18px;

    margin-left: auto;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-radius: 2px;
}

.rn-mobile-flag i:nth-child(1) {
    background: #009246;
}

.rn-mobile-flag i:nth-child(2) {
    background: #f4f5f3;
}

.rn-mobile-flag i:nth-child(3) {
    background: #ce2b37;
}


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

.rn-mobile-nav {
    display: flex;
    flex-direction: column;
}

.rn-mobile-nav a {
    min-height: 58px;

    display: grid;

    grid-template-columns:
        34px
        1fr
        20px;

    align-items: center;

    color: #858c8e;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .06);

    transition:
        color .2s ease,
        padding-left .2s ease;
}

.rn-mobile-nav a small {
    color: #42494b;

    font-size: 6px;
    font-weight: 800;
}

.rn-mobile-nav a > span {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: .6px;
}

.rn-mobile-nav a > svg {
    width: 14px;
    height: 14px;

    opacity: .4;
}

.rn-mobile-nav a:hover,
.rn-mobile-nav a.is-active {
    padding-left: 6px;

    color: #fff;
}

.rn-mobile-nav a.is-active small {
    color: #009246;
}


/* =========================================================
   MOBILE ACTIVE TRICOLORE
   ========================================================= */

.rn-mobile-nav a.is-active {
    position: relative;
}

.rn-mobile-nav a.is-active::after {
    content: '';

    position: absolute;

    left: 34px;
    bottom: -1px;

    width: 28px;
    height: 2px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #009246 0%,
            #009246 33.33%,
            #f4f5f3 33.33%,
            #f4f5f3 66.66%,
            #ce2b37 66.66%,
            #ce2b37 100%
        );
}


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

.rn-mobile-game {
    position: relative;

    height: 64px;

    margin-top: 18px;

    display: block;

    border-radius: 11px;
}

.rn-mobile-game-border {
    position: absolute;

    inset: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            115deg,
            #009246 0%,
            #009246 29%,
            #f4f5f3 48%,
            #f4f5f3 52%,
            #ce2b37 71%,
            #ce2b37 100%
        );
}

.rn-mobile-game-border::after {
    content: '';

    position: absolute;

    inset: 1px;

    border-radius: 10px;

    background: #080b0b;
}

.rn-mobile-game-content {
    position: absolute;

    inset: 2px;

    z-index: 2;

    padding:
        0 13px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-radius: 9px;

    background:
        linear-gradient(
            110deg,
            rgba(0, 146, 70, .11),
            rgba(9, 12, 12, .98) 38%,
            rgba(9, 12, 12, .98) 62%,
            rgba(206, 43, 55, .11)
        );
}

.rn-mobile-game-icon {
    width: 35px;
    height: 35px;

    flex: 0 0 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, .045);

    border:
        1px solid
        rgba(255, 255, 255, .075);
}

.rn-mobile-game-icon svg {
    width: 19px;
    height: 19px;
}

.rn-mobile-game-content
> span:nth-child(2) {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.rn-mobile-game-content small {
    color: #626a6c;

    font-size: 6px;
    font-weight: 800;

    letter-spacing: 1px;
}

.rn-mobile-game-content strong {
    color: #fff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;
}

.rn-mobile-game-arrow {
    width: 16px;
    height: 16px;

    margin-left: auto;
}


/* =========================================================
   RESPONSIVE - 1280
   ========================================================= */

@media (max-width: 1280px) {

    .rn-header-inner {
        grid-template-columns:
            260px
            1fr
            220px;
    }

    .rn-header-nav-link {
        padding:
            0 10px;
    }
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .rn-header-inner {
        display: flex;
    }

    .rn-header-nav {
        display: none;
    }

    .rn-header-actions {
        margin-left: auto;
    }

    .rn-header-toggle {
        display: flex;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .rn-header {
        height: 72px;
    }

    .rn-header-inner {
        width:
            calc(100% - 28px);
    }

    .rn-header-logo {
        width: 43px;
        height: 43px;

        flex-basis: 43px;
    }

    .rn-header-logo::after {
        display: none;
    }

    .rn-header-brand {
        gap: 10px;
    }

    .rn-header-brand-title {
        font-size: 12px;
    }

    .rn-header-brand-subtitle {
        margin-top: 6px;
    }

    .rn-game-button {
        width: 47px;
        height: 47px;
    }

    .rn-game-button-content {
        padding: 0;

        justify-content: center;
    }

    .rn-game-button-copy,
    .rn-game-button-arrow {
        display: none;
    }

    .rn-game-icon {
        width: 34px;
        height: 34px;
    }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .rn-header-brand-title {
        font-size: 11px;
    }

    .rn-header-brand-tricolor {
        display: none;
    }

    .rn-header-actions {
        gap: 7px;
    }
}