/*
Theme Name: Maken2 Theme
Theme URI: https://www.webdojo.it/
Template: hello-elementor
Author: Webdojo Team
Author URI: https://www.webdojo.it/
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 1.0.1762520747
Updated: 2025-11-07 13:05:47

*/

/**
 * ========================================================================
 * File: style.css (Stili per il Carousel Variazioni)
 * ========================================================================
 */

/* --- MAKEN VARIATION CAROUSEL (FINAL FIX) --- */

/* 1. WRAPPER ESTERNO
   Crea il quadrato 1:1 in cui vive il prodotto
*/
.custom-carousel-wrapper {
    position: relative;
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1; /* Forza il quadrato */
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
    background-color: #fff; /* Assicura sfondo bianco se l'immagine è PNG */
}

/* 2. CAROUSEL INTERNO E SLIDE */
.custom-variation-carousel {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

.custom-variation-carousel .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    height: 100%;
}

.custom-variation-carousel .swiper-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. IMMAGINI (FIX TAGLIO)
   Usiamo 'contain' per vedere tutta la borsa senza tagli.
   !important serve per vincere sullo stile inline stampato da PHP.
*/
.custom-carousel-wrapper img,
.custom-variation-carousel .swiper-slide img.swiper-product-img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important; /* <--- IL CAMBIAMENTO CHIAVE */
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- NAVIGAZIONE (SOLO HOVER) --- */

/* 1. FRECCE (PREV / NEXT) */
.custom-variation-carousel .swiper-button-prev,
.custom-variation-carousel .swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important; /* Centratura verticale perfetta */
    width: 35px !important;
    height: 35px !important;
    
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
    
    /* Flexbox per centrare l'icona nel cerchio */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    z-index: 50 !important; /* Deve essere più alto dell'immagine (che è z-index 1) */
    cursor: pointer !important;
    margin: 0 !important; /* Reset margini Swiper */

    /* Stato Iniziale: NASCOSTO */
    opacity: 0; 
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Posizionamento Laterale */
.custom-variation-carousel .swiper-button-prev { left: 10px !important; }
.custom-variation-carousel .swiper-button-next { right: 10px !important; }

/* 2. ICONE INTERNE DELLE FRECCE (FORZATURA) 
   Usiamo content personalizzato per garantire che si vedano 
   anche se il font Swiper fallisce.
*/
.custom-variation-carousel .swiper-button-prev::after,
.custom-variation-carousel .swiper-button-next::after {
    font-family: Arial, sans-serif !important; /* Font sicuro */
    font-size: 18px !important;
    font-weight: bold !important;
    color: #000 !important; /* Colore Nero */
    line-height: 1 !important;
}

/* Disegniamo le frecce manualmente */
.custom-variation-carousel .swiper-button-prev::after { content: '‹' !important; }
.custom-variation-carousel .swiper-button-next::after { content: '›' !important; }


/* 3. PAGINAZIONE (PUNTINI) */
.custom-variation-carousel .swiper-pagination {
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 50 !important;
    text-align: center !important;
    line-height: 0 !important; /* Evita spazi extra */

    /* Stato Iniziale: NASCOSTO */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-variation-carousel .swiper-pagination-bullet {
    background-color: #000 !important; /* Nero */
    opacity: 0.3 !important;
    width: 6px !important;
    height: 6px !important;
    margin: 0 4px !important;
    display: inline-block !important;
    border-radius: 50% !important;
}

.custom-variation-carousel .swiper-pagination-bullet-active {
    background-color: #000 !important;
    opacity: 1 !important;
    transform: scale(1.3);
}

/* 4. LOGICA HOVER (LA MAGIA) 
   Quando passo il mouse sul wrapper principale, mostro tutto.
*/
.custom-carousel-wrapper:hover .custom-variation-carousel .swiper-button-prev,
.custom-carousel-wrapper:hover .custom-variation-carousel .swiper-button-next,
.custom-carousel-wrapper:hover .custom-variation-carousel .swiper-pagination {
    opacity: 1 !important;
    visibility: visible !important;
}


/*** MAKEN LUXURY CAROUSEL ***/

/* Container isolato */
#maken-unique-wrapper {
    position: relative;
    width: 100%;
    
    /* MODIFICA 1: ALTEZZA AUMENTATA */
    height: 750px; /* Era 600px. Aumenta questo valore se vuoi ancora più spazio */
    max-height: 85vh; 
    
    background-color: #ffffff; 
    overflow: hidden;
}

/* Navigazione */
#maken-unique-wrapper .maken-nav-buttons {
    position: absolute;
    top: 30px; /* Leggermente più distanziato dal bordo alto */
    left: 30px;
    z-index: 20 !important;
    display: flex;
    gap: 12px;
}

#maken-unique-wrapper .maken-custom-btn {
    /* MODIFICA 2: FRECCE PIÙ GRANDI */
    width: 50px;  /* Era 40px */
    height: 50px; /* Era 40px */
    
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s;
    color: #333;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

#maken-unique-wrapper .maken-custom-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#maken-unique-wrapper .maken-custom-btn svg {
    /* Icona interna più grande */
    width: 24px; /* Era 20px */
    height: 24px;
    stroke: #333;
    display: block;
}

/* Stato Disabilitato per le frecce */
#maken-unique-wrapper .maken-custom-btn.disabled {
    opacity: 0.3;
    cursor: default !important;
    pointer-events: none;
}

/* SLIDER */
#maken-unique-wrapper .maken-snap-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

#maken-unique-wrapper .maken-snap-slider::-webkit-scrollbar { display: none; }

/* Dragging state */
#maken-unique-wrapper .maken-snap-slider.is-dragging {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    cursor: grabbing !important;
}

#maken-unique-wrapper .maken-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto !important;
    cursor: grab !important;
    z-index: 5;
}

#maken-unique-wrapper .maken-snap-slider:active,
#maken-unique-wrapper .maken-slide:active {
    cursor: grabbing !important;
}

#maken-unique-wrapper .maken-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto !important;
    cursor: grab !important;
    
    /* MODIFICA 3: DISTANZA PUNTINI */
    /* Aggiungiamo padding sotto per riservare spazio ai puntini 
       e staccare l'immagine dal fondo */
    padding-bottom: 60px; 
    box-sizing: border-box; /* Importante per includere il padding nel calcolo */
}

#maken-unique-wrapper .maken-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto !important;
    cursor: grab !important;
}

/* Dots */
#maken-unique-wrapper .maken-pagination {
    position: absolute;
    bottom: 25px; /* Alzati leggermente dal bordo assoluto */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* Più spazio tra un pallino e l'altro */
    z-index: 10;
}

#maken-unique-wrapper .maken-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

#maken-unique-wrapper .maken-dot.active {
    background-color: #000;
    transform: scale(1.3); /* Leggermente più grandi quando attivi */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #maken-unique-wrapper { 
        height: 500px; /* Aumentato anche su mobile per coerenza */
    }
    #maken-unique-wrapper .maken-img-wrap {
        padding-bottom: 40px; /* Meno padding su mobile */
    }
}

/* --- STILI DEL POPUP (MODAL) --- */
.maken-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.maken-modal.open {
    opacity: 1;
    visibility: visible;
}

.maken-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px; /* X più grande per facilità d'uso */
    height: 50px;
    cursor: pointer;
    z-index: 10;
    color: #000;
    transition: transform 0.3s;
}

.maken-modal-close:hover {
    transform: rotate(90deg);
}

.maken-modal-content {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#maken-modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: zoom-in;
    transform-origin: center center;
}

/* STATO ZOOMATO */
.maken-modal.is-zoomed #maken-modal-img {
    cursor: zoom-out; 
}


/**** FINE MAKEN CAROUSEL ****/


body.single-product table.variations th.label{
    /*display: none;*/
    font-family: 'Libre Baskerville';
    padding-bottom: 0px;
    background: none;
}

td.value.woo-variation-items-wrapper {
    padding-top: 0px;
}

body.single-product td.value.woo-variation-items-wrapper {
    background: transparent;
    border: none;
}

.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item) {
    border-radius: 2px;
    width: 60px !important;
    height: 60px !important;    
    box-shadow: var(--wvs-selected-item-box-shadow, 0 0 0 2px #fff);
}


/** BOTTONE ADD TO CART **/

body.single-product .single_add_to_cart_button{
    width: 100%;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    background-color: #333333 !important;
}


/** --- MAKEN READ MORE DESCRIPTION --- */

.maken-readmore-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    /* Evita flash di contenuto non stilizzato */
    box-sizing: border-box;
}

/* Il contenitore animato */
.maken-readmore-content {
    position: relative;
    overflow: hidden;
    /* La transizione sull'altezza è la chiave della fluidità */
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Stili comuni ai testi */
.maken-text-short,
.maken-text-full {
    width: 100%;
    margin: 0;
    line-height: 1.6; /* Importante: stesso line-height per evitare scatti */
}

/* --- LOGICA DI VISIBILITÀ --- */

/* 1. Stato Iniziale (Short visibile, Full nascosto ma presente per calcolo altezza) */
.maken-text-short {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.maken-text-full {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* 2. Stato Espanso (Short scompare, Full appare e diventa relativo) */
.maken-readmore-wrapper.expanded .maken-text-short {
    opacity: 0;
    pointer-events: none;
    position: absolute; /* Lo togliamo dal flusso per lasciare spazio al full */
    top: 0;
    left: 0;
}

.maken-readmore-wrapper.expanded .maken-text-full {
    position: relative; /* Torna nel flusso per occupare spazio */
    opacity: 1;
    visibility: visible;
}

/* Bottone */
.maken-readmore-trigger {
    margin-top: 10px;
    display: flex;
}

.maken-trigger-btn {
    font-size: 13px;
    font-weight: 600;    
    cursor: pointer;
    color: #000;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.maken-trigger-btn:hover {
    color: #666;
}


/* --- SOSTITUZIONE ICONA YITH WISHLIST (METODO CSS MASK) --- */

/* 1. Nascondiamo il "vecchio" disegno interno (il path originale) */
.yith-wcwl-add-to-wishlist-button-icon path {
    display: none !important;
}

/* 2. Trasformiamo il contenitore SVG per usare la tua icona come Maschera */
.yith-wcwl-add-to-wishlist-button-icon {
    /* Rimuoviamo lo stroke originale del plugin */
    stroke: none !important; 
    
    /* Il colore di sfondo diventa il colore dell'icona (eredita dal testo) */
    background-color: currentColor !important; 
    
    /* Definiamo la maschera con il tuo SVG personalizzato */
    -webkit-mask-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M17.75,1c-2.504,0-4.777,1.851-5.75,4.354-.973-2.504-3.246-4.354-5.75-4.354C2.804,1,0,3.804,0,7.25c0,6.76,9.754,14.07,11.709,15.466l.291,.208,.291-.208c1.956-1.396,11.709-8.707,11.709-15.466,0-3.446-2.804-6.25-6.25-6.25Zm-5.75,20.693C6.859,17.958,1,12.022,1,7.25,1,4.355,3.355,2,6.25,2c2.748,0,5.25,2.86,5.25,6h1c0-3.14,2.502-6,5.25-6,2.895,0,5.25,2.355,5.25,5.25,0,4.772-5.859,10.708-11,14.443Z"/%3E%3C/svg%3E');
    mask-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M17.75,1c-2.504,0-4.777,1.851-5.75,4.354-.973-2.504-3.246-4.354-5.75-4.354C2.804,1,0,3.804,0,7.25c0,6.76,9.754,14.07,11.709,15.466l.291,.208,.291-.208c1.956-1.396,11.709-8.707,11.709-15.466,0-3.446-2.804-6.25-6.25-6.25Zm-5.75,20.693C6.859,17.958,1,12.022,1,7.25,1,4.355,3.355,2,6.25,2c2.748,0,5.25,2.86,5.25,6h1c0-3.14,2.502-6,5.25-6,2.895,0,5.25,2.355,5.25,5.25,0,4.772-5.859,10.708-11,14.443Z"/%3E%3C/svg%3E');
    
    /* Impostazioni di posizionamento della maschera */
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    
    /* Assicuriamoci che l'icona abbia dimensione corretta */
    width: 24px !important;
    height: 24px !important;
}

body span.yith-wcwl-add-to-wishlist-button__label{
    font-family: "Libre Baskerville", Sans-serif;
    font-size: 16px;
    font-weight: 100;
    line-height: 1.6em;    
    color:#000;
}


/** CARRELLO **/

body .elementor-menu-cart__main{
    width:25%;
    overflow-y: scroll;
}

body .wpr-mini-cart-image {
    margin-right: 15px;
    width: 100%;
    max-width: 100px;
}

body .wpr-mini-cart-remove {   
    margin-top: -18%;
}

body span.wpr-mini-cart-name {
    font-family: 'Libre Baskerville';
    color: #333;
    font-size: 16px;
    font-weight: 100;
}

body .wpr-mini-cart-quantity {
    font-family: 'Libre Baskerville';
}

body.woocommerce ul.cart_list li a, body.woocommerce ul.product_list_widget li a {    
    color: #333 !important;
}

body.woocommerce a.remove{
    color: #333 !important;
}

body.woocommerce a.remove:hover {    
    background: #333;
}

body li.woocommerce-mini-cart-item.mini_cart_item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dadada;
}

body p.woocommerce-mini-cart__total.total {
    margin-top: 20px;
    font-family: 'Libre Baskerville';
    font-size: 18px;
}

body a.button.wc-forward {
    margin: 15px;
    font-size: 16px;
    font-family: 'Libre Baskerville';
    background-color: #333;
    color: #fff;
    font-weight: 100;
    padding: 15px;
    display: inline-block;
    width: 90%;
    text-align: center;
}

