/*!
Theme Name: Piemme
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: piemme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Piemme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */


/* Override Styles */

/* padding del widget Novità della settimana - in single autore viene intercettato da home.css, incluso nel widget stesso */
.row-slider-book {
	padding: calc(var(--page-space) * 2) var(--page-space) !important;
}
/* Marquee Newsletter - widget Lancio Newsletter - nel css di default ha un id come identificativo, abbiamo cambiato quindi in classe per evitare id identici in pagina, in caso di più istanze */
.marquee-newsletter {
	background-color: var(--secondary);
	color: var(--black);
	padding: var(--page-space) 0;
	border-top: 1px solid var(--black);
	margin-top: -1px;
}

/* Widget Collane - modalità cols */
.books-series {
  padding-bottom: calc(var(--page-space) * 3);
}
.books-series .logo-wrap {
  border-radius: 50%;
  padding: 1.5rem;
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}
.books-series .logo-wrap img {
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}
.books-series .logo-wrap:hover {
  background-color: var(--secondary);
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}
.books-series .logo-wrap:hover img {
  transform: scale(0.9);
  transition: 0.3s all ease-in-out;
  cursor: pointer;
}
.books-series .grid-col-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 90%;
  margin: 0 auto;
  justify-items: center;
  gap: var(--page-space);
}
@media screen and (min-width: 768px) {
  .books-series .grid-col-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (min-width: 1024px) {
  .books-series .grid-col-wrapper {
    grid-template-columns: repeat(5, 1fr);
  }
}
.books-series .grid-col-wrapper .series-title {
  text-align: center;
  margin-top: 10px;
  font-weight: 300;
}
.books-series .grid-col-wrapper .cover {
  max-height: 200px;
  aspect-ratio: 1;
}
.books-series .grid-col-wrapper .cover img {
	-o-object-fit: contain;
	object-fit: contain;
}
.cover-single-image {
	margin: 20px auto;
}
.cover-mask-single-image {
	padding: 20px;
}
section.row-single-image {
	margin: 20px 0;
}
.row-single-image.active {
	background-color: var(--light-gray);
}
.row-single-image.active:hover {
	background-color: var(--secondary);
	transition: 0.3s all ease-in-out;
	cursor: pointer;
}
.piemme-video iframe.full {
	width: 100%;
}
.piemme-video iframe.centered {
	margin: 0 auto;
}
.x-flip {
	transform: scaleX(-1);
}
#search-results {
	display: none;
}
.headline-section-row.no-results {
	display: none;
}
#search-results .grid-row-wrapper .item-card .item-info-wrap .title {
	width: 100%;
}
#overlay-for-load {
	position: relative;
	width: 100vw;
	height: 50vh;
	top: 0;
	left: 0;
	background-color: rgba(0,0,0,0.4);
	z-index: 8;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.4s;
}

/* Media Queries */

@media screen and (max-width: 1024px) {
	.cover-mask-single-image {
		padding: 0;
	}
	.cover-single-image {
		margin-top: 0;
	}
}

.nav-links .page-numbers{
	margin: 0 0.5rem;
}

.nav-links .page-numbers:hover{
	color: #cf0544;
}

.nav-links .page-numbers.current{
	color: #cf0544;;
}

.d-none{
	display:none !important;
}

.showmore-button-wrap{
	margin:auto;
	padding: 30px 0px !important;
	border-bottom-color: #fff !important;
}

#ricerca-ragazzi-search-icon{
	cursor:pointer;
}

.wrap-panel-ricerca-ragazzi 
{
	overflow: hidden !important;
	overflow-y: auto !important;
	margin-top: -24px !important;
	border-top: #000 !important;
    border-top-left-radius: 0px !important;
	border-top-right-radius: 0px !important;	
}

.category-toggle .wrap-panel-ricerca-ragazzi .category-tag:first-child {
  padding-top: 30px !important;
}

.pagination-nav .next.page-numbers,
.pagination-nav .prev.page-numbers{
	
	display: inline-block;
	vertical-align: bottom;
	
}

.pagination-nav .prev.page-numbers .icon{
   transform: rotate(180deg);
}

.pagination-nav .next.page-numbers,
.pagination-nav .prev.page-numbers
{
	margin: 0px !important;
}

.authors-list.col-content .accordion-modal.opened svg {
	-ms-transform: rotate(-270deg);
	transform: rotate(-270deg);
}
.authors-list.col-content .accordion-modal svg {
	-ms-transform: rotate(-270deg);
	transition: 0.5s ease-in-out;
	transform: rotate(-270deg);
}
.authors-list.col-content .accordion-modal .panel {
	max-height: 100%;
}
.menu-aplhabetical .alpha-item {
	max-width: 50%;
}
.menu-aplhabetical .alpha-item a {
	display: block;
	max-width: 100%;
}
.truncated-text{
	max-height:60px; 
	overflow:hidden
}

.event-libro-correlato{
	width: 50%  !important;
	margin-left: 30%  !important;
}

.event-libro-correlato-text{
	text-align:center;
	margin-left: -75px;
	padding-top: 15px;
}

@media screen and (max-width: 768px) {
  .event-libro-correlato-text{
	margin-left: -10px;
  }
}

/* SPINNER */
#loader {
	display: none;
}
#loader.bars {
	margin-left: auto;
	margin-right: auto;
	width: 50.4px;
	height: 67.2px;
	--c: linear-gradient(#c5383c  0 0);
	background: var(--c) 0%   100%, var(--c) 50%  100%, var(--c) 100% 100%;
	background-size: 10.1px 65%;
	background-repeat: no-repeat;
	animation: bars-1hcj36 1s infinite linear;
}
@keyframes bars-1hcj36 {
   20% {
      background-position: 0% 50% ,50% 100%,100% 100%;
   }

   40% {
      background-position: 0% 0%  ,50% 50% ,100% 100%;
   }

   60% {
      background-position: 0% 100%,50% 0%  ,100% 50%;
   }

   80% {
      background-position: 0% 100%,50% 100%,100% 0%;
   }
}

#blog .hero .swiper-container {
	height: 100%;
}
#genre-page .headline-filter {
	height: auto;
	max-height: auto;
	min-height: auto;
	padding: 10px var(--page-space);
	position: sticky;
	position: -webkit-sticky;
	z-index: 5;
	top: 69px;
	background-color: var(--white);
	border-top: 1px solid var(--black);
}
#genere-page.opened {
    visibility: visible;
    opacity: 1;
    transition: 0.3s all ease-in-out;
    cursor: pointer;
}
.error-404 .contact-info .text-title {
	border-bottom: 1px solid #ccc;
}
.error-404.row-content-shrink .address {
	padding-right: calc(var(--page-space) * 6);
}
.calendar-panel{
	display:none;
	border: 1px solid #000;
	padding: 5px;
	margin-top:10px;
	border-radius: 15px;
}

.calendar-panel a{
	line-height: 25px;
}

.calendar-panel a:hover{
	color: var(--primary);
}


/* AMAU */
#amau-request-form .content.clearfix {
	background-color: #fff;
}
#amau-request-form .steps.clearfix {
	min-height: 100px;
}
#amau-request-form a[id^='amau-request-form-t'] {
	padding: 30px;
}
#amau-request-form-p-0 {
	background-color: #fff;
}
.wizard > .steps li.current a {
	text-shadow: none !important;
	color: #000;
}
.wizard > .steps a {
	font-size: 20px !important;
}
.gfx-container-multi .gfx-choices li.search-choice span {
	color: #000 !important;
	text-shadow: none;
}
.wizard > .steps .done a, .wizard > .steps .done a:hover, .wizard > .steps .done a:active {
	color: #000;
}
#amau-request-form fieldset legend {
	text-shadow: none !important;
}
fieldset#amau-request-form-p-0,
fieldset#amau-request-form-p-1,
fieldset#amau-request-form-p-2 {
	border: none;
}
#amau-request-form select {
	cursor: pointer;
	border-radius: 30px;
	padding: 5px 10px;
	background-color: #fff;
	color: #000;
	font-size: 18px;
	font-weight: 400;
}
#amau-request-form .gfx-container-multi .gfx-choices li.search-choice {
	border-radius: 30px;
}
.wizard > .actions a,
.wizard > .actions a:hover,
.wizard > .actions a:active {
	border-radius: 30px !important;
	padding: 10px 20px !important;
	font-size: 1.2rem;
	color: #000 !important;
}
.step2_container input,
.step2_container textarea,
.step3_container input,
.step3_container textarea {
	font-size: 18px;
}
#amau-summary {
	margin: 20px 40px;
	border-left: 1px solid #ccc;
 	border-right: 1px solid #ccc;
}
#selected-items {
	min-height: 300px !important;
}
span.amau-info {
	font-size: 15px;
}
.hero .swiper-wrapper .swiper-slide a.my-image-slide {
	cursor: pointer;
}
.item-list.next {
	margin-top: 0 !important;
}
#main-search #eta,
#main-search #tema,
#main-search #collana {
	padding-left: 0;
}
#taxonomy-filters .filter-panel {
	overflow-y: auto !important;
}
.book-video-block {
	border-bottom: none !important;
}
.row.estratto-pdf {
	border-top: 1px solid #ccc;
	padding-top: 20px;
	width: auto !important;
	grid-template-columns: 1fr !important;
}
#estratto-pdf {
	color: #fff;
	width: -webkit-fit-content;
	width: -moz-fit-content;
}
#estratto-pdf span {
	padding-right: 5px;
}
#estratto-pdf svg {
	width: 20px;
	height: 20px;
}
.event-libro-correlato-text img {
	margin: 0 auto;
}
.event-libro-correlato-text .title {
	margin-top: 10px;
}
h2.book-subtitle {
	margin-bottom: 1.4rem;
	font-size: 2rem;
	font-weight: 400;
}


@media (max-width: 966px) {
	#estratto-pdf {
		width: 100%;
	}
}

@media (max-width: 767px) {
	fieldset#amau-request-form-p-0 {
		margin-top: -200px;
	}
	iframe.book-video-item {
		height: auto;
		width: 100%;
	}
	h2.book-subtitle {
		font-size: 1.2rem;
	}
}

@media screen and (min-width: 768px) {
  /*  per risolvere il problema del doppio click su filtri adulti/ragazzi  */
  .filter-panel-adulti-ragazzi {
    pointer-events: all !important;
  }
}

@media screen and (min-width: 967px) {
	#blog .hero .swiper-container {
		height: 60vh;
	}
}

@media screen and (min-width: 1024px) {
	.error-404 .row-content-shrink {
		grid-template-columns: 1fr;
	}
}

.item-card-alternative-1{
	
	margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid black;
}

@media (min-width: 966px) {
	.item-card-alternative-1  .item-info-wrap{
	     width:250px !important;
    }
}



