/* =========================================
   HEADER-FOOTER.CSS
   Copiato esattamente dal tuo style.css
   per gestire header e footer
   ========================================= */

/* RESET & BASE */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "montserrat", sans-serif;
    font-size: 16px;
    color: #000;
    background-color: #f8f7f7;
}
*, *::before, *::after {
    box-sizing: inherit;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER */
header {
    background-color: #f8f7f7;
    border-bottom: 1px solid #ccc;
}
header .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Header fisso con .scrolled */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248,247,247,0.8);
    border-radius: 0;
    box-shadow: none;
    z-index: 999;
    padding: 0 20px;
}
.site-header.scrolled {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    border-radius: 9999px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* LOGO */
.logo img {
    height: 50px;
}

/* NAV PRINCIPALE */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.main-nav a {
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
}
.visit-store-cta .btn {
    background-color: #d61116;
    color: #f8f7f7;
}

/* Hamburger mobile */
.hamburger {
    display: none;
}

/* FOOTER */
footer {
    background-color: #ba1818;
    color: #f8f7f7;
    padding: 20px 0;
}
footer .footer-links {
    text-align: center;
    margin-bottom: 20px;
}
footer .footer-links ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    justify-content: center;
}
footer .footer-links a {
    color: #f8f7f7;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}
footer .social {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}
footer .social a img {
    width: 40px; 
    height: 40px; 
    object-fit: contain; 
}
footer .legal {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 20px;
}
footer .legal a {
    color: #f8f7f7;
    text-decoration: underline;
}

/* BOTTONI (se servono anche in header/footer) */
.btn,
.btn-primary {
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 9999px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}
.btn {
    background-color: #000;
    color: #f8f7f7;
}
.btn-primary {
    background-color: #d61116;
    color: #f8f7f7;
}
.btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.btn:hover {
    background-color: #333;
}
.btn-primary:hover {
    background-color: #ba1818;
}

/* RESPONSIVE NAV / GRID per header/footer */
@media (min-width: 769px) {
    .main-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: none;
        border-radius: 0;
        padding: 0;
        display: flex !important;
    }
    .main-nav ul {
        flex-direction: row;
        gap: 20px;
    }
    .main-nav li {
        display: inline-block;
    }
    .visit-store-cta {
        display: block;
    }
    .hamburger {
        display: none;
    }
}
@media (max-width: 768px) {
    .visit-store-cta {
        display: none;
    }
    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }
    .hamburger span {
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #000;
        left: 0;
        transition: all 0.3s ease;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 8px; }
    .hamburger span:nth-child(3) { top: 16px; }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(248,247,247,0.9);
        border-radius: 20px;
        padding: 20px;
        width: 80%;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .main-nav.active {
        display: block;
    }
}
