/* === MOBILE MENU - SOLUZIONE DEFINITIVA === */

/* Overlay */
.overlay-inline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9990;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay-inline.active {
    visibility: visible;
    opacity: 1;
}

/* Header */
.header-inline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    z-index: 9995;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 184, 148, 0.3);
}

.logo-inline img {
    height: 50px;
}

/* Hamburger */
.hamburger-inline {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10000;
    width: 50px;
    height: 50px;
    background: #00B894;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-inline span {
    width: 25px;
    height: 3px;
    background: white;
    display: block;
    transition: 0.3s;
}

.hamburger-inline.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-inline.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-inline.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation Desktop */
.nav-inline {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-inline a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-inline a:hover {
    background: rgba(0, 184, 148, 0.2);
    transform: translateY(-2px);
}

/* Bottone Accedi - Stile moderno con bordo */
.nav-inline .btn-login {
    background: transparent;
    border: 2px solid #00B894;
    color: #00B894;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-inline .btn-login svg {
    transition: transform 0.3s ease;
}

.nav-inline .btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 184, 148, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.nav-inline .btn-login:hover {
    background: rgba(0, 184, 148, 0.1);
    border-color: #55EFC4;
    color: #55EFC4;
    box-shadow: 0 6px 25px rgba(0, 184, 148, 0.4);
    transform: translateY(-3px);
}

.nav-inline .btn-login:hover svg {
    transform: translateX(3px);
}

.nav-inline .btn-login:hover::before {
    width: 300px;
    height: 300px;
}

/* Bottone Registrati - Stile moderno pieno */
.nav-inline .btn-register {
    background: linear-gradient(135deg, #00B894 0%, #00876B 100%);
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.4);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-inline .btn-register svg {
    transition: transform 0.3s ease;
}

.nav-inline .btn-register::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.nav-inline .btn-register:hover {
    background: linear-gradient(135deg, #55EFC4 0%, #00B894 100%);
    box-shadow: 0 8px 30px rgba(0, 184, 148, 0.6);
    transform: translateY(-3px);
}

.nav-inline .btn-register:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.nav-inline .btn-register:hover::before {
    width: 300px;
    height: 300px;
}

/* === MOBILE === */
@media (max-width: 768px) {
    .hamburger-inline {
        display: flex;
    }
    
    .logo-inline img {
        height: 40px;
    }
    
    .nav-inline {
        position: fixed;
        top: 0;
        left: 100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 14, 39, 0.98);
        border-left: 3px solid #00B894;
        padding: 80px 0 20px;
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        z-index: 9998;
        overflow-y: auto;
        transition: left 0.3s ease;
    }
    
    .nav-inline.active {
        left: calc(100% - 280px);
    }
    
    .nav-inline a {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        border-left: 3px solid transparent;
    }
    
    .nav-inline a:hover {
        border-left-color: #00B894;
        background: rgba(0, 184, 148, 0.15);
    }
    
    /* Bottoni mobile - Maggiore visibilità */
    .nav-inline .btn-login,
    .nav-inline .btn-register {
        margin: 10px 20px;
        padding: 14px 20px;
        text-align: center;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .nav-inline .btn-login {
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .nav-inline {
        width: 260px;
    }
    
    .nav-inline.active {
        left: calc(100% - 260px);
    }
}
