/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.header.scrolled {
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(172, 126, 81, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    font-family: 'Sora', sans-serif;
}

/* Logo centrale più grande */
.logo {
    grid-column: 2;
    text-align: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Menu sinistro (3 link) */
.nav-left {
    grid-column: 1;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

/* Menu destro (3 link) */
.nav-right {
    grid-column: 3;
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
}

/* Stili comuni per i link di navigazione */
.nav-left a,
.nav-right a {
    color: var(--color-avorio);
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    font-weight: 100;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--color-cuoio);
    background: rgba(172, 126, 81, 0.1);
}

.nav-left a::after,
.nav-right a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-cuoio);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-left a:hover::after,
.nav-right a:hover::after {
    width: 80%;
}

/* Pulsante prenota a destra */
.cta-button {

    padding: 0.75rem 1.5rem;
    background: #153731;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;

}

.cta-button:hover {
    background: #1e4a3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 55, 49, 0.3);
}

/* Menu mobile toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-avorio);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(172, 126, 81, 0.1);
    color: var(--color-cuoio);
}

/* Pulsante di chiusura separato rimosso - usa solo il toggle che cambia in X */

/* Menu mobile */
.mobile-menu {
    display: none;
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(67, 61, 55, 0.98);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-top: 1px solid rgba(172, 126, 81, 0.3);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Responsive per smartphone medi */
@media (max-width: 479px) {
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #153731;
        backdrop-filter: none;
        padding: 4rem 2rem 2rem 2rem;
        border-top: none;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu a {
        display: block;
        color: var(--color-avorio);
        text-decoration: none;
        padding: 1rem 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(172, 126, 81, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu a:hover {
        color: var(--color-cuoio);
        padding-left: 1rem;
    }
    
    .mobile-menu a:last-child {
        border-bottom: none;
        margin-top: 2rem;
        text-align: center;
        background: var(--color-cuoio);
        color: var(--color-avorio);
        border-radius: 8px;
        padding: 1rem;
        font-weight: 600;
    }
    
    .mobile-menu a:last-child:hover {
        background: var(--color-cuoioHover);
        padding-left: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 10000;
    }
}

/* Responsive per mobile molto piccoli */
@media (max-width: 360px) {
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #153731;
        backdrop-filter: none;
        padding: 4rem 2rem 2rem 2rem;
        border-top: none;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu a {
        display: block;
        color: #ffffff;
        text-decoration: none;
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 1.2rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: color 0.3s ease;
    }
    
    .mobile-menu a:hover {
        color: var(--color-cuoio);
        text-decoration: none;
    }
    
    .mobile-menu a:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 10000;
        background: transparent;
        border: none;
        color: #ffffff;
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        margin-right: 20px;
    }
    
    .mobile-menu-toggle:hover {
        color: var(--color-cuoio);
    }
    
    .mobile-menu-toggle.active {
        color: var(--color-cuoio);
    }
    
    .cta-button {
        background: #153731;
        color: #ffffff;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        border-radius: 8px;
        margin-top: 1rem;
        margin-left: 27%;
        display: block;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .cta-button:hover {
        background: #ffffff;
        color: #153731;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    }
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    display: block;
    color: var(--color-avorio);
    text-decoration: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(172, 126, 81, 0.2);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--color-cuoio);
}

/* Responsive */
@media (max-width: 1024px) {
    /* Navbar identica al desktop */
    .header-container {
        grid-template-columns: 1fr auto 1fr; /* Uguale al desktop */
        gap: 2rem; /* Uguale al desktop */
    }
    
    /* Mantieni le regole desktop per nav-left e nav-right */
    .nav-left,
    .nav-right {
        gap: 2rem; /* Uguale al desktop */
    }
    
    .nav-left a,
    .nav-right a {
        font-size: 1rem; /* Uguale al desktop */
        padding: 0.5rem 1rem; /* Uguale al desktop */
    }
}

@media (max-width: 768px) {
    .header-container {
        grid-template-columns: 1fr auto 1fr;
        padding: 0 1rem;
    }
    
    .nav-left,
    .nav-right {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        grid-column: 3;
        position: relative;
        z-index: 10000;
    }
    
    .logo-img {
        height: 50px;
    }
    

    
    /* Menu mobile per 768px */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #153731;
        backdrop-filter: none;
        padding: 4rem 2rem 2rem 2rem;
        border-top: none;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu a {
        display: block;
        color: var(--color-avorio);
        text-decoration: none;
        padding: 1rem 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(172, 126, 81, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu a:hover {
        color: var(--color-cuoio);
        padding-left: 1rem;
    }
    
    .mobile-menu a:last-child {
        border-bottom: none;
        margin-top: 2rem;
        text-align: center;
        background: var(--color-cuoio);
        color: var(--color-avorio);
        border-radius: 8px;
        padding: 1rem;
        font-weight: 600;
    }
    
    .mobile-menu a:last-child:hover {
        background: var(--color-cuoioHover);
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 0.5rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Menu mobile per 480px */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: #153731;
        backdrop-filter: none;
        padding: 4rem 2rem 2rem 2rem;
        border-top: none;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 9999;
    }
    
    .mobile-menu.active {
        transform: translateY(0);
    }
    
    .mobile-menu a {
        display: block;
        color: var(--color-avorio);
        text-decoration: none;
        padding: 1rem 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(172, 126, 81, 0.2);
        transition: all 0.3s ease;
    }
    
    .mobile-menu a:hover {
        color: var(--color-cuoio);
        padding-left: 1rem;
    }
    
    .mobile-menu a:last-child {
        border-bottom: none;
        margin-top: 2rem;
        text-align: center;
        background: var(--color-cuoio);
        color: var(--color-avorio);
        border-radius: 8px;
        padding: 1rem;
        font-weight: 600;
    }
    
    .mobile-menu a:last-child:hover {
        background: var(--color-cuoioHover);
        padding-left: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 10000;
    }
}

/* Animazione di entrata */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header {
    animation: slideInDown 0.6s ease-out;
} 