/* =========================================================
   ANGOLO DI VINO TORINO
   HEADER
========================================================= */

:root {
    --header-total-height: 130px;
}

.site-header {
    --wine-dark: #080103;
    --wine: #15040a;
    --wine-soft: #250813;

    --copper: #c78a55;
    --copper-light: #dda86f;

    position: fixed;

    top: 0;
    right: 0;
    left: 0;

    z-index: 1000;

    color: #ffffff;
}


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

.site-header::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            180deg,
            rgba(8, 1, 4, .97),
            rgba(17, 3, 9, .92)
        );

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

    backdrop-filter:
        blur(24px)
        saturate(125%);

    -webkit-backdrop-filter:
        blur(24px)
        saturate(125%);

    box-shadow:
        0 18px 60px rgba(0, 0, 0, .14);

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


.site-header.is-scrolled::before {
    background:
        linear-gradient(
            180deg,
            rgba(7, 1, 3, .995),
            rgba(14, 3, 7, .99)
        );

    box-shadow:
        0 14px 50px rgba(0, 0, 0, .30);
}


/*
HEADER SEMPRE VISIBILE
*/

.site-header.is-hidden {
    transform: none !important;
}


/* =========================================================
   BACKGROUND GLOW
========================================================= */

.header-glow {
    position: absolute;

    inset: 0;

    z-index: -1;

    overflow: hidden;

    pointer-events: none;
}


.header-glow span {
    position: absolute;

    border-radius: 50%;

    filter: blur(70px);
}


.header-glow span:first-child {
    width: 320px;
    height: 180px;

    top: -110px;
    left: -90px;

    background:
        rgba(115, 28, 51, .17);
}


.header-glow span:last-child {
    width: 300px;
    height: 170px;

    top: -100px;
    right: -70px;

    background:
        rgba(161, 89, 52, .08);
}


/* =========================================================
   SHELL
========================================================= */

.header-shell {
    width:
        min(
            calc(100% - 58px),
            1500px
        );

    margin-inline: auto;
}


/* =========================================================
   TOPBAR
========================================================= */

.header-topbar {
    height: 34px;

    overflow: hidden;

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

    transition:
        height .3s ease,
        opacity .3s ease;
}


.site-header.is-scrolled
.header-topbar {
    height: 0;

    opacity: 0;
}


.header-topbar-inner {
    height: 100%;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;
}


.header-topbar-left,
.header-topbar-right {
    color:
        rgba(255, 255, 255, .30);

    font-size: 7px;

    font-weight: 600;

    letter-spacing: .10em;

    text-transform: uppercase;
}


/* =========================================================
   TOPBAR PHONES
========================================================= */

.header-topbar-left {
    display: flex;

    align-items: center;

    gap: 5px;

    white-space: nowrap;
}


.header-topbar-left a {
    color: inherit;

    text-decoration: none;

    transition:
        color .2s ease;
}


.header-topbar-left a:hover {
    color:
        var(--copper-light);
}


.header-phone-separator {
    color:
        rgba(255, 255, 255, .18);

    user-select: none;
}


/* =========================================================
   TOPBAR ADDRESS
========================================================= */

.header-topbar-right {
    text-align: right;
}


.header-topbar-right a {
    color: inherit;

    text-decoration: none;

    transition:
        color .2s ease;
}


.header-topbar-right a:hover {
    color:
        var(--copper-light);
}


/* =========================================================
   TOPBAR CENTER
========================================================= */

.header-topbar-center {
    display: flex;

    align-items: center;

    gap: 9px;

    color:
        rgba(255, 255, 255, .38);

    font-size: 7px;

    font-weight: 650;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.header-topbar-dot {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background:
        var(--copper);

    box-shadow:
        0 0 10px rgba(199, 138, 85, .40);
}


/* =========================================================
   MAIN
========================================================= */

.header-main {
    height: 96px;

    position: relative;

    transition:
        height .3s ease;
}


.site-header.is-scrolled
.header-main {
    height: 72px;
}


.header-main-inner {
    height: 100%;

    display: grid;

    grid-template-columns:
        215px
        minmax(0, 1fr)
        175px;

    align-items: center;

    gap: 24px;
}


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

.header-logo {
    width: 205px;
    height: 78px;

    position: relative;

    display: flex;

    align-items: center;
}


.header-logo-glow {
    width: 175px;
    height: 80px;

    position: absolute;

    top: 50%;
    left: 35%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(184, 108, 61, .14),
            transparent 70%
        );

    filter: blur(15px);

    pointer-events: none;
}


.header-logo img {
    width: auto;

    max-width: 205px;
    max-height: 72px;

    position: relative;

    z-index: 2;

    object-fit: contain;

    transition:
        max-height .3s ease,
        transform .25s ease;
}


.header-logo:hover img {
    transform:
        translateY(-2px);
}


.site-header.is-scrolled
.header-logo img {
    max-height: 56px;
}


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

.header-navigation {
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap:
        clamp(
            19px,
            1.6vw,
            31px
        );
}


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

    padding: 0;

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    border: 0;

    background: transparent;

    color:
        rgba(255, 255, 255, .61);

    font-family: inherit;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .095em;

    text-transform: uppercase;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color .2s ease;
}


.header-nav-link::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 18px;
    left: 0;

    height: 1px;

    transform:
        scaleX(0);

    transform-origin: center;

    background:
        linear-gradient(
            90deg,
            transparent,
            #cf9560,
            transparent
        );

    transition:
        transform .25s ease;
}


.site-header.is-scrolled
.header-nav-link::after {
    bottom: 10px;
}


.header-nav-link:hover,
.header-nav-link.is-active,
.header-dropdown.is-active
> .header-nav-link {
    color:
        #dfad7a;
}


.header-nav-link:hover::after,
.header-nav-link.is-active::after,
.header-dropdown.is-active
> .header-nav-link::after {
    transform:
        scaleX(1);
}


/* =========================================================
   DROPDOWN CONTAINER
========================================================= */

.header-dropdown {
    height: 100%;

    position: relative;
}


.header-dropdown-trigger svg {
    width: 9px;
    height: 9px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;

    transition:
        transform .22s ease;
}


.header-dropdown.is-open
.header-dropdown-trigger svg,
.header-dropdown:hover
.header-dropdown-trigger svg {
    transform:
        rotate(180deg);
}


/* =========================================================
   SIMPLE REAL DROPDOWN
========================================================= */

.header-dropdown-menu {
    width: 255px;

    padding-top: 9px;

    position: absolute;

    top:
        calc(100% - 5px);

    left: 50%;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(9px);

    transition:
        opacity .18s ease,
        visibility .18s ease,
        transform .18s ease;
}


.header-dropdown:hover
.header-dropdown-menu,
.header-dropdown.is-open
.header-dropdown-menu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


.header-dropdown-menu-inner {
    padding: 6px;

    overflow: hidden;

    border:
        1px solid rgba(211, 158, 103, .15);

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(27, 6, 13, .99),
            rgba(10, 2, 5, .99)
        );

    box-shadow:
        0 22px 55px rgba(0, 0, 0, .42);

    backdrop-filter:
        blur(22px);

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


/* =========================================================
   DROPDOWN LINKS
========================================================= */

.header-dropdown-menu-inner > a {
    min-height: 67px;

    padding:
        11px 12px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    border-radius: 9px;

    transition:
        background .18s ease,
        padding-left .18s ease;
}


.header-dropdown-menu-inner > a + a {
    margin-top: 2px;
}


.header-dropdown-menu-inner > a:hover,
.header-dropdown-menu-inner > a.is-active {
    padding-left: 16px;

    background:
        rgba(198, 129, 75, .065);
}


.header-dropdown-text {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.header-dropdown-text small {
    color:
        #9f653f;

    font-size: 5px;

    font-weight: 700;

    letter-spacing: .13em;

    text-transform: uppercase;
}


.header-dropdown-text strong {
    color:
        rgba(255, 255, 255, .82);

    font-family:
        "Playfair Display",
        serif;

    font-size: 16px;

    font-weight: 500;
}


.header-dropdown-arrow {
    color:
        #b87849;

    font-size: 12px;

    opacity: .42;

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


.header-dropdown-menu-inner
> a:hover
.header-dropdown-arrow {
    opacity: 1;

    transform:
        translate(2px, -2px);
}


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

.header-actions {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 8px;
}


.header-action,
.header-mobile-toggle {
    width: 44px;
    height: 44px;

    position: relative;

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

    border-radius: 50%;

    display: grid;

    place-items: center;

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

    color:
        rgba(255, 255, 255, .60);

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}


.header-action:hover,
.header-mobile-toggle:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(209, 155, 101, .26);

    background:
        rgba(193, 124, 72, .045);

    color:
        #dda973;
}


.header-action svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        1.45;
}


/* USER ONLINE */

.header-user-online {
    width: 6px;
    height: 6px;

    position: absolute;

    top: 4px;
    right: 5px;

    border:
        2px solid #120308;

    border-radius: 50%;

    background:
        #c48853;
}


/* CART COUNT */

.header-cart-count {
    min-width: 18px;
    height: 18px;

    padding:
        0 4px;

    position: absolute;

    top: -5px;
    right: -4px;

    display: grid;

    place-items: center;

    border:
        2px solid #120308;

    border-radius: 999px;

    background:
        #ce965f;

    color:
        #17050a;

    font-size: 6px;

    font-weight: 900;
}


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

.header-mobile-toggle {
    display: none;
}


.header-mobile-toggle span {
    width: 16px;
    height: 1px;

    display: block;

    background:
        currentColor;
}


.header-mobile-toggle span + span {
    width: 11px;

    margin-top: 5px;

    margin-left: 5px;
}


/* =========================================================
   BOTTOM LINE
========================================================= */

.header-bottom-line {
    width:
        min(
            calc(100% - 58px),
            1500px
        );

    height: 1px;

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    margin: auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(199, 137, 85, .13),
            transparent
        );
}


/* =========================================================
   SEARCH OVERLAY
========================================================= */

.header-search-panel {
    position: fixed;

    inset: 0;

    z-index: 1400;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.header-search-panel.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.header-search-background {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(106, 25, 49, .34),
            transparent 36%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(153, 87, 49, .07),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #070103,
            #1b050d
        );

    backdrop-filter:
        blur(24px);

    -webkit-backdrop-filter:
        blur(24px);
}


.header-search-container {
    width:
        min(
            calc(100% - 70px),
            1380px
        );

    height: 100%;

    margin: auto;

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;
}


/* SEARCH HEAD */

.header-search-head {
    min-height: 105px;

    display: flex;

    align-items: center;

    justify-content: space-between;

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


.header-search-logo img {
    max-width: 185px;
    max-height: 67px;

    object-fit: contain;
}


.header-search-close,
.mobile-navigation-close {
    width: 45px;
    height: 45px;

    position: relative;

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

    border-radius: 50%;

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

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease;
}


.header-search-close:hover,
.mobile-navigation-close:hover {
    transform:
        rotate(5deg);

    border-color:
        rgba(206, 149, 94, .28);
}


.header-search-close span,
.mobile-navigation-close span {
    width: 15px;
    height: 1px;

    position: absolute;

    top: 50%;
    left: 50%;

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


.header-search-close
span:first-child,
.mobile-navigation-close
span:first-child {
    transform:
        translate(-50%, -50%)
        rotate(45deg);
}


.header-search-close
span:last-child,
.mobile-navigation-close
span:last-child {
    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


/* =========================================================
   SEARCH CONTENT
========================================================= */

.header-search-content {
    width:
        min(
            100%,
            900px
        );

    margin: auto;
}


.header-search-eyebrow {
    color:
        #b77747;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: .17em;

    text-transform: uppercase;
}


.header-search-form {
    margin-top: 13px;

    display: flex;

    align-items: flex-end;

    gap: 18px;

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


.header-search-form input {
    flex: 1;

    min-width: 0;

    padding:
        10px 0
        20px;

    border: 0;

    outline: 0;

    background:
        transparent;

    color:
        #ffffff;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            42px,
            5.5vw,
            74px
        );

    font-weight: 500;

    letter-spacing:
        -.04em;
}


.header-search-form input::placeholder {
    color:
        rgba(255, 255, 255, .14);
}


.header-search-form button {
    min-width: 108px;

    margin-bottom: 13px;

    padding:
        9px
        9px
        9px
        15px;

    border:
        1px solid rgba(205, 149, 94, .22);

    border-radius:
        999px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    background:
        rgba(196, 126, 74, .05);

    color:
        #d3a06b;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;

    cursor: pointer;
}


.header-search-form button i {
    width: 27px;
    height: 27px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(203, 146, 91, .09);

    font-style: normal;
}


/* QUICK LINKS */

.header-search-links {
    margin-top: 27px;
}


.header-search-links > span {
    color:
        rgba(255, 255, 255, .21);

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .13em;

    text-transform: uppercase;
}


.header-search-links > div {
    margin-top: 11px;

    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}


.header-search-links a {
    padding:
        8px 13px;

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

    border-radius:
        999px;

    color:
        rgba(255, 255, 255, .44);

    font-size: 8px;

    transition:
        color .2s ease,
        border-color .2s ease;
}


.header-search-links a:hover {
    color:
        #d5a06c;

    border-color:
        rgba(201, 143, 87, .23);
}


/* SEARCH FOOTER */

.header-search-footer {
    min-height: 62px;

    display: flex;

    align-items: center;

    justify-content: space-between;

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

    color:
        rgba(255, 255, 255, .18);

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;
}


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

.mobile-navigation {
    position: fixed;

    inset: 0;

    z-index: 1300;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


.mobile-navigation.is-open {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.mobile-navigation-background {
    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 80% 12%,
            rgba(106, 25, 49, .31),
            transparent 34%
        ),
        linear-gradient(
            140deg,
            #070103,
            #19050c
        );
}


.mobile-navigation-container {
    width:
        min(
            calc(100% - 38px),
            700px
        );

    height: 100%;

    margin: auto;

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;
}


/* MOBILE HEAD */

.mobile-navigation-head {
    min-height: 95px;

    display: flex;

    align-items: center;

    justify-content: space-between;

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


.mobile-navigation-head img {
    max-width: 165px;
    max-height: 62px;

    object-fit: contain;
}


/* MOBILE LINKS */

.mobile-navigation-links {
    margin: auto 0;

    display: flex;

    flex-direction: column;
}


.mobile-navigation-links > a {
    padding:
        11px 0;

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

    color:
        rgba(255, 255, 255, .84);

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(
            27px,
            7vw,
            40px
        );

    font-weight: 500;

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


.mobile-navigation-links > a:hover {
    padding-left: 7px;

    color:
        #d8a46f;
}


/* MOBILE IL LOCALE */

.mobile-locale-menu {
    padding:
        13px 0 14px;

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


.mobile-locale-menu > span {
    display: block;

    color:
        #a7683f;

    font-size: 6px;

    font-weight: 700;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.mobile-locale-menu > div {
    margin-top: 9px;

    display: flex;

    align-items: center;

    gap: 24px;
}


.mobile-locale-menu a {
    color:
        rgba(255, 255, 255, .67);

    font-family:
        "Playfair Display",
        serif;

    font-size: 19px;

    transition:
        color .2s ease;
}


.mobile-locale-menu a:hover {
    color:
        #d4a06c;
}


/* =========================================================
   MOBILE FOOTER
========================================================= */

.mobile-navigation-footer {
    min-height: 70px;

    padding-top: 15px;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

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

    color:
        rgba(255, 255, 255, .25);

    font-size: 7px;

    letter-spacing: .08em;

    text-transform: uppercase;
}


/* =========================================================
   MOBILE ADDRESS
========================================================= */

.mobile-navigation-address {
    max-width: 48%;

    color:
        rgba(255, 255, 255, .25) !important;

    line-height: 1.6;

    text-decoration: none;

    transition:
        color .2s ease;
}


.mobile-navigation-address:hover {
    color:
        var(--copper-light) !important;
}


/* =========================================================
   MOBILE PHONE NUMBERS
========================================================= */

.mobile-navigation-phones {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 6px;
}


.mobile-navigation-phones a {
    color:
        #c48a56;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color .2s ease;
}


.mobile-navigation-phones a:hover {
    color:
        var(--copper-light);
}


.mobile-phone-separator {
    color:
        rgba(255, 255, 255, .20);

    user-select: none;
}


/* =========================================================
   OVERLAY LOCK
========================================================= */

body.header-overlay-open {
    overflow: hidden;
}


/* =========================================================
   1400
========================================================= */

@media (max-width: 1400px) {

    .header-main-inner {
        grid-template-columns:
            185px
            minmax(0, 1fr)
            150px;

        gap: 18px;
    }


    .header-logo {
        width: 180px;
    }


    .header-logo img {
        max-width: 180px;
    }


    .header-navigation {
        gap: 18px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

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


    .header-main-inner {
        grid-template-columns:
            1fr
            auto;
    }


    .header-navigation {
        display: none;
    }


    .header-mobile-toggle {
        display: block;
    }

}


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

@media (max-width: 760px) {

    .header-topbar {
        display: none;
    }


    .header-main,
    .site-header.is-scrolled
    .header-main {
        height: 74px;
    }


    .header-shell {
        width:
            calc(100% - 26px);
    }


    .header-logo {
        width: 145px;
        height: 60px;
    }


    .header-logo img,
    .site-header.is-scrolled
    .header-logo img {
        max-width: 145px;
        max-height: 54px;
    }


    .header-action,
    .header-mobile-toggle {
        width: 38px;
        height: 38px;
    }


    .header-actions
    .header-action:nth-child(2) {
        display: none;
    }


    .header-search-container {
        width:
            calc(100% - 28px);
    }


    .header-search-content {
        margin-top: 18vh;
    }


    .header-search-form {
        display: block;
    }


    .header-search-form button {
        margin:
            15px 0 0;
    }


    .mobile-navigation-footer {
        align-items: flex-start;
    }


    .mobile-navigation-phones {
        max-width: 55%;

        justify-content: flex-end;

        text-align: right;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .header-logo {
        width: 130px;
    }


    .header-logo img,
    .site-header.is-scrolled
    .header-logo img {
        max-width: 130px;
    }


    .header-actions {
        gap: 5px;
    }


    .header-action,
    .header-mobile-toggle {
        width: 36px;
        height: 36px;
    }


    .mobile-locale-menu > div {
        flex-direction: column;

        align-items: flex-start;

        gap: 7px;
    }


    .mobile-navigation-footer {
        flex-direction: column;

        gap: 8px;
    }


    .mobile-navigation-address {
        max-width: 100%;
    }


    .mobile-navigation-phones {
        max-width: 100%;

        justify-content: flex-start;

        text-align: left;
    }

}