/*
Theme Name: My Library
Text Domain: mylibrary
Version: 1.0
Tested up to: 6.0
Requires at least: 4.7
Requires PHP: 5.2.4
Description: Tema per sito MyLibrary
Author: Marco Gangemi
Author URI: #
Theme URI: #
*/


/* general */
:root {
    --primary-color: #2541B2; 
    --secondary-color: #1768AC; 
    --accent-color: #06BEE1; 
    --neutral-light: #FFFFFF; 
    --neutral-dark: #03256C; 
}

html {
    font-size: 62.5%; /* --> 1rem = 10px */
    scroll-behavior: smooth;
}

.cormorant-garamond-font { /* titoli */
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
.quicksand-font { /* testo */
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

body {
    font-size: 1.6rem;
    font-family: "Quicksand", sans-serif;
    background-color: var(--neutral-light);
    color: var(--neutral-dark);
}

h1 {
    font-size: 3.2rem;
/*    font-size: clamp(2.8rem, 1.8vw, 3.2rem);*/
}
h2 {
    font-size: 2.4rem; 
/*    font-size: clamp(2rem, 8vw, 2.4rem);*/
}
h3 {
  font-size: 2rem;   
}
h4 {
  font-size: 1.6rem; 
}
h5 {
  font-size: 1.4rem; 
}
h6 {
  font-size: 1.2rem; 
}
button,
input,
select,
textarea, 
.btn {
  font-size: 1.6rem; /* 16px */
}


a {
    color: var(--primary-color);
}
a:hover {
    color: var(--accent-color);
}
.btn {
    background-color: var(--primary-color);
    color: var(--neutral-light);
}
.btn:hover {
    background-color: var(--accent-color);
    color: var(--neutral-light);
}

#page {
	position: relative;
    padding-bottom: 8rem;
    min-height: 100vh;
    box-sizing: border-box;
}
#main.page {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* generale libro */
.copertina-libro {}
.copertina-libro img {
    width: 23rem;
    /* width: 23rem !important; */
    height: 35rem;
    object-fit: cover;
}
.card-libro-copertina .copertina-libro img {
    width: 100%;
    /* width: 100% !important; */
    height: 30rem;
}
.titolo-libro {}
.autore-libro {
    font-style: italic;
}
.serie-libro {
    font-style: italic;
}
.genere-libro {}
.descrizione-libro {
    margin-bottom: 2rem;
}
.descrizione-libro.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* generale votazione */
.star-rating {
    direction: rtl;
    display: inline-flex;
}
.star-rating input[type="radio"] {
    display: none;
}
.star-rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f5c518;
}

/* header */
#header {
/*    background-color: var(--neutral-dark);*/
    background: linear-gradient(90deg, var(--neutral-dark) 0%, var(--primary-color) 50%, var(--neutral-dark) 100%);
    color: var(--neutral-light);
}
#header .header-top {
    background: var(--neutral-dark);
}
#header .header-top .top-menu > a {
    padding: 0.4rem 1rem;
    font-size: 2rem;
    color: var(--neutral-light);
    text-decoration: none;
    display: block;
}
#header .header-top .top-menu > a > span {
    margin-right: 0.8rem;
}
#header .header-top .sub-menu {
    position: absolute;
    background-color: var(--neutral-light);
    list-style: none;
    padding: 1rem 3rem;
    right: 0;
    top: auto;
    display: none;
}
#header .header-top .sub-menu li {}
#header .header-top .sub-menu li .submenu-item {
    padding: 0.4rem 0;
    text-decoration: none;
    display: block;
}
#header .header-top .sub-menu li .submenu-divider {
    margin: 1rem auto;
    color: var(--neutral-dark);
    display: block;
    width: 50%;
}
#header .header-top .top-menu:hover > a {
    color: var(--neutral-dark);
    background-color: var(--neutral-light);
}
#header .header-top .top-menu:hover > .sub-menu {
    display: block;
}
#header .header-body {
    padding: 1rem;
}
#header .header-body .menu-header-container {
    height: 100%;
}
#header .header-body .menu-header-container .menu {
    display: flex;
    gap: 4rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    height: 100%;
}
#header .header-body .menu-header-container .menu .menu-item {
    text-transform: uppercase;
    
}
#header .header-body .menu-header-container .menu .menu-item a {
    text-decoration: none;
    color: var(--accent-color);
}
#header .header-body .menu-header-container .menu .current-menu-item a {
    color: var(--neutral-light);
}

/* search form */
#search-block {
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100vw;
    background: rgba(0, 0, 0, 0.9);
    height: 100vh;
    display: flex;
    align-items: center;
}
#search-block.hide {
    display: none;
}

/* footer */
#footer {
	padding: 1.5rem;
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* home */
.front-page {}
.front-page .titolo-sezione {}

/* donazione */
.pricing-table {}
.pricing-table .box-donazione {
    background-color: #f0f0f0;
    height: 100%;
    padding: 1.5rem;
    text-align: center;
}
.pricing-table .box-donazione h3 {}
.pricing-table .box-donazione .prezzo {
    font-size: 3rem;
    font-weight: bold;
}
.pricing-table .box-donazione .testo {
    margin-top: 1rem;
}
.pricing-table .box-donazione .actions {}

/* single libro */
.single-book .copertina-container {
    overflow: hidden;
}
.single-book .copertina-container .bkg-img-blur {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2rem);
    -webkit-filter: blur(2rem);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.single-book .copertina-container .copertina-libro {
    position: relative;
    z-index: 2;
}
.single-book .copertina-container .copertina-libro img {
    border: 0.4rem solid #ffffff;
    border-radius: 1.5rem;
}
.single-book .info-libro {
    margin-top: 2rem;
}
.single-book .info-libro h1 {}
.single-book .info-libro h2 {}
.single-book .info-libro h3 {}
.single-book .votazioni .star-rating {
    direction: rtl;
}
.single-book .votazioni .star-rating span {
    cursor: pointer;
    color: #ddd;
}
.single-book .votazioni .star-rating span.checked,
.single-book .votazioni .star-rating span:hover,
.single-book .votazioni .star-rating span.checked ~ span:not([data-value="0"]),
.single-book .votazioni .star-rating span:hover ~ span:not([data-value="0"]) {
    color: #ffc107;
}
.single-book .categorie .badge {
    font-size: 1.3rem;
}
.single-book .libri-della-serie .item .numero-libro {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    left: 1rem;
    border-radius: 50% 10%;
    border: 0.2rem solid #fff;
    color: #ffffff;
    font-size: 2rem;
    background-color: #000000;
}
.single-book .recensione .azioni button {
    background-color: rgba(var(--bs-secondary-rgb), 0.1);
}
.single-book .recensione .azioni button.isLiked {
    background-color: rgba(var(--bs-primary-rgb), 0.5);
}






























