/*
 Theme Name:   WineShop Child Theme
 Theme URI:    http://wineshop.themerex.net/
 Description:  WineShop Child Theme
 Author:       ThemeRex
 Author URI:   http://themerex.net/
 Template:     wineshop
 Version:      1.0
 Tags:         flexible-header, custom-background, custom-colors, custom-header, custom-menu, featured-image-header, featured-images, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready
 Text Domain:  wineshop
*/


/* =Theme customization starts here
------------------------------------------------------------ */

body,
body * {
    font-family: 'ITC Souvenir', sans-serif !important;
    font-weight: 300 !important;
}

body strong,
body b {
    font-weight: 400 !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body h1 *,
body h2 *,
body h3 *,
body h4 *,
body h5 *,
body h6 * {
    font-family: 'ITC Souvenir', sans-serif !important;
    font-weight: 500 !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body h1 *,
body h2 *,
body h3 *,
body h4 *,
body h5 *,
body h6 *,
.front_page_section_caption,
table th {
    text-transform: none !important;
}

/* body,
.body_wrap,
.page_wrap,
.page_content_wrap,
header {
    background-color: #e1e7e2;
} */

:root,
body,
header {
    /* --theme-color-bg_color: #e1e7e2 !important; */
    --theme-color-input_text: #2e3334 !important;
    --theme-color-text: #2e3334 !important;
    line-height: 1.5rem;
}

.otgs-development-site-front-end {
    display: none !important
}

button,
button.single_add_to_cart_button,
.single_product_bottom_bar_product_button .tinv-wraper>.tinvwl_add_to_wishlist_button,
.woocommerce div.product form.cart .tinv-wraper>.tinvwl_add_to_wishlist_button,
form.trx_addons_woocommerce_search_form button.trx_addons_woocommerce_search_button {
    background-color: #005656 !important;
    color: white !important;
    box-shadow: none !important;
    border-bottom-width: 2px !important;
    border-top-width: 2px !important;
    border-left-width: 2px !important;
    border-right-width: 2px !important;
    border-radius: 0px;
    text-transform: none!important;
}

button:hover,
button:focus,
button.single_add_to_cart_button:hover,
button.single_add_to_cart_button:focus,
.single_product_bottom_bar_product_button .tinv-wraper>.tinvwl_add_to_wishlist_button:hover,
.woocommerce div.product form.cart .tinv-wraper>.tinvwl_add_to_wishlist_button:hover,
form.trx_addons_woocommerce_search_form button.trx_addons_woocommerce_search_button:hover {
    background-color: var(--theme-color-text_dark) !important;
}

button.adp-popup-close, button.trx_addons_icon-search {
    background: transparent!important;
}

@media (max-width: 1279px) {
    button.trx_addons_icon-search {
        margin-left: -14px;
    }
}

.icons .woocommerce a.icon-shopping-cart {
    background-color: transparent !important;
}

.sc_item_pagination_load_more .nav-links,
.nav-links-more .nav-load-more,
.nav-links-more .woocommerce-load-more,
.woocommerce-links-more .woocommerce-load-more,
.sidebar_small_screen_above .sidebar_control,
.trx_addons_popup_form_field_submit .submit_button,
.simple_text_link,
.show_comments_single .show_comments_button,
form button:not(.components-button),
input[type="button"],
input[type="reset"],
input[type="submit"],
.theme_button,
.sc_layouts_row .sc_button,
.sc_portfolio_preview_show .post_readmore,
.wp-block-button__link,
.post_item .more-link,
div.esg-filter-wrapper .esg-filterbutton>span,
.mptt-navigation-tabs li a,
.wineshop_tabs .wineshop_tabs_titles li a {
    padding-left: 20px !important;
    text-transform: none!important;
}

/* elementi verde identiTEA */
span.onsale {
    background: #005656 !important;
}

.sc_item_subtitle {
    color: #005656 !important;
}

/* hide elements */
.product_meta .sku_wrapper,
.product_meta .product_id {
    display: none !important;
}

.woocommerce div.product .product_title {
    font-size: 1.7rem;
}


iframe {
    min-height: auto !important;
}

#pwgc-message,
#pwgc-to {
    outline: none !important;
}

#stripe-payment-data div.form-row {
    padding: 0px !important;
}

#pwgc-redeem-gift-card-number {
    width: 100% !important;
}

#pwgc-redeem-button {
    padding: 4px 10px !important;
    margin-bottom: 20px !important;
}

.identitea-product-category-title {
    text-align: center;
    border: 1px solid #005656;
    color: #005656;
    padding: 20px;
    border-radius: 12px;
    font-size: 2rem;
    text-transform: none !important;
}

.identitea-product-origin-title {
    text-align: center;
    border-bottom: 1px solid #005656;
    border-top: 1px solid #005656;
    color: #005656;
    padding: 12px;
    padding-bottom: 20px;
    font-size: 1.7rem;
    text-transform: none !important;
    margin-bottom: 24px;
}

.identitea-product-origin-title > small {
    color: darkgrey;
    font-size: 0.6rem;
    text-transform: uppercase!important;
}


#woocommerce_widgets {
    text-align: center;
}

.trx_addons_woocommerce_search_form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.trx_addons_woocommerce_search_form .sc_form_field,
.trx_addons_woocommerce_search_form button {
    flex: 1 0 auto;
    max-width: calc(33.333% - 10px);
    margin: 35px;
}

.trx_addons_woocommerce_search_form button {
    height: 48px !important;
}

@media (max-width: 767px) {
    .trx_addons_woocommerce_search_form {
        flex-direction: column;
    }

    .trx_addons_woocommerce_search_form .sc_form_field,
    .trx_addons_woocommerce_search_form button {
        max-width: 100%;
    }
}

.widget .select_container select,
.woocommerce .woocommerce-ordering select,
.value .select_container select {
    padding-left: 6px !important;
}

body.tax-product_cat .page_content_wrap {
    padding-top: 2rem !important;
}

table.gc-custom-meta td {
    padding: 0px 6px 0px 0px !important;
    vertical-align: top !important;
}

table.gc-custom-meta>tbody>tr:nth-child(2n)>td {
    background-color: inherit !important;
}

img.prod-leaf-icon {
    width: 28px !important;
    margin-top: 6px;
    margin-left: -3px;
}

img.prod-infusion-icon {
    width: 20px !important;
    margin-top: 4px;
    margin-left: -5px;
    margin-right: 5px;
}

.identitea-product-over-description {
    font-size: 16px;
}

table.custom-altitude-origin-harvest-etc tr td {
    padding-left: 0px;
    padding-right: 24px;
    text-align: center;
    /* width: 33.33%; */
}

table.custom-altitude-origin-harvest-etc tr:not(:last-child) td {
    border-bottom: 1px solid lightgrey;
}

table.custom-altitude-origin-harvest-etc tr th {
    background-color: inherit !important;
}

table.custom-altitude-origin-harvest-etc > tbody > tr:nth-child(2n) > td {
    background-color: inherit !important;
}

hr.identitea-content-hr {
    margin: 30px 0px !important;
}

#identitea-cat-hero {
    height: 300px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    justify-content: left;
    align-items: center;
}
@media (max-width: 1279px) {
    #identitea-cat-hero {
        height: 140px;
    }
}

#identitea-cat-hero .identitea-cat-hero-title {
    width: 100%;
    height: 100%;
}

#identitea-cat-hero h1 {
    display: inline-block;
    color: white;
}

.woocommerce div.product form.cart,
.woocommerce #content div.product form.cart,
.woocommerce-page div.product form.cart,
.woocommerce-page #content div.product form.cart {
    margin-bottom: 12px;
}

.entry-summary>span.onsale {
    display: none !important;
}

.entry-summary>.entry-title {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
}

body table.variations tbody tr th.label label {
    font-weight: 600 !important;
}

.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
    margin-bottom: 40px !important;
}

.woocommerce div.product div.images,
.woocommerce #content div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce-page #content div.product div.images {
    margin-bottom: 40px !important;
}

ul.wc-tabs {
    display: none !important;
}

@media (max-width: 1279px) {
    .woocommerce div.product form.cart,
    .woocommerce #content div.product form.cart,
    .woocommerce-page div.product form.cart,
    .woocommerce-page #content div.product form.cart {
        margin-bottom: 0px !important;
    }
}

.woocommerce .list_products_header, .woocommerce-page .list_products_header {
    display: inline!important;
}

.woocommerce .list_products_header, .woocommerce-page .list_products_header .woocommerce-breadcrumb,
.woocommerce .list_products_header, .woocommerce-page .list_products_header .woocommerce-products-header {
    display:none;
}

.woocommerce div.product .summary .stock {
    text-transform: none;
    font-size: 0.8rem;
    border: none;
    margin-bottom: 12px;
}

.woocommerce div.product .summary .stock:after {
    display: none;
}

.wc-proceed-to-checkout #pwgc-redeem-gift-card-form,
.woocommerce-form-coupon-toggle {
    display: none!important;
}

body.woocommerce-checkout .page_content_wrap {
    padding-top: 30px!important;
}

.shop_table_checkout_review table th, .shop_table_checkout_review table td {
    font-size: 16px!important;
    text-transform: none!important;
}

input.wpcf7-submit,
.mailchimp-form-container input[type="submit"] {
    background-color: #005656 !important;
    color: white !important;
    box-shadow: none !important;
    border-bottom-width: 2px !important;
    border-top-width: 2px !important;
    border-left-width: 2px !important;
    border-right-width: 2px !important;
    border-radius: 0px;
    text-transform: none!important;
}

input.wpcf7-submit:hover,
.mailchimp-form-container input[type="submit"]:hover {
    background-color: var(--theme-color-text_dark) !important;
}

.wpcf7-radio input[type="radio"], .wpcf7-checkbox input[type="checkbox"], .wpcf7-acceptance input[type="checkbox"] {
    position: relative!important;
}

.acceptance-cf6-cl {
    display: inline-block;
    float: left;
    width: 30px;
    cursor: pointer;
}

.cf7-container-gc {
    border: 3px solid #005653;
    padding: 30px;
    margin: 0 auto; 
    width: 50%;
}

@media screen and (max-width: 1124px) {
    .cf7-container-gc {
        width: 60%;
    }
}

@media screen and (max-width: 1024px) {
    .cf7-container-gc {
        width: 80%;
    }
}

@media screen and (max-width: 767px) {
    .cf7-container-gc {
        width: 90%;
    }
}

input[type="radio"] + label:before, 
input[type="checkbox"] + label:before, 
.wpcf7-list-item-label.wpcf7-list-item-right:before {
    border-color: #005656 !important;
    border-width: 1.5px;
}

input.fill_inited {
    border-bottom: 1px solid grey;
}

.mailchimp-form-container {
    width: 90%;
    max-width: 290px;
    margin:auto; 
}

body.home .mailchimp-form-container {
    margin: 0px;
}

.mailchimp-form-container input {
    width: 100%;
}

#trx_addons_login_popup input[type="submit"] {
	color: #FFFFFF !important;
}


/* === INIZIO WhatsApp Banner Style === */
.identitea-cta-whatsapp-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #c7e4b5, #e1f6ef);
  border-radius: 8px;
  padding: 20px;
  margin-top: 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  flex-wrap: wrap;
  gap: 16px;
}

.cta-whatsapp-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--theme-color-text_link);
}

.cta-whatsapp-text p {
  margin: 5px 0 0;
  font-size: 18px;
  color: var(--theme-color-text_link);
}

.cta-whatsapp-button a {
  background-color: #25d366;
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
}

.cta-whatsapp-button a:hover {
  background-color: #1ebe5d;
}

/* === FINE WhatsApp Banner Style === */


/* === INIZIO Aggiunto al carello messaggio === */
.identitea-add-to-cart-message {
  background-color: #e1f6ef;
  border-left: 5px solid #005653;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  margin: 20px 0;
  color: #222;
  width: auto;
}

.identitea-message-text {
  margin: 0 0 12px 0;
}

.identitea-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.identitea-btn {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out;
}

.identitea-btn-primary {
  background-color: #005653;
  color: #fff !important;
}

.identitea-btn-primary:hover {
  background-color: #003f3d;
}

.identitea-btn-secondary {
  background-color: #ccc;
  color: #222;
}

.identitea-btn-secondary:hover {
  background-color: #bbb;
}

/* === FINE Aggiunto al carello messaggio === */

/* === INIZIO Faq e come si usa === */

.travel-guide-section,
.faq-section {
  max-width: 100%;
  margin: 4rem auto;
  font-family: "ITC Souvenir", serif;
  text-align: left;
}

/* Titoli sezioni */
.travel-guide-section h3,
.faq-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-weight: bold;
}

/* Singola voce */
.guide-item,
.faq-item {
  border-top: 1px solid #ccc;
  margin-bottom: 1.5rem;
}

.guide-item:last-child,
.faq-item:last-child {
  border-bottom: 1px solid #ccc;
}

/* Stile <summary> */
.guide-item summary,
.faq-item summary {
  cursor: pointer;
  padding: 1rem;
  font-weight: bold;
  list-style: none;
  position: relative;
  text-align: left;
}

/* Rimuove la freccia nativa e sostituisce con +/– */
.guide-item summary::marker,
.faq-item summary::marker {
  display: none;
  content: "";
}

.guide-item summary::after,
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  font-size: 1.2rem;
  font-weight: normal;
  transition: transform 0.2s;
}

.guide-item[open] summary::after,
.faq-item[open] summary::after {
  content: "–";
}

/* Contenuto interno */
.guide-item p,
.faq-item p {
  padding: 0 1rem 1rem;
  margin: 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.6;
}
/* === FINE Faq e come si usa === */


.product_list_widget .woocommerce-mini-cart-item a {
    font-size: 18px;
    text-transform: initial;
}
