/*
Theme Name: Storefront Child
Theme URI: https://www.editore.ch/storefront-child
Description: Tema child per Storefront.
Author: SourceWay Sagl
Author URI: https://www.sourceway.com
Template: storefront
Version: 1.0.0
*/

/* Inizio degli stili personalizzati */

/* fonts */

	@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
	@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');
	@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');


	.merriweather-light {
	  font-family: "Merriweather", serif;
	  font-weight: 300;
	  font-style: normal;
	}

	.merriweather-regular {
	  font-family: "Merriweather", serif;
	  font-weight: 400;
	  font-style: normal;
	}

	.merriweather-bold {
	  font-family: "Merriweather", serif;
	  font-weight: 700;
	  font-style: normal;
	}

	.merriweather-black {
	  font-family: "Merriweather", serif;
	  font-weight: 900;
	  font-style: normal;
	}

	.merriweather-light-italic {
	  font-family: "Merriweather", serif;
	  font-weight: 300;
	  font-style: italic;
	}

	.merriweather-regular-italic {
	  font-family: "Merriweather", serif;
	  font-weight: 400;
	  font-style: italic;
	}

	.merriweather-bold-italic {
	  font-family: "Merriweather", serif;
	  font-weight: 700;
	  font-style: italic;
	}

	.merriweather-black-italic {
	  font-family: "Merriweather", serif;
	  font-weight: 900;
	  font-style: italic;
	}

	.source-sans-3-<uniquifier> {
	  font-family: "Source Sans 3", sans-serif;
	  font-optical-sizing: auto;
	  font-weight: <weight>;
	  font-style: normal;
	}
	
	

/* css html */

	html,
	body {
		background-color:#555555;
		font-family: 'Libre Baskerville', serif;
		font-weight: normal;
		font-style: normal;
		letter-spacing:0.05em;
		color:#000;
	}

	h1, h2, h3, h4, h5, h6 {	  
	  font-family: 'Montserrat', sans-serif;
	  font-optical-sizing: auto;
	  font-style: normal;
	  font-weight: 400;
	  letter-spacing: 0.01em;
	}

	h1, h2, h3, h4, h5, h6,	a, p, .card-title, .post-title {
		color:#000;
	}
	
	a:focus {
		outline: none; /* Rimuove il contorno di focus */
	}
	
	a:hover {
		text-decoration: none;
		color:#004494;
	}
	
	input:focus, 
	textarea:focus, 
	select:focus {
		outline: none!important;
		box-shadow: none!important;
	}
	
	img {
		border-radius: 0px;
	}
	
/* css woocommerce box */

	.woocommerce {
		display:block;
		width:100%;
	}

/* css header icon social */

.social-links img {
    width: 45px;
    height: auto;
	margin-right:15px;
}

@media (max-width: 768px) {
    .social-links img {
        width: 35px;
    }
}

.cart-button,
.cart-button:hover {
	font-size:0.7em;
	margin:0;
	padding:0;
	border:0;
	background-color:transparent;
	color:#000;
	text-transform:uppercase;
}

.cart-button * {
	font-size: 1.09em;
	margin: 0 0 0 5px;
	padding: 5px inherit;
	border: 0;
	background-color: #004494;
	color: #fff;
	border-radius: 20px !important;
	text-transform: uppercase;
}

/* css header nav */

header#masthead nav.navbar {
	padding:0;
}

#navbarNavAltMarkup .navbar-nav a {
	font-family: "Source Sans 3", sans-serif;
	font-weight: 400;
	font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	color:#000;
	font-size:1rem;
	text-transform: lowercase;
	transition: color 0.3s ease; /* Aggiunta della transizione sul colore */
	padding:0.4rem;
}

@media (min-width: 992px) {
    #navbarNavAltMarkup .navbar-nav a {
        font-size: 1.2rem;
    }
}

#navbarNavAltMarkup .navbar-nav a:hover,
#navbarNavAltMarkup .navbar-nav a.active {
	color:#004494;
}

#navbarNavAltMarkup a:first-child {
	padding-left:0px;
}

/* Stile base per il pulsante mobile */
#custom-toggle-button {
    background: none;
    border: solid 1px #000;
	border-radius:none;
    color: black;
    padding: 0.3em 0.5em;
    cursor: pointer;
    outline: none;
    transition: transform 0.3s ease; /* Animazione di rotazione */
}

/* Rimuove ombra o evidenziazioni all'interazione */
#custom-toggle-button:focus,
#custom-toggle-button:active {
    outline: none;
    box-shadow: none;
}

/* Animazione al click */
#custom-toggle-button:active i {
    transform: scale(0.9); /* Leggera contrazione al click */
    transition: transform 0.1s ease;
}

/* Ruota l'icona per indicare l'apertura del menu */
#custom-toggle-button.menu-open i {
    transform: rotate(90deg); /* Rotazione di 90 gradi quando il menu è aperto */
    transition: transform 0.3s ease;
}


/* css header search */

form[role="search"] input.form-control {
	background-color:#fff;
	box-shadow: none;
	border:solid 1px #004494;
}

form[role="search"] div.input-group-append button {
	background-color:#fff;
	box-shadow: none;
	border:solid 1px #004494;
}

/* css breadcrumb*/

.storefront-breadcrumb {
	display:none;
}

.breadcrumbs {
	display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    white-space: nowrap;
	margin: 20px 0 30px 0;
	font-size: 1em;
	background-color: #f2f2f2a8;
	padding: 0.8em 1em;
}

.breadcrumbs a {
	text-overflow: ellipsis;
    overflow: hidden;
    display: inline-block;
    color: #004494; /* Colore del link */
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 5px;
}

@media (max-width: 768px) {    
    .breadcrumbs {
        font-size: 0.8em!important;
    }
}

/* css sidebar */

#wrapper-secondary-fixed {
	display:initial;
}

#wrapper-secondary-fixed.fixed {
	position:fixed;
}

.wrapper-articoles-sidebar h5 {
	white-space: break-spaces;
	
}

/* css page */

	.wrapper-page-white {
		background-color:#fff;
	}

/* css category articles */

	.search article,
	.archive.category article {
		margin:0 0 3em;
		border-bottom: solid 1px #dad8c9;
		padding-bottom: 1em;
	}
	
	.wrapper-category-articles h2 {
		margin:0px;
		color: #0b435e;
		padding-top: 0.8em;
		padding-bottom: 0.3em;
		transition: color 0.5s ease;
		font-size:1.4em;
	}
    
	.wrapper-category-articles h2::first-letter {
		text-transform: uppercase;
	}
	
	.wrapper-category-articles a:hover h2 {
		color: #000;
	}
	
	.wrapper-cover-articles {
		min-height: 350px;
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain;
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: flex-start;
		align-items: stretch;
		align-content: stretch;
		border: 1px solid #dad8c9;
	}
	
	.wrapper-cover-articles .post-date {
		padding: 1em;
		position: absolute;          /* Posiziona l'elemento in modo assoluto */
		background-color: #dad8c9;
		font-size: 0.85em;
		color: #0b435e;
		z-index: 1;                 /* Assicura che sia visibile sopra altri contenuti */
	}
	
	.mask-cover-bg {
		width: 100%;
		display: flex;
		background-color: rgba(255, 255, 255, 0);
		transition: background-color 0.5s ease;
		justify-content: flex-end;
		align-items: center;
	}
	
	.mask-cover-bg img {
		max-width: 50px;
		margin-right: 40px;
		transition: margin-right 0.5s ease;
	}
	
	.wrapper-category-articles a:hover .mask-cover-bg img {
		margin-right: 30px;
	}
	
	.wrapper-category-articles a:hover .mask-cover-bg {
		 background-color: rgba(218, 216, 201, 0.3);
	}
	
	.wrapper-category-articles .post-meta {
		padding:1em 3em 0 3em;
	}
	
	.wrapper-category-articles .post-excerpt {
		padding:0.5em 3em;
	}

/* css single post articoles */

.wrapper-content-post-title h1 {
	margin:0.5em 0 0 0;
	font-size:2em;
}

.wrapper-content-post-img {
	background-position:center;
	background-size:contain;
	min-height: 450px;
	border: 1px solid #dad8c9;
	background-repeat:no-repeat;
}

.wrapper-content-post-meta {
	padding: 1em 3em 0 3em;
}

.wrapper-content-post-text {
	padding: 0.5em 3em;
}

/* css post page */

.wrapper-content-post-page-text {
	padding: 1.5em 3em 0.5em 3em;
}

/* css product category */

ul.products li.product {
	padding-bottom:0.8em;
	/* border-bottom:rgba(30, 92, 122, 0.3) solid 1px; */
}

.woocommerce-LoopProduct-link.woocommerce-loop-product__link img {
	width: auto;
	height: 350px;
	object-fit: contain;
	object-position: bottom;
}

.button.product_type_simple.add_to_cart_button,
.button.product_type_variable.add_to_cart_button,
.button.product_type_simple {
	width: 100%;
	margin-top: 1em;
	margin-bottom: 0.5em !important;
	background-color: transparent;
	color: #004494;
	font-family: "Source Sans 3", sans-serif;
	text-transform: uppercase;
	border-radius: 0px;
	font-size: 0.85em;
	font-weight:700;
	padding:0px;
	text-align:left;
}

.button.product_type_simple.add_to_cart_button::before,
.button.product_type_variable.add_to_cart_button::before {
    content: '';
    display: inline-block;
    width: 16px; /* Larghezza dell'icona */
    height: 16px; /* Altezza dell'icona */
    margin-right: 8px; /* Spazio tra l'icona e il testo */
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"%3E%3Cpath fill="%23004494" d="M0 24C0 10.7 10.7 0 24 0L69.5 0c22 0 41.5 12.8 50.6 32l411 0c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3l-288.5 0 5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5L488 336c13.3 0 24 10.7 24 24s-10.7 24-24 24l-288.3 0c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5L24 48C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM252 160c0 11 9 20 20 20l44 0 0 44c0 11 9 20 20 20s20-9 20-20l0-44 44 0c11 0 20-9 20-20s-9-20-20-20l-44 0 0-44c0-11-9-20-20-20s-20 9-20 20l0 44-44 0c-11 0-20 9-20 20z"%3E%3C/path%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle; /* Allinea verticalmente al testo */
}

.woocommerce-loop-product__title,
.woocommerce-LoopProduct-link.woocommerce-loop-product__link span.price,
.woocommerce-LoopProduct-link.woocommerce-loop-product__link span.product-isbn,
.woocommerce-LoopProduct-link.woocommerce-loop-product__link span.product-authors{
	text-align:left;
	display:block;
	margin-bottom: 0.15em !important;
	font-size:0.75rem;
}

.woocommerce-LoopProduct-link.woocommerce-loop-product__link span.product-isbn,
.woocommerce-LoopProduct-link.woocommerce-loop-product__link span.product-authors{
	font-size:0.75rem;
}

.woocommerce-LoopProduct-link.woocommerce-loop-product__link span.onsale {
	display:block;
	background-color:#bde4aa;
	border:none;
	border-radius:0px;
	padding: 0.5em 1em;
	position:absolute;
	top:0;
	color:darkolivegreen;
}

/* css product page */

/*
.woocommerce-product-details__short-description * {
	font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
	font-size: 2em;
    line-height: 1.214;
    letter-spacing: -1px;
	margin-bottom:1em!important;
}
*/

.flex-viewport {
	border: solid 1px;
	padding:1em;
	height:auto!important;
}

.woocommerce-product-gallery__wrapper {
	/* border: solid 1px; */
	padding: 1em;
}

.flex-viewport .woocommerce-product-gallery__wrapper {
	border:none;
	padding:0em;
}

.woocommerce-product-gallery__image img {
  /* height: 500px; */
  border-radius: 0px;
  object-fit: contain;
  box-shadow:0 0 5px rgba(0, 0, 0, 0.4);
}

.stock.available-on-backorder {
	background-color: #dad8c9;
	display: block;
	font-weight: bold;
	padding: 0.5em;
	text-align: center;
	text-transform: uppercase;
	font-size: 0.8em;
}

.single-product .sku_wrapper {
	display: none!important;
}

/* css call to action front */

	.wrapper-section-call-to-action {
		background-image: url("/wp-content/uploads/2025/04/cover-front.jpg");
		background-size: cover;
		background-position: center;
		background-repeat: no-repeat;
		clear: left;
	}
	
	.wrapper-section-call-to-action * {
		color:#000;
		font-family: 'Libre Baskerville', serif;
		text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff;
	}
	
	.wrapper-section-call-to-action h1,
	.wrapper-section-call-to-action h2,
	.wrapper-section-call-to-action h3,
	.wrapper-section-call-to-action h4,
	.wrapper-section-call-to-action h5,
	.wrapper-section-call-to-action h6 {
		margin:3.5em 0;
		width:100%;
	}
	
	@media (max-width: 768px) {
		.section-call-to-action-h-top {
			margin: 2em 0 0 0!important;
		}

		.section-call-to-action-h-bottom {
			margin: 0 0 2em 0!important;
		}
	}

/* css agenda front */

	.wrapper-section-agenda-card.container-fluid {
		padding:3em 0 0 0;
		margin:0;
		background-color:#fff;
	}
	
	.wrapper-section-agenda-card .col-lg-4 {
		margin-bottom:3em;
	}
	
	.wrapper-card-agenda-front {
		background-color: #fff;
		border-radius: 1em;
		padding: 0 0 1.5em;
	}
	
	.wrapper-img-card-agenda-front {
		min-height:350px;
		background-position:center;
		background-size:contain;
		background-repeat: no-repeat;
		/*
		border-top-left-radius: 1em;
		border-top-right-radius: 1em;
		*/
	}
	
	.wrapper-category-card-agenda-front {
		margin-bottom:0.5em;
		display:none;
	}
	
	.wrapper-category-card-agenda-front a {
		font-size:12px;
		text-transform:uppercase;
		font-family: "Source Sans 3", sans-serif;
	}
	
	.wrapper-text-card-agenda-front {
		padding:1em 0px 0px 0px;
	}
	
	.wrapper-text-card-agenda-front * {
		color:#000;
	}
	
	.wrapper-content-card-agenda-front p {
		font-size:14px;
		margin-bottom:0px;
	}
	
	.wrapper-button-card-agenda-front {
		padding:0 1em;
	}
	
	.wrapper-button-card-agenda-front a {
		/* background-color: #2e3a4b; */
		color: white;
		text-transform: uppercase;
		/* border:solid 1px #2e3a4b; */
		font-size:14px;
		font-family: "Source Sans 3", sans-serif;
		border-radius: 1.5em;
	}

/* css front magazine */

.wrapper-section-magazine {
	background-color:#f6f6f7;
	margin:0;
	padding:2em 0;
	float:left;
}

.wrapper-section-magazine .woocommerce-LoopProduct-link.woocommerce-loop-product__link img {
	width: 100%;
	height: auto;
}

.wrapper-section-magazine .magazine-info {
	text-align: center;
	font-size:small;
}

.wrapper-section-magazine .magazine-info strong {
	text-transform: uppercase;
	display: block;
	margin: 0.5em 0;
	font-family: 'Montserrat', sans-serif;
	font-optical-sizing: auto;
	font-weight: normal;
	font-style: normal;
	font-size: 1.5em;
}



.button-magazine-front-top {
border: none;
  font-family: "Source Sans 3", sans-serif;
  text-transform: uppercase;
  padding:0.5em 1em!important;
  font-size: 0.85em;
  letter-spacing: 0.05em;
  width: 100%;
  display: block;
  color: #000!important;
  text-align: center;
  background-color: #2e3a4b!important;
  border-radius: 1.5em!important;
}

.wrapper-section-magazine .button-a-magazine-front,
.button-magazine-front {
	border:none;
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	padding:0;
	font-size: 0.85em;
	color:#000;
	border-radius:0px;
	letter-spacing: 0.05em;
	width: 100%;
	background-color: transparent;
	text-transform: uppercase;
	border-radius: none;
	font-weight: 500;
}

.wrapper-section-magazine .button-a-magazine-front:hover,
.button-magazine-front:hover {
	background-color: transparent;
}

.wrapper-section-magazine .button-a-magazine-front span {
	text-align:center;
	width:100%;
}

.wrapper-section-magazine .button-a-magazine-front:hover {
	background-color:transparent!important;
}

.button-magazine-front-top:hover {
  background-color: #2e3a4b!important;
}
	
/* css page collane */

	.wrapper-container-page-series {
		background-color:#fff;
		padding-top:2em;
	}

	.wrapper-link-page-series {
		display:block;
		overflow:hidden;
		margin-bottom:2em;
	}

	.wrapper-image-page-series {
		display: block;
		height: 120px;
		width: 120px; /* Mantiene una dimensione fissa */
		background-position: center;
		background-size: cover;
		background-repeat: no-repeat;
		box-shadow: 0 0 5px rgba(0, 0, 0, 0.4); /* Ombra in tutte le direzioni */
		border-radius: 5px; /* Aggiungi angoli arrotondati se desiderato */
		margin: 10px 10px 1.5em 10px;
	}

	.wrapper-title-page-series {
		flex: 1; /* Permette al titolo di occupare lo spazio rimanente */
		display: flex;
		align-items: center; /* Allinea verticalmente al centro */
		/* Se desideri un padding, puoi aggiungerlo qui */
	}
	
	.wrapper-description-page-series p {
		margin-bottom:0px;
		font-size:0.9em;
		color: #6d6d6d;
	}
	
/* css page autori */

	.wrapper-container-page-authors {
		background-color:#fff;
		padding-top:2em;
		width:100%;
	}
	
	.wrapper-container-page-authors ul {
		margin:0;
		list-style:none;
	}
	
	.wrapper-container-page-authors #authorTabContent {
		margin-bottom:2em;
	}
	
	.wrapper-container-page-authors #authorTabContent {
		padding:1.5em 0;
	}
	
	.wrapper-container-page-authors #authorTabContent .author-publications {
	font-size: 0.8em;
	}

/* css blog */
	.previous-category-navigation *,
	.next-category-navigation * {
		font-size:small;
	}


/* css newsletter footer */
	
	.wrapper-newsletter.container-fluid {
		padding:3em 0;
		background-color:#f6f6f7;
		display:none;
	}
	
	.wrapper-newsletter h3 {
		font-family: 'Libre Baskerville', serif;
		font-weight: normal;
		font-style: normal;
		letter-spacing: 0.05em;
	}
	
	.wrapper-newsletter form {
		margin-bottom:1em;
	}
	
	.wrapper-newsletter input {
		background-color:inherit;
		border:solid 1px #000;
		border-radius:0px;
		padding:1.5em 1em;
	}
	
	.wrapper-newsletter button {
		background-color: #555555;
		color: white;
		text-transform: uppercase;
		border:solid 1px #555555;
		font-size:16px;
		padding:0.8em 1em;
		border-radius:inherit;
	}
	
	.wrapper-newsletter button:hover {
		background-color: #000;
		border:solid 1px #000;
		color: white;
	}
	
	.wrapper-newsletter p {
		font-size:14px;
		margin:0;
	}

/* css footer */

	footer * {
		color:#fff;
	}
	
	footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
		text-transform:uppercase;
	}
	
	footer p {
		line-height: 2em;
		font-size: smaller;
	}
	
	.footer-menu-css ul {
		margin:0px;
		list-style: none;
	}
	
	/*
	.footer-menu-css ul a::before {
		content: "- ";
	}
	*/
	
	.footer-menu-css ul a {
		text-decoration:none;
		color:#fff!important;
		display:block;
		padding:3px 0px 3px;
		transition: color 0.3s ease; /* Aggiunta della transizione */
		font-size:0.8em;
	}
	
	.footer-menu-css a:hover,
	.footer-menu-css ul a:hover,
	.footer-menu-css ul a[aria-current="page"] {
		color:#dad8c9!important;
	}
	
	.footer-menu-css ul a:first-child {
		padding:0px 0px 3px;
	}
	
	.wrapper-footer-bottom {
		font-size:0.7em;
	}
	
/* Stile per i tablet in modalità verticale (larghezza inferiore a 768px) */
@media (min-width: 768px) and (max-width: 992px) {
    .site-main ul.products li.product {
        width: 45%!important; /* Imposta due colonne */
        margin-right: 5%!important; /* Aggiusta lo spazio tra le colonne */
		clear: none !important;
    }

    Ogni secondo elemento nella riga (seconda colonna) 
    .site-main ul.products li.product:nth-child(even) {
        margin-right:0px!important; /* Rimuovi margine destro per la seconda colonna */
    }
}

/* Desktop - 4 colonne */
ul.products.columns-4 li.product-front {
    width: 23.5%; /* Regola per 4 colonne */
    float: left;
    margin-right: 1.5%; /* Spaziatura tra colonne */
    margin-bottom:1em; /* Spazio sotto ogni prodotto */
	list-style: none;
}

/* Tablet verticale - 2 colonne */
@media (max-width: 1024px) {
    ul.products.columns-4 li.product-front {
        width: 48%; /* Regola per 2 colonne */
        margin-right: 2%; /* Spaziatura tra colonne */
    }

    /* Rimuovi il margine destro per l'ultimo prodotto della riga */
    ul.products.columns-4 li.product-front:nth-child(2n) {
        margin-right: 0; 
    }
}

/* Mobile - 1 colonna */
@media (max-width: 768px) {
    ul.products.columns-4 li.product-front {
        width: 100%; /* Regola per 1 colonna */
        margin-right: 0; /* Nessuna spaziatura tra colonne */
    }
}

ul.products.columns-4 li.product-front a {
	display:block;
}

/* Stile per il titolo dei prodotti */
.home .woocommerce-loop-product__title {
	font-size: 1.2em; /* Regola la dimensione del titolo */
	margin: 10px 0; /* Margine sopra e sotto */
}

/* Stile per il prezzo */
.home .price {
	font-weight: bold; /* Grassetto per il prezzo */
	color: #333; /* Colore del prezzo */
}

/* Stile per i dettagli aggiuntivi (ISBN e Autore) */
.home .product-isbn,
.home .product-authors {
	display: block; /* Mostra in un nuovo blocco */
	font-size: 0.9em; /* Dimensione del font per i dettagli */
	color: #666; /* Colore per i dettagli */
	margin-top: 5px; /* Spazio sopra i dettagli */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: black; /* Sfondo nero per le frecce */
    border-radius: 50%; /* Rende le frecce tonde */
}

.carousel-control-prev,
.carousel-control-next {
    color: white; /* Colore del testo delle frecce */
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.5); /* Sfondo semitrasparente al passaggio del mouse */
}

.wp-admin table.wp-list-table .taxonomy-pa_autore.column-taxonomy-pa_autore,
.wp-admin table.wp-list-table .manage-column.column-taxonomy-pa_autore {
	display:none!important;
}

/* front list new products */
.wrapper-front-latest-products {
    background-color: #fff;
    float: left;
}

/* Larghezza fissa per l'immagine a sinistra su schermi più grandi */
.card-img-left {
    width: 150px;
    flex-basis: 150px;
    height: 250px !important;
    padding: 10px;
}

/* Immagine all'interno a 100% */
.bg-image {
    background-size: auto 100%;
    background-position: center;
    height: 220px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); /* Aggiunge un'ombra più visibile attorno all'immagine */
}

.card-text {
    font-size: 14px;
}

/* Comportamento della card in dispositivi mobili e tablet verticale */
@media (max-width: 768px) {
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Disposizione verticale della card in mobile */
    .card.flex-lg-row {
        flex-direction: column;
    }

    /* Vedere tutto il testo senza troncamenti su mobile */
    .card-text {
        white-space: normal; /* Permette al testo di andare a capo */
        overflow: visible;   /* Rende visibile tutto il testo */
        text-overflow: clip; /* Rimuove l'ellissi */
    }
    
    .text-truncate {
        white-space: normal; /* Permette al testo di andare a capo */
        overflow: visible;   /* Rende visibile tutto il testo */
        text-overflow: clip; /* Rimuove l'ellissi */
    }
}

/* Visualizzare completamente il testo su desktop */
@media (min-width: 769px) {
    .card-text {
        max-height: none; /* Rimuove la limitazione dell'altezza su desktop */
    }

    .text-truncate {
        white-space: normal; /* Permette il testo di andare a capo su desktop */
        overflow: visible;
        text-overflow: clip;
    }
}

/* Impedisce alla descrizione di superare il layout della card */
.card-body {
    display: flex;
    flex-direction: column;
    height: 100%; /* Imposta l'altezza al 100% della card */
    overflow: hidden;
}

/* Assicurati che la card stessa non "sfondi" */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: none; /* Rimuove il bordo dalle card */
    background-color: transparent !important;
}

/* Forza il pulsante a rimanere sempre in fondo alla card */
.card-body .btn {
    margin-top: auto;
}

/* Rimuovi il bordo dalla card e il pulsante Dettagli */
.card-body .btn {
    display: none; /* Nasconde il pulsante Dettagli */
}

.icon-arrow-dx {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

ul.products li.product {
	margin-bottom:1em;
}

ul.products li.product p.price .woocommerce-price-suffix {
	display:none;
}

.woocommerce-ordering {
	width:100%;
}

.wc-block-components-radio-control-accordion-content small {
	font-size:initial!important;
	color:initial!important;
}

.page-id-9 .wp-block-product-new {
	display:none;
}

/* mod 02.12.2024 */

body.page-id-10 .wrapper-content-post-page-text {
	padding:0px;
}

/* mod 03.12.2024 */

.logged-in .wrapper-content-post-page-text {
	padding:0px;
}

.woocommerce-orders-table.woocommerce-MyAccount-orders.shop_table.shop_table_responsive.my_account_orders.account-orders-table,
.woocommerce-pagination.woocommerce-pagination--without-numbers.woocommerce-Pagination {
	margin-bottom:1em;
}

.woocommerce-MyAccount-navigation {
	margin-top:2em;
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin-left:0px;
}

/* mod 27.03.2025 immagini quadrate */

.square-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 5px;
  box-sizing: border-box;
}

.square-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  opacity: 0;
  transition:
    width 0.2s ease,
    height 0.2s ease,
    transform 0.2s ease,
    opacity 0.4s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.square-image img.visible {
  opacity: 1;
}

/* mod 2025.04.30
.product-title {
  text-transform: uppercase;
}
*/

.product-short-description {
	font-size:12px;
}

/* mod 28.03.2025 header */

@media (min-width: 768px) {
	.logo-header {
		max-width: 450px;
	}
}

/* mod 31.03.2025 */

.woocommerce-pagination,
.woocommerce-pagination ul,
.woocommerce-pagination li,
.woocommerce-pagination a {
  background: none !important;
  background-color: transparent !important;
  color: #000 !important;
}

/* mod 01.04.2025 */

#author-tabs .nav-link {
	padding: .5rem 0.3rem;
}

/* mod 02.04.2025 */

#wrapper-menu-pc .menu-main-menu-container {
	width:100%;
}

#wrapper-menu-pc .menu-main-menu-container ul {
	list-style: none;
	margin:0;
	padding:0;
}

#wrapper-menu-pc .menu-main-menu-container ul li {
	display:inline-block;
}

#wrapper-menu-pc .menu-main-menu-container ul li a {
	font-family: 'Montserrat', sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.01em;
	color:#000;
	text-transform: lowercase;
}

#wrapper-menu-pc .menu-main-menu-container ul li a:hover,
#wrapper-menu-pc .menu-main-menu-container ul li a[aria-current="page"] {
	color:#004494;
}

/* mod 03.04.2025 */

@media (min-width: 768px) {
  .single-product div.product .woocommerce-product-gallery {
    width: 25%;
  }
}

@media (min-width: 768px) {
  .single-product div.product .summary {
    width: 69.1176470588%;
  }
}

/* mod 03.04.2025 accordion dettaglio prodotto */

#accordionExample .card-header {
	padding: 0;
	margin-bottom: 0;
	background-color:transparent;
	border-bottom: 2px solid rgba(0,0,0);
}

#accordionExample button,
#accordionExample button:hover {
	padding: 0;
	text-transform:uppercase;
	border-radius:0px;
	background-color:transparent;
	border:none;
	text-decoration:none;
	color:rgba(0,0,0);
	font-size: 1.2rem;
	font-family: 'Montserrat', sans-serif;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 320 512'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0L160 284.1 256.5 159.8c9.2-9.6 24.4-9.8 33.9-0.5l23 22.5c9.5 9.3 9.8 24.5 0.5 33.9l-136 136c-9.4 9.4-24.6 9.4-34 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 0.75rem;
	padding-right: 1.5rem;
	cursor: pointer;
}

#accordionExample .card-body {
	padding: 1.25rem 0px;
}

#accordionExample .card-body {
	opacity: 0;
	transform: translateY(-10px);
	transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
	transition-delay: 0.1s;
}

#accordionExample .collapse.show .card-body {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0s;
}

/* Quando il contenitore .collapse è attivo (mostrato), rendiamo visibile il contenuto */
#accordionExample .collapse.show .card-body {
	opacity: 1;
	transform: translateY(0);
}

#accordionExample .card-body table,
#accordionExample .card-body table tr,
#accordionExample .card-body table th,
#accordionExample .card-body table td {
	background-color:transparent;
	padding:0;
}

#accordionExample .card-body table th {
	width:35%;
}

.single-product div.product .product_meta {
	border-top: none;
}

.quantity input,
.quantity input:focus {
	background-color:transparent;
	color:#000;
	box-shadow:none;
	border:solid 2px #000;
	padding: 0px 10px;
	height: 50px;
}

form.cart button {
	height: 50px;
	background-color: #555555 !important;
	text-transform: uppercase;
	font-family: 'Montserrat', sans-serif;
	font-style: normal;
	font-weight: 200;
	letter-spacing: 0.1em;
}

form.cart {
	margin-bottom:0px!important;
}

p.price {
	margin: 0.2em 0 !important;
}

p.price * {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
}

h1.product_title.entry-title {
	font-weight: 600;
	/* text-transform:uppercase; */
}

.product-authors {
	display:block;
	margin: 0px;
	text-transform:uppercase;
}

.product-subtitle {
	display:block;
	margin-top:-0.8em;
}

.product_meta {
	margin-top:0px;
	padding-top:0px;
	font-family: 'Montserrat', sans-serif;
	color:#000;
	font-weight:500;
}

.product_meta a {
	color:#000;
	text-decoration:none!important;
	font-weight:500!important;
}

.product_meta a:hover {
	text-decoration:underline!important;
}

/* mod 08.04.2025 */

#product-filters select::-ms-expand {
	display: none; /* per IE/Edge vecchi */
}

#product-filters select {
  appearance: none; /* rimuove la freccia di default */
  -webkit-appearance: none;
  -moz-appearance: none;
  border: solid 1px #000;
  border-radius: inherit;
  color: #000;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='black' viewBox='0 0 320 512'%3E%3Cpath d='M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0L160 284.1 256.5 159.8c9.2-9.6 24.4-9.8 33.9-0.5l23 22.5c9.5 9.3 9.8 24.5 0.5 33.9l-136 136c-9.4 9.4-24.6 9.4-34 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.6rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

/* mod 10.04.2025 */

.page-id-455 #allinea-tabs table th {
	background-color:darkgray;
}

.page-id-455 #allinea-tabs table th,
.page-id-455 #allinea-tabs table td {
	padding:2% 1%;
}

/* Regola desktop */
.page-id-455 #allinea-tabs {
  margin-left: 30%;
}

/* Tablet verticale e mobile (max-width: 991.98px per Bootstrap 4) */
@media screen and (max-width: 991.98px) {
  .page-id-455 #allinea-tabs {
    margin-left: 0; /* oppure auto, a seconda del layout */
  }
}

.archive.tax-pa_autore .storefront-sorting,
.archive.tax-pa_autore .products {
	margin-left: 30%;
}

@media screen and (max-width: 991.98px) {
	.archive.tax-pa_autore .storefront-sorting,
	.archive.tax-pa_autore .products {
		margin-left:0;
	}
}

/* 2025.04.30 */

.tax-pa_autore .term-description {
	overflow:hidden;
	margin-bottom: 2em;
}

.single-product .author-details .author-name,
.single-product .author-details .author-description {
	margin-bottom:1em;
}

.single-product .author-details .author-description {
	margin-top:-1em;
}

.tax-product_cat header.woocommerce-products-header {
	display:none;
}

/* 2025.05.02 */

.page-id-223 .wrapper-content-post-title ,
.page-id-163 .wrapper-content-post-title ,
.page-id-223 .wrapper-content-post-page-text,
.page-id-163 .wrapper-content-post-page-text,
.archive.category .page-title,
.archive.tag .page-title,
.archive.tax-product_tag .woocommerce-products-header__title.page-title,
.page-id-455 .wrapper-content-post-title {
	display:none;
}

#masthead {
	margin-bottom:2em;
}

.home #masthead {
	margin-bottom:0px;
}

body.woocommerce-order-received small.includes_tax {
	display:none!important;
}

/* pagina di login */

/* Ripristina il layout due colonne della pagina "Mio Account" */
.woocommerce-account .u-columns.col2-set {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* opzionale, spazio tra le colonne */
}

.woocommerce-account .u-columns.col2-set .col-1,
.woocommerce-account .u-columns.col2-set .col-2 {
    flex: 1 1 0; /* due colonne larghe quasi metà */
    min-width: 300px; /* evita che si stringano troppo su schermi piccoli */
	max-width:50%!important;
}