/* Business Header Styles */
* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
svg {
    max-width: 100%;
}

.business-header *,
.mobile-menu * {
    box-sizing: border-box;
}

.business-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: hidden;
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

/* Logo */
.logo {
    min-width: 0;
    flex: 0 1 auto;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.business-logo-image {
    display: block;
    width: auto;
    height: 54px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-highlight {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 0.3rem;
}

/* Navigation */
.business-nav {
    flex: 1;
    margin: 0 2rem;
    min-width: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    justify-content: center;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.96rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.2s ease;
}

.nav-link:hover {
    color: white;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    width: 100%;
}

/* Action Buttons */
.business-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
    flex-shrink: 0;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-login i {
    font-size: 0.9rem;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #0f172a;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.btn-register i {
    font-size: 0.9rem;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    flex: 0 0 auto;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    background: #1e293b;
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.mobile-nav-link.login {
    color: #3b82f6;
}

.mobile-nav-link.register {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #0f172a;
    text-align: center;
    margin-top: 0.5rem;
}

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Business Hero Section */
.business-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.business-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path d="M10 10 L90 10 L90 90 L10 90 Z" fill="none" stroke="white" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="none" stroke="white" stroke-width="2"/></svg>') repeat;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(100px) translateY(100px); }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-width: 0;
}

.hero-content > *,
.hero-text,
.hero-image {
    min-width: 0;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-gradient {
    background: linear-gradient(90deg, #60a5fa, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f59e0b;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #0f172a;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 992px) {
    .business-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.85rem 1rem;
        max-width: 100%;
        width: 100%;
        gap: 0.75rem;
    }
    
    .business-actions {
        display: none;
    }
    
    .logo-text {
        font-size: 1.25rem;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 6.5rem);
    }

    .business-logo-image {
        height: 42px;
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        flex-shrink: 0;
    }

    .mobile-menu {
        padding: 0.9rem 1rem;
        overflow-x: hidden;
    }

    .mobile-nav-link {
        white-space: normal;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-badge {
        width: min(92vw, 420px);
        white-space: normal;
        text-align: center;
        padding: 0.85rem 1rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .logo a {
        gap: 0.45rem;
    }

    .business-logo-image {
        height: 38px;
    }

    .logo-text {
        font-size: 1.08rem;
        max-width: calc(100vw - 5.8rem);
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

/*  ===================
    TASTO DASHBOARD NEL MENU SECONDO HEADER 
    ===================  */
/* Pulsante Dashboard */
.btn-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-dashboard i {
    font-size: 1.1rem;
}

/* Versione mobile */
.mobile-nav-menu .dashboard {
    color: #667eea;
    font-weight: 600;
}

.mobile-nav-menu .dashboard i {
    margin-right: 10px;
}
