﻿/* Reset e font */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

/* Layout principale */
.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Colonna sinistra */
.left-column {
    width: 488px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    position: relative;
}

.logo-container {
    padding: 30px 40px;
    background-color: white;
}

    .logo-container h1 {
        font-size: 20px;
        font-weight: 600;
        margin: 0;
        letter-spacing: 2px;
    }

    .logo-container span {
        font-size: 20px;
        font-weight: 300;
        letter-spacing: 2px;
    }

.menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

/* Colonna destra */
.right-column {
    flex: 1;
    position: relative;
    background-color: #f5f5f5;
}

.page-content {
    width: 100%;
    height: 100%;
}

/* Overlay iniziale */
.initial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.category-selection {
    text-align: center;
}

    .category-selection h2 {
        font-size: 18px;
        font-weight: 300;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

.category-title {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.category-subtitle {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.category-tagline {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 60px;
    opacity: 0.8;
}

.category-buttons {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.category-btn {
    background-color: white;
    color: #1a1a1a;
    border: none;
    padding: 12px 48px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

    .category-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(255,255,255,0.2);
    }

/* Menu items */
.menu-item {
    padding: 20px 40px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

    .menu-item:hover {
        background-color: #f8f8f8;
    }

    .menu-item.active {
        background-color: #f8f8f8;
    }

    .menu-item i {
        font-size: 18px;
        color: #666;
        transition: transform 0.3s ease;
    }

    .menu-item.active i {
        transform: rotate(90deg);
    }

/* Submenu collezioni */
.collections-grid {
    display: none;
    padding: 30px 40px;
    background-color: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    min-height: 150px;
}

    .collections-grid.show {
        display: block;
    }

.collection-item {
    cursor: pointer;
    text-align: center;
    margin-bottom: 20px;
}

    .collection-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border: 1px solid #e0e0e0;
        margin-bottom: 8px;
    }

    .collection-item p {
        margin: 0;
        font-size: 12px;
        font-weight: 400;
        color: #333;
    }

/* Popup prodotti */
.product-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 100;
    display: none;
    flex-direction: column;
}

.popup-header {
    padding: 30px 40px 20px 74px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .popup-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 1px;
    }

.popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 30px;
    height: 30px;
}

/* Tabs */
.tabs-container {
    padding: 0 40px;
    background-color: white;
    border-bottom: 1px solid #f0f0f0;
}

.product-tabs {
    display: flex;
    gap: 30px;
    border: none;
    padding: 0;
    margin: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

    .tab-btn:hover {
        color: #333;
    }

    .tab-btn.active {
        color: #333;
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 2px;
            background-color: #333;
        }

/* Split container */
.split-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 140px);
}

/* Products section */
.products-section {
    height: 50%;
    overflow-y: auto;
    padding: 30px 40px;
    background-color: white;
}

.product-item {
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
}

    .product-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border: 1px solid #e0e0e0;
        margin-bottom: 8px;
    }

    .product-item p {
        margin: 0;
        font-size: 12px;
        color: #333;
    }

/* Finishes section */
.finishes-section {
    height: 50%;
    overflow-y: auto;
    padding: 30px 40px;
    background-color: white;
    border-top: 1px solid #f0f0f0;
}

    .finishes-section h5 {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.finish-group {
    margin-bottom: 30px;
}

    .finish-group h6 {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 15px;
        color: #666;
        text-transform: uppercase;
    }

.finish-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.finish-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

    .finish-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .finish-item:hover {
        transform: scale(1.1);
    }

    .finish-item.active {
        border-color: #333;
    }

/* AR e icone */
.top-icons {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.icon-btn {
    background: white;
    border: 1px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .icon-btn:hover {
        background-color: #f8f8f8;
    }

    .icon-btn i {
        font-size: 18px;
        color: #333;
    }

.ar-container {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
}

.ar-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .ar-btn:hover {
        background-color: #f8f8f8;
    }

.ar {
    position: absolute;
    top: 30px;
    left: 30px;
}

/* Scrollbar personalizzate */
.products-section::-webkit-scrollbar,
.finishes-section::-webkit-scrollbar,
.menu-content::-webkit-scrollbar {
    width: 4px;
}

.products-section::-webkit-scrollbar-track,
.finishes-section::-webkit-scrollbar-track,
.menu-content::-webkit-scrollbar-track {
    background: #f8f8f8;
}

.products-section::-webkit-scrollbar-thumb,
.finishes-section::-webkit-scrollbar-thumb,
.menu-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .left-column {
        width: 100%;
    }

    .right-column {
        display: none;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: white;
    border: 1px solid #e0e0e0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .mobile-menu-toggle i {
        font-size: 20px;
        color: #333;
        transition: transform 0.3s ease;
    }

    .mobile-menu-toggle.active {
        background: #333;
    }

        .mobile-menu-toggle.active i {
            color: white;
        }

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-container {
        position: relative;
    }

    .left-column {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

        .left-column.active {
            transform: translateX(0);
        }

    .right-column {
        width: 100%;
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Overlay per chiudere il menu */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

        .mobile-overlay.active {
            display: block;
            opacity: 1;
        }

    /* Product popup mobile adjustments */
    .product-popup {
        position: fixed;
        width: 100%;
        height: 100vh;
    }

    .split-container {
        height: calc(100vh - 140px);
    }

    /* Top icons mobile */
    .top-icons {
        top: 20px;
        right: 20px;
    }

    /* AR button mobile */
    .ar {
        bottom: 20px;
        left: auto;
        right: 20px;
        top: auto;
    }

    /* Category overlay mobile */
    .category-buttons {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }

    .category-btn {
        width: 100%;
        max-width: 300px;
    }

    /* Menu content mobile */
    .menu-content {
        padding-bottom: 80px; /* Spazio per evitare sovrapposizione con il toggle */
    }

    /* Products and finishes sections mobile */
    .products-section,
    .finishes-section {
        padding: 20px;
    }

    /* Adjust finish items for mobile */
    .finish-item {
        width: 35px;
        height: 35px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .left-column {
        width: 400px;
    }
}


.icon-btn.ar-ios-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .top-icons {
        top: 20px;
        right: 20px;
        gap: 15px;
        z-index: 10;
    }

    .icon-btn {
        width: 44px;
        height: 44px;
    }
}

/* Home Button */
.home-button-container {
    background-color: white;
    border-bottom: 2px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.home-item {
    background-color: #f8f8f8;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .home-item:hover {
        background-color: #333;
        color: white;
    }

        .home-item:hover i {
            color: white;
        }

    .home-item span {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .home-item i {
        font-size: 20px;
        color: #333;
        transition: color 0.2s ease;
    }

/* Aggiusta il padding del menu-content per evitare sovrapposizioni */
.menu-content {
    padding-top: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .home-button-container {
        position: relative;
    }
}
.left-column .logo-container {
    padding-left:70px;
}
.left-column .logo-container img {
    width: 150px;
}

.category-selection h2 {
    color:#666;
}


/*bottoni*/

.btn-primary {
    color: #000;
    background-color: #c0c0c0;
    border-color: #c0c0c0;
    box-shadow: none; /* rimuove shadow residua */
}

    .btn-primary:hover {
        color: #000;
        background-color: #b0b0b0;
        border-color: #a9a9a9;
        box-shadow: none;
    }

    .btn-primary:focus,
    .btn-primary.focus {
        color: #000;
        background-color: #b0b0b0;
        border-color: #a9a9a9;
        box-shadow: 0 0 0 0.25rem rgba(192, 192, 192, 0.5); /* grigio semitrasparente */
    }

    .btn-primary:active,
    .btn-primary.active,
    .show > .btn-primary.dropdown-toggle {
        color: #000;
        background-color: #a9a9a9;
        border-color: #9c9c9c;
        box-shadow: none;
    }

    .btn-primary:disabled,
    .btn-primary.disabled {
        color: #000;
        background-color: #e0e0e0;
        border-color: #e0e0e0;
        box-shadow: none;
    }

