/* Stile base del menu top */
.top-menu {
    background-color: #f5f5f5;
    padding: 0.5rem 0;
    text-align: center;
    font-family: "Merriweather", sans-serif;
    border-bottom: 1px solid #ddd;
}

.top-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.top-menu__list li a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.top-menu__list li a:hover {
    color: #ff6f61;
}

/* Stile speciale per il link 5x1000 */
.top-menu__5x1000 {
    background: #2c5f8d;
    color: white !important;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
}

.top-menu__5x1000:hover {
    background: #1a3d5c !important;
    color: white !important;
}

/* Header principale */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid #ddd;
    position: relative;
}

/* Blocchi principali */
.header__logo,
.header__nav,
.header__contact {
    display: flex;
    align-items: center;
}

.header__logo {
    flex: 1;
}
.header__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
}
.header__logo a img {
    width: 120px;
}

/* Navigazione desktop */
.header__nav {
    flex: 2;
    justify-content: center;
    gap: 2rem;
}
.header__nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
.header__nav a:hover {
    color: #ff6f61;
}

/* Contatti */
.header__contact {
    flex: 1;
    justify-content: flex-end;
    display: flex;
    gap: 10px;
}

/* Bottone 5x1000 nell'header */
.btn-5x1000 {
    background: #ff6f61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-5x1000:hover {
    background: #e55a4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

/* Pulsante menu hamburger per mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .top-menu {
        display: none;
    }
    .header {
        flex-wrap: wrap;
        padding: 10px 15px;
    }

    .header__nav,
    .header__contact {
        display: none;
        width: 100%;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        gap: 10px;
    }

    .header__contact a {
        width: 100%;
    }

    .header__contact button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-5x1000,
    .btn-primary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .header__nav a,
    .header__contact a {
        color: #fff;
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .header__nav.active,
    .header__contact.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        color: #000;
        position: absolute;
        right: 20px;
    }

    .header__logo a img {
        width: 100px;
    }
}
