/*
Theme Name:   Audiocostruzioni Child
Theme URI:    https://example.com/gp-child
Description:  A child theme for audiocostruzioni
Author:       Saurabh Chauhan
Author URI:   https://audiocostruzioni.com
Template:     generatepress
Version:      1.0.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  audiocostruzioni-child
*/

/*
 * Custom styles for GP Child theme
 * Add your custom CSS below this line
 */

/* ========================================
   LATO FONT FAMILY
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');

/* ========================================
   DELIGHT FONT FAMILY
   ======================================== */

@font-face {
    font-family: "Delight";
    src:
        url("assets/fonts/delight/Delight-Thin.woff2") format("woff2"),
        url("assets/fonts/delight/Delight-Thin.woff") format("woff"),
        url("assets/fonts/delight/Delight-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Delight";
    src:
        url("assets/fonts/delight/Delight-ExtraLight.woff2") format("woff2"),
        url("assets/fonts/delight/Delight-ExtraLight.woff") format("woff"),
        url("assets/fonts/delight/Delight-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Delight";
    src:
        url("assets/fonts/delight/Delight-Light.woff2") format("woff2"),
        url("assets/fonts/delight/Delight-Light.woff") format("woff"),
        url("assets/fonts/delight/Delight-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Delight";
    src:
        url("assets/fonts/delight/Delight-Regular.woff2") format("woff2"),
        url("assets/fonts/delight/Delight-Regular.woff") format("woff"),
        url("assets/fonts/delight/Delight-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Delight";
    src:
        url("assets/fonts/delight/Delight-Medium.woff2") format("woff2"),
        url("assets/fonts/delight/Delight-Medium.woff") format("woff"),
        url("assets/fonts/delight/Delight-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Delight";
    src:
        url("assets/fonts/delight/Delight-SemiBold.woff2") format("woff2"),
        url("assets/fonts/delight/Delight-SemiBold.woff") format("woff"),
        url("assets/fonts/delight/Delight-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Delight";
    src:
        url("assets/fonts/delight/Delight-Bold.woff2") format("woff2"),
        url("assets/fonts/delight/Delight-Bold.woff") format("woff"),
        url("assets/fonts/delight/Delight-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Delight";
    src:
        url("assets/fonts/delight/Delight-ExtraBold.woff2") format("woff2"),
        url("assets/fonts/delight/Delight-ExtraBold.woff") format("woff"),
        url("assets/fonts/delight/Delight-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Delight";
    src:
        url("assets/fonts/delight/Delight-Black.woff2") format("woff2"),
        url("assets/fonts/delight/Delight-Black.woff") format("woff"),
        url("assets/fonts/delight/Delight-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Apply Delight font to all headings, subheadings, and titles */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.site-title,
.entry-title,
.page-title,
.widget-title,
.wp-block-heading {
    font-family: "Delight", sans-serif;
}

body, button, input, select, textarea {
    font-family: 'Lato', Tahoma, Geneva, Verdana, sans-serif;
}

/* Basic WP Overwrites */

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
button:focus,
html input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus,
a.button:focus,
a.wp-block-button__link:not(.has-background):active,
a.wp-block-button__link:not(.has-background):focus,
a.wp-block-button__link:not(.has-background):hover {
    color: initial;
    background-color: initial;
}

:focus-visible {
    outline: 2px solid #c05b27;
}

/* Remove default focus effects globally */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #c05b27;
    outline-offset: 2px;
}

/* Remove background color and color changes on focus for all interactive elements */
button:focus,
button:active,
input:focus,
input:active,
select:focus,
select:active,
textarea:focus,
textarea:active,
a:focus,
a:active {
    background-color: transparent;
    color: inherit;
}

/* Ensure buttons don't get default browser focus styles */
button::-moz-focus-inner {
    border: 0;
}

a {
    color: #000;
}

a:hover {
    color: #d4534f;
}

ol,ul {
    margin: 0 0 1.5em 1em
}

.site-footer a, .site-footer a:hover {
    color: #fff;
}

.arrow-btn {
    display: inline-block;
}

.arrow-btn a {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-family: "Delight", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.arrow-btn a::before {
    content: "→";
    font-size: 52px;
    font-weight: 100;
    position: relative;
    letter-spacing: -6px;
    transition: all 0.2s ease;
}

.arrow-btn a:hover {
    gap: 18px;
    transform: scale(1.02);
}

.arrow-btn a:hover::before {
    transform: translateX(3px) scale(1.05);
}

.arrow-btn a span {
    display: inline-block;
}

.border-btn {
    display: inline-block;
    cursor: pointer;
    color: #000;
    border-color: #000;
    padding: 16px 40px;
    border: 2px solid;
    background: transparent;
    font-family: "Delight", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.border-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.border-btn a {
    color: inherit !important;
    text-decoration: none;
}

.border-btn:hover a, .border-btn a:hover {
    color: inherit !important;
    transition: all 0s ease;
}

/* Custom Footer Styles */
.custom-footer-wrapper {
    background: linear-gradient(180deg, #8b3d2a 0%, #a64d2e 50%, #c45a3b 100%); /* Gradient from dark to minor light */
    color: #ffffff;
    overflow: hidden;
}

.custom-footer-wrapper * {
    box-sizing: border-box;
}

.site-footer .grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Footer Horizontal Line Separator */
.footer-horizontal-line {
    width: 95%;
    height: 1px;
    background-color: #fff;
    margin: 0 auto;
}

/* Links Section */
.footer-links-section {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 0.8fr 1.5fr;
    gap: 40px;
}

.footer-heading {
    font-family: "Delight", sans-serif;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 25px 0;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.footer-list a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-list a:hover {
    opacity: 0.8;
}

/* Newsletter Column */
.newsletter-col {
    display: flex;
    flex-direction: column;
}

.newsletter-text {
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.newsletter-form .input-group {
    display: flex;
    border: 1px solid #ffffff;
    height: 45px;
}

.newsletter-form .floating-input {
    position: relative;
    flex-grow: 1;
}

.newsletter-form input[type="email"] {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0 15px;
    width: 100%;
    outline: none;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    height: 100%;
}

.newsletter-form .floating-input label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    pointer-events: none;
    transition: all 0.2s ease;
    opacity: 1;
}

.newsletter-form .floating-input input:focus + label {
    top: 12px;
    font-size: 6px;
    opacity: 0.8;
}

.newsletter-form button {
    font-family: "Delight", sans-serif;
    background: #ffffff;
    color: #a64d2e;
    border: none;
    padding: 0 25px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.newsletter-form button:hover {
    background-color: #f0f0f0;
}

.footer-discover-link {
    margin-top: auto;
    justify-content: flex-end;
    display: flex;
}

/* Big Text Section */
.footer-big-text-section {
    text-align: left;
    line-height: 0.75;
    padding-top: 40px;
    padding-bottom: 0;
    user-select: none;
    pointer-events: none;
}

.big-text-line {
    font-family: "Delight", sans-serif;
    font-size: 22vw;
    font-weight: 900;
    color: #ffffff;
    text-transform: lowercase;
    letter-spacing: -0.06em;
    margin: 0;
}

/* Footer Big Logo */
.footer-big-logo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: -5px;
    pointer-events: auto;
}

/* Copyright Section */
.footer-copyright-section {
    background-color: #ffffff;
    position: relative;
    color: #c35226;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
}

.footer-copyright-section .grid-container {
    padding: 0 80px;
}

.copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links a {
    color: #c35226;
    text-decoration: none;
    margin: 0 5px;
}

/* Responsive Adjustments */
@media (width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-col {
        grid-column: span 1;
        order: -1;
    }
    .big-text-line {
        font-size: 25vw;
    }
    .copyright-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ========================================
   HEADER & NAVIGATION STYLES
   ======================================== */

/* CSS Custom Properties for consistent spacing */
:root {
    --ac-topbar-height: 40px;
    --ac-admin-bar-height: 0px;
}

.admin-bar {
    --ac-admin-bar-height: 32px;
}

@media (max-width: 782px) {
    .admin-bar {
        --ac-admin-bar-height: 46px;
    }
}

/* Top Bar Styles */
.ac-top-bar {
    background-color: #c35226;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    height: var(--ac-topbar-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: var(--ac-admin-bar-height);
    left: 0;
    right: 0;
    z-index: 10000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hide top bar on scroll */
.ac-top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.ac-top-bar-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ac-top-bar-left,
.ac-top-bar-center,
.ac-top-bar-right {
    display: flex;
    align-items: center;
}

.ac-top-bar-center {
    flex: 1;
    justify-content: center;
    margin: 0 20px;
}

.ac-top-email,
.ac-top-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.ac-top-email i,
.ac-top-hours i {
    flex-shrink: 0;
    font-size: 14px;
}

.ac-language-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.ac-lang-arrow {
    font-size: 10px;
}

.ac-lang-code {
    font-weight: 600;
}

.ac-flag {
    font-size: 1.6em;
}

/* Main Header Styles */
.ac-header {
    background-color: transparent;
    padding: 0;
    padding-top: 10px;
    position: fixed;
    top: calc(var(--ac-admin-bar-height) + var(--ac-topbar-height));
    left: 0;
    right: 0;
    z-index: 9999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, top 0.3s ease, padding-top 0.3s ease;
}

/* When top bar is hidden, header moves up */
.ac-top-bar.hidden ~ .ac-header {
    top: var(--ac-admin-bar-height);
}

/* Scrolled state - white background full width */
.ac-header.scrolled {
    background-color: #fff;
    top: var(--ac-admin-bar-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0;
}

/* When mega menu is open, header loses bottom radius and shadow */
.ac-header.mega-menu-open .ac-header-container {
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 40px;
    margin: 0 auto;
    background-color: #fff;
}

/* Keep header hover effects when mega menu is open */
.ac-header.mega-menu-open .ac-header-logo .site-title,
.ac-header.mega-menu-open .ac-primary-menu > li > a,
.ac-header.mega-menu-open .ac-action-btn,
.ac-header.mega-menu-open .ac-language-selector {
    color: #c45a3b;
}

.ac-header.mega-menu-open .ac-menu-bar {
    background-color: #c45a3b;
}

.ac-header.mega-menu-open .ac-header-search-input {
    color: #c45a3b;
    border-bottom-color: #c45a3b !important;
}

.ac-header.mega-menu-open .ac-header-search-input::placeholder {
    color: rgba(196, 90, 59, 0.7);
}

/* Keep logo as black version when mega menu is open */
.ac-header.mega-menu-open .ac-logo-black {
    display: block !important;
}

.ac-header.mega-menu-open .ac-logo-white {
    display: none !important;
}

/* ========================================
   HEADER HOVER EFFECTS - DESKTOP ONLY (>768px)
   ======================================== */
@media (min-width: 768px) {
    /* Hover state - transparent background with white rounded rectangle container */
    .ac-header.mega-menu-open .ac-header-container, .ac-header:hover, .ac-header.mega-menu-open {
        background-color: transparent;
        box-shadow: none;
    }

    .ac-header:hover .ac-header-container {
        background-color: #fff;
        border-radius: 20px;
        padding: 20px 40px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* On header hover, make all text and icons orange */
    .ac-header:hover .ac-header-logo .site-title {
        color: #c45a3b;
    }

    .ac-header:hover .ac-primary-menu > li > a {
        color: #c45a3b;
        border-bottom-color: transparent;
    }

    .ac-header:hover .ac-action-btn {
        color: #c45a3b;
    }

    .ac-header:hover .ac-menu-bar {
        background-color: #c45a3b;
    }

    .ac-header:hover .ac-language-selector {
        color: #c45a3b;
    }

    .ac-header:hover .ac-header-search-input {
        color: #c45a3b;
        border-bottom-color: #c45a3b !important;
    }

    .ac-header:hover .ac-header-search-input::placeholder {
        color: rgba(196, 90, 59, 0.7);
    }

    /* Individual hover states - make text/icons bold while keeping orange color */
    .ac-header:hover .ac-header-logo .site-title:hover {
        font-weight: 900;
    }

    .ac-header:hover .ac-primary-menu > li > a:hover {
        border-bottom-color: #c45a3b;
    }

    .ac-header:hover .ac-action-btn:hover {
        font-weight: 900;
    }

    .ac-header:hover .ac-action-btn:hover i {
        font-weight: 900;
        stroke-width: 2.5;
    }

    .ac-header:hover .ac-language-selector:hover {
        font-weight: 900;
    }
}

/* Dark background state - white text and icons */
.ac-header.dark-bg {
    color: #ffffff;
}

.ac-header.dark-bg .ac-header-logo .site-title {
    color: #ffffff;
}

.ac-header.dark-bg .ac-primary-menu > li > a {
    color: #ffffff;
}

.ac-header.dark-bg .ac-primary-menu > li > a:hover {
    color: #ffffff;
    opacity: 0.8;
}

.ac-header.dark-bg .ac-action-btn {
    color: #ffffff;
}

.ac-header.dark-bg .ac-action-btn:hover {
    color: #ffffff;
}

.ac-header.dark-bg .ac-menu-bar {
    background-color: #ffffff;
}

.ac-header.dark-bg .ac-language-selector {
    color: #ffffff;
}

.ac-header.dark-bg .ac-header-search-input {
    color: #ffffff;
    border-bottom-color: #ffffff !important;
}

.ac-header.dark-bg .ac-header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Remove dark-bg class when scrolled or hovered */
.ac-header.scrolled.dark-bg {
    color: inherit;
}

.ac-header.scrolled.dark-bg .ac-header-logo .site-title {
    color: #000000;
}

.ac-header.scrolled.dark-bg .ac-primary-menu > li > a {
    color: #000000;
}

.ac-header.scrolled.dark-bg .ac-action-btn {
    color: #000000;
}

.ac-header.scrolled.dark-bg .ac-menu-bar {
    background-color: #000000;
}

.ac-header.scrolled.dark-bg .ac-language-selector {
    color: #000000;
}

.ac-header.scrolled.dark-bg .ac-header-search-input {
    color: #666666;
    border-bottom-color: #000000 !important;
}

.ac-header.scrolled.dark-bg .ac-header-search-input::placeholder {
    color: #999999;
}

/* Desktop only: Remove dark-bg class when hovered */
@media (min-width: 768px) {
    .ac-header:hover.dark-bg {
        color: inherit;
    }

    .ac-header:hover.dark-bg .ac-header-logo .site-title {
        color: #000000;
    }

    .ac-header:hover.dark-bg .ac-primary-menu > li > a {
        color: #000000;
    }

    .ac-header:hover.dark-bg .ac-action-btn {
        color: #000000;
    }

    .ac-header:hover.dark-bg .ac-menu-bar {
        background-color: #000000;
    }

    .ac-header:hover.dark-bg .ac-language-selector {
        color: #000000;
    }

    .ac-header:hover.dark-bg .ac-header-search-input {
        color: #666666;
        border-bottom-color: #000000 !important;
    }

    .ac-header:hover.dark-bg .ac-header-search-input::placeholder {
        color: #999999;
    }
}

/* Body padding - only top-bar height since header is transparent and overlays content */
body {
    padding-top: calc(var(--ac-topbar-height));
}

.ac-header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    gap: 40px;
    transition: padding 0.3s ease;
}

.ac-header.scrolled .ac-header-container {
    padding: 15px 30px;
}

.ac-header-logo {
    flex-shrink: 0;
}

.ac-header-logo a {
    display: inline-block;
    text-decoration: none;
    position: relative;
}
.ac-header-logo img {
    height: 40px;
    max-height: 50px;
    width: auto;
    display: block;
}

/* Logo switching for dark backgrounds */
.ac-header.dark-bg .ac-logo-black {
    display: none !important;
}

.ac-header.dark-bg .ac-logo-white {
    display: block !important;
}

.ac-header.scrolled .ac-logo-black {
    display: block !important;
}

.ac-header.scrolled .ac-logo-white {
    display: none !important;
}

/* Desktop only: Logo switching on hover */
@media (min-width: 768px) {
    .ac-header:hover .ac-logo-black {
        display: block !important;
    }

    .ac-header:hover .ac-logo-white {
        display: none !important;
    }
}

.ac-header-logo .site-title {
    font-family: "Delight", sans-serif;
    color: #000000;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: lowercase;
}

.ac-header-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.ac-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px;
    align-items: center;
}

.ac-primary-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.ac-primary-menu > li > a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    display: block;
    transition: border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.ac-primary-menu > li > a:hover {
    border-bottom-color: #c45a3b;
}

.ac-primary-menu li.current-menu-item > a,
.ac-primary-menu li.current_page_item > a {
    border-bottom-color: #c45a3b;
}

/* Dropdown Menu Styles */
.ac-primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    z-index: 1000;
}

.ac-primary-menu li:hover > .sub-menu {
    display: block;
}

.ac-primary-menu .sub-menu li {
    margin: 0;
    padding: 0;
}

.ac-primary-menu .sub-menu a {
    color: #000000;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.ac-primary-menu .sub-menu a:hover {
    background-color: #ffffff;
    color: #a64d2e;
}

/* Header Actions */
.ac-header-actions {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.ac-action-btn {
    background: none !important;
    border: none;
    color: #000000;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: none;
    position: relative;
}

.ac-action-btn:hover {
    color: #000000;
    scale: 1.1;
}

.ac-action-btn i {
    font-size: 20px;
    display: inline-block;
    line-height: 1;
    transition: transform 0.2s ease;
}

.ac-action-btn i:before {
    display: inline-block;
}

.ac-action-btn:hover i {
    transform: scale(1.15);
    color: initial;
}

.ac-action-btn:focus i {
    transform: scale(1.15);
    color: initial;
}

/* ========================================
   USER DROPDOWN STYLES (Minimal)
   ======================================== */

.ac-user-dropdown-wrapper {
    position: relative;
    display: inline-flex;
}

.ac-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #ffffff;
    min-width: 220px;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

/* Show dropdown on hover */
.ac-user-dropdown-wrapper:hover .ac-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ac-user-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-user-dropdown-list li {
    margin: 0;
    padding: 0;
}

.ac-user-dropdown-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #000000;
    text-decoration: none;
    font-family: 'Lato', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ac-user-dropdown-list a:hover {
    color: #c45a3b;
    background-color: transparent;
}

/* Dropdown Icons */
.ac-dropdown-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    opacity: 0.8;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ac-user-dropdown-list a:hover .ac-dropdown-icon {
    opacity: 1;
    stroke: #c45a3b;
}

/* Divider */
.ac-dropdown-divider {
    height: 1px;
    background-color: #e8e8e8;
    margin: 10px 20px;
}

/* Logout item styling */
.ac-dropdown-logout {
    color: #666;
}

.ac-dropdown-logout:hover {
    color: #c45a3b;
}

/* Header hover state - ensure dropdown matches */
.ac-header:hover .ac-user-dropdown-list a {
    color: #000000;
}

.ac-header:hover .ac-user-dropdown-list a:hover {
    color: #c45a3b;
}

/* Dark background state */
.ac-header.dark-bg .ac-user-dropdown-wrapper:hover .ac-action-btn {
    color: #c45a3b;
}

/* Responsive - hide on mobile */
@media (max-width: 768px) {
    .ac-user-dropdown {
        display: none !important;
    }
}

.ac-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #a64d2e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-cart-count.ac-cart-count-hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

/* Mobile Menu Toggle Button */
.ac-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}

.ac-menu-bar {
    width: 24px;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.ac-mobile-menu-toggle.active .ac-menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.ac-mobile-menu-toggle.active .ac-menu-bar:nth-child(2) {
    opacity: 0;
}

.ac-mobile-menu-toggle.active .ac-menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Language Selector */
.ac-mobile-lang {
    display: none;
}

/* Mobile Menu Overlay */
.ac-mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ac-mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu */
.ac-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 400px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.ac-mobile-menu.active {
    right: 0;
}

.ac-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.admin-bar .ac-mobile-menu-header {
    margin-top: 50px;
}

.ac-mobile-menu-logo a {
    text-decoration: none;
}

.ac-mobile-menu-logo a img {
    height: 50px;
}

.ac-mobile-menu-logo .site-title {
    font-family: "Delight", sans-serif;
    color: #000000;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: lowercase;
}

.ac-mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 24px;
    color: #000000;
}

.ac-mobile-menu-content {
    padding: 20px;
}

.ac-mobile-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-mobile-primary-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.ac-mobile-primary-menu > li > a {
    display: block;
    padding: 15px 0;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.ac-mobile-primary-menu > li > a:hover,
.ac-mobile-primary-menu li.current-menu-item > a {
    color: #a64d2e;
}

.ac-mobile-primary-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 10px 20px;
    display: none;
}

.ac-mobile-primary-menu li.menu-item-has-children > a::after {
    content: "\f107";
    font-family: "FontAwesome";
    float: right;
    transition: transform 0.3s ease;
}

.ac-mobile-primary-menu li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

.ac-mobile-primary-menu .sub-menu li {
    border-bottom: none;
}

.ac-mobile-primary-menu .sub-menu a {
    display: block;
    padding: 10px 0;
    color: #666666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.ac-mobile-primary-menu .sub-menu a:hover {
    color: #a64d2e;
}

/* Mobile Search Bar */
.ac-mobile-search-bar {
    display: none;
    padding: 20px;
}

.ac-search-container {
    position: relative;
}

.ac-search-form {
    display: flex;
    align-items: center;
    border: 2px solid #000000;
    border-radius: 50px;
    overflow: hidden;
}

.ac-search-input {
    flex: 1;
    border: none !important;
    padding: 12px 20px !important;
    font-size: 16px;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border-color: transparent;
}

.ac-search-input::-webkit-search-decoration,
.ac-search-input::-webkit-search-cancel-button,
.ac-search-input::-webkit-search-results-button,
.ac-search-input::-webkit-search-results-decoration {
    display: none;
}

.ac-search-input:focus {
    background-color: transparent !important;
    border-color: transparent !important;
}

.ac-search-submit {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    color: #000000;
}

.ac-search-submit i {
    font-size: 18px;
}

/* Prevent body scroll when mobile menu is open */
body.ac-mobile-menu-open {
    overflow: hidden;
}

/* ========================================
   RESPONSIVE DESIGN - HEADER & NAVIGATION
   ======================================== */

@media (max-width: 1024px) {
    .ac-header.scrolled .ac-header-logo img {
        height: 30px;
    }

    .ac-header-container {
        gap: 15px;
    }

    .ac-primary-menu {
        gap: 15px;
    }

    .ac-primary-menu > li > a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .ac-header {
        padding-top: 0;
    }

    .ac-top-bar {
        font-size: 11px;
    }

    .ac-top-bar-left {
        width: 100%;
        justify-content: center;
    }

    .ac-top-bar-center,
    .ac-top-bar-right {
        display: none;
    }

    .ac-top-email,
    .ac-top-hours {
        font-size: 11px;
    }

    .ac-header-container {
        padding: 15px 20px;
        gap: 0;
    }

    .ac-header-logo {
        flex: 1;
    }

    .ac-header-logo .site-title {
        font-size: 18px;
    }

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

    .ac-header-actions {
        gap: 0;
    }

    .ac-action-btn {
        padding: 5px;
    }

    .ac-header.scrolled .ac-action-btn svg {
        width: 20px;
        height: 20px;
    }

    .ac-action-btn i {
        font-size: 18px;
    }

    .ac-mobile-menu-toggle {
        display: flex;
    }

    .ac-header.scrolled .ac-mobile-menu-toggle .ac-menu-bar {
        width: 20px;
    }

    .ac-mobile-lang {
        display: flex;
    }

    /* Mobile: Header and search bar overlay on background */
    body {
        padding-top: var(--ac-topbar-height);
    }

    .ac-mobile-search-bar {
        display: block;
        position: absolute;
        top: calc(var(--ac-admin-bar-height) + var(--ac-topbar-height) + 70px);
        left: 0;
        right: 0;
        z-index: 9998;
        background: transparent;
        padding: 10px 20px;
    }

    body.scrolled .ac-mobile-search-bar {
        top: 68px;
    }
    
    /* When top bar is hidden on scroll, header goes to top: 0 on mobile (admin bar not sticky on mobile) */
    .ac-top-bar.hidden ~ .ac-header {
        top: 0;
    }

    .ac-header.scrolled .ac-header-logo img {
        height: 32px;
    }

    .ac-search-wrapper {
        display: none !important;
    }

    .ac-top-bar-right .ac-language-selector {
        display: none;
    }
    
    /* Search form styling for transparent overlay */
    .ac-mobile-search-bar .ac-search-form {
        background: #fff;
    }
}

/* Header scrolled state for tablet (600px - 768px) */
@media (min-width: 600px) and (max-width: 768px) {
    .ac-header.scrolled {
        margin-top: 46px;
    }
}

body.header-spacing {
    margin-top: 96px;
}

@media (max-width: 768px) {
    body.header-spacing {
        margin-top: 128px;
    }
}

/* ========================================
   EXPANDABLE SEARCH STYLES
   ======================================== */

.ac-search-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* The search form - hidden by default */
.ac-header-search-form {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 0;
    opacity: 0;
    transition:
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

/* When search is active */
.ac-search-wrapper.active .ac-header-search-form {
    width: 280px;
    opacity: 1;
}

/* Style the toggle button when search is active - it becomes the submit button */
.ac-search-wrapper .ac-search-toggle {
    flex-shrink: 0;
    order: 2;
    border-bottom: 1px solid transparent !important;
    transition:
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s ease;
}

/* When active, the toggle button gets the underline to match input */
.ac-search-wrapper.active .ac-search-toggle {
    scale: 1.1;
}

/* Search input field */
.ac-header-search-form .ac-header-search-input {
    flex: 1;
    border: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #000000 !important;
    padding: 10px 0 !important;
    font-size: 14px;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #666666;
    min-width: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.ac-header-search-form .ac-header-search-input:focus {
    border: none !important;
    border-bottom: 1px solid #000000 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.ac-header-search-form .ac-header-search-input::placeholder {
    color: #999999;
}

.ac-header-search-form .ac-header-search-input::-webkit-search-decoration,
.ac-header-search-form .ac-header-search-input::-webkit-search-cancel-button,
.ac-header-search-form .ac-header-search-input::-webkit-search-results-button,
.ac-header-search-form
    .ac-header-search-input::-webkit-search-results-decoration {
    display: none;
}

/* Responsive adjustments for search */
@media (min-width: 769px) and (max-width: 1024px) {
    .ac-search-wrapper.active .ac-header-search-form {
        width: 200px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .ac-search-wrapper.active .ac-header-search-form {
        width: 240px;
    }
}

/* ========================================
   CATALOGO MEGA MENU STYLES
   ======================================== */

/* Mega Menu Wrapper - Full Width Dropdown */
.ac-mega-menu-wrapper {
    position: fixed;
    top: calc(var(--ac-admin-bar-height) + var(--ac-topbar-height) + 85px);
    left: 20px;
    right: 20px;
    width: auto;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 20px 20px;
}

/* When top bar is hidden */
.ac-top-bar.hidden ~ .ac-header ~ .ac-mega-menu-wrapper,
.ac-top-bar.hidden ~ .ac-mega-menu-wrapper {
    top: calc(var(--ac-admin-bar-height) + 75px);
}

/* When header is scrolled */
.ac-header.scrolled ~ .ac-mega-menu-wrapper {
    top: calc(var(--ac-admin-bar-height) + 65px);
}

/* Active state */
.ac-mega-menu-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Container */
.ac-mega-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px 50px;
}

/* Mega Menu Content - Grid Layout matching design */
.ac-mega-menu-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

/* Individual Column */
.ac-mega-menu-column {
    display: flex;
    flex-direction: column;
}

/* Wide column for SORGENTI */
.ac-mega-menu-column-wide {
    /* Already handled by grid */
}

/* Gift Card column */
.ac-mega-menu-column-gift {
    /* Styling for gift card column */
}

/* Column Title */
.ac-mega-menu-title {
    font-family: "Delight", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #c45a3b;
    text-transform: uppercase;
    margin: 0 0 18px 0;
    letter-spacing: 0.02em;
}

/* Menu List */
.ac-mega-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-mega-menu-list li {
    margin-bottom: 8px;
}

.ac-mega-menu-list a {
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1.35;
    display: inline-block;
    transition: color 0.2s ease;
}

.ac-mega-menu-list a:hover {
    color: #c45a3b;
}

/* Sub-columns for SORGENTI */
.ac-mega-menu-subcols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Explore Link */
.ac-mega-menu-explore {
    font-family: "Delight", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #c45a3b;
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 18px;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.ac-mega-menu-explore:hover {
    opacity: 0.7;
    color: #c45a3b;
}

/* Gift Card Link with Icon */
.ac-gift-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
}

.ac-gift-card-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.ac-gift-card-link:hover {
    color: #c45a3b;
}

/* Promotional Banners Section */
.ac-mega-menu-promos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.ac-mega-menu-promo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.ac-promo-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #d0d0d0;
    margin-bottom: 12px;
}

.ac-promo-label {
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Active state for Catalogo link */
.ac-primary-menu > li > a.mega-menu-active {
    border-bottom-color: #c45a3b;
}

/* Responsive Mega Menu */
@media (max-width: 1200px) {
    .ac-mega-menu-content {
        grid-template-columns: 1fr 1fr 1.5fr 1fr;
        gap: 30px;
    }
    
    .ac-mega-menu-column-gift {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    .ac-mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .ac-mega-menu-column-wide {
        grid-column: span 1;
    }
    
    .ac-mega-menu-subcols {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .ac-mega-menu-promos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hide mega menu on mobile - use mobile menu instead */
    .ac-mega-menu-wrapper {
        display: none !important;
    }
}

/* ========================================
   MOBILE MENU REDESIGN - PANEL-BASED NAVIGATION
   ======================================== */

@media (max-width: 768px) {
    /* Mobile menu - positioned below existing header */
    .ac-mobile-menu {
        position: fixed;
        /* Position below top bar (40px) + header (70px) + search bar (60px) = 170px */
        top: calc(var(--ac-topbar-height) + 70px + 60px);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        background-color: #ffffff;
        z-index: 9997;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        transform: translateX(100%);
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .admin-bar .ac-mobile-menu {
        top: calc(var(--ac-admin-bar-height) + var(--ac-topbar-height) + 70px + 60px);
    }

    body.scrolled .ac-mobile-menu {
        top: 128px;
    }

    .ac-mobile-menu.active {
        transform: translateX(0);
    }

    /* Hide the mobile menu's own header - we use the main header instead */
    .ac-mobile-menu-header {
        display: none !important;
    }

    /* Hide the mobile menu's own search - we use the main search bar instead */
    .ac-mobile-menu-search {
        display: none !important;
    }

    /* Ensure the main header stays visible and on top when menu is open */
    body.ac-mobile-menu-open .ac-top-bar,
    body.ac-mobile-menu-open .ac-header,
    body.ac-mobile-menu-open .ac-mobile-search-bar {
        z-index: 10000;
        position: fixed;
    }

    /* Keep header white background when menu is open */
    body.ac-mobile-menu-open .ac-header {
        background-color: #ffffff;
    }

    body.ac-mobile-menu-open .ac-header .ac-header-container {
        background-color: #ffffff;
        border-radius: 0;
        box-shadow: none;
    }

    /* Ensure header elements stay on top and visible */
    body.ac-mobile-menu-open .ac-top-bar:not(.hidden) {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    /* ========================================
       PANEL-BASED NAVIGATION SYSTEM
       ======================================== */

    /* Panels container - takes full height of mobile menu */
    .ac-mobile-menu-panels-container {
        position: relative;
        flex: 1;
        overflow-y: auto;
    }

    /* Keep the mobile search bar visible when menu is open */
    body.ac-mobile-menu-open .ac-mobile-search-bar {
        display: block !important;
        z-index: 9999;
    }

    /* All panels - base styles */
    .ac-mobile-menu-panel {
        position: absolute;
        top: 20px;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    /* Active panel */
    .ac-mobile-menu-panel.active {
        transform: translateX(0);
    }

    /* Mobile menu content inside panels */
    .ac-mobile-menu-panel .ac-mobile-menu-content {
        padding: 0;
        flex: 1;
        min-height: 0; /* Critical for flex child scrolling */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Sub-submenu panels need proper scrolling for long lists */
    .ac-mobile-menu-panel-sub-sub .ac-mobile-menu-content {
        flex: 1;
        min-height: 0; /* Critical for flex child scrolling */
        overflow-y: scroll !important; /* Force scroll instead of auto */
        -webkit-overflow-scrolling: touch;
        padding-bottom: 225px; /* Extra padding to ensure comfortable scrolling to bottom */
        display: block; /* Override any flex display - use block for proper scroll calculation */
        overscroll-behavior: contain; /* Prevent scroll chaining to parent */
        touch-action: pan-y; /* Explicitly allow vertical touch scrolling */
        position: relative; /* Establish positioning context */
    }

    /* Ensure the final list doesn't constrain height */
    .ac-mobile-menu-panel-sub-sub .ac-mobile-final-list {
        flex: none;
    }

    /* Primary menu styling */
    .ac-mobile-primary-menu,
    .ac-mobile-submenu-list,
    .ac-mobile-final-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .ac-mobile-primary-menu > li,
    .ac-mobile-submenu-list > li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e0e0e0;
    }

    .ac-mobile-primary-menu > li > a,
    .ac-mobile-submenu-list > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        color: #000000;
        text-decoration: none;
        font-family: "Delight", sans-serif;
        font-size: 22px;
        font-weight: 700;
        text-transform: uppercase;
        transition: color 0.3s ease;
    }

    .ac-mobile-primary-menu > li > a:hover,
    .ac-mobile-submenu-list > li > a:hover {
        color: #c45a3b;
    }

    /* Arrow icon for items with children */
    .ac-mobile-primary-menu li.menu-item-has-children > a::after,
    .ac-mobile-submenu-list li.menu-item-has-children > a::after {
        content: "";
        display: inline-block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #000000;
        border-top: 2px solid #000000;
        transform: rotate(45deg);
        transition: transform 0.3s ease, border-color 0.3s ease;
        flex-shrink: 0;
        margin-left: 15px;
    }

    .ac-mobile-primary-menu li.menu-item-has-children > a:hover::after,
    .ac-mobile-submenu-list li.menu-item-has-children > a:hover::after {
        border-color: #c45a3b;
    }

    /* ========================================
       SUBMENU HEADER WITH BACK BUTTON (Level 2)
       ======================================== */

    .ac-mobile-submenu-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 15px 20px;
        background: #ffffff;
        flex-shrink: 0;
    }

    .ac-mobile-back-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background: none;
        border: none;
        padding: 8px 0;
        cursor: pointer;
        font-family: 'Lato', sans-serif;
        font-size: 12px;
        font-weight: 600;
        color: #666666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ac-mobile-back-btn:hover {
        color: #c45a3b;
    }

    /* Hide submenu header on Level 3 panels - they use title with close button */
    .ac-mobile-menu-panel-sub-sub .ac-mobile-submenu-header {
        display: none;
    }

    .ac-back-arrow {
        font-size: 14px;
        font-weight: 400;
        margin-right: 4px;
    }

    .ac-back-text {
        font-size: 12px;
    }

    .ac-mobile-panel-close {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        font-size: 24px;
        color: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ========================================
       SUBMENU TITLE (Level 3 panels)
       ======================================== */

    .ac-mobile-submenu-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        font-family: "Delight", sans-serif;
        font-size: 22px;
        font-weight: 700;
        color: #c45a3b;
        text-transform: uppercase;
        border-bottom: none;
    }

    .ac-mobile-submenu-title .ac-mobile-title-close {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        font-size: 24px;
        color: #000000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ========================================
       FINAL LIST (Level 3 items)
       ======================================== */

    .ac-mobile-final-list li {
        border-bottom: none;
    }

    .ac-mobile-final-list a {
        display: block;
        padding: 15px 20px;
        color: #000000;
        text-decoration: none;
        font-family: 'Lato', sans-serif;
        font-size: 14px;
        font-weight: 400;
        text-transform: uppercase;
        line-height: 1.4;
        transition: color 0.3s ease;
    }

    .ac-mobile-final-list a:hover {
        color: #c45a3b;
    }

    /* ========================================
       EXPLORE LINK
       ======================================== */

    .ac-mobile-explore-link {
        display: block;
        padding: 20px;
        color: #c45a3b;
        text-decoration: none;
        font-family: "Delight", sans-serif;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        /* Removed margin-top: auto - it breaks scrollHeight calculation */
        border-top: 1px solid #e0e0e0;
        flex-shrink: 0; /* Prevent shrinking */
    }

    .ac-mobile-explore-link:hover {
        color: #a04830;
    }

    /* ========================================
       PROMOTIONAL BANNERS
       ======================================== */

    .ac-mobile-menu-promos {
        padding: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: auto;
    }

    .ac-mobile-menu-promo {
        display: flex;
        flex-direction: column;
    }

    .ac-mobile-promo-image {
        width: 100%;
        aspect-ratio: 16 / 10;
        background-color: #d0d0d0;
        margin-bottom: 8px;
    }

    .ac-mobile-promo-label {
        font-family: 'Lato', sans-serif;
        font-size: 12px;
        font-weight: 600;
        color: #333;
        text-transform: uppercase;
    }

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

    .ac-mobile-menu-overlay {
        display: block;
        position: fixed;
        /* Start below the header area: top bar (40px) + header (70px) + search (60px) */
        top: calc(var(--ac-topbar-height) + 70px + 60px);
        left: 0;
        width: 100%;
        height: calc(100% - var(--ac-topbar-height) - 70px - 60px);
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9996;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .admin-bar .ac-mobile-menu-overlay {
        top: calc(var(--ac-admin-bar-height) + var(--ac-topbar-height) + 70px + 60px);
        height: calc(100% - var(--ac-admin-bar-height) - var(--ac-topbar-height) - 70px - 60px);
    }

    .ac-mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Prevent body scroll when mobile menu is open */
    body.ac-mobile-menu-open {
        overflow: hidden;
    }

    /* Mobile search bar styling when menu is open */
    body.ac-mobile-menu-open .ac-mobile-search-bar {
        background-color: #ffffff;
    }

    body.ac-mobile-menu-open .ac-mobile-search-bar .ac-search-form {
        background-color: #ffffff;
        border-color: #000000;
    }
}

/* ========================================
   CART SIDEBAR STYLES
   ======================================== */

/* Cart Overlay */
.ac-cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ac-cart-overlay.active {
    display: block;
    opacity: 1;
}

/* Cart Sidebar */
.ac-cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.ac-cart-sidebar.active {
    right: 0;
}

/* Cart Sidebar Header */
.ac-cart-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
    flex-shrink: 0;
}

.ac-cart-sidebar-title {
    font-family: "Delight", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.2;
}

.ac-cart-sidebar-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.ac-cart-sidebar-close:hover {
    color: #c45a3b;
}

.ac-cart-sidebar-close i {
    width: 24px;
    height: 24px;
}

/* Cart Sidebar Content */
.ac-cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Empty Cart State */
.ac-cart-sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    flex: 1;
}

.ac-cart-empty-icon {
    width: 80px;
    height: 80px;
    color: #cccccc;
    margin-bottom: 25px;
}

.ac-cart-empty-title {
    font-family: "Delight", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 10px 0;
}

.ac-cart-empty-text {
    font-size: 15px;
    color: #666666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.ac-cart-empty-btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: #c45a3b;
    color: #ffffff;
    text-decoration: none;
    font-family: "Delight", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #c45a3b;
    transition: all 0.3s ease;
}

.ac-cart-empty-btn:hover {
    background-color: #ffffff;
    color: #c45a3b;
}

/* Cart Items Container */
.ac-cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

/* Individual Cart Item */
.ac-cart-sidebar-item {
    display: flex;
    gap: 20px;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.3s ease;
}

.ac-cart-sidebar-item.updating {
    opacity: 0.5;
    pointer-events: none;
}

.ac-cart-sidebar-item-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ac-cart-sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ac-cart-sidebar-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ac-cart-sidebar-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ac-cart-sidebar-item-name {
    font-family: "Delight", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.ac-cart-sidebar-item-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ac-cart-sidebar-item-name a:hover {
    color: #c45a3b;
}

.ac-cart-sidebar-item-condition,
.ac-cart-sidebar-item-color {
    font-size: 13px;
    color: #666666;
    margin: 0 0 4px 0;
}

.ac-cart-sidebar-item-price {
    font-family: "Delight", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin: 8px 0 12px 0;
}

.ac-cart-sidebar-item-price .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

/* Cart Sidebar Price Classes - Updated to avoid conflict with cart page */
.ac-cart-price-current {
    font-family: "Delight", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.ac-cart-price-current .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

.ac-cart-price-original {
    font-size: 14px;
    color: #999999;
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

/* Cart Item Actions */
.ac-cart-sidebar-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 15px;
}

/* Quantity Controls */
.ac-cart-sidebar-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #000000;
    background: #ffffff;
    height: 38px;
}

.ac-cart-sidebar-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 300;
    color: #000000;
    transition: background-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.ac-cart-sidebar-qty-btn:hover {
    background-color: #f0f0f0;
}

.ac-cart-sidebar-qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
    padding: 0;
    margin: 0;
}

.ac-cart-sidebar-qty-input::-webkit-outer-spin-button,
.ac-cart-sidebar-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove Button */
.ac-cart-sidebar-remove {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.ac-cart-sidebar-remove:hover {
    color: #c45a3b;
}

.ac-cart-sidebar-remove i {
    width: 20px;
    height: 20px;
}

/* Cart Sidebar Footer */
.ac-cart-sidebar-footer {
    padding: 25px 30px;
    border-top: 1px solid #e0e0e0;
    background-color: #FBEAE2;
    flex-shrink: 0;
}

.ac-cart-sidebar-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ac-cart-sidebar-subtotal-label {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}

.ac-cart-sidebar-subtotal-value {
    font-family: "Delight", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
}

.ac-cart-sidebar-subtotal-value .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

/* Checkout Button */
.ac-cart-sidebar-checkout-btn {
    display: block;
    width: 100%;
    padding: 18px 30px;
    background-color: #c45a3b;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-family: "Delight", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #c45a3b;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.ac-cart-sidebar-checkout-btn:hover {
    background-color: #ffffff;
    color: #c45a3b;
}

/* View Cart Button */
.ac-cart-sidebar-view-cart {
    display: block;
    width: 100%;
    padding: 14px 30px;
    background-color: transparent;
    color: #000000;
    text-align: center;
    text-decoration: none;
    font-family: "Delight", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid #000000;
    transition: all 0.3s ease;
}

.ac-cart-sidebar-view-cart:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Body state when cart is open */
body.ac-cart-open {
    overflow: hidden;
}

/* Responsive Cart Sidebar */
@media (max-width: 480px) {
    .ac-cart-sidebar {
        max-width: 100%;
        right: -100%;
    }
    
    .ac-cart-sidebar-header {
        padding: 20px 20px;
    }
    
    .ac-cart-sidebar-title {
        font-size: 24px;
    }
    
    .ac-cart-sidebar-item {
        padding: 15px 20px;
        gap: 15px;
    }
    
    .ac-cart-sidebar-item-image {
        width: 80px;
        height: 80px;
    }
    
    .ac-cart-sidebar-item-name {
        font-size: 15px;
    }
    
    .ac-cart-sidebar-footer {
        padding: 20px;
    }
    
    .ac-cart-sidebar-subtotal-value {
        font-size: 20px;
    }
}

/* Cart Button Hover State */
.ac-cart-btn {
    cursor: pointer;
}

/* Admin bar adjustment */
.admin-bar .ac-cart-sidebar {
    top: 32px;
    height: calc(100% - 32px);
}

@media (max-width: 782px) {
    .admin-bar .ac-cart-sidebar {
        top: 46px;
        height: calc(100% - 46px);
    }
}

/* ========================================
   WOOCOMMERCE NOTICES STYLES
   ======================================== */

/* Notices Wrapper Container */
.woocommerce-notices-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    position: relative;
    z-index: 9990;
}

/* Individual Notice Messages */
.woocommerce-notices-wrapper .wc-block-components-notice-banner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-notice {
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
}

/* Success Notice - Green with theme accent */
.woocommerce-notices-wrapper .wc-block-components-notice-banner.is-success,
.woocommerce-notices-wrapper .woocommerce-message {
    background-color: #f0f9f4;
    color: #1e5a3c;
    border-left: 4px solid #4a9b6b;
}

/* Error Notice - Red */
.woocommerce-notices-wrapper .wc-block-components-notice-banner.is-error,
.woocommerce-notices-wrapper .woocommerce-error {
    background-color: #fdf2f2;
    color: #9b1c1c;
    border-left: 4px solid #c45a3b;
}

/* Info Notice - Blue */
.woocommerce-notices-wrapper .wc-block-components-notice-banner.is-info,
.woocommerce-notices-wrapper .woocommerce-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Warning Notice - Orange/Yellow */
.woocommerce-notices-wrapper .wc-block-components-notice-banner.is-warning,
.woocommerce-notices-wrapper .woocommerce-notice--warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

/* Notice Icons */
.woocommerce-notices-wrapper .wc-block-components-notice-banner__icon {
    font-size: 24px;
    flex-shrink: 0;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
    font-size: 24px;
    margin-right: 15px;
    display: inline;
    vertical-align: middle;
}

.woocommerce-notices-wrapper .woocommerce-message::before {
    content: "✓";
    color: #4a9b6b;
    font-weight: 700;
}

.woocommerce-notices-wrapper .woocommerce-error::before {
    content: "✕";
    color: #c45a3b;
    font-weight: 700;
}

.woocommerce-notices-wrapper .woocommerce-info::before {
    content: "ℹ";
    color: #3b82f6;
    font-weight: 700;
}

/* Ensure notice content displays inline with icon */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
    display: block !important;
    position: relative;
}

.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-info .button,
.woocommerce-notices-wrapper .woocommerce-error .button {
    float: right;
    margin-left: 15px;
}

/* Force inline display for ::before icons */
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
    display: inline-block !important;
    vertical-align: middle;
    margin-right: 10px;
    line-height: 1;
    position: relative;
    top: 0;
    left: 0;
}

.woocommerce-notices-wrapper .woocommerce-error li,
.woocommerce-notices-wrapper .woocommerce-message li,
.woocommerce-notices-wrapper .woocommerce-info li {
    display: inline-block !important;
    vertical-align: middle;
    line-height: 1;
}

/* Notice Content */
.woocommerce-notices-wrapper .wc-block-components-notice-banner__content,
.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message a,
.woocommerce-notices-wrapper .woocommerce-error li,
.woocommerce-notices-wrapper .woocommerce-info a {
    flex: 1;
}

/* Links within notices */
.woocommerce-notices-wrapper .woocommerce-message a,
.woocommerce-notices-wrapper .woocommerce-error a,
.woocommerce-notices-wrapper .woocommerce-info a,
.woocommerce-notices-wrapper .wc-block-components-notice-banner a {
    color: #c45a3b;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.woocommerce-notices-wrapper .woocommerce-message a:hover,
.woocommerce-notices-wrapper .woocommerce-error a:hover,
.woocommerce-notices-wrapper .woocommerce-info a:hover,
.woocommerce-notices-wrapper .wc-block-components-notice-banner a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Action Buttons in Notices */
.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .wc-block-components-notice-banner .button {
    background-color: #c45a3b;
    color: #ffffff;
    border: 2px solid #c45a3b;
    padding: 12px 24px;
    font-family: "Delight", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.woocommerce-notices-wrapper .woocommerce-message .button:hover,
.woocommerce-notices-wrapper .wc-block-components-notice-banner .button:hover {
    background-color: #ffffff;
    color: #c45a3b;
}

/* Close/Dismiss Button */
.woocommerce-notices-wrapper .wc-block-components-notice-banner__dismiss,
.woocommerce-notices-wrapper .woocommerce-message .close,
.woocommerce-notices-wrapper .woocommerce-error .close,
.woocommerce-notices-wrapper .woocommerce-info .close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: currentColor;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    margin-left: 10px;
}

.woocommerce-notices-wrapper .wc-block-components-notice-banner__dismiss:hover,
.woocommerce-notices-wrapper .woocommerce-message .close:hover,
.woocommerce-notices-wrapper .woocommerce-error .close:hover,
.woocommerce-notices-wrapper .woocommerce-info .close:hover {
    opacity: 1;
}

/* Error List Styling */
.woocommerce-notices-wrapper .woocommerce-error {
    list-style: none;
    padding: 20px 25px;
    margin: 0 0 20px 0;
}

.woocommerce-notices-wrapper .woocommerce-error li {
    margin-bottom: 8px;
}

.woocommerce-notices-wrapper .woocommerce-error li:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .woocommerce-notices-wrapper {
        padding: 15px 20px;
    }

    .woocommerce-notices-wrapper .wc-block-components-notice-banner,
    .woocommerce-notices-wrapper .woocommerce-message,
    .woocommerce-notices-wrapper .woocommerce-error,
    .woocommerce-notices-wrapper .woocommerce-info,
    .woocommerce-notices-wrapper .woocommerce-notice {
        padding: 15px 20px;
        font-size: 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .woocommerce-notices-wrapper .woocommerce-message .button,
    .woocommerce-notices-wrapper .wc-block-components-notice-banner .button {
        width: 100%;
        margin-top: 10px;
        margin-left: 0;
        text-align: center;
    }

    .woocommerce-notices-wrapper .wc-block-components-notice-banner__icon,
    .woocommerce-notices-wrapper .woocommerce-message::before,
    .woocommerce-notices-wrapper .woocommerce-error::before,
    .woocommerce-notices-wrapper .woocommerce-info::before {
        font-size: 20px;
    }
}

/* Position adjustments for fixed header */
.woocommerce-notices-wrapper {
    margin-top: 20px;
}

/* When notices appear inside cart/checkout sidebars */
.ac-cart-sidebar .woocommerce-notices-wrapper,
.woocommerce-cart .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-notices-wrapper {
    padding: 15px 20px;
    max-width: 100%;
}

/* ================================================================
   GIBSON-STYLE HEADER — TEST 2026-03-27
   Per fare rollback: rimuovi tutto tra questi due commenti
   ================================================================ */

/* 1. Header sempre bianco, full-width, nessun effetto float/trasparente */
.ac-header {
    background-color: #ffffff !important;
    padding-top: 0 !important;
    border-bottom: none;
    box-shadow: none !important;
}

/* 2. Container full-width, senza border-radius né max-width */
.ac-header-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    height: 72px !important;
    align-items: center !important;
}

.ac-header.scrolled .ac-header-container {
    padding: 0 40px !important;
    height: 64px !important;
}

/* 3. Annulla l'effetto "pillola" al hover su desktop */
@media (min-width: 768px) {
    .ac-header:hover,
    .ac-header:hover.dark-bg,
    .ac-header.mega-menu-open {
        background-color: #ffffff !important;
        box-shadow: none !important;
    }

    .ac-header:hover .ac-header-container,
    .ac-header.mega-menu-open .ac-header-container {
        background-color: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 40px !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* Testo sempre nero su hover (no arancione) */
    .ac-header:hover .ac-header-logo .site-title,
    .ac-header:hover .ac-primary-menu > li > a,
    .ac-header:hover .ac-action-btn,
    .ac-header:hover .ac-language-selector,
    .ac-header:hover.dark-bg .ac-header-logo .site-title,
    .ac-header:hover.dark-bg .ac-primary-menu > li > a,
    .ac-header:hover.dark-bg .ac-action-btn,
    .ac-header:hover.dark-bg .ac-language-selector {
        color: #000000 !important;
    }

    .ac-header:hover .ac-menu-bar,
    .ac-header:hover.dark-bg .ac-menu-bar {
        background-color: #000000 !important;
    }

    .ac-header:hover .ac-header-search-input,
    .ac-header:hover.dark-bg .ac-header-search-input {
        color: #000000 !important;
        border-bottom-color: #000000 !important;
    }

    /* Logo sempre versione nera */
    .ac-header:hover .ac-logo-black {
        display: block !important;
    }
    .ac-header:hover .ac-logo-white {
        display: none !important;
    }
}

/* 4. Header con dark-bg: forza sempre stile bianco (header non è più trasparente) */
.ac-header.dark-bg {
    background-color: #ffffff !important;
    color: #000000 !important;
}
.ac-header.dark-bg .ac-header-logo .site-title,
.ac-header.dark-bg .ac-primary-menu > li > a,
.ac-header.dark-bg .ac-action-btn,
.ac-header.dark-bg .ac-language-selector {
    color: #000000 !important;
}
.ac-header.dark-bg .ac-menu-bar {
    background-color: #000000 !important;
}
.ac-header.dark-bg .ac-logo-black {
    display: block !important;
}
.ac-header.dark-bg .ac-logo-white {
    display: none !important;
}

/* 5. Mega menu open: nessun border-radius in alto, colori restano neri */
.ac-header.mega-menu-open .ac-header-container {
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 40px !important;
    max-width: none !important;
}

.ac-header.mega-menu-open .ac-header-logo .site-title,
.ac-header.mega-menu-open .ac-primary-menu > li > a,
.ac-header.mega-menu-open .ac-action-btn,
.ac-header.mega-menu-open .ac-language-selector {
    color: #000000 !important;
}
.ac-header.mega-menu-open .ac-menu-bar {
    background-color: #000000 !important;
}
.ac-header.mega-menu-open .ac-logo-black {
    display: block !important;
}
.ac-header.mega-menu-open .ac-logo-white {
    display: none !important;
}
/* Linea arancione sotto voce attiva nel mega menu */
.ac-header.mega-menu-open .ac-primary-menu > li > a.mega-menu-active {
    border-bottom-color: #c45a3b !important;
}

/* 6. Mega menu dropdown: edge-to-edge, nessun border-radius */
.ac-mega-menu-wrapper {
    left: 0 !important;
    right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

/* 7. Body padding: header ora occupa spazio fisso (non più trasparente) */
body {
    padding-top: calc(var(--ac-topbar-height) + 72px) !important;
}

/* ================================================================
   END GIBSON-STYLE HEADER TEST
   ================================================================ */

/* ================================================================
   GIBSON-STYLE HEADER — FIX 2 (gap + proporzioni)
   ================================================================ */

/* Gap fix: ricalibra posizione mega menu con la nuova altezza header (72px) */
.ac-mega-menu-wrapper {
    top: calc(var(--ac-admin-bar-height) + var(--ac-topbar-height) + 72px);
}

/* Top bar nascosta */
.ac-top-bar.hidden ~ .ac-header ~ .ac-mega-menu-wrapper,
.ac-top-bar.hidden ~ .ac-mega-menu-wrapper {
    top: calc(var(--ac-admin-bar-height) + 72px);
}

/* Header scrolled (top bar sparisce, header diventa 64px) */
.ac-header.scrolled ~ .ac-mega-menu-wrapper {
    top: calc(var(--ac-admin-bar-height) + 64px);
}

/* Container interno: centrato con padding generoso come Gibson */
.ac-mega-menu-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 40px 80px 50px !important;
    box-sizing: border-box !important;
}

/* Colonne: gap e proporzioni ottimizzate */
.ac-mega-menu-content {
    gap: 48px !important;
}

/* Titoli colonna: un po' più spaziati */
.ac-mega-menu-title {
    margin-bottom: 20px !important;
    letter-spacing: 0.04em !important;
}

/* Voci lista: leggermente più spaziata verticalmente */
.ac-mega-menu-list li {
    margin-bottom: 10px !important;
}

/* Sezione promo banner: più padding laterale */
.ac-mega-menu-promos {
    padding-top: 28px !important;
    gap: 24px !important;
}

/* Responsive: 1440px+ — padding ancora più generoso */
@media (min-width: 1440px) {
    .ac-mega-menu-container {
        padding: 40px 120px 50px !important;
    }
}

/* Responsive: 1200–1440px — padding standard */
@media (max-width: 1440px) and (min-width: 1201px) {
    .ac-mega-menu-container {
        padding: 40px 80px 50px !important;
    }
    .ac-mega-menu-content {
        gap: 40px !important;
    }
}

/* Responsive: 1024–1200px */
@media (max-width: 1200px) and (min-width: 1025px) {
    .ac-mega-menu-container {
        padding: 36px 60px 44px !important;
    }
    .ac-mega-menu-content {
        gap: 30px !important;
    }
}

/* Responsive: 768–1024px (tablet landscape) */
@media (max-width: 1024px) and (min-width: 769px) {
    .ac-mega-menu-container {
        padding: 30px 40px 40px !important;
    }
    .ac-mega-menu-content {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
    .ac-mega-menu-promos {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ================================================================
   END FIX 2
   ================================================================ */

/* ================================================================
   SCROLL-TRANSPARENT HEADER — TEST 2026-03-27
   ================================================================ */

/* Stato trasparente: sfondo bianco sparisce, testo rimane leggibile */
.ac-header.scroll-transparent {
    background-color: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Nessuna transizione al ritorno bianco */
.ac-header:not(.scroll-transparent) {
    transition: none !important;
}

/* Quando trasparente, il testo nero è ancora leggibile su sfondi chiari;
   se il sito ha sfondi scuri dietro l'header, aggiungere qui il colore bianco */
.ac-header.scroll-transparent .ac-header-container {
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* ================================================================
   END SCROLL-TRANSPARENT HEADER TEST
   ================================================================ */

/* ================================================================
   MEGA MENU REDESIGN — TEST 2026-03-27
   - No uppercase, tutto normal case
   - Tutto nero, arancione solo su hover
   - Titoli categoria = stesse dimensioni delle voci nav (16px 700)
   - Immagini promo nascoste temporaneamente
   - Altezza ridotta
   ================================================================ */

/* Titoli colonna: stesse dim. di "Catalogo / Chi siamo" — nero, no caps */
.ac-mega-menu-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 0 14px 0 !important;
}
.ac-mega-menu-title:hover {
    color: #c45a3b !important;
}

/* Voci lista: nero, no caps, leggero */
.ac-mega-menu-list a {
    color: #000000 !important;
    text-transform: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    transition: color 0.15s ease !important;
}
.ac-mega-menu-list a:hover {
    color: #c45a3b !important;
}

/* Link "Esplora": nero, no caps, arancione su hover */
.ac-mega-menu-explore {
    color: #000000 !important;
    text-transform: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    transition: color 0.15s ease !important;
    opacity: 1 !important;
}
.ac-mega-menu-explore:hover {
    color: #c45a3b !important;
    opacity: 1 !important;
}

/* Gift card link: nero, no caps */
.ac-gift-card-link {
    color: #000000 !important;
    text-transform: none !important;
    font-size: 14px !important;
}
.ac-gift-card-link:hover {
    color: #c45a3b !important;
}

/* Nascondi immagini promo (temporaneo) */
.ac-mega-menu-promos {
    display: none !important;
}

/* Riduci padding container per altezza più compatta */
.ac-mega-menu-container {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

/* Riduci gap verticale tra le voci lista */
.ac-mega-menu-list li {
    margin-bottom: 7px !important;
}

/* Riduci padding-bottom delle colonne contenuto */
.ac-mega-menu-content {
    padding-bottom: 0 !important;
}

/* ================================================================
   END MEGA MENU REDESIGN TEST
   ================================================================ */

/* ================================================================
   MEGA MENU SENTENCE CASE + DIMENSIONI — TEST 2026-03-27
   ================================================================ */

/* Titoli categoria: sentence case (prima lettera maiuscola, resto minuscolo) */
.ac-mega-menu-title {
    text-transform: lowercase !important;
}
.ac-mega-menu-title::first-letter {
    text-transform: uppercase !important;
}

/* Voci sottocategoria: sentence case, più piccole del titolo (13px vs 16px) */
.ac-mega-menu-list a {
    text-transform: lowercase !important;
    font-size: 13px !important;
}
.ac-mega-menu-list a::first-letter {
    text-transform: uppercase !important;
}

/* Link Esplora: sentence case */
.ac-mega-menu-explore {
    text-transform: lowercase !important;
    font-size: 13px !important;
}
.ac-mega-menu-explore::first-letter {
    text-transform: uppercase !important;
}

/* ================================================================
   END SENTENCE CASE TEST
   ================================================================ */

/* ================================================================
   PROPORZIONI DESIGNER + FIX ESPLORA — TEST 2026-03-27
   ================================================================ */

/* Titoli: tornano UPPERCASE come nel mockup del designer */
.ac-mega-menu-title {
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}
.ac-mega-menu-title::first-letter {
    text-transform: uppercase !important;
}

/* Grid proporzioni: Amplificatori 1.4 | Diffusori 1 | Sorgenti 1.8 | Accessori 1.3 | Servizi 0.75 */
.ac-mega-menu-content {
    grid-template-columns: 1.4fr 1fr 1.8fr 1.3fr 0.75fr !important;
    gap: 44px !important;
}

/* Wrapper seconda colonna Sorgenti: flex colonna per allineare Esplora in fondo */
.ac-mega-menu-subcol-right {
    display: flex;
    flex-direction: column;
}
.ac-mega-menu-subcol-right .ac-mega-menu-explore {
    margin-top: 12px;
    display: inline-block;
}

/* Subcols: gap coerente con design */
.ac-mega-menu-subcols {
    gap: 28px !important;
}

/* Responsive: tablet landscape 768-1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    .ac-mega-menu-content {
        grid-template-columns: 1.4fr 1fr 1.8fr 1.3fr !important;
    }
}

/* ================================================================
   END PROPORZIONI FIX
   ================================================================ */

/* ================================================================
   LAUSANNE FONT — TEST 2026-03-27
   ================================================================ */

@font-face {
    font-family: 'Lausanne';
    src: url('../fonts/lausanne/Lausanne-Regular.woff2') format('woff2'),
         url('../fonts/lausanne/Lausanne-Regular.woff') format('woff'),
         url('../fonts/lausanne/Lausanne-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Applica Lausanne a tutte le voci del mega menu (sottocategorie + Esplora) */
.ac-mega-menu-list a,
.ac-mega-menu-explore,
.ac-gift-card-link {
    font-family: 'Lausanne', sans-serif !important;
}

/* ================================================================
   END LAUSANNE FONT
   ================================================================ */

/* ================================================================
   FIX 3: Esplora dimensione, colonne equidistanti, nessuna animazione
   ================================================================ */

/* 1. Esplora: stessa dimensione (13px) e font delle voci lista */
.ac-mega-menu-explore {
    font-size: 13px !important;
    font-family: 'Lausanne', sans-serif !important;
    margin-top: 10px !important;
}
.ac-mega-menu-subcol-right .ac-mega-menu-explore {
    margin-top: 10px !important;
}

/* 2. Colonne equidistanti */
.ac-mega-menu-content {
    grid-template-columns: repeat(5, 1fr) !important;
}
@media (max-width: 1200px) and (min-width: 1025px) {
    .ac-mega-menu-content {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}
@media (max-width: 1024px) and (min-width: 769px) {
    .ac-mega-menu-content {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 3. Rimuovi animazione apertura/chiusura mega menu */
.ac-mega-menu-wrapper {
    transition: none !important;
    transform: none !important;
}
.ac-mega-menu-wrapper.active {
    transform: none !important;
}

/* ================================================================
   END FIX 3
   ================================================================ */

/* ================================================================
   FIX BODY PADDING — header trasparente, overlay sul contenuto
   ================================================================ */

/* Header è ora trasparente e sovrapposto al contenuto come originale */
body {
    padding-top: var(--ac-topbar-height) !important;
}

/* ================================================================
   END FIX BODY PADDING
   ================================================================ */

/* ================================================================
   COLORI HEADER TRASPARENTE VS BIANCO — TEST 2026-03-27
   ================================================================ */

/* Header trasparente → testo e icone BIANCHI */
.ac-header.scroll-transparent .ac-header-logo .site-title,
.ac-header.scroll-transparent .ac-primary-menu > li > a,
.ac-header.scroll-transparent .ac-action-btn,
.ac-header.scroll-transparent .ac-language-selector {
    color: #ffffff !important;
}
.ac-header.scroll-transparent .ac-menu-bar {
    background-color: #ffffff !important;
}
.ac-header.scroll-transparent .ac-logo-black {
    display: none !important;
}
.ac-header.scroll-transparent .ac-logo-white {
    display: block !important;
}
/* Icone SVG/Lucide */
.ac-header.scroll-transparent .ac-action-btn i,
.ac-header.scroll-transparent .ac-action-btn svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}
/* Sottolineatura voce attiva: rimane visibile in bianco */
.ac-header.scroll-transparent .ac-primary-menu > li > a:hover,
.ac-header.scroll-transparent .ac-primary-menu li.current-menu-item > a,
.ac-header.scroll-transparent .ac-primary-menu li.current_page_item > a {
    border-bottom-color: #ffffff !important;
}

/* Header bianco (hover / mega menu aperto) → testo e icone NERI */
.ac-header:not(.scroll-transparent) .ac-header-logo .site-title,
.ac-header:not(.scroll-transparent) .ac-primary-menu > li > a,
.ac-header:not(.scroll-transparent) .ac-action-btn,
.ac-header:not(.scroll-transparent) .ac-language-selector {
    color: #000000 !important;
}
.ac-header:not(.scroll-transparent) .ac-menu-bar {
    background-color: #000000 !important;
}
.ac-header:not(.scroll-transparent) .ac-logo-black {
    display: block !important;
}
.ac-header:not(.scroll-transparent) .ac-logo-white {
    display: none !important;
}
.ac-header:not(.scroll-transparent) .ac-action-btn i,
.ac-header:not(.scroll-transparent) .ac-action-btn svg {
    color: #000000 !important;
    stroke: #000000 !important;
}
.ac-header:not(.scroll-transparent) .ac-primary-menu > li > a:hover {
    border-bottom-color: #c45a3b !important;
}

/* ================================================================
   END COLORI HEADER
   ================================================================ */

/* ================================================================
   GIBSON-STYLE PRODUCT CARDS — SPACING & MARGINS
   ================================================================ */

/* 1. Homepage nuovi arrivi + nostra selezione: margine laterale + gap ridotto */
.ac-nuovi-arrivi-grid,
.ac-nostra-selezione-grid {
    gap: 12px !important;
    padding: 0 40px !important;
}

/* 2. Archivio e shop: gap ridotto + padding laterale */
.ac-product-archive .products {
    gap: 6px !important;
}
.ac-product-archive .products .product {
    margin-bottom: 6px !important;
}
.ac-products-section .ac-product-archive-container,
.ac-products-section-paginated .ac-product-archive-container {
    padding: 0 40px !important;
}

/* 3. Info prodotto: avvicina nome, categoria e prezzo */
.ac-product-info {
    padding-top: 10px !important;
}
.ac-product-info-layout {
    padding-top: 4px !important;
}
@media (min-width: 769px) {
    .ac-product-info-layout {
        padding: 0 10px 6px 10px !important;
    }
}
.ac-info-row + .ac-info-row {
    margin-top: 2px !important;
}

/* ================================================================
   END GIBSON-STYLE PRODUCT CARDS — SPACING & MARGINS
   ================================================================ */

/* ================================================================
   HOMEPAGE SLIDERS — SCROLL ORIZZONTALE DESKTOP (12 prodotti)
   ================================================================ */

@media (min-width: 769px) {
    .ac-nuovi-arrivi-grid,
    .ac-nostra-selezione-grid {
        grid-template-columns: repeat(12, calc(25% - 9px)) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none !important;
        padding: 0 !important;
        margin: 0 40px !important;
    }
    .ac-nuovi-arrivi-grid::-webkit-scrollbar,
    .ac-nostra-selezione-grid::-webkit-scrollbar {
        display: none !important;
    }
    .ac-nuovi-arrivi-grid .ac-product-card,
    .ac-nostra-selezione-grid .ac-product-card {
        scroll-snap-align: start;
        min-width: 0;
    }
}

/* ================================================================
   END HOMEPAGE SLIDERS — SCROLL ORIZZONTALE DESKTOP
   ================================================================ */

/* ================================================================
   GIBSON-TEST: FRECCE PREV/NEXT AFFIANCATE
   ================================================================ */

/* Wrapper frecce affiancate */
.ac-nuovi-arrivi-arrows,
.ac-nostra-selezione-arrows {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Stile freccia prev (button) uguale alla freccia next (link) */
.ac-nuovi-arrivi-arrow-prev,
.ac-nostra-selezione-arrow-prev {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    color: inherit !important;
    line-height: 1 !important;
    visibility: hidden;
}

.ac-nuovi-arrivi-arrow-prev svg,
.ac-nostra-selezione-arrow-prev svg {
    display: block !important;
}

/* ================================================================
   END FRECCE PREV/NEXT
   ================================================================ */

/* ================================================================
   GIBSON-TEST: ALLINEAMENTO MARGINI SEZIONI (fix chirurgico)
   ================================================================ */

/* Nostra selezione: title-row ha padding-left:20px → porto a 40px */
.ac-nostra-selezione-title-row {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Blog slider: Elementor container aggiunge 10px extra → azzero */
.elementor-element-49ffacb {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Testimonials: grid-container ha margin-left:20px → azzero */
.footer-testimonials-section .grid-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* ================================================================
   END ALLINEAMENTO MARGINI SEZIONI
   ================================================================ */

/* ================================================================
   GIBSON-TEST: ALLINEAMENTO COMMUNITY + SEMPRE AL TUO FIANCO
   ================================================================ */

/* Vivi la nostra Community: inner container centrato → full-width con 40px */
.elementor-element-9cce741 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* Sempre al tuo fianco: inner container ha padding-left:80px → 40px */
.elementor-element-984454c {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* ================================================================
   END ALLINEAMENTO COMMUNITY + SEMPRE AL TUO FIANCO
   ================================================================ */
