:root {
    --primary: #1B2A4E;
    --primary-dark: #0f1a2e;
    --primary-light: #2d4373;
    --accent: #4A90E2;
    --success: #06d6a0;
    --warning: #ffd60a;
    --danger: #dc3545;
    --text: #2b2b2b;
    --text-light: #666;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -1px;
}

.logo img {
    height: 80px;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #fff;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #3a7bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74,144,226,0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* HERO */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
    color: #fff;
    position: relative;
    overflow: hidden;
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* SECTIONS */
.section {
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 60px;
    letter-spacing: -1px;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(27,42,78,0.15);
    border-color: var(--primary);
}

.product-image {
    height: 240px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
}

.product-content {
    padding: 30px;
}

.product-type {
    display: inline-block;
    background: rgba(27,42,78,0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.product-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
}

/* FORMS */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(74,144,226,0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    background: var(--danger);
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
}

.form-success {
    background: var(--success);
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 600;
    text-align: center;
}

/* ADMIN */
.admin-sidebar {
    width: 260px;
    background: var(--primary);
    color: #fff;
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    padding: 30px 0;
    overflow-y: auto;
}

.admin-main {
    margin-left: 260px;
    padding: 40px;
    background: var(--bg-secondary);
    min-height: 100vh;
    padding-top: 120px;
}

.admin-menu-item {
    display: block;
    padding: 16px 30px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.admin-menu-item:hover,
.admin-menu-item.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 42px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

tr:hover {
    background: var(--bg-secondary);
}

/* FOOTER */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 60px 20px 30px;
    margin-top: 100px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-menu {
    }
    
    }
    
    }
    
    }
}
/* Logo bianco su navbar scura */
.navbar .logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Bordo più visibile per form prenotazione */
.booking-container {
    border: 3px solid #d1d5db !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}

.form-control {
    border: 2px solid #9ca3af !important;
    background: white !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}


.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        transition: right 0.3s;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}


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

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

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

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

@media (max-width: 900px) {
    .hamburger {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        right: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: calc(100vh - 80px) !important;
        background: var(--primary) !important;
        flex-direction: column !important;
        padding: 20px !important;
        transition: right 0.3s ease !important;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3) !important;
        overflow-y: auto !important;
    }
    
    .nav-menu.active {
        right: 0 !important;
    }
    
    .nav-menu a,
    .nav-menu .btn {
        width: 100% !important;
        text-align: left !important;
        padding: 15px 10px !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
        margin: 0 !important;
    }
}


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

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

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

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

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    
    .nav-content {
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a,
    .nav-menu .btn {
        text-align: left;
        padding: 15px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin: 0;
        display: block;
    }
}

/* ========== HAMBURGER MENU MOBILE ========== */
.hamburger {
    /* display: none; */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

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

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

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

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a,
    .nav-menu .btn {
        text-align: center;
        padding: 15px;
        margin: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* Fix z-index menu mobile */
@media (max-width: 900px) {
    .nav-menu {
        z-index: 9999 !important;
    }
    
    .hamburger {
        z-index: 10000 !important;
    }
}

/* Nascondi hamburger su desktop */
.hamburger {
    display: none;
}

/* Mostra solo su mobile */
@media (max-width: 900px) {
    .hamburger {
        display: flex !important;
    }
    
    .nav-menu a,
    .nav-menu .btn {
        display: block;
    }
}

/* Nascondi menu normale su mobile */
@media (max-width: 900px) {
    .nav-menu:not(.active) {
        display: none;
    }
}
