/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.no-link a.nav-top-link {cursor: default !important; }
.nav-line > li > a:before  {background: #123A54  !important;}

/* Riduci dimensione del testo sotto */
#age_okay_endtext {
  font-size: 18px !important;
  line-height: 1.4;
  color: #444;
  margin-top: 20px;
  text-align: center;
}

/* Allinea perfettamente i due bottoni Age Okay */
.age_okay_button_yes,
.age_okay_button_no {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 100px;
  height: 45px;
  margin: 0 8px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: bold;
  background-color: #0078c7;
  color: #123A54;
  text-decoration: none !important;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  line-height: 1;
  vertical-align: middle;
  cursor: pointer;
  text-align: center;
}

/* Hover */
.age_okay_button_yes:hover,
.age_okay_button_no:hover {
  background-color: #005fa3;
  color: #123A54 !important;
}

/* Contenitore centrato */
.age_okay_buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

/* Oscura il filtro Prodotti nello shop */
.woof_container_inner_prodotti {display: none !important;}



@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

  #logo img {
    margin-top: 8px;
  }

}


/* Flatsome */
.button {
    border-radius: 10px !important;
}
.title_box {
    font-size: 40px !important;
}

.hp-highlight img {
    border: solid #d69882 3px;
    border-radius: 10px;
}

.alert {
  color: #000 !important;
}

/* Form di ricerca prodotti */
.searchform-wrapper .aws-search-form input[type="search"] {
    background: #fff !important;
	font-family: Roboto;
    width: 350px;
    height: 40px;
    border-radius: 0px;
    color: #000 !important;
	border: 1px solid #ddd;
}

.searchform-wrapper .aws-search-form input[type="search"]::placeholder {
    font-family: Roboto;
    font-size: 12px;
    color: #888 !important;
}

.searchform-wrapper .aws-search-form input[type="search"]::placeholder { 
  color: #000 !important;
  opacity: 1 !important;
}
.searchform-wrapper .aws-search-form input[type="search"]:-ms-input-placeholder { 
  color: #000 !important;
}
.searchform-wrapper .aws-search-form input[type="search"]::-ms-input-placeholder { 
  color: #000 !important;
}
.searchform-wrapper .aws-search-btn {
  background: #123A54 !important;
  height: 40px !important;
}

/* Arrotondamento corretto */
.searchform-wrapper .aws-search-form input[type="search"] {
    border-top-left-radius: 10px !important;
	border-bottom-left-radius: 10px !important;
}

.searchform-wrapper .aws-search-btn {
  border-top-right-radius: 10px !important;
  border-bottom-right-radius: 10px !important;
}

/* Colore lente */
.searchform-wrapper .aws-search-btn svg {
  color: #F5F3E4 !important;
}

.header-main .flex-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.header-main .flex-col-center {
    justify-self: center;
}

.checkout-button {background-color: #123a54 !important}

#place_order {background-color: #123a54 !important}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

  .searchform-wrapper .aws-search-form input[type="search"] {
    width: 100% !important;
  }

}

/* Prodotti: loop */
.product-small .custom-add-to-cart-add-to-wishlist {
    display: inline-flex;
    width: 60%;
}
.yith-wcwl-add-button .delete_item {
    font-size: 9px !important;
    top: 6px !important;
}
.custom-add-to-cart-add-to-wishlist .added {
  display: none !important;
}
.custom-add-to-cart-add-to-wishlist .added_to_cart {
    padding-top: 23px;
    font-size: 10px;
    color: #c59759;
}

.custom-add-to-cart-add-to-wishlist .custom-button-addtocart-loop {
    display:inline-table;
    margin-left:35px;
}

.woocommerce-ordering .orderby option:first-child, .woocommerce-ordering .orderby option:nth-child(2), .woocommerce-ordering .orderby option:nth-child(3){
	display: none !important;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

  .product-small .custom-add-to-cart-add-to-wishlist {
    display: block !important;
  }
  .product-small .custom-add-to-cart-add-to-wishlist .add_to_cart_button {
    margin-left: 0px !important;
  }

}

.product-small .category {
  display: none;
} 

/* Form CF7 */
.wpcf7-form input {
    border-radius: 10px !important;
    margin: 10px 0px !important;
}

/* Home Page*/
.home-section-1 .show-on-hover {
  display: none !important;
}
.home-section-1 .box-text-products {
  background: #fff !important;
}
.home-section-1 .product-small {
  background: none !important;
}
.home-section-1 .product-small .col-inner {
  padding: 20px !important;
}
.home-section-1 .product-title a {
    color: #000;
    font-weight: bold;
    font-size: 22px;
    display: block;
}
.home-section-1 .woocommerce-Price-amount {
  color: #000 !important;
}

/* Pagina prodotto */

.product-main {
  padding: 40px 0px 0px 0px !important;
}

#tab-additional_information {
  width: 99%;
}
.woocommerce-custom-product-attributes-item {
    display: inline-table;
    text-align: center;
    padding: 20px;
    width: 15.9%;
    min-height: 164px; /* 164px: */
    font-size: 14px;
    border-bottom: solid 2px #efd148;
    margin: 4px;
    background: #f9f9f9;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

  .woocommerce-custom-product-attributes-item { width: 46.9% !important; }

}
.woocommerce-custom-product-attributes-item .woocommerce-product-attributes-item__value {
  display: block;
  line-height: 16px;
}
.woocommerce-custom-product-attributes-item-materie-prime {
    width: 99%;
    display: inline-table;
    text-align: center;
    padding: 20px;
    border-bottom: solid 2px #efd148;
    font-size: 14px;
}
.woocommerce-custom-product-attributes-notes {
    /* border-bottom: solid #efd148 2px; */
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.woocommerce-custom-description .woocommerce-product-attributes-item_note_di_degustazione {
    background: #efd148;
    padding: 3px 13px 3px 3px;
    border-radius: 10px;
}
.woocommerce-custom-description .note-di-degustazione {
  display: block;
  margin-bottom: 12px;
}

.add-to-cart-button a, .cart button {
  background: #123A54 !important;
  color: #fff !important;
  border: solid #123A54 !important;
}
.add-to-cart-button a:hover {
  background: #123A54 !important;
  color: #fff !important;
  border: solid #123A54 !important;
}

.yith-wcwl-add-button a {
  background: #fff !important;
  color: #123A54 !important;
  border: solid #123A54 !important;
}
.yith-wcwl-add-button a:hover {
  background: #f5f5f5 !important;
  color: #fff !important;
  border: solid #123A54 !important;
}

.yith-wcwl-add-button .separator, .yith-wcwl-add-button .view-wishlist {
  display: none !important;
}

[data-icon-label]:after {
  background: #28c1fd !important;}

.product-title.woocommerce-loop-product__title {
  color: #123A54 !important;
  font-weight: bold !important;}

.products .yith-wcwl-add-to-wishlist, .product-small .yith-wcwl-add-to-wishlist {
  text-align: center;
  font-size: 12px;
  padding-left:0px;
}
.yith-wcwl-add-to-wishlist {
  text-align: center;
  font-size: 12px;
  padding-left: 12px;
}
.product-info .yith-wcwl-add-to-wishlist {
    text-align: left;
    font-size: 12px;
    display: inline;
    position: absolute;
    margin-top: 4px;
}



@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
  
  .product-info .yith-wcwl-add-to-wishlist { display: contents !important; }

}

.product-info {
  padding: 10px 10px 0px 10px !important;
}

.forminformazioni {
  text-align: center;
  font-size: 12px;
  margin-left: 110px;
  background: #fff !important;
  color: #123A54 !important;
  border: solid #123A54 !important;
}
.forminformazioni:hover {
  background: #123A54 !important;
  color: #fff !important;
  border: solid #123A54 !important;
}

.product-small .wishlist-icon {
  display: none !important;
}

.wishlist-icon {
	display: none !important;
}

.wishlist-top-link {
    background: #123A54 !important;
    width: 32px !important;
    border-radius: 8px !important;
    padding: 8px !important;
}
.wishlist-top-link img {
  width: 20px;
}

.wishlist-top-link:hover {
    background: #d69882 !important;
}

.header-cart-link {background: #c59759 !important;}
.custom-button-addtocart-loop {
  background: #123A54 !important;
	border: solid #123A54 !important;
  height: 36px;
}
.custom-button-addtocart-loop img {
  width: 30px;
  padding: 4px;
}
.custom-button-wishlist-loop {
  width: 30px;
  padding: 4px;
}

.product-footer .tabs {
  display: none !important;
}
.product-footer .woocommerce-tabs {
  padding: 0px !important;
}

/* Luxury Selection */
.disponibilita {
    background: #c59759;
    color: #fff;
    text-align: center;
}

.product-main .image-tools .icon-play:before {
  color: #fff !important;
}
.product-main .image-tools .product-video-popup {
  border: solid 3px #fff !important;
  background: #27c1fd !important;
  left: 50px;
  top: 54px;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
  
  .product-main .image-tools .product-video-popup {
    left: auto;
    top: auto;
  }

}
.product-main .image-tools .zoom-button {
  width: 20px;
}


/* Filtro prodotti */
.woof_container h4, .woof-h4 {
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: bold;
}
.woof_list label {
    font-size: 12px !important;
    font-weight: 100 !important;
    width: 80% !important;
    height: 22px;
    overflow: hidden;
    margin-left: 0px;
}
.woof_list li {
  height: 20px !important;
}
.woof_container_inner {
    border-bottom: dashed 1px #ccc;
    padding-bottom: 10px;
}
.woof_container_product_cat .woof_block_html_items {
  height: 230px;
}
.woof_container_product_cat .woof_childs_list {
    top: -21px;
    position: relative;
}

/* Contact Form 7 */
.wpcf7-acceptance {float: left !important;}

.searchform-wrapper .searchform .icon-search:before {
    background: #C69754 !important;
}

/* Form di registrazione */
.wppb-woocommerce-customer-billing-address .wppb-shipping-different-address, .wppb-send-credentials-checkbox {
  display: none !important;
}
.wppb-woo-billing-fields li {
  margin: 0px !important;
}
#select_user_to_edit_form {
  display: none !important;
}

/* Checkout */
.includes_tax {
  display: none !important;
}
.woocommerce-checkout .alert-color {
	color: #fff !important;
}

.ajax-loader, .grecaptcha-badge {
	display: none !important;
}

/* Fix bottone add to whishlist nelle pagine shop Ago-2025 */

.yith-wcwl-add-to-wishlist a.button:not(.theme-button-style) {
    padding: 2px 10px 3px !important;
    margin-top: 1px 5px !important;
}



.yith-wcwl-add-to-wishlist a.add_to_wishlist>img, .yith-wcwl-add-to-wishlist a.move_to_another_wishlist>img, .yith-wcwl-add-to-wishlist a.delete_item>img {
    max-width: 32px;
    display: inline-block;
    margin-right: 10px;
    margin-left: 5px !important;
}


/* Single product: quantità + carrello + wishlist sulla stessa riga */
.single-product .product-info form.cart{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:10px !important;
}
.single-product .product-info form.cart .quantity{ order:1; }
.single-product .product-info form.cart .single_add_to_cart_button{ order:2; }
.single-product .product-info .yith-wcwl-add-to-wishlist{
  order:3;
  position:static !important;   /* toglie l'absolute che la faceva sovrapporre */
  margin-left:-10px !important;
  display:inline-flex !important;
  align-items:center;
}

.yith-wcwl-add-button:not(.wishlist-popup .yith-wcwl-add-button) {
    display: block;
    margin-block-end: 0px !important;
}




@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

	/* --- Mobile: metti la wishlist a capo sotto il bottone --- */
@media (max-width: 849px){ /* breakpoint Flatsome */
  .single-product .product-info form.cart{
    flex-wrap: wrap !important;      /* su mobile permetti il ritorno a capo */
    gap: 12px !important;
  }

  .single-product .product-info .yith-wcwl-add-to-wishlist{
    order: 3;                         /* resta dopo quantità e aggiungi al carrello */
    width: 100%;
    flex-basis: 100%;
    margin: 0 !important;             /* annulla il -10px del desktop */
    position: static !important;
    display: flex !important;
    justify-content: flex-start;        /* cuore allineato a sinistra, come nello screen */
    align-items: center;
  }

  /* margini puliti sul pulsante interno */
  .single-product .product-info .yith-wcwl-add-to-wishlist .yith-wcwl-add-button{
    margin: 0 !important;
  }
}

	.badge-container {
    left: -25px !important;
}

}