/* ============================================================
   FONTS – ITC NOVARESE (SELF-HOSTED)
   ============================================================ */

@font-face {
    font-family: 'ITC Novarese';
    src: url('/_system/assets/fonts/itc-novarese/ITC-Novarese-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ITC Novarese';
    src: url('/_system/assets/fonts/itc-novarese/ITC-Novarese-Std-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ITC Novarese';
    src: url('/_system/assets/fonts/itc-novarese/ITC-Novarese-Ultra.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   NAVIGATION – BLUE SYSTEM REBUILD
   ============================================================ */

:root {
    --nav-bg: var(--blue-900);
    --nav-border: rgba(255,255,255,0.08);
    --nav-text: var(--white-cool);
    --nav-accent: var(--blue-400);
    --nav-hover: var(--blue-600);
}

/* ============================================================
   HEADER
============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 88px;
    background: var(--nav-bg);
    z-index: 9999;

    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--nav-border);
}

.header-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.site-header .logo img {
    height: 196px;
    width: auto;
    margin-top: 131px;
} 

/* ============================================================
   DESKTOP NAV
============================================================ */

.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: block;
        padding-right: 140px;
    }

    .desktop-nav ul {
        display: flex;
        align-items: center;
        gap: var(--space-5);
        list-style: none;
    }
}

.desktop-nav ul li a {
    font-family: var(--font-headline);
    font-size: var(--fs-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nav-text);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

/* Underline effect */
.desktop-nav ul li a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--nav-accent);
    transition: width 0.25s ease;
}

.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
    width: 100%;
}

.desktop-nav ul li a.active {
    background-color: var(--nav-accent);
    padding: 10px;
}

/* CTA inside nav */
.desktop-nav .nav-cta a {
    padding: 10px 18px;
    border-radius: 20px;
    background: var(--blue-600);
    color: var(--white-pure);
}

.desktop-nav .nav-cta a:hover {
    background: var(--blue-500);
}

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

.menu-btn {
    font-size: 28px;
    cursor: pointer;
    color: var(--nav-text);
    z-index: 10000;
}

@media (min-width: 768px) {
    .menu-btn {
        display: none;
    }
}

/* ============================================================
   MOBILE HEADER LAYOUT
============================================================ */

@media (max-width: 767.98px) {

    .header-inner {
        justify-content: center;
    }

    .site-header .logo img {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 99999;
        height: 203px !important;
        top: -120px;
    }

    .menu-btn {
        position: absolute;
        right: 22px;
        top: 22px;
    }
}

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

.mobile-nav {
    position: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 88px);
    overflow-y: auto;

    background: var(--blue-900);
    border-top: 1px solid var(--nav-border);
    display: none;

    z-index: 9998;
}

.mobile-nav.open {
    display: block;
    animation: fadeMenu 0.25s ease-out;
}

@keyframes fadeMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav ul {
    list-style: none;
    padding: var(--space-4);
}

.mobile-nav ul li a {
    display: block;
    width: 100%;
    padding: var(--space-3) 10px;

    font-family: var(--font-headline);
    font-size: var(--fs-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--nav-text);
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav ul li a:hover {
    background-color: var(--blue-700);
    color: var(--white-pure);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

/* ============================================================
   LANGUAGE SWITCHER
============================================================ */

.lang-switch {
    position: fixed;
    top: 26px;
    right: 12px;
    z-index: 10001;

    background: var(--blue-800);
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    padding: 4px 8px;

    display: flex;
    align-items: center;
}

.lang-switch select {
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--nav-text);
    padding: 6px 20px 6px 6px;
    cursor: pointer;
    outline: none;
    appearance: none;
}

.lang-switch option {
    color: var(--deep-black);
}

.lang-switch::after {
    content: "▾";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--nav-text);
    pointer-events: none;
}

@media (max-width: 768px) {
    .lang-switch {
        top: 22px;
        left: 22px;
        right: auto;
        transform: scale(0.95);
    }
}

/* ============================================================
   POPUP MENU BUTTON
============================================================ */

.btn-menu-popup {
    font-family: var(--font-headline);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white-pure);
    padding: 13px 18px;
    border-radius: 20px;
    background: var(--blue-600);
    transition: background 0.2s ease;
}

.btn-menu-popup:hover {
    background: var(--blue-500);
}
