/*
Theme Name: Rebeccalibri Theme
Author: Progetto51 | Web Development
Author URI: https://www.progetto51.it/
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');
@import "assets/css/custom_carousel.css";

:root {
    --theme_primary_color: #B80047;
    --theme_primary_color_hover: #e70061;
    --theme_balck: #3b3b3b;
    --theme_light: #f7f7f7;

    --transition: all .3s;

    --in_evidenza: #7cb342;
    --pinl: #0081C5;
    --letture: #4D8AA7;
    --in_libreria: #977C9E;
    --in_arrivo: #EF6C00;
    --percorsi: #E53935;

}

body {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--theme_balck);
    text-transform: none;
    font-weight: 300;
    font-style: normal;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

strong {
    font-weight: 700;
}

a {
    color: inherit;
    transition: var(--transition);
    text-decoration: none;
}

a:hover {
    color: var(--theme_primary_color);
}

h1 {
    font-size: 2rem;
    font-weight: 500;
}

h2 {
    font-size: 30px;
    font-weight: 500;
}

h3 {
    font-size: 26px;
    font-weight: 500;
}

h4 {
    font-size: 22px;
    font-weight: 500;
}

h5 {
    font-size: 18px;
    font-weight: 500;
}

h6 {
    font-size: 14px;
    font-weight: 500;
}

.no-padding {
    padding-left: 0;
    padding-right: 0;
}

footer {
    background-color: var(--theme_balck);
    color: white;
    margin-top: 2rem;
}

ul.menu_footer, ul.menu_desktop {
    list-style: none;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
    font-size: .9rem;
}

ul.menu_footer li, ul.menu_desktop li {
    display: inline-block;
}

ul.menu_desktop li {
    padding: 10px;
    /*border: 1px solid #f7f7f7;*/
    position: relative;
}

ul.menu_desktop a {
    text-decoration: none;
}

ul.menu_footer li:not(:last-child):after {
    content: '|';
    margin: 0 10px;
}

.menu_footer a:hover {
    color: #dee2e6;
}

ul.sub-menu {
    display: none;
    position: absolute;
    padding: 0;
    background-color: white;
    border: 1px solid var(--theme_light);
    border-left: 1px solid var(--theme_primary_color);
    border-top: none;
    top: 100%;
    width: auto;
    min-width: 100%;
    text-align: left;
    white-space: nowrap;
    transition: var(--transition);
    z-index: 100;
    margin-left: -11px;
}

.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}

.menu-item-has-children:hover {
    border-left: 1px solid var(--theme_primary_color);
}

ul.sub-menu li {
    display: block;
}

.box-home {
    margin-bottom: 1rem;
    border-left: 2px solid;
    padding: 4px 10px;
    background-color: #f6f6f6;
    border-color: #dee2e6;
    font-size: .9rem;
    line-height: 1.3rem;
}

.box-home a, .page-tit a {
    text-decoration: none;
}

.tit {
    border-bottom: 1px solid;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--theme_primary_color);
    margin-bottom: 30px;
    position: relative;
}

a .tit:before {
    content: 'vedi tutti |';
    position: absolute;
    vertical-align: middle;
    right: 20px;
    font-size: 12px;
    text-transform: none;
}

a .tit:after {
    content: '\e941';
    position: absolute;
    font-family: 'Material Symbols Outlined';
    vertical-align: middle;
    right: 5px;
    transition: var(--transition);
}

a .tit:hover:after {
    right: 0;
}

.notizie-in-evidenza {
    border-color: var(--in_evidenza);
}

.pensare-in-libri {
    border-color: var(--pinl);
}

.letture {
    border-color: var(--letture);
}

.in-libreria {
    border-color: var(--in_libreria);
}

.in-libreria .carousel-indicators [data-bs-target] {
    background-color: var(--in_libreria);
}

.in-arrivo {
    border-color: var(--in_arrivo);
}

.in-arrivo .carousel-indicators [data-bs-target] {
    background-color: var(--in_arrivo);
}

.percorsi {
    border-color: var(--percorsi);
}

.notizie-in-evidenza .tit {
    color: var(--in_evidenza);
}

.pensare-in-libri .tit {
    color: var(--pinl);
}

.letture .tit {
    color: var(--letture);
}

.in-libreria .tit {
    color: var(--in_libreria);
}

.in-arrivo .tit {
    color: var(--in_arrivo);
}

.percorsi .tit {
    color: var(--percorsi);
}

/* ---------------------------------
	Bottoni/icona scheda libro
 ------------------------------------*/
.btn {
    border-radius: 0 !important;
}

.btn.btn-primary {
    background-color: var(--theme_primary_color) !important;
    color: #fff;
    border-color: var(--theme_primary_color) !important;
    text-decoration: none !important;
}

.btn.btn-primary:hover {
    color: rgba(255, 255, 255, 0.8);
}

.btn-icone-scheda {
    border-radius: 4px;
    border: none;
    color: #666;
    text-align: left;
    font-size: 14px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 20px 5px 5px 0;
    float: left;
}

.btn-icone-scheda span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.btn-icone-scheda1 span:after {
    content: 'Sfoglia l\'anteprima';
    white-space: nowrap;
}

.btn-icone-scheda2 span:after {
    content: 'Versione digitale';
    white-space: nowrap;
}

.btn-icone-scheda3 span:after {
    content: 'Versione cartacea';
    white-space: nowrap;
}

.btn-icone-scheda4 span:after {
    content: 'Sito dell\'editore';
    white-space: nowrap;
}

.btn-icone-scheda5LdS span:after {
    content: 'Acquista su LdS';
    white-space: nowrap;
}

.btn-icone-scheda5LdS_abei span:after {
    content: 'Acquista su LdS (Utente ABEI)';
    white-space: nowrap;
}

.btn-icone-scheda5ecomm span:after {
    content: 'Aggiungi al carrello';
    white-space: nowrap;
}

.btn-icone-scheda span:after {
    position: absolute;
    background-color: #fff /*#B80047*/;
    opacity: 0;
    bottom: 10px;
    left: 0;
    transition: 0.5s;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 130px;
    text-align: left;
}

.btn-icone-scheda:hover span {
    padding-right: 150px;
}

.btn-icone-scheda:hover span:after {
    opacity: 1;
    left: 60px;
}

.box-tabs {
    background: #f7f7f7;
    border: 1px solid #f7f7f7;
    border-top: none;
}

.tab-content {
    padding: 20px;
    background-color: white;
}

.nav-tabs {
    border-bottom: 1px solid #f7f7f7;
}

.nav-link {
    color: inherit;
}

.nav-link:hover {
    color: var(--theme_primary_color);
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: var(--theme_balck);
    background-color: #fff;
    border-color: #f7f7f7 #f7f7f7 #fff;
    font-weight: bold;
}

/*
    articoli
*/
.news-post-meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    /*padding-bottom: .5rem;*/
}
.img-related span.cat-name {
    background-color: var(--theme_primary_color);
    color: white;
    font-size: small;
    padding: 0 8px;
    position: absolute;
    top: 10px;
}

.news-post-meta a {
    text-decoration: none;
}

.news-featured-image {
    background-size: cover;
    background-position: center;
    height: 260px;
    position: relative;
}

.news-featured-image span {
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    font-size: small;
    background-color: #00000070;
    padding: 0 10px;
}

.news-title {
    font-style: italic;
    line-height: 1rem;
}

.news-excerpt {
    font-size: .9rem;
    line-height: 1rem;
}

.img-related {
    height: 176px;
    overflow: hidden;
    position: relative;
}

.elenco-archivio {
    border-bottom: 3px solid #eee;
    border-left: 30px solid #eee;
}

.elenco-ebook {
    border-bottom: 3px solid #B2D235;
    border-left: 30px solid #B2D235;
}

#rl-ricerca a[data-bs-toggle='collapse'] {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

a[aria-expanded="false"] p:after {
    content: '\e5cf';
    font-family: 'Material Symbols Outlined';
    vertical-align: bottom;
}

a[aria-expanded="true"] p:after {
    content: '\e5ce';
    font-family: 'Material Symbols Outlined';
    vertical-align: bottom;
}

#rl-ricerca label {
    font-weight: bold;
    font-size: small;
}

.pinl_grid.excerpt {
    font-size: .9rem;
    line-height: 1.2rem;
}

.indice_pinl {
    background-color: var(--theme_light);
}

.indice_pinl a[data-bs-toggle="collapse"], .archivio_pinl a[data-bs-toggle="collapse"] {
    display: block;
    padding: 6px 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.archivio_pinl {
    background-color: var(--pinl);
}

.archivio_pinl a[data-bs-toggle="collapse"] {
    color: white;
}

/*
Events calendar
*/
.tribe-events-content {
    color: inherit;
    font-family: inherit;
}

.tribe-events-content ol, .tribe-events-content p, .tribe-events-content ul {
    font-size: inherit;
    line-height: inherit;
}

.pagination {
    text-align: center;
}

.pagination li {
    display: inline-block;
    height: 30px;
    text-align: center;
    vertical-align: top;
    border-radius: 2px;
}

.pagination li a {
    text-decoration: none !important;
    font-size: .9rem;
    line-height: 30px;
    display: inline-block;
    padding: 0 10px;
    transition: var(--transition);
}

.pagination {
    text-align: center;
}

.pagination li.active, .pagination li.disabled {
    background-color: var(--theme_primary_color);
}

.pagination li.active a, .pagination li.disabled a {
    color: #fff !important;
}

.pagination .page-link {
    position: relative;
    display: inline-block !important;
    color: inherit !important;
    text-decoration: none;
    background-color: transparent !important;
    border: none !important;
    transition: var(--transition);
}