/*
Theme Name: Ottante
Theme URI:
Author:
Author URI:
Description:
Template: lamaro
Version: 1.0
License: 
License URI:
Tags:
Text Domain: ottante
*/

/* Fix img anteprima articoli blog */
.single-post .entry-content .image {
	display: inline-block;
    margin: 0 auto;
}
.single-post .entry-content {
	text-align: center;
}
.single-post .entry-content > div:not(.image):not(.blog-info-post-top) {
	text-align: left;
}

.woocommerce-MyAccount-navigation aside.widget.woocommerce.widget_product_categories > ul li a, .widget-area aside > ul li a {
	display: inline;
}
/* pagine archivio woocommerce */
@media only screen and (min-width: 1600px) {
	.woocommerce ul.products.columns-3 li.product,
	.woocommerce-page ul.products.columns-3 li.product, 
	.woocommerce ul.products[class*="columns-"].columns-3 li.product, 
	.woocommerce-page[class*="columns-"] ul.products.columns-3 li.product {
		width: 25%;
	}
}
@media only screen and (min-width: 1200px) and (max-width: 1599px) {
	.woocommerce ul.products.columns-3 li.product, 
	.woocommerce-page ul.products.columns-3 li.product, 
	.woocommerce ul.products[class*="columns-"].columns-3 li.product, 
	.woocommerce-page[class*="columns-"] ul.products.columns-3 li.product {
		width: 33.33%;
	}
}
@media only screen and (min-width: 768px) and (max-width: 1199px) { 
	.div-sidebar .content-sidebar.woocommerce-sidebar.widget-area {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
	    -webkit-box-orient: horizontal;
		-webkit-box-direction: normal;
		-ms-flex-direction: row;
		flex-direction: row;
		-ms-flex-wrap: wrap;
		flex-wrap: wrap;
	}
	.div-sidebar .content-sidebar.woocommerce-sidebar.widget-area aside {
		width: calc(50% - 10px);
    	margin-bottom: 10px;
	}
	.div-sidebar .content-sidebar.woocommerce-sidebar.widget-area aside:nth-child(odd) {
		margin-right: 10px;
	}
	.div-sidebar .content-sidebar.woocommerce-sidebar.widget-area aside:nth-child(even) {
		margin-left: 10px;
	}
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
	.woocommerce ul.products.columns-3 li.product, 
	.woocommerce-page ul.products.columns-3 li.product, 
	.woocommerce ul.products[class*="columns-"].columns-3 li.product, 
	.woocommerce-page[class*="columns-"] ul.products.columns-3 li.product {
		width: 33.33%;
	}
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
	.woocommerce ul.products.columns-3 li.product, 
	.woocommerce-page ul.products.columns-3 li.product, 
	.woocommerce ul.products[class*="columns-"].columns-3 li.product, 
	.woocommerce-page[class*="columns-"] ul.products.columns-3 li.product {
		width: 33.33%;
	}
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
	.woocommerce ul.products.columns-3 li.product,
	.woocommerce-page ul.products.columns-3 li.product, 
	.woocommerce ul.products[class*="columns-"].columns-3 li.product, 
	.woocommerce-page[class*="columns-"] ul.products.columns-3 li.product {
		width: 50%;
	}
}
@media only screen and (max-width: 479px) {
	.woocommerce ul.products li.product .woocommerce-loop-product__title, 
	.woocommerce-page ul.products li.product .woocommerce-loop-product__title, 
	.woocommerce ul.products[class*="columns-"] li.product .woocommerce-loop-product__title, 
	.woocommerce-page[class*="columns-"] ul.products li.product .woocommerce-loop-product__title {
		font-size: 18px;
	}
}
@media only screen and (min-width: 400px) and (max-width: 479px) {
	.woocommerce ul.products.columns-3 li.product,
	.woocommerce-page ul.products.columns-3 li.product, 
	.woocommerce ul.products[class*="columns-"].columns-3 li.product, 
	.woocommerce-page[class*="columns-"] ul.products.columns-3 li.product {
		width: 50%;
	}
}
/* Form RMA */
@media only screen and (min-width: 768px) {
	.nome-cognome > span.wpcf7-form-control-wrap {
		width: calc(50% - 5px);
		float: left;
	}
	.nome-cognome > span.wpcf7-form-control-wrap.campo-nome {
		margin-right: 10px;
	}
	.indirizzo > span.wpcf7-form-control-wrap.campo-comune {
		width: calc(100% - 340px);
		float: left;
		margin-left: 10px;
		margin-right: 10px;

	}
	.indirizzo > span.wpcf7-form-control-wrap.campo-cap {
		width: 150px;
		float: left;
	}
	.indirizzo > span.wpcf7-form-control-wrap.campo-provincia {
		width: 150px;
		float: left;
	}
	.indirizzo > span.wpcf7-character-count {
		width: 10px;
	}
	.recapiti > span.wpcf7-form-control-wrap.campo-telefono {
		width: calc(40% - 10px);
		float: left;
		margin-right: 10px;
	}
	.recapiti > span.wpcf7-form-control-wrap.campo-mail {
		width: 60%;
		float: left;
	}
	.btn-invia {
		margin-bottom: 0px;
	}
}


/* Btn invia */
.btn-default.disabled:hover, 
.btn-default[disabled]:hover, 
fieldset[disabled] .btn-default:hover, 
.btn-default.disabled:focus, 
.btn-default[disabled]:focus, 
fieldset[disabled] .btn-default:focus, 
.btn-default.disabled.focus, 
.btn-default[disabled].focus, 
fieldset[disabled] .btn-default.focus {
    background-color: #000000;
    border-color: #ffffff;
}
/* Sezione Newsletter */
@media only screen and (min-width: 1200px) and (max-width: 1599px) {
	.subscribe-block section > .vc_row > .wpb_column:first-child {
	    display: -webkit-box;
    	display: -webkit-flex;
    	display: -ms-flexbox;
    	display: flex;
	}
	.subscribe-block section > .vc_row > .wpb_column:nth-child(2) {
		margin-left: 0px;
	}
}
@media only screen and (max-width: 479px) {
	.button.btn-lg, 
	input[type="button"].btn-lg, 
	input[type="submit"].btn-lg, 
	.btn.btn-lg {
		width: 100%;
    	min-width: unset;
	}
}


/* Checkout campi partit iva 
.checkout.woocommerce-checkout #billing_invoice_type > option:last-child,
.select2-container .select2-results__options > li:last-child,
.checkout.woocommerce-checkout .select2-selection__clear {
	display: none;
}
*/

/* - woo cat toggling elements, injected via jQuery - */
/* make list item be relative, to be able to position toggle within this item, if desired */
#content-sidebar .widget_product_categories ul.product-categories > li.cat-parent {
	position: relative;	
}
/* the new toggle element wrapper, which is added via jQuery */
#content-sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle {
	cursor: pointer;
	display: inline-block;
	text-align: center;
	margin-left: 0.5em;
	width: 1.5em;
	line-height: 1em;
	-webkit-transform: rotate(-90deg);
	transform: rotate(-90deg);
	transition: all 0.4s ease;
	width: 20px;
	height: 20px;
	background: rgba(0,0,0,0.05);
	text-align: center;
	line-height: 20px;
	border-radius: 50%;
}
/* when it's popped, style the toggle wrapper differently */
#content-sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle.cat-popped {
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
	background: rgba(0,24,113,1);
	color: white;
}
/* toggle icon */
#content-sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle::before {
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	text-transform: none;
	speak: none;
	content: '+';
	line-height: 20px;
	width: 20px;
	height: 20px;
	text-align: center;
}
/* toggle icon when triggered */
#content-sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle.cat-popped::before {
	content: '\2013';
}
/* hide sub cats by default */
#content-sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle ~ ul.children {
	overflow: hidden;
	max-height: 0;
	transition: all 0.4s ease;
}
/* show sub cats when triggered via jQuery toggle */
#content-sidebar .widget_product_categories ul.product-categories > li.cat-parent .woo-cat-toggle.cat-popped ~ ul.children {
	max-height: 1000px;
}
/* Facebook Messanger */
.fb_dialog_content iframe {
	left: 12px;
	right: unset !important;
}
.fb-customerchat.fb_iframe_widget iframe {
	left: 4px;
	right: unset !important;
}

/* Richiesta di quotazione */
.yith-ywraq-add-to-quote {
	margin-top: 10px;
}
.woocommerce.archive .product_cat-prodotti-a-preventivo .add_to_cart_button {
	display: none;
}