/* ===== MENU E FOOTER - CSS SEMPRE CARICATO ===== */

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(97,56,69,0.06);
    transition: box-shadow 0.3s;
}
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(97,56,69,0.08);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo img {
    height: 36px;
    width: auto;
}
.header-actions {
    display: flex;
    gap: 18px;
    align-items: center;
}
.header-actions a, .header-actions button {
    color: rgb(97, 56, 69);
    font-size: 1.1rem;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}
.header-actions a:hover, .header-actions button:hover {
    color: #c78c99;
}
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
    cursor: pointer;
}
.hamburger span {
    height: 2px;
    background: rgb(97, 56, 69);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    padding: 70px 28px 40px;
    overflow-y: auto;
}
.mobile-nav.open {
    transform: translateX(0);
}
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(55,30,40,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: rgb(97, 56, 69);
    cursor: pointer;
}
.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-nav ul li a {
    display: block;
    padding: 14px 0;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #2c2c2c;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}
.mobile-nav ul li a:hover {
    color: #c78c99;
}

/* ===== BRANDS FULL-PAGE PANEL ===== */
.brands-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #ffffff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.brands-panel.open {
    transform: translateX(0);
}
.brands-panel-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #eee;
    z-index: 2;
}
.brands-panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: rgb(97, 56, 69);
    cursor: pointer;
}
.brands-panel-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: rgb(97, 56, 69);
    margin-bottom: 6px;
}
.brands-panel-header p {
    font-size: 0.78rem;
    color: #6b6b6b;
    letter-spacing: 0.3px;
}
.brands-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #eee;
    padding: 0;
}
.brands-panel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 12px;
    background: #ffffff;
    text-decoration: none;
    transition: background 0.2s;
}
.brands-panel-item:hover {
    background: #faf8f6;
}
.brands-panel-name {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #2c2c2c;
    text-align: center;
}
@media (min-width: 600px) {
    .brands-panel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .brands-panel-header {
        padding: 32px 40px 24px;
    }
}
@media (min-width: 900px) {
    .brands-panel-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .brands-panel-item {
        padding: 28px 16px;
    }
}

/* ===== SERVIZI PANEL LIST ===== */
.servizi-panel-list {
    padding: 16px 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.servizi-panel-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 16px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: background 0.2s;
}
.servizi-panel-item:hover {
    background: #faf8f6;
}
.servizi-panel-item i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #faf8f6;
    color: rgb(97, 56, 69);
    font-size: 1rem;
}
.servizi-panel-item div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.servizi-panel-item strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c2c2c;
    letter-spacing: 0.3px;
}
.servizi-panel-item span {
    font-size: 0.75rem;
    color: #6b6b6b;
}
@media (min-width: 600px) {
    .servizi-panel-list {
        padding: 24px 40px 40px;
    }
}

@media (min-width: 768px) {
    .header-inner { padding: 16px 40px; }
    .header-logo img { height: 44px; }
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.6);
    padding: 48px 24px 24px;
}
.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.footer-logo {
    margin-bottom: 16px;
}
.footer-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
.footer-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    max-width: 340px;
    margin: 0 auto 20px;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
}
.footer-social a {
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-social a:hover {
    color: #e8c4cc;
}
.footer-accordions {
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-accordion {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-accordion summary {
    padding: 16px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-accordion summary::-webkit-details-marker { display: none; }
.footer-accordion summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    transition: transform 0.3s;
}
.footer-accordion[open] summary::after {
    transform: rotate(180deg);
}
.footer-accordion-body {
    padding: 0 0 16px;
}
.footer-accordion-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-accordion-body a {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-accordion-body a:hover {
    color: #e8c4cc;
}
.footer-bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
}

@media (min-width: 768px) {
    .footer-inner { max-width: 1000px; }
    .footer-logo img { height: 60px; }
}

/* ===== STICKY BOTTOM BAR (mobile) ===== */
.sticky-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: rgb(97, 56, 69);
    display: flex;
}
.sticky-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s;
}
.sticky-bar a:first-child {
    border-right: 1px solid rgba(255,255,255,0.15);
}
.sticky-bar a:hover {
    background: rgb(55, 30, 40);
}
.sticky-bar i {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .sticky-bar { display: none; }
}

/* ===== CART BADGE ===== */
.cart-link {
    position: relative;
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #c78c99;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ===== LOGIN POPUP ===== */
.login-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}
.login-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(55, 30, 40, 0.8);
    backdrop-filter: blur(8px);
}
.login-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.login-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}
.login-popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
}
.login-popup-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.login-section, .register-section {
    padding: 48px 32px;
}
.login-section {
    border-bottom: 1px solid #e8e0d8;
}
.login-section h2, .register-section h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #613845;
    margin-bottom: 2rem;
}
.login-section form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.login-section input[type="email"],
.login-section input[type="password"] {
    padding: 14px 16px;
    border: 1px solid #e8e0d8;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}
.login-section input:focus {
    outline: none;
    border-color: #a0826d;
}
.forgot-password, .back-to-login {
    font-size: 0.85rem;
    color: #a0826d;
    text-decoration: none;
    margin-bottom: 8px;
    display: inline-block;
}
.forgot-password:hover, .back-to-login:hover {
    text-decoration: underline;
}
.benefits-list {
    list-style: none;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #333;
}
.benefits-list i {
    color: #a0826d;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .login-popup-inner {
        grid-template-columns: 1fr 1fr;
    }
    .login-section {
        border-right: 1px solid #e8e0d8;
        border-bottom: none;
    }
}
