/* Palette Colori */
        :root {
            --brand-dark: #57381c;
            --brand-light: #E3C8Ac;
            --brand-light-alpha: rgba(227, 200, 172, 0.75);
            --bg-color: #faf9f8;
			/* Nuovo colore: Verde Salvia tenue, richiama la natura e si abbina al marrone/beige */
			--brand-accent: #7B8B7A; 
        }

        /* Stili base */
        body {
            font-family: 'Montserrat', sans-serif;
            color: var(--brand-dark);
            background-color: var(--bg-color); 
            font-weight: 300;
            padding-top: 80px; /* Spazio per evitare che l'inizio della pagina sia coperto dalla navbar */
        }

        h1, h2, h3, h4, h5, .font-elegant {
            font-family: 'Playfair Display', serif;
        }
        /* Contenitore del logo su fondo bianco puro */
        .logo-container {
            display: inline-flex;
            align-items: center;
            background-color: #ffffff; /* Fondo bianco richiesto */
            padding: 20px 40px;
            
            /* Una leggerissima ombra solo per presentarlo isolato dal resto della pagina, 
               puoi rimuoverla quando lo inserisci nella navbar */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
        }

        /* Stile per l'icona del tucano (quando avrai il file isolato) */
        .logo-icon {
            height: 55px; /* Altezza dell'icona, proporzionale al testo */
            width: auto;
            margin-right: 25px; /* Spazio elegante tra icona e testo */
            object-fit: contain;
        }

        /* Stile moderno per la scritta GANDON */
        .logo-text {
            font-family: 'Montserrat', sans-serif;
            font-weight: 300; /* Stile sottile e moderno, senza grazie */
            font-size: 2.2rem;
            letter-spacing: 12px; /* Molto respiro tra le lettere (kerning ampio) */
            color: #57381c; /* Il Deep Brown della nostra palette */
            text-transform: uppercase;
            line-height: 1;
            /* Compensazione ottica per il letter-spacing sull'ultima lettera */
            margin-right: -12px; 
            margin-bottom: -3px;
        }
        /* =========================================
           NAVBAR (Frosted Glass & Sticky)
           ========================================= */
        .navbar {
            padding: 1rem 2rem;
            /* Resa più trasparente: alpha portato a 0.60 */
            background-color: rgba(250, 249, 248, 0.99); 
            /* backdrop-filter: blur(12px); */ /* Sfocatura per effetto vetro */
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(87, 56, 28, 0.08);
            transition: all 0.4s ease;
            z-index: 1060 !important;
            height: 80px;
        }

        /* Barra di ricerca elegante al centro */
        .elegant-search {
            position: relative;
            width: 100%;
            max-width: 350px;
            margin: 0 auto;
        }

        .elegant-search .search-input {
            width: 100%;
            border: none;
            border-bottom: 1px solid rgba(87, 56, 28, 0.2);
            background: transparent;
            padding: 8px 30px 8px 0;
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            color: var(--brand-dark);
            transition: border-color 0.4s ease;
            outline: none;
            letter-spacing: 0.5px;
        }

        .elegant-search .search-input::placeholder {
    color: rgba(87, 56, 28, 1); /* Sostituito 0.4 con 0.7 */
    font-weight: 300;
    opacity: 1; /* Forza la visibilità sui browser come Firefox */
}
        .elegant-search .search-input:focus {
            border-bottom: 1px solid var(--brand-dark);
        }

        .elegant-search .search-icon {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            color: var(--brand-dark);
            font-size: 1.1rem;
            pointer-events: none;
        }

        /* =========================================
           DINAMICA LOGO E BURGER
           ========================================= */
        .left-nav-group {
            position: relative;
            display: flex;
            align-items: center;
            height: 45px; 
        }

        #menuTrigger {
            position: absolute;
            left: 0;
            transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
            opacity: 1;
            z-index: 2;
            color: var(--brand-dark);
        }

        #menuTrigger.active {
            opacity: 0;
            transform: translateX(-15px); 
            pointer-events: none;
        }

        #brandLogoContainer {
            position: relative;
            left: 60px;
            transition: left 1s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 1;
        }

        .left-nav-group.menu-open #brandLogoContainer {
            left: 0; 
        }

        .header-logo {
            max-height: 40px; 
            width: auto;
            object-fit: contain;
        }

        .brand-logo-text {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            letter-spacing: 2px;
            font-size: 1.5rem;
            color: var(--brand-dark);
        }

        .nav-icon {
            color: var(--brand-dark);
            transition: color 0.4s ease, transform 0.4s ease;
            display: inline-block;
        }

        .nav-icon:hover {
            color: var(--brand-light);
        }

        

        .btn-custom {
            border: 1px solid var(--brand-dark);
            color: var(--brand-dark);
            background: transparent;
            font-family: 'Montserrat', sans-serif;
            font-weight: 400;
            letter-spacing: 2px;
            transition: all 0.5s ease;
            font-size: 0.8rem;
            padding: 15px 35px;
        }

        .btn-custom:hover {
            background-color: var(--brand-dark);
            color: #fff;
        }

        /* Categorie */
        .category-card {
            border: none;
            background: transparent;
            overflow: hidden;
        }

        .category-card img {
            border-radius: 0;
            height: 465px;
            object-fit: cover;
            transition: transform 1s ease;
        }

        .category-card:hover img {
            transform: scale(1.03);
        }

        .category-title {
            font-size: 1.8rem;
            margin-top: 20px;
            color: var(--brand-dark);
        }

        .category-subtitle {
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            font-weight: 400;
            /*letter-spacing: 1px;*/
            /*text-transform: uppercase;*/
            color: var(--brand-dark);
        }

        /* =========================================
           OFFCANVAS RELAX
           ========================================= */
        
        .offcanvas {
            transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
            z-index: 1045 !important;
        }
        
        .offcanvas-backdrop {
            transition: opacity 1.2s ease !important;
            z-index: 1040 !important;
        }

        .offcanvas-start {
            width: 450px; 
            border-right: none;
            background-color: rgba(250, 249, 248, 0.99); 
        }

        .offcanvas-header {
            padding: 100px 3rem 1rem 3rem;
            min-height: 60px;
        }

        .offcanvas-body {
            padding: 1rem 3rem 2rem 3rem;
            display: flex;
            flex-direction: column;
        }

        .macro-link {
            font-family: 'Playfair Display', serif;
            font-size: 1.6rem;
            color: var(--brand-dark) !important;
            padding: 12px 0;
        }

        .sub-link {
            font-family: 'Montserrat', sans-serif;
            font-size: 1rem;
            font-weight: 300;
            color: var(--brand-dark) !important;
            padding: 10px 0;
            letter-spacing: 0.5px;
        }

        .offcanvas-menu-link {
            display: flex;
            text-decoration: none;
            align-items: center;
        }

        .link-text {
            position: relative;
            display: inline-block;
        }

        .link-text::after {
            content: '';
            position: absolute;
            width: 0;
            height: 1px;
            bottom: -2px;
            left: 0;
            background-color: var(--brand-dark);
            transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .offcanvas-menu-link:hover .link-text::after {
            width: 100%;
        }

        .offcanvas-menu-link i {
            font-size: 0.9rem;
            opacity: 0.5;
            transition: transform 0.4s ease, opacity 0.4s ease;
        }

        .offcanvas-menu-link:hover i {
            transform: translateX(5px);
            opacity: 1;
        }

        .menu-level {
            display: none;
        }

        .menu-level.active {
            display: block;
        }

        .menu-level.active li {
            opacity: 0;
            transform: translateY(15px);
            animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
        }

        .menu-level.active li:nth-child(1) { animation-delay: 0.2s; }
        .menu-level.active li:nth-child(2) { animation-delay: 0.3s; }
        .menu-level.active li:nth-child(3) { animation-delay: 0.4s; }
        .menu-level.active li:nth-child(4) { animation-delay: 0.5s; }
        .menu-level.active li:nth-child(5) { animation-delay: 0.6s; }
        .menu-level.active li:nth-child(6) { animation-delay: 0.7s; }

        @keyframes slideUpFade {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .menu-promo-block {
            margin-top: auto; 
            padding-top: 2rem;
            border-top: 1px solid rgba(87, 56, 28, 0.1);
            opacity: 0;
            animation: fadeInPromo 1s ease forwards;
            animation-delay: 0.8s; 
        }
        
        @keyframes fadeInPromo {
            to { opacity: 1; }
        }

        .menu-promo-img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            filter: brightness(0.9);
            transition: filter 0.5s ease;
        }

        .menu-promo-block:hover .menu-promo-img {
            filter: brightness(1);
        }

        .offcanvas-body::-webkit-scrollbar { width: 4px; }
        .offcanvas-body::-webkit-scrollbar-track { background: transparent; }
        .offcanvas-body::-webkit-scrollbar-thumb { background: var(--brand-light); border-radius: 4px; }

        .footer-custom {
            background-color: var(--brand-dark);
            color: #fff;
        }
		
		/* =========================================
   NEWSLETTER SECTION
   ========================================= */
.newsletter-section {
    background-color: #f4f1ee; /* Un beige molto tenue per spezzare il layout */
    border-top: 1px solid rgba(87, 56, 28, 0.05);
}

.newsletter-form .form-control {
    border: none;
    border-bottom: 1px solid rgba(87, 56, 28, 0.3);
    background: transparent;
    border-radius: 0;
    padding: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--brand-dark);
    box-shadow: none !important;
    transition: border-color 0.4s ease;
}

.newsletter-form .form-control::placeholder {
    color: rgba(87, 56, 28, 1); /* Sostituito 0.4 con 0.7 */
    font-weight: 300;
    opacity: 1; /* Forza la visibilità sui browser come Firefox */
}

.newsletter-form .form-control:focus {
    border-bottom: 1px solid var(--brand-dark);
}

.newsletter-btn {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--brand-dark);
    color: var(--brand-dark);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 400;
    padding: 10px 15px;
    transition: all 0.4s ease;
}

.newsletter-btn:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* =========================================
   SOCIAL BAR
   ========================================= */
.social-bar-section {
    height: 60px;
    max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-dark);
}

.social-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(87, 56, 28, 0.9); /* Deep Brown leggermente opaco per non sovrastare le icone */
    color: #ffffff; /* Deep Brown leggermente opaco per non sovrastare le icone */
    margin-right: 15px;
}

.social-link {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0 15px; /* Margine ridotto leggermente per bilanciare la presenza del testo */
    transition: color 0.4s ease;
}

.social-link:hover {
    color: var(--brand-light);
}

/* =========================================
   HERO SECTION UNIFICATA (IMG / VIDEO)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Fa scorrere visivamente la hero sotto la navbar */
    margin-top: -80px; 
    padding-top: 80px; 
}

/* Classe universale applicabile sia a <img> che a <video> */
.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay dark per garantire la leggibilità del testo */
.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(87, 56, 28, 0.35); /* Il tuo Deep Brown in trasparenza */
    z-index: 1;
}

/* Contenitore dei testi in primo piano */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff; /* Testo bianco per contrastare l'overlay */
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Cormorant', serif; /* Font editoriale elegante */
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.subtitle-hero {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.hero-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px solid #ffffff;
    border-radius: 0;
    padding: 12px 35px;
    color: #ffffff;
    background: transparent;
    transition: all 0.4s ease;
}

.hero-btn:hover {
    background-color: var(--brand-light);
    color: var(--brand-dark);
    border-color: var(--brand-light);
}

/* =========================================
   TYPOGRAPHY & BUTTONS NELLA HERO
   ========================================= */
.subtitle-hero {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 4px;
    font-size: 0.9rem;
}

.hero-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 0; /* Angoli netti, niente arrotondamenti per un look più rigoroso */
    padding: 12px 35px;
    transition: all 0.4s ease;
}

.hero-btn:hover {
    background-color: var(--brand-light); /* Hover con il Beige della palette */
    color: var(--brand-dark);
    border-color: var(--brand-light);
}

/* ==========================================
   STILI NAVBAR E LOGO GANDON (Mobile First)
   ========================================== */

/* Dimensioni di default per Smartphone */
.logo-icon {
    height: 38px; /* Aumentato da 32px */
    margin-right: 6px;
    transition: all 0.3s ease;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 1.5rem; /* Aumentato da 1.3rem */
    letter-spacing: 2px;
    color: var(--brand-dark, #212529);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* Modifiche della barra di ricerca al focus (Desktop) */
.elegant-search input:focus {
    border-color: #212529 !important;
    outline: none;
}

/* Dimensioni per Tablet e Desktop (da 768px in su) */
@media (min-width: 768px) {
    .logo-icon {
        height: 48px; /* Le tue misure originali */
        margin-right: 10px;
    }
    
    .logo-text {
        font-size: 2.2rem; /* Le tue misure originali */
        letter-spacing: 6px;
        margin-right: -8px;
    }
}

/* =========================================
   FORM INPUT & PLACEHOLDER STYLING (FORCED)
   ========================================= */

/* Applica il font Montserrat e il colore di base agli input */
.form-control, .form-select {
    font-family: 'Montserrat', sans-serif !important;
    color: var(--brand-dark, #57381c) !important;
}

/* Stile specifico per i placeholder di Bootstrap */
.form-control::placeholder,
.form-select::placeholder {
    color: rgba(87, 56, 28, 0.7) !important; /* Deep Brown al 70% di opacità */
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    opacity: 1 !important; /* Forza la visibilità assoluta (es. per Firefox) */
}

/* Supporto per i vari prefissi dei browser per massima compatibilità */
.form-control::-webkit-input-placeholder {
    color: rgba(87, 56, 28, 0.7) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
}
.form-control::-moz-placeholder {
    color: rgba(87, 56, 28, 0.7) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    opacity: 1 !important;
}
.form-control:-ms-input-placeholder {
    color: rgba(87, 56, 28, 0.7) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
}

/* ==========================================
   PAGINA PRODOTTO (ZARA HOME STYLE)
   ========================================== */

@media (min-width: 992px) {
    .product-gallery {
        height: 100vh;
        overflow-y: auto;
        scrollbar-width: none; 
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }
    .product-gallery::-webkit-scrollbar {
        display: none;
    }
    
    .product-info-sticky {
        height: 100vh;
        overflow-y: auto;
        position: sticky;
        top: 0;
        padding-top: 50px; 
        padding-bottom: 50px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .product-info-sticky::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 991px) {
    .product-gallery {
        padding-top: 70px;
    }
    .product-info-sticky {
        padding-top: 30px;
        padding-bottom: 60px;
    }
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.color-btn.active {
    border: 1px solid #212529;
    box-shadow: 0 0 0 2px #fff inset;
}

.variant-thumbnails {
    height: 100vh;
}
.variant-thumbnails img {
    cursor: pointer;
    transition: opacity 0.3s ease;
    border: 1px solid transparent;
}
.variant-thumbnails img.active-variant {
    border-color: #212529;
    opacity: 1 !important;
}
.variant-thumbnails img:hover {
    opacity: 1 !important;
}

.custom-select-wabi:focus {
    border-color: #212529;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #212529;
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.125);
}

.border-top-wabi {
    border-top: 1px solid var(--brand-accent) !important;
}

/* ==========================================
   PAGINA CATEGORIA E CARD PRODOTTO
   ========================================== */

/* Toolbar Sticky per filtri */
.sticky-toolbar {
    position: sticky;
    top: 80px; /* Altezza della navbar */
    z-index: 1020;
}

/* Fix per select di ordinamento */
.custom-sort {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-origin;
    background-position: right 0 center;
    background-size: 12px 12px;
    padding-right: 20px !important;
}

.custom-sort:focus {
    box-shadow: none;
}

/* Immagini prodotto: Proporzione fissa e ritaglio perfetto */
.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4; /* Rapporto di forma per tutte le card */
    background-color: #f8f9fa;
    display: block;
}

.product-img-wrapper .main-img, 
.product-img-wrapper .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forza il ritaglio al centro senza deformare */
    transition: opacity 0.4s ease, transform 1s ease;
}

.product-img-wrapper .hover-img {
    opacity: 0;
}

.product-card-wabi:hover .hover-img {
    opacity: 1;
}


/* Effetto Zoom leggero in stile Nkuku */
.product-card-wabi:hover .main-img, 
.product-card-wabi:hover .hover-img {
    transform: scale(1.03);
}



/* Gestione Mobile (Opzionale: ratio più quadrato su schermi piccoli) */
@media (max-width: 991px) {
    .product-img-wrapper {
        aspect-ratio: 4/5;
    }
    .product-card-wabi:hover .hover-img {
        opacity: 0; 
    }
    .product-card-wabi:hover .main-img {
        transform: none; 
    }
	.wishlist-btn, .quick-add-wrapper {
        display: none !important; /* Rimuove azioni rapide su mobile */
    }
}

.product-card-wabi:hover .hover-img {
    opacity: 1;
}



/* Pulsante Wishlist sulla Card */
.wishlist-btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card-wabi:hover .wishlist-btn {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-btn:hover {
    background-color: var(--brand-dark);
    color: #fff;
}

/* Pulsante Aggiunta Rapida sulla Card */
.quick-add-wrapper {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card-wabi:hover .quick-add-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-btn:hover {
    background-color: var(--brand-light);
    color: var(--brand-dark);
    border-color: var(--brand-light);
}

/* Pallini Colore Miniatura */
.color-selector-mini .color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ==========================================
   ALLINEAMENTO TESTI GRIGLIA PRODOTTI
   ========================================== */

/* Righe 1 e 2: Titolo del prodotto */
.product-card-wabi .product-title {
    font-size: 0.9rem;
    letter-spacing: 1px;
    line-height: 1.4;
    height: calc(0.9rem * 1.4 * 2); /* Forza l'altezza a 2 righe esatte */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    margin-bottom: 0.5rem;
}

/* Riga 3: Prezzo */
.product-card-wabi .fw-medium {
    line-height: 1.2;
    margin-bottom: 0.5rem !important;
}

/* Riga 4: Pallini varianti */
.product-card-wabi .color-selector-mini {
    min-height: 16px; /* Mantiene lo spazio anche nei prodotti senza varianti */
}
