/* 🌐 GLOBAL */
body {
    font-family: "Poppins", Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #222;
}

/* HEADER */
#header {
    position: relative;
    width: 100%;
    z-index: 100;
}

/* 🔵 BANNER SUPERIORE */
.banner {
    background: linear-gradient(90deg, #335CFF, #5A7BFF);
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 6px 0;
    letter-spacing: 0.3px;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-content > div,
.banner-content a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.banner a {
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

.banner a:hover {
    opacity: 0.8;
}

/* 💻 MENU DESKTOP */
.menu-desktop {
    background-color: #fff;
    width: 100%;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
}

.menu-desktop-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

/* Logo */
.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Voci Menu */
.voci-desktop {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    position: relative;
}

.voci-desktop a {
    text-decoration: none;
    color: #333;
    padding: 12px 10px;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 5px;
}

.voci-desktop a:hover {
    color: #335CFF;
    background-color: rgba(51, 102, 255, 0.1);
}
/* 🔽 DROPDOWN MENU */
.dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow: hidden;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
}

.submenu li {
    list-style: none;
}

.submenu a {
    color: #333;
    padding: 10px 18px;
    display: block;
    font-size: 13px;
    transition: background 0.3s ease, color 0.3s ease;
}

.submenu a:hover {
    background-color: #335CFF;
    color: white;
    border-radius: 0;
}

/* 👇 LA PARTE IMPORTANTE */
.dropdown:hover > a {
    color: #335CFF;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* 🛒 CARRELLO DESKTOP */
.carrello {
    background-color: #335CFF;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: background 0.3s ease;
}

.carrello:hover {
    background-color: #1D3AFF;
}

/* 📱 MENU MOBILE */
.menu-mobile {
    width: 100%;
    background-color: #fff;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-mobile-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 92%;
    margin: 0 auto;
    padding: 10px 0;
}

.menu-mobile-content img {
    width: 150px;
    height: auto;
}

#tasto-hamburger {
    font-size: 30px;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 6px 10px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

#tasto-hamburger:hover {
    background-color: #f5f5f5;
}

/* 🛒 CARRELLO MOBILE */
.carrellomobile {
    width: 90%;
    background-color: #335CFF;
    padding: 8px;
    color: white;
    border-radius: 8px;
    margin: 10px auto;
    text-align: center;
    font-weight: 600;
}

/* 🍔 MENU HAMBURGER */
.hamburger-menu {
    width: 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    overflow: hidden;
    transition: width 0.4s ease-in-out;
}

#ul-hamb {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s, opacity 0.4s ease;
}

.hamburger-menu.open {
    width: 100vw;
}

.hamburger-menu.open #ul-hamb {
    visibility: visible;
    opacity: 1;
}

#ul-hamb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

#ul-hamb li {
    list-style: none;
    width: 100%;
}

#ul-hamb li a {
    display: block;
    padding: 18px;
    font-size: 1.3rem;
    color: white;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

#ul-hamb li a:hover {
    background-color: #335CFF;
}

/* FOOTER FADE */
#footer {
    transition: opacity 0.3s ease;
}

/* 📏 RESPONSIVE */
@media (orientation: portrait) {
    .banner, .menu-desktop {
        display: none;
    }

    .menu-mobile {
        z-index: 100;
    }
}

@media (orientation: landscape) {
    .menu-mobile {
        display: none;
    }
}
