/*
Theme Name: Divi Child
Theme URI: https://toscanavino.com/
Description: Tema Child per Divi
Author: Il Parere Communication
Author URI: https://tuosito.it/
Template: Divi
Version: 1.0.0
*/

/* Aggiungi qui le tue personalizzazioni CSS */
.provincia {
        position: relative;
    }
    .provincia:hover {
        background-color: rgba(255, 255, 255, 0.5); /* Aggiungi un'overlay trasparente */
    }
    .provincia:hover::after {
        content: attr(title);
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: rgba(0,0,0,0.7);
        color: white;
        padding: 5px;
        border-radius: 5px;
        z-index: 100;
    } 
.et-db #et-boc .et-l .et_pb_wc_related_products_0_tb_body section.products>h2 {
	display:none;
}
#wcfm_products_manage_form_general_expander, #wcfm_products_manage_form_policies_head {
	display:none;
}
#wcfm_products_manage_form_inventory_expander .sku {display:none;}
#wcfm_products_manage_form_inventory_expander #sku {display:none;}
#wcfm_products_manage_form_inventory_expander .manage_stock {display:none;}
#wcfm_products_manage_form_inventory_expander #manage_stock {display:none;}
#wcfm_products_manage_form_inventory_expander .sold_individually {display:none;}
#wcfm_products_manage_form_inventory_expander #sold_individually {display:none;}
#wcfm_menu .wcfm_menu_wcfm-media {display:none;}
#wcfm_menu .wcfm_menu_wcfm-settings {display:none;}
 /* pop up personal area */
.personal-area {
	color: #fff; /* Colore del link */
	text-decoration: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
}

.personal-area i {
	margin-right: 5px;
}

.modal-hidden {
	display: none; /* Nascosto inizialmente */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9); /* Sfondo semitrasparente */
	justify-content: center;
	align-items: center;
	z-index: 10000;
}

.modal-visible {
	display: flex !important; /* Mostra il popup */
}

.modal-content {
	background: white;
	padding: 20px;
	border-radius: 10px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	text-align: left;
	position: relative;
}

.modal-content label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.modal-content input {
	width: 100%;
	padding: 10px;
	margin-bottom: 15px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.modal-content button {
	background: #c49a6c;
	color: #fff;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 5px;
}

.modal-content button:hover {
	background: #be1a2a;
}

.modal-content .close {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 18px;
	color: #333;
	cursor: pointer;
}
.category-description {
	color: #666;
    line-height: 1.7em;
    font-weight: 500;
	font-family: 'Noto Sans Thai Looped', Helvetica, Arial, Lucida, sans-serif;
	font-size:16px;
}

/* Contenitore principale del bundle */
#dynamic-bundle-form {
    background: #ffffff;
    font-family: 'Noto Sans Thai Looped', Helvetica, Arial, Lucida, sans-serif;
    color: #333;
}

/* Titolo del bundle */
#dynamic-bundle-form h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    font-weight: 600;
}

/* Tabella */
.dynamic-bundle-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
}

.dynamic-bundle-table thead {
    background-color: transparent;
    color: #888;
}

.dynamic-bundle-table th, .dynamic-bundle-table td {
    padding: 12px 5px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0; /* Sottile linea di separazione */
}

.dynamic-bundle-table th {
    font-weight: 600;
}

.dynamic-bundle-table tbody tr:hover {
    background-color: #fafafa;
}

/* Immagini prodotto */
.dynamic-bundle-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Prezzo e quantità */
.dynamic-bundle-table td {
    vertical-align: middle;
}

.dynamic-bundle-table input[type="number"] {
    width: 60px;
    padding: 10px;
	height:40px;
	border-radius: 3px;
    background-color: rgba(196,154,108,0.25);
    color: #333;
	border:none;
}
/* Per WebKit (Chrome, Edge, Safari) */
.dynamic-bundle-table input[type="number"]::-webkit-inner-spin-button,
.dynamic-bundle-table input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    width: 20px; /* Aumenta la larghezza delle freccette */
    height: 20px; /* Aumenta l'altezza delle freccette */
}

/* Per Firefox */
.dynamic-bundle-table input[type="number"]::-moz-inner-spin-button {
    width: 20px; /* Aumenta la larghezza delle freccette */
    height: 20px; /* Aumenta l'altezza delle freccette */
}

/* Per personalizzare i campi input della tabella */


/* Prezzo totale */
#bundle-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #BE1A2A; /* Colore rosso richiesto */
    text-align: right;
    margin: 20px 0;
	padding:0 0;
}

/* Messaggio di avviso */
#bundle-warning {
    color: #BE1A2A; /* Stesso colore del prezzo */
    font-size: 0.9rem;
    text-align: right;
	font-weight:600;
	margin-bottom:5px;
}

/* Bottone di aggiunta al carrello */
#add-bundle-to-cart {
    display: block;
    background: #BE1A2A;
    color: #ffffff;
    font-weight: 600;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
float:right;
}

#add-bundle-to-cart:hover {
    background: #9C1523; /* Colore più scuro per effetto hover */
}

#add-bundle-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}
/* Contenitore generale dei prodotti */
.category-products-list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Spaziatura tra i prodotti */
    padding: 15px 0;
}

/* Contenitore singolo prodotto */
.category-product-item {
    display: flex;
    align-items: flex-start; /* Allinea immagine e testo in alto */
    gap: 20px; /* Spaziatura tra immagine e testo */
    border: 1px solid #C49A6C;
    padding: 25px;
    background-color: #fff;
    border-radius: 5px; /* Angoli arrotondati */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Leggera ombreggiatura */
}

/* Immagine del prodotto */
.product-image img {
    max-width: 240px; /* Limita la larghezza dell'immagine */
    height: auto;
    border-radius: 5px; /* Angoli arrotondati per l'immagine */
}

/* Dettagli del prodotto */
.product-details {
    flex: 1; /* Permette al testo di occupare lo spazio rimanente */
    display: flex;
    flex-direction: column;
}

/* Titolo del prodotto */
.product-title {
    font-family: 'Poppins', sans-serif; /* Usa il font Poppins */
    font-size: 30px;
    font-weight: bold;
    color: #444444;
    margin-bottom: 10px;
}

/* Descrizione breve del prodotto */
.product-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
	font-family: 'Noto Sans Thai Looped', Helvetica, Arial, Lucida, sans-serif;
}
.product-price {
    font-size: 18px;
    font-weight: bold;
    color: #C49A6C; /* Stesso colore del bordo */
}
/* Bottone in stile */
.product-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    background-color: #BE1A2A;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    align-self: start;
}

/* Hover del bottone in stile Divi */
.product-button:hover {
    background: #9C1523; /* Colore più scuro per effetto hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-product-item {
        flex-direction: column; /* Dispone immagine e testo verticalmente su mobile */
        align-items: center; /* Centra tutto */
    }

    .product-image img {
        max-width: 100%; /* Immagine piena larghezza su mobile */
    }

    .product-details {
        align-items: center; /* Centra il testo su mobile */
        text-align: center;
    }

    .product-title {
        font-size: 18px;
    }

    .product-description {
        font-size: 14px;
    }

    .product-button {
        font-size: 14px;
        padding: 8px 20px;
    }
}
/* Nasconde i primi due stat block */
.wcfm_dashboard_stats .wcfm_dashboard_stats_block:nth-child(1),
.wcfm_dashboard_stats .wcfm_dashboard_stats_block:nth-child(2) {
    display: none;
}
div.wc-order-data-row.wc-order-totals-items.wc-order-items-editable {
    display: none;
}
td.item_cost, td.line_cost {
    display: none;
}
#wcfm_products_simple_submit_button {
	display:none;
}
th.item_cost, th.line_cost {
    display: none;
}

/* Stile generale */
.custom-category-media {
    width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

/* Thumbnail (logo) */
.category-thumbnail {
    flex: 1;
    max-width: 33%; /* Occupa il 40% della larghezza */
}

.category-thumbnail img {
    width: 100%;
    height: auto;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.category-thumbnail img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Video */
.category-video {
    flex: 2;
    max-width: 60%; /* Occupa il 60% della larghezza */
    aspect-ratio: 16 / 9; /* Mantiene proporzioni 16:9 */
    border-radius: 8px;
    overflow: hidden;
}

.category-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Assicura il corretto rendering */
}



/* Descrizione al 100% */
.category-description {
    width: 100%;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* Galleria al 100% */
.category-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.category-gallery a {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.category-gallery a img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
}

.category-gallery a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.cantine-list {
            overflow: hidden; /* Contiene i float */
        }
        .cantina-item {
            float: left;
            width: 25%; /* Default: 4 colonne su desktop */
            box-sizing: border-box;
            padding: 10px; /* Spaziatura interna */
            text-align: center;
        }
        .cantina-item img {
            max-width: 100%;
            height: auto;
            border: 1px solid #ddd;
            border-radius: 8px;
            margin-bottom: 10px;
        }
        @media (max-width: 1024px) {
            .cantina-item {
                width: 33.33%; /* 3 colonne su tablet */
            }
        }
        @media (max-width: 768px) {
            .cantina-item {
                width: 50%; /* 2 colonne su smartphone */
            }
        }