/*
Theme Name: Carlo Carletti 
Theme URI: https://www.c4web.it
Description: A child theme for Carlo Carletti Wedding Photographer
Author: c4web
Author URI: https://www.c4web.it
Version: 1.0
Text Domain: Carlo Carletti
Template: cassia
*/

/*
.qodef--passepartout {
    background-color: #F2F1EE!important;
    padding: 0px;
    border: 1px solid #999;
    margin: 2%;
}
*/

/* rimozione cerchietto */
.qodef-header-navigation>ul>li>a .qodef-menu-item-text .qodef-svg-holder svg {
	display: none;}
/* Nascondi icona/opener carrello su Cart & Checkout */
body.woocommerce-cart .qodef-widget-side-area-cart-inner,
body.woocommerce-checkout .qodef-widget-side-area-cart-inner {
  display: none !important;
}
/* forzature font */

@media screen and (min-width: 768px) { 
.qodef-fullscreen-menu>ul>li>a {
	font-size: 2.2vw!important;}
}
@media screen and (max-width: 767px) { 
.qodef-fullscreen-menu>ul>li>a {
	font-size: 6vw!important;}
}
/* padding to menu */

.qodef-header--divided #qodef-page-header-inner{
    padding: 0.8% 0;
}
#qodef-page-header, .admin-bar.qodef-header--sticky-display .qodef-header-sticky {
    border-bottom: 0px solid;}

#qodef-page-header .qodef-header-logo-link img{
	max-height: 80%;}

.qodef-mobile-header--minimal #qodef-page-mobile-header {
    padding: 25px 0px;
}
/* forzature tema
.qodef-header--minimal #qodef-page-header {
    height: 130px;
    padding: 0 10%;
}*/
.qodef-woo-theme-button .qodef-svg-holder{
	display:none;
} 

#qodef-fullscreen-area-inner {
    padding: 10%;
}
.qodef-content-grid-1400 .qodef-content-grid {
    padding: 0 10%;
}

.qodef-addons-blog-list .qodef-blog-item .qodef-e-info.qodef-info--top {
    margin-bottom: 1.25em;
}
.elementor-post-navigation .post-navigation__next--title, .elementor-post-navigation .post-navigation__prev--title {
    font-size: 0.8em!important;
}

@media only screen and (min-width: 1441px) {
	#qodef-content-bottom{    padding: 0!important;}
   .home.qodef-content-grid-1400 #qodef-page-inner.qodef-content-grid{
        width: 100%!important;
    }
}
/* stili ecommerce */
.single-product #qodef-page-content{margin-top:100px}
.sku_wrapper{display:none!important;}
.woocommerce-tabs.wc-tabs-wrapper{display:none!important;}

.widget_cassia_core_woo_side_area_cart .qodef-widget-side-area-cart-inner .qodef-m-action {
    position: absolute;
	bottom: 20px!important;
}


/* vedere carrello da mobile */
@media only screen and (max-width: 1024px) {
    #qodef-page-header {
        display: block; 
    }
	 #qodef-page-mobile-header, .qodef-opener-icon.qodef-m.qodef-source--predefined.qodef-fullscreen-menu-opener{
        display: none; 
    }
	.home .qodef-opener-icon.qodef-m.qodef-source--predefined.qodef-fullscreen-menu-opener{
        display: inline-block; 
    }
	#qodef-fullscreen-area .qodef-content-grid{
		width:92%;
	}
	#qodef-page-header .qodef-header-logo-link {
		height: 41px!important;
	}
	.qodef-header--minimal #qodef-page-header-inner .qodef-widget-holder {
    margin-right: 10px;
	}
	#qodef-page-header .qodef-widget-holder .widget {
    margin: 0 3px;
	}
	#qodef-page-header .qodef-widget-holder .widget {
    margin: 0 3px;
	}
	
	#qodef-page-header {
        display: block;
        position: fixed;
        top: 0;
    }
	#qodef-page-wrapper #qodef-page-outer {
        margin-top: 100px!important;
    }
	.home #qodef-page-wrapper #qodef-page-outer {
        margin-top: 0px!important;
    }
	#qodef-content-bottom{padding-top:50px!important}
	
}

/* frecce scorrimento prodotti */

/* Barra nav prodotto – posizionata sotto l'header */
.single-product .c4-prod-nav{
  position: sticky;
  top: 10px;           /* se hai header fissa alta, aumenta (es. 90px) */
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0 12px;
  margin: 50px 0 50px;
	border-top: 1px solid #999;
	border-bottom: 1px solid #999;
}

.c4-prod-nav__btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;

  background: #fff;
 
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: inherit;
}

.c4-prod-nav__btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  border-color: #d5d5d5;
}

.c4-prod-nav__arrow{
  font-size: 18px;
}

.c4-prod-nav__thumb img{
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

@media (max-width: 680px){
  .c4-prod-nav__label{ display:none; } /* su mobile lasciamo solo freccia + thumb */
}



/* footer */
#qodef-content-bottom-inner{
	padding:5% 0 2%;
display: flex;
    align-items: center;
	flex-direction: column;}

#qodef-content-bottom {
    background-color: #efefef;
    padding: 0 10%;
}
.has-text-align-center{text-align:center;}



/* forzature singolo prodotto single product */

#qodef-woo-page.qodef--single .entry-summary .price, #yith-quick-view-content.single-product .entry-summary .price {
    font-size: 20px;
	font-weight: 600;}

#qodef-woo-page.qodef--single form.cart .woocommerce-variation .woocommerce-variation-price>*{
	 
}

.single-product h1{font-size:40px;}
@media screen and (max-width: 767px) { 
.single-product h1{font-size:30px;}
	#qodef-woo-page.qodef--single form.cart .variations th{vertical-align: top;}
}

.pswp__caption{display:none!important;}
/* WooCommerce single product: prezzo + nota (same line) */
.single-product div.product form.cart .single_variation{
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline;
  flex-wrap: wrap;       /* va a capo su schermi stretti */
  gap: .5rem;
}

/* Ordine: prezzo, poi descrizione, poi disponibilità */
.single-product div.product form.cart .single_variation .woocommerce-variation-price{ 
  order: 1;
  font-size: 20px;       /* assicurati che resti a 20px */
  line-height: 1.3;
}
.single-product div.product form.cart .single_variation .woocommerce-variation-description{
  order: 2;
  font-size: 16px;
  font-style: italic;
  margin: 0 0 0 .25rem;  /* piccolo spazio dopo il prezzo */
  line-height: 1.3;
}
/* rende la descrizione inline, senza spaziature extra */
.single-product div.product form.cart .single_variation .woocommerce-variation-description p{
  display: inline;
  margin: 0;
}

/* Disponibilità dopo */
.single-product div.product form.cart .single_variation .woocommerce-variation-availability{ 
  order: 3;
}
/* Separatore "·" fra prezzo e nota + colore tenue */
.single-product div.product form.cart .single_variation .woocommerce-variation-description{
  color: #666;
  white-space: nowrap;           /* prova a restare sulla stessa riga */
}

.single-product div.product form.cart .single_variation .woocommerce-variation-description p::before{
  content: "∼";
  margin: 0 .4rem 0 .2rem;       /* spazio tra prezzo e nota */
  opacity: .6;
  font-style: normal;            /* il puntino non in corsivo */
}



/* STILE CUSTOM PER ELENCO CATEGORIE */
/* === Categorie prodotto: immagine 4:3, titolo sotto, 20px di spazio === */

/* Reset overlay/stili del tema sull'anchor */
ul.products.elementor-grid li.product-category a{
  position: static !important;
  display: block !important;
  background: none !important;
}

/* Immagine categorie in 3:2 */
ul.products.elementor-grid li.product-category a img{
  display: block !important;
  width: 100% !important;
  aspect-ratio: 3 / 2;  /* <- prima era 4/3 */
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Titolo sotto l’immagine */
ul.products.elementor-grid li.product-category h2.woocommerce-loop-category__title{
  position: static !important;
  transform: none !important;
  inset: auto !important;
  margin: .6rem 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: center;     /* metti 'left' se lo preferisci a sinistra */
  line-height: 1.3;
}

/* Rimuovi eventuali overlay/pseudo-elementi del tema */
ul.products.elementor-grid li.product-category a::before,
ul.products.elementor-grid li.product-category a::after{
  content: none !important;
}

/* Spaziatura tra le categorie (~20px) */
ul.products.elementor-grid{
  gap: 20px!important;
  grid-gap: 20px;
	grid-row-gap: 40px !important;
}
/* Fallback se il tema usa flex/float */
ul.products.elementor-grid li.product-category.product{
  margin: 0 !important;
}
ul.products.elementor-grid.columns-3 > li{
  margin-bottom: 40px!important;
}

/* Forza 3 colonne su desktop (opzionale) */
@media (min-width: 1024px){
  ul.products.elementor-grid.columns-3{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FINE STILE CUSTOM ELENCO CATEGORIE */


/* Aggiunge la nota sotto la gallery, solo via CSS */
.single-product .woocommerce-product-gallery::after{
  content: "Click to enlarge.";
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-style: italic;
  color: #666;
  text-align: center;
}

/* Nascondi messaggio PayPal "Pay in X" SOLO nelle schede prodotto */
.single-product .ppcp-messages,
.single-product .ppcp-messages-container,
.single-product [data-pp-message],
.single-product .paypal-message,
.single-product .paypal-messaging,
.single-product .pp-message {
  display: none !important;
}

/* (Facoltativo) elimina eventuali spazi vuoti rimasti sotto al bottone */
.single-product .ppcp-messages-container,
.single-product [data-pp-message] {
  margin: 0 !important;
  padding: 0 !important;
}


/* forzatura bottoni neri */

.widget_cassia_core_woo_side_area_cart .qodef-widget-side-area-cart-inner .qodef-m-action-link {
color: #fff!important;
	padding: 5px 20px!important;
}
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link) {
    min-height: 3em;
    border: 1px solid;
    margin-top: 20px;
}
/* .woocommerce-account */

.woocommerce-account #qodef-page-content .qodef-grid-item{
	margin-top:10vh; 
	margin-bottom:10vh!important;
	min-height:40vh!important}


.woocommerce-error {
	font-weight: bold;
    color: #000;
}
}


/* Nascondi icona/opener carrello su Cart & Checkout */
body.woocommerce-cart .qodef-widget-side-area-cart-inner,
body.woocommerce-checkout .qodef-widget-side-area-cart-inner {
  display: none !important;
}


/* bug text indent in pagina prodotto */

body.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link.woocommerce-loop-product__link{
    
    text-indent: 0!important;
}