body {
    margin-top: 156px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--main-color);
    z-index: 999;
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "logo search links"
        "nav nav actions";
    gap: 25px 50px;
    align-items: center;
}

.header-hamburger {
    grid-area: hamburger;
}

.header-logo {
    grid-area: logo;
    justify-self: start;
}

.header-search {
    grid-area: search;
    min-width: 0;
}

.header-links {
    grid-area: links;
    justify-self: end;
}

.header-nav {
    grid-area: nav;
}

.header-actions {
    grid-area: actions;
    justify-self: end;
}

/* Search */
.search-container {
    position: relative;
}

.search-input {
    text-transform: uppercase;
    height: 45px;
    padding-left: 60px;
    border: none;
    border-radius: 0;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%) rotateY(-180deg);
    color: #4b4b4b;
    font-size: 20px;
    line-height: 0;
    background: transparent;
    border: none;
}

.header-actions .dropdown-toggle::after {
    content: initial;
}

.header-actions .nav-link {
    padding-block: 0;
    line-height: 1;
}

.header-actions .form-control {
    height: 40px;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 0;
}

.header-actions .dropdown-menu {
    border-radius: 0 0 4px 4px;
    min-width: 330px;
    padding: 10px;
    border: 1px solid #dedede;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.help-block {
    display: block;
    text-align: center;
    margin-top: 15px;
}

.help-block-link {
    color: #80b539;
}

.btn.btn-accedi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 40px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    background-color: #80b539;
    border-radius: 0;
}

.btn-accedi.btn-accedi--google {
    background-color: #e63939;
}

.btn-accedi.btn-accedi--apple {
    background-color: #000;
}

.btn-accedi.btn-accedi--registrati {
    background-color: #005387FF;
}

.btn-accedi:hover {
    filter: brightness(1.1);
}

.header-actions-counter {
    position: absolute;
    top: -7px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    border-radius: 50px;
    background-color: #04834CFF;
    height: 20px;
    width: 20px;
}

.cf_hover-dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown-cart .cf_product_content {
    overflow-y: auto;
    max-height: calc(100dvh - 210px);
}

.cf_cart_pro_box {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #ccc;
    padding: 10px 15px;
}

.cf_cart_pro_img {
    flex-shrink: 0;
}

.cf_cart_pro_img img {
    max-width: 70px;
    width: 100%;
    display: block;
    border: solid 1px #ccc;
}

.cf_cart_pro_box .cf_cart_link a {
    font-size: 14px;
    text-decoration: none;
    color: #005387;
    text-transform: uppercase;
}

.cf_cart_pro_box .cf_cart_conf_text {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    line-height: 1.3;
    color: #000;
}

.cf_cart_pro_box .cf_cart_conf_text span {
    color: #005387;
    font-size: 18px;
    font-weight: bold;
}

.cf_cart_pro_box .cf_cart_conf_text p a {
    color: #000;
    font-size: 14px;
    text-decoration: none;
}

.cf_cart_subtotale-procedi {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 10;
}

.cf_cart_subtotale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.cf_total_head {
    font-size: 20px;
    color: #000;
    text-transform: uppercase;
}

.cf_total_price {
    font-size: 24px;
    color: #005387;
    text-transform: uppercase;
    font-weight: 700;
}

.cf_procedi {
    background: #008c4f;
}

.cf_procedi-btn {
    display: block;
    text-decoration: none;
    font-size: 18px;
    color: #fff;
    padding: 10px 15px;
}

.cf_empty_cart_smallbox {
    color: #04834CFF;
    padding: 10px;
    display: block;
    font-size: 16px;
}

.cf_product_content:not(.cf_product_content-wishlist):has(.cf_cart_pro_box) {
    padding-bottom: 94px;
}

.cf_user_name {
    display: inline-block;
    padding: 7px;
    vertical-align: top;
    color: #ffffff;
}

/* NOTICE BAR */
.notice-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--notice-bar-h);
    background: var(--green-color);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 18px 0 rgba(0, 0, 0, .2);
    z-index: 5;
}

.notice-bar.is-hiding {
    animation: noticeBarCollapse 0.35s ease forwards;
    overflow: hidden;
}

/* ---- Viewport ---- */
.notice-bar__viewport {
    flex: 1 1 auto;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---- Slide ---- */
.notice-bar__slide {
    display: none;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 8px;
    white-space: nowrap;
    font-size: 13px;
    color: #fff;
}

.notice-bar__slide.is-active {
    display: inline-flex;
}

.notice-bar__slide.is-entering {
    animation: noticeBarIn 0.45s ease-out;
}

.notice-bar__slide.is-leaving {
    animation: noticeBarSlideOut 0.45s ease-in forwards;
}

.notice-bar__slide p {
    margin: 0;
}

.notice-bar__slide a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.notice-bar__slide a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notice-bar__slide img {
    max-height: calc(var(--notice-bar-h) - 10px);
    width: auto;
    flex-shrink: 0;
}

.notice-bar__slide strong {
    font-size: 15px;
    font-weight: 700;
}

/* ---- KEYFRAMES ---- */
@keyframes noticeBarIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes noticeBarSlideOut {
    from { transform: translateX(0);     opacity: 1; }
    to   { transform: translateX(-110%); opacity: 0; }
}

@keyframes noticeBarCollapse {
    from { max-height: 44px; opacity: 1; }
    to   { max-height: 0;    opacity: 0; }
}

/* ---- BOTTONE CHIUDI ---- */
.notice-bar__close {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.18s ease;
}

.notice-bar__close:hover  {
    transform: scale(1.12);
}
.notice-bar__close:active {
    transform: scale(0.93);
}

.notice-bar__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media only screen and (max-width: 767.98px) {
    body {
        margin-top: 131px;
    }

    .header-grid {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
          "hamburger logo   actions"
          "search    search search";
        gap: 15px 20px;
    }

    .header-logo .navbar-brand img {
        max-width: 156px;
        height: auto;
    }

    .cf_user_name {
        display: none;
    }

    .notice-bar {
        width: 100%;
        background: #249556;
        color: #fff;
        overflow: hidden;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .notice-bar__slide img {
        max-height: calc(var(--notice-bar-h) - 15px);
    }

    .notice-bar {
        padding: 5px 0;
    }
}

@media (hover: hover) and (pointer: fine) {
    .cf_hover-dropdown:hover > .dropdown-menu,
    .cf_hover-dropdown:focus-within > .dropdown-menu,
    .cf_hover-dropdown.cf_dropdown-loading > .dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
    }

    .cf_cart_subtotale-procedi {
        margin-right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice-bar__slide.is-entering,
    .notice-bar__slide.is-leaving {
        animation: none;
    }
}























