/* Stili per l'header fisso e responsivo */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.header-left, .header-right, .header-center {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-left {
    justify-content: flex-end;
}

.header-center {
    justify-content: center;
    text-align: center;
}

.header-right {
    justify-content: flex-start;
}

.header-nav-button {
    padding: 5px 10px;
    background: var(--primary-color, #3498db);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
}

.header-nav-button img {
    margin-right: 5px;
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}

.header-nav-button:hover {
    background: var(--secondary-color, #2980b9);
    color: white;
}

.cart-icon {
    position: relative;
    margin-left: 15px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color, #333);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-icon:hover {
    color: var(--primary-color, #3498db);
}

.header-icon {
    text-align: center;
    position: relative;
}

.header-icon i {
    display: block;
    margin-bottom: 5px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-danger {
    background-color: #e74c3c;
}

.icon-label {
    font-size: 11px;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* Regolazioni responsive */
@media (max-width: 480px) {
    .site-header {
        padding: 10px;
    }
    
    .header-center img {
        height: 35px !important;
    }
    
    .header-nav-button {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}

/* Gli stili dell'header sono ora nel file menu-header.php */
        
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-overlay h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Stili per il pulsante back */
.back-to-top {
    position: fixed;
    bottom: 70px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 20px;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: white;
}

/* Menu sospeso in basso - design pulito */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.08);
    z-index: 999;
    height: 70px;
    padding: 0 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 12px 8px;
    flex: 1;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin: 0 2px;
}

.bottom-nav a:hover {
    color: #374151;
    background: rgba(0,0,0,0.03);
    transform: translateY(-1px);
}

.bottom-nav a.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.bottom-nav a.active .nav-indicator {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.nav-icon-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.bottom-nav i {
    font-size: 1.5rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav a:hover i {
    transform: scale(1.1);
}

.bottom-nav a.active i {
    transform: scale(1.05);
}

.bottom-nav a span {
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 360px) {
    .bottom-nav a {
        padding: 10px 5px;
    }
    
    .bottom-nav i {
        font-size: 1.4rem;
    }
    
    .bottom-nav a span {
        font-size: 0.7rem;
    }
}

ul.leaders {
    max-width: 100em;
    padding: 0;
    overflow-x: hidden;
    list-style: none;
}

ul.leaders li:after {
    float: left;
    width: 0;
    white-space: nowrap;
    content: "                                        " "                                        " "                                        " "                                        " "                                        " "                                        " "                                        " "                                        " "                                        " "                                        ";
}

ul.leaders span:first-child {
    padding-right: 0.33em;
}

ul.leaders span+span {
    float: right;
    padding-left: 0.33em;
    position: relative;
    z-index: 1;
}

/* Nuovi stili per migliorare l'aspetto dei prodotti */
.product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-content {
    padding: 15px;
    margin-bottom: 0;
}

.product-header {
    display: flex;
    margin-bottom: 0;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 0;
}

.product-price-container {
    flex-grow: 1;
    padding-right: 0.25rem;
}

.product-price-wrapper {
    flex-shrink: 1;
    padding-left: 0.25rem;
    text-align: right;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0;
    color: #000;
}

.product-price sup {
    font-size: 60%;
    top: -0.5em;
    position: relative;
    vertical-align: baseline;
}

.product-description {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
    margin-bottom: 0;
}

.product-divider {
    height: 1px;
    width: 100%;
    background-color: #E1E1E1;
    display: block;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.product-icon-container {
    display: flex;
    justify-content: flex-start;
}

.product-icon {
    width: 25px;
    height: 25px;
    margin-right: 1rem;
}

.product-allergens {
    margin-bottom: 0;
}

.product-allergens-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    cursor: pointer;
}

.product-allergens-link:hover {
    color: #333;
}

.product-allergens-icon {
    margin-right: 5px;
}

.product-add-button {
    border: none;
    display: block;
    width: 100%;
    padding: 0px 15px;
    font-size: 15px;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: 900;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    background-color: #8BC34A;
    color: white;
    margin-bottom: 1rem;
    text-align: left;
}

.product-add-button:hover {
    background-color: #7CB342;
}

.product-add-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-right: 10px;
    text-align: center;
    font-size: 15px;
}

/* Menu popup styles - design pulito */
.menu-box-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 420px;
    width: 100%;
    z-index: 1001;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.menu-box-bottom .content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.menu-box-bottom .content::-webkit-scrollbar {
    width: 4px;
}

.menu-box-bottom .content::-webkit-scrollbar-track {
    background: transparent;
}

.menu-box-bottom .content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 2px;
}

.menu-box-bottom .content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.2);
}

.menu-box-bottom.menu-active {
    transform: translateY(0%);
    visibility: visible;
}

.menu-box-detached {
    left: 10px;
    right: 10px;
    width: auto;
}

.rounded-m {
    border-radius: 20px;
}

.menu-title {
    padding: 24px 24px 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.menu-title h1 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 6px;
    color: #1f2937;
    letter-spacing: -0.3px;
}

.menu-title p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.menu-title .close-menu {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(0,0,0,0.02);
}

.menu-title .close-menu:hover {
    color: #374151;
    background: rgba(0,0,0,0.06);
    transform: scale(1.05);
}

.list-group {
    padding: 0;
    list-style-type: none;
}

.list-custom-small {
    padding: 16px 0;
}

.list-custom-small a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    border-radius: 0;
    margin: 0 16px 2px 16px;
    border-radius: 10px;
    font-weight: 500;
}

.list-custom-small a:hover {
    background: rgba(59, 130, 246, 0.04);
    color: #3b82f6;
    transform: translateX(2px);
}

.list-custom-small a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

.list-custom-small a:hover i {
    opacity: 1;
}

.list-icon-0 a i {
    width: 30px;
    text-align: center;
    margin-right: 15px;
}

.line-height-xl {
    line-height: 1.6;
}

.line-height-s {
    line-height: 1.3;
}

.mt-n1 {
    margin-top: -0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.font-12 {
    font-size: 12px;
}

.font-weight-normal {
    font-weight: normal;
}

.backdrop-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.backdrop-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.woocommerce-product-details__short-description {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    display: block;
}

.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px !important;
    margin: 0 16px 2px 16px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    color: #374151 !important;
    font-weight: 500 !important;
}

.cat-link:hover {
    background: rgba(59, 130, 246, 0.04) !important;
    color: #3b82f6 !important;
    transform: translateX(2px) !important;
}

.cat-link i.fa-angle-right {
    opacity: 0.5;
    transition: all 0.2s ease;
}

.cat-link:hover i.fa-angle-right {
    opacity: 1;
    transform: translateX(2px);
}

/* Backdrop unificato per tutti i menu */
.backdrop-categories,
.backdrop-contacts,
.backdrop-share {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop-categories.active,
.backdrop-contacts.active,
.backdrop-share.active {
    opacity: 1;
}

.list-custom-large a {
    line-height: 1.2;
    padding: 18px 0;
    border-bottom: 1px solid #f1f1f1;
    text-decoration: none;
    color: #333;
}

.list-custom-large a strong {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.list-custom-large a i:last-child {
    width: auto;
    margin-right: 0;
}

.font-18 {
    font-size: 18px !important;
}

.font-20 {
    font-size: 20px !important;
}

.color-facebook {
    color: #3b5998;
}

.color-whatsapp {
    color: #25d366;
}

.color-mail {
    color: #D44638;
}

.border-0 {
    border-bottom: 0 !important;
}
