@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,300,400italic,700italic);

@font-face {
    font-family: Osp-din;
    src: url(../fonts/osp-din.ttf);
}


/* Rosso: 
    header: #BC0A26
    titoli: #C11C31 */ 

.container {
    width: 960px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.only-mobile {
    display: none;
}

a {
    text-decoration: none;
    color: inherit;
    color: #C11C31;
}

a.goto:hover {
    color: #333;
}

th, td {
    vertical-align: top;
    text-align: left;
}

.nowrap {
    white-space: nowrap;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#show-grid {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #0079A1;
    color: #fff;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    z-index: 1;
    cursor: pointer;
}

#grid {
    position: fixed;
    top: 0;
    left: 50%;
    width: 960px;
    height: 100%;
    margin-left: -480px;
    background: url(../img/grid.gif);
    pointer-events: none;
    display: none;
    z-index: 100;
}

body {
    font-family: Roboto, sans-serif;
    min-width: 960px;
}


/* Generic */
img {
    max-width: 100%;
}

.text-center {
    text-align: center;
}


/* Header */
#header .top {
    background: #BC0A26;
    position: relative;
    height: 90px;
    padding-top: 10px;
    text-align: right;
}

#header #logo {
    position: absolute;
    top: 26px;
    left: 30px;
}

#header .top-links {
    text-transform: uppercase;
    font-size: 12px;
    color: #fff;
    display: inline;
    margin: 0 20px;
}

#header .top-links li {
    display: inline;
    border-right: 1px solid #fff;
}

#header .top-links li:last-child {
    border-right: none;
}

#header .top-links li a {
    margin: 0 5px;
    color: inherit;
}

#header .top-links li a:hover {
    border-bottom: 1px dotted #fff;
}

#header .top-links li.selected a {
    border-bottom: 1px solid #fff;
    font-weight: bold;
}

#header .social {
    display: inline;
    position: relative;
    top: 3px;
    margin-right: 10px;
}

#header .social a {
    font-size: 16px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: #c11c31;
    display: inline-block;
    text-align: center;
    line-height: 24px;
    margin-right: 5px;
    border: 1px solid transparent;
}

#header .social a:hover {
    color: #fff;
    background: none;
    border-color: #fff;
}

#header #cart-link {
    position: absolute;
    right: 15px;
    bottom: 15px;
}

#menu {
    height: 46px;
    text-transform: uppercase;
    text-align: center;
    font-size: 12px;
    line-height: 46px;
}

#menu > li {
    float: left;
    width: 11.11111%;
    height: 100%;
    position: relative;
}

#menu li a {
    display: block;
    color: #fff;
    box-sizing: border-box;
}

#menu li a img {
    vertical-align: middle;
    margin-right: 3px;
}

#menu > li.selected:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    right: 0;
    top: 0;
    border-bottom: 10px solid #fff;
    border-left: 10px solid #fff;
    border-right: 10px solid rgba(255,255,255,.3);
    border-top: 10px solid rgba(255,255,255,.3);
}

#menu > li:nth-child(1), #menu > li:nth-child(1) li {
    background: #F29400;
}
#menu > li:nth-child(2) {
    background: #D84F17;
}
#menu > li:nth-child(3) {
    background: #7A2010;
}
#menu > li:nth-child(4) {
    background: #9A9B94;
}
#menu > li:nth-child(5) {
    background: #555;
}
#menu > li:nth-child(6) {
    background: #C3696C;
}
#menu > li:nth-child(7) {
    background: #945F4E;
}
#menu > li:nth-child(8) {
    background: #413834;
}
#menu > li:nth-child(9) {
    background: #610c21;
}

#menu > li:nth-child(1):hover {
    background: #CC7A15;
}
#menu > li:nth-child(2):hover  {
    background: #B6491E;
}
#menu > li:nth-child(3):hover  {
    background: #5E0500;
}
#menu > li:nth-child(4):hover  {
    background: #535558;
}
#menu > li:nth-child(5):hover  {
    background: #383A3D;
}
#menu > li:nth-child(6):hover  {
    background: #A25A61;
}
#menu > li:nth-child(7):hover  {
    background: #6F4A40;
}
#menu > li:nth-child(8):hover  {
    background: #242629;
}
#menu > li:nth-child(9):hover  {
    background: #470717;
}

#menu li.menu-open-access a {
    line-height: 1;
    padding-top: 10px;
    height: 100%;
}

#menu li li {
    text-align: left;
    text-transform: none;
    line-height: normal;
    font-weight: bold;
}

#menu ul {
    width: 160px;
    display: none;
    z-index: 200;
    position: relative;
}

#menu > li:hover ul {
    display: block;
}

#menu li li a {
    padding: 10px;
}

#menu li li a:hover {
    background: #CC7A15;
}

#breadcrumbs {
    border-bottom: 1px solid #ccc;
    font-size: 12px;
    padding: 10px 20px;
    margin-bottom: 20px;
}

#breadcrumbs a {
    padding: 5px 0;
    color: #000;
}

#breadcrumbs a:hover {
    text-decoration: underline;
}

#breadcrumbs .home {
    padding-left: 20px;
    background: url(../img/home.png) no-repeat;
}

#breadcrumbs .current {
    font-weight: bold;
}

/* Contenuto, tre colonne */
.col {
    float: left;
}

.col-1 {
    width: 140px;
    padding: 0 40px 0 20px;
    min-height: 1px; /* Don't collapse */
}

.col-1.open-access {
    background: url(../img/lucchettone.png) no-repeat center top;
    height: 150px;
    padding-top: 180px;
/*    transform: rotate(-10deg);
    animation: bounce 1s 3s forwards; */
}

@keyframes bounce {
    0% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(0);
    }
    70% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0);
    }
}


.col-2 {
    width: 440px;
    margin-right: 40px;
}

.col-3 {
    width: 280px;
}

.col-23 {
    width: 740px;
}

.col-2 .autore {
    font-weight: bold;
    font-size: 18px;
    color: #555;
}

.col-2 .description {
    color: #666;
}

h1 {
    font-weight: bold;
    font-size: 20px;
    color: #C11C31;
    margin-bottom: 5px;
}

h1 .vetrina {
    color: #000;
}

.col-2 .picture {
    margin: 15px 0;
}

.col-2 .picture img {
    display: block;
}


#partners {
    margin-top: -15px;
}

#partners li {
    border-bottom: 1px solid #ccc;
    padding: 15px 10px;
}

/* Paginazione */
.pagination {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin: 20px 0;
    text-align: right;
    font-weight: bold;
    font-size: 14px;
}

.pagination a {
    color: #333;
}

.pagination a.selected {
    color: #C11C31;
}

/* Elenco collane, percorsi */

.collane {
    font-size: 14px;
    font-weight: bold;
}

.collane li {
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
}

.collane li:first-child {
    padding-top: 0;
}

.collane li.nav-notizie {
    text-align: center;
    border-bottom: none;
}

.collane li a {
    display: block;
    color: #666;
}

.collane li.selected a, .collane li a:hover {
    color: #C11C31;
}

/* Elenco libri di una collana */

.lista-libri {
    margin: 20px 0;
}

.lista-libri li {
    width: 50%;
    box-sizing: border-box;
    padding-right: 20px;
    float: left;
    position: relative;
}

.lista-libri li:nth-child(odd) {
    border-right: 1px solid #ddd;
}

.lista-libri li:nth-child(even) {
    padding-left: 20px;
}

/* No bordo sugli elementi dell'ultima riga (possono essere 1 o 2) */
.lista-libri li:nth-last-child(-n + 2):nth-child(2n + 1) .libro, /* primo elemento dell'ultima riga*/
.lista-libri li:nth-last-child(-n + 2):nth-child(2n + 1) ~ li .libro /* e i suoi successori (al massimo uno) */
    {
    border-bottom: none;
}




.lista-libri li .libro {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    overflow: hidden;
    height: 262px;
}

.lista-libri li .libro .image {
    float: left;
    width: 140px;
}

.lista-libri li .libro .copertina {
    max-width: 120px;
    box-shadow: 4px 4px 0;
    width: 116px;
    color: #ccc; /* per impostare il colore del box-shadow */
}

.lista-libri li .libro .copertina:hover {
    color: #C11C31; /* solo per cambiare il colore del box-shadow */
}

.lista-libri li .libro .icon-novita {
    margin-top: 20px;
}

.lista-libri li .libro .info {
    float: left;
    font-size: 13px;
    width: 190px;
}

.lista-libri .versions {
    text-transform: uppercase;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.3;
}

.lista-libri .versions .title {
    display: inline-block;
    margin-right: 10px;
}

.lista-libri .versions a {
    display: inline-block;
}

.lista-libri .versions a:nth-of-type(2) {
    border-left: 1px solid #ccc;
    padding-left: 10px;
    margin-left: 5px;
}

.lista-libri h2 {
    color: #C11C31;
    font-weight: bold;
    font-size: 16px;
}

.lista-libri h2:hover, h2 a:hover {
    color: #333;
}

.lista-libri .abstract {
    font-size: 13px;
    line-height: 1.3;
    margin-top: 10px;
    max-height: 186px; /* 11 righe */
    overflow: hidden;
}

.lista-libri .autori {
    color: #999;
}

.col-23 h1 {
    color: #C11C31;
    font-size: 20px;
    font-weight: bold;
}

/* Scheda libro */
.publish-date {
    font-size: 13px;
    color: #999;
    text-align: right;
}
.pagetext {
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.5;
}

.pagetext h2 {
    font-weight: bold;
    color: #C11C31;
    margin-top: 15px;
}

.pagetext .red {
    color: #c11c31;
}

.pagetext ul {
    list-style: disc;
    margin: 0 25px;
}

.pagetext .small {
    font-size: 85%;
}

.pagetext a:hover {
    text-decoration: underline;
}

.col-3 .copertina img {
    box-shadow: 5px 5px 5px #999;
}

.col-3 .copertina {
    margin-bottom: 30px;
}

.col-3 .versions {
    margin-bottom: 20px;
    font-size: 12px;
    text-transform: uppercase;
}

.template-capitolo_view .col-3 .versions img {
    display: block;
    margin: 5px;
}

.col-3 .versions .title {
    font-size: 11px;
    display: block;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.col-3 .versions a {
    margin-right: 10px;
}

.col-3 .versions a:hover {
    border-bottom: 3px solid #999;
}

.col-3 .versions a.selected {
    border-bottom: 3px solid #C11C31;
}

.sfoglia-link {
    margin-bottom: 30px;
}

.block, .pagetext .block {
    font-family: Osp-din, sans-serif;
    color: #fff;
    padding: 10px 20px;
    font-size: 20px;
    text-transform: uppercase;
    display: inline-block;
    box-sizing: border-box;
    font-weight: normal;
    width: 200px;
}

a.block:hover {
    color: #000;
}

.block.red {
    background-color: #C11C31;
}

.block.orange {
    background-color: #FA913E;
}

.block.gray {
    background-color: #555;
}

.block .size {
    font-family: sans-serif;
    font-size: 11px;
    margin-left: 5px;
}

.open-note {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

.pagetext h2.block {
    font-weight: normal;
    color: #fff;
}

.abstract {
    margin-bottom: 15px;
}

.scheda-libro {
    font-size: 12px;
    line-height: 1.3;
}

.pagetext .scheda-libro {
    font-size: inherit;
}

.scheda-libro .field {
    background: none;
    margin-bottom: 0;
    padding: 0;
}

.scheda-libro .label {
    color: #BC0A26;
    font-weight: normal;
}

.value .strike {
    text-decoration: line-through;
}

.scheda-libro .field .license {
    vertical-align: middle;
}

.scheda-libro .field a {
    border-bottom: 1px dashed;
}

.scheda-libro .field a:hover {
    border-bottom-style: solid;
}

.cart-link {
    margin: 20px 0;
}

.cart-link .block {
    background-image: url(../img/icon-cart.png);
    background-repeat: no-repeat;
    background-position: 20px center;
    padding-left: 60px;
}

#numeri-rivista {
    margin: 20px 0;
    font-size: 12px;
}

#numeri-rivista li {
    border-bottom: 1px solid #ccc;
    padding: 5px;
}

#numeri-rivista li a:hover {
    text-decoration: underline;
}

.extra-libro {
    background: #e4e4e4;
    padding: 50px 320px 50px 200px;
    width: 440px;
}


/* Gallerie fotografiche nelle pagine */
.col-2 .gallery {
    margin-right: -20px;
    overflow: hidden;
    margin-bottom: 50px;
}

#appuntamenti .col-2 .gallery {
    margin-right: -10px;
}

.col-2 .gallery li {
    width: 140px;
    height: 140px;
    margin: 10px 10px 0 0;
    border: 1px solid #ccc;
    overflow: hidden;
    float: left;
    position: relative;
}

/* Biografie */
.biografie {
    margin: 20px 0;
    border-top: 1px solid #ccc;
}

.biografie li {
    font-size: 13px;
    padding-top: 15px;
    line-height: 1.3;
}

.biografie li h2 {
    color: #c11c31;
    font-weight: bold;
    font-size: 14px;
}

/* Share */

.share {
    padding: 10px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin: 15px 0 30px;
    text-transform: uppercase;
    font-size: 12px;
}

.share a {
    font-size: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c11c31;
    color: #fff;
    display: inline-block;
    text-align: center;
    line-height: 26px;
    margin-right: 5px;
    border: 1px solid transparent;
}

.share a:hover {
    color: #c11c31;
    background: none;
    border-color: #c11c31;
}


.box {
    background: #fff;
    box-shadow: 3px 3px 0 #ccc;
}

#recensioni-libro {
    padding: 20px;
    font-size: 14px;
/*    margin-bottom: 50px; */
}

#recensioni-libro li {
    margin-bottom: 10px;
}

#recensioni-libro a {
    color: #C11C31;
}

#recensioni-libro a:hover {
    text-decoration: underline;
}

/* Stacco tra recensioni ed eventuali "Stesso autore" sottostante */
#recensioni-libro + h2.block {
    margin-top: 40px;
}


#stesso-autore {
    font-size: 12px;
    padding: 20px;
}

#stesso-autore a:hover {
    text-decoration: underline;
}

#stesso-autore li {
    width: 180px;
    height: 240px;
    float: left;
    margin-right: 20px;
}

#stesso-autore h3 {
    font-weight: bold;
    margin-top: 10px;
}

#stesso-autore .autore {
    color: #666;
}


/* Sezione open access */

#excel-upload {
    font-size: 13px;
    line-height: 1.3;
    border:1px solid #ccc;
    padding: 10px;
    margin: 20px 0;
}

#excel-upload input[type=submit] {
    background: #FA913E;
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

#excel-upload .warning {
    color: #900;
    background: none;
    border-bottom: none;
}



.indice-openaccess .capitoli {
    margin-bottom: 20px;
    background: #f8f8f8;
}

.indice-openaccess .capitoli li {
    border-bottom: 1px solid #fff;
    padding: 10px 20px;
}

.indice-openaccess .capitoli li.selected {
    border-left: 3px solid #c11c31;
    padding-left: 17px;
}

.indice-openaccess .capitoli li h3 {
    font-weight: bold;
    color: #c11c31;
}

.indice-openaccess .capitoli li .autori {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.indice-openaccess .capitoli li h3 a:hover {
    color: #333;
}



/* Tabella di tutte le recensioni */

#recensioni {
    margin: 40px 0;
    border-top: 1px solid #ccc;
    font-size: 13px;
}

#recensioni td, #recensioni th {
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

#recensioni td {
    line-height: 1.2;
}

#recensioni th {
    text-transform: uppercase;
    font-weight: bold;
    text-align: left;
    font-size: 14px;
}

#recensioni td:first-child {
    text-transform: uppercase;
}

#recensioni img {
    max-width: none;
}

/* Elenco appuntamenti */
#appuntamenti > li {
    background: #F1EFEF;
    margin-bottom: 10px;
    box-shadow: 4px 4px 0 #ccc;
    padding: 30px;
    overflow: hidden;
}

#appuntamenti li.primo-piano {
    background: #FFE5CA;
    margin-bottom: 50px;
}

#appuntamenti li .libro-evento {
    width: 150px;
    margin-right: 30px;
    float: left;
    min-height: 1px;
}

#appuntamenti li .libro-evento .tipologia {
    text-transform: uppercase;
    font-family: Osp-din, sans-serif;
    color: #C11C31;
    font-size: 28px;
}

#appuntamenti li .libro-evento .picture {
    box-shadow: 4px 4px 0 #ccc;
    margin: 20px 0;
}

#appuntamenti li .libro, #appuntamenti li .photogallery {
    margin: 10px 0;
}

#appuntamenti li .goto {
    text-transform: uppercase;
    font-size: 12px;
    padding: 8px 0 8px 40px;
    color: #000;
    background-repeat: no-repeat;
    display: block;
    margin-bottom: 20px;
}

#appuntamenti li .libro .goto {
    background-image: url(../img/icon-libro.png);
}

#appuntamenti li .photogallery .goto {
    background-image: url(../img/icon-photo.png);
}

#appuntamenti li .goto:hover {
    color: #c11c31;
}

#appuntamenti li .info-evento {
    width: 450px;
    margin-right: 30px;
    float: left;
}

#appuntamenti li .info-evento h2.title {
    color: #C11C31;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
}

#appuntamenti li .info-evento .description {
    color: #555;
    font-size: 15px;
    font-weight: bold;
}

#appuntamenti li .info-evento .pagetext {
    line-height: 1.3;
}

#appuntamenti li .data-evento {
    width: 240px;
    float: left;
}

#appuntamenti li .data-evento .share {
    border: none;
}

#appuntamenti li .data-evento .data, #appuntamenti li .data-evento .ora {
    font-family: Osp-din, sans-serif;
    font-size: 28px;
    text-transform: uppercase;
}

#appuntamenti li .data-evento .data {
    color: #C11C31;
}

#appuntamenti li .data-evento .ora {
    color: #666;
}

#appuntamenti li .data-evento .luogo {
    font-size: 14px;
    margin: 10px 0;
}

#appuntamenti li .data-evento .value {
    color: #C11C31;
    font-weight: bold;
}

.template-appuntamenti_listing h2.block {
    margin-left: 30px;
    width: 160px;
    padding-left: 20px;
}

/* Lista di tutti i titoli */

#tutti-titoli {
    font-size: 12px;
    line-height: 1.2;
}

#tutti-titoli li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
}

#tutti-titoli li.private {
    opacity: .4;
}

#tutti-titoli li .image {
    width: 80px;
    float: left;
    margin-right: 20px;
}

#tutti-titoli li .image img.copertina {
    width: 70px;
    box-shadow: 4px 4px 0 #ccc;
}

#tutti-titoli li .image img.icon-novita {
    margin-top: 20px;
}

#tutti-titoli li .info {
    float: left;
    width: 600px;
}

#tutti-titoli h2 {
    font-weight: bold;
    font-size: 14px;
    color: #c11c31;
}

#tutti-titoli .versions {
    text-transform: uppercase;
    margin-top: 15px;
}

#tutti-titoli .versions .title {
    vertical-align: 5px;
}

#tutti-titoli .versions a {
    margin: 0 5px;
}

#tutti-titoli .versions img {
    height: 18px;
}

.choose-version {
    margin: 20px 0;
}

.choose-version a {
    margin: 0 6px;
}

.choose-version a.selected {
    border-bottom: 3px solid #C11C31;
}

.choose-version a:hover {
    border-bottom: 3px solid #666;
}

/* Sottoliste (es. autori) */
#tutti-titoli ul {
    list-style: disc;
    margin-left: 10px;
}

#tutti-titoli li li {
    border-bottom: none;
    padding: 0;
    margin-bottom: 5px;
    overflow: visible;
}

#tutti-titoli li li a {
    color: #333;
}

#tutti-titoli li li a:hover {
    text-decoration: underline;
}

.alphabet {
    font-size: 0;
    margin: 20px 0;
}

.alphabet.right {
    text-align: right;
    width: 50%;
}

.template-appuntamenti_listing .alphabet {
    float: right;
    width: 370px;
}

.alphabet a {
    border-right: 1px solid #cccccc;
    color: #666666;
    display: inline-block;
    font-family: Osp-din,sans-serif;
    font-size: 22px;
    text-align: center;
    padding: 0 6px;
    margin-bottom: 10px;
}

.alphabet a:nth-child(8n) {
    border-right: none;
}

.alphabet a:last-child {
    border-right: none;
}

.alphabet a:hover, .alphabet a.selected {
    color: #C11C31;
}

/*
 * Home page
 */

#foto-home {
    height: 480px;
    position: relative;
}

#foto-home a {
    display: block;
}

#foto-home ul, #foto-home li, #foto-home a {
    height: 100%;
}

#foto-home li {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    width: 100%;
}

#foto-home li .info {
    width: 400px;
    padding: 30px 40px;
    box-sizing: border-box;
    background: rgba(0,0,0,.5);
    color: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
    font-weight: bold;
}

#foto-home li .info .description {
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}

#foto-home li .info h2 {
    font-size: 20px;
}

#foto-home h2:hover {
    color: #BC0A26;
}

#foto-home .pager {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#foto-home .pager a {
    width: 10px;
    height: 10px;
    border: 1px solid #fff;
    display: inline-block;
    margin-left: 10px;
    border-radius: 50%;
}

#foto-home .pager a.cycle-pager-active {
    background: #fff;
}

#vetrina-home {
    margin: 20px 25px;
}

#vetrina-home .libro {
    background: #F5F5F5;
    box-shadow: 3px 3px 0 #ddd;
    padding: 25px;
}

#vetrina-home .left-side {
    float: left;
    width: 380px;
    margin-right: 50px;
}

#vetrina-home .right-side {
    float: left;
    width: 400px;
    margin-left: 20px;
}

#vetrina-home .right-side .copertina {
    width: 200px;
    height: 230px;
    float: left;
    position: relative;
}

#vetrina-home .right-side .copertina img {
    width: 160px;
    position: absolute;
    bottom: 0;
    box-shadow: 5px 5px 0 #ccc;
}

#vetrina-home .right-side .slogan {
    float: left;
    width: 200px;
    height: 230px;
    position: relative;
}

#vetrina-home .right-side .slogan p {
    color: #C11C31;
    font-family: Georgia, serif;
    font-size: 18px;
    position: absolute;
    bottom: 0;
    right: 0;
    line-height: 1.2;
}

#vetrina-home h3 {
    color: #C11C31;
    font-size: 19px;
    font-weight: bold;
}

#vetrina-home .libro .autori {
    color: #555;
    font-weight: 300;
}

#vetrina-home .abstract {
    font-size: 15px;
    margin-top: 15px;
    line-height: 1.3;
}

.first-pages {
    text-transform: uppercase;
    font-size: 12px;
    margin-top: 15px;
    display: inline-block;
}

#libri-home {
    margin: 20px 25px 0;
}

#libri-home .lista-libri {
    margin-bottom: 0;
}

#libri-home .lista-libri li {
    padding-bottom: 20px;
}

#libri-home .lista-libri li .libro .info {
    width: 240px;
}

#libri-home .lista-libri li .libro {
    height: 220px;
}

#home-center {
    background: #E4E4E4;
    padding: 20px 30px;
}


#home-center .partners {
    margin-bottom: 20px;
}

#home-center .partner {
    width: 240px;
    height: 160px;
    padding: 20px;
    margin-right: 30px;
    float: left;
    background: #fff;
    box-shadow: 2px 2px 0 #ccc;
    font-size: 12px;
    line-height: 1.5;
    overflow: hidden;
}

#home-center .partner .edit {
    position: absolute;
    display: none;
}

#home-center .partner:hover .edit {
    display: block;
}

#home-center .partner .logo {
    height: 65px;
    margin-bottom: 10px;
    display: table-cell;
    vertical-align: middle;
}

#home-center .partner .logo img {
    display: block;
}

#home-center .partner p {
    margin-top: 10px;
}

#home-center .partner a {
    font-weight: bold;
}

#home-center .partner:last-child {
    margin-right: 0;
}


#promo-home {
    float: left;
    width: 590px;
    margin-right: 30px;
    position: relative;
}

#promo-home .nav, #home-bottom .gallery .nav {
    position: absolute;
    right: 0;
    top: 18px;
    font-size: 0;
}



.nav-scroller a.disabled {
    pointer-events: none;
    opacity: .3;
}

.scroll ul {
    transition: margin-left .5s linear;
}

#promo-home .nav a, #home-bottom .gallery .nav a {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    color: #fff;
    background: #F29400;
    font-size: 30px;
    font-weight: 100;
    margin-left: 1px;
}
#promo-home .nav a:hover, #home-bottom .gallery .nav a:hover {
    background: #D84F17;
}

#promo-home ul {
    height: 160px;
    width: 4000px;
}

#promo-home .scroll {
    overflow: hidden;
    padding: 20px;
    height: 200px; /* Come il calendario a fianco */
}

#promo-home .scroll li {
    width: 240px;
    height: 130px;
    float: left;
    font-size: 13px;
    position: relative;
}

#promo-home .scroll li .copertina {
    width: 90px;
    float: left;
    margin-right: 10px;
}

#promo-home .scroll li .info {
    width: 120px;
    height: 100%;
    float: left;
    position: relative;
}

#promo-home .scroll li .copertina img {
    box-shadow: 3px 3px 0 #ccc;
}

#promo-home .scroll li h3 {
    font-weight: bold;
    font-size: 14px;
}

#promo-home .scroll li .autori {
    color: #555;
    font-weight: 100;
}

#promo-home .scroll li .prezzi {
    margin-top: 10px;
    line-height: 1.3;
}

#promo-home .promo-message {
    background: #9A9B94;
    font-size: 32px;
    font-family: Osp-din, sans-serif;
    padding: 5px 30px 5px 10px;
    color: #fff;
    display: inline-block;
    position: relative;
}

#promo-home .promo-message:after {
    content: "";
    background: url(../img/badge-perc.png) no-repeat;
    width: 58px;
    height: 58px;
    position: absolute;
    top: -40px;
    right: -25px;
}

#promo-home .promo-message a {
    font-size: 14px;
}

.prezzo-vecchio {
    color: #555;
    font-size: 12px;
    position: relative;
    display: inline-block;
}

.prezzo-vecchio:after {
    content: "";
    border-bottom: 2px solid #000;
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    transform: rotate(-10deg);
}

#promo-home .scroll li .prezzi .sconto {
    font-weight: bold;
    font-size: 14px;
}

#promo-home .scroll li .prezzi .prezzo {
    font-size: 12px;
    font-weight: bold;
    font-size: 14px;

}



#promo-home h2, #calendar-home h2, #vetrina-home h2, #home-bottom h2 {
    font-size: 28px;
    padding: 10px 25px;
    height: 48px;
}

#calendar-home {
    float: left;
    width: 280px;
}

#calendar-home h2 {
    background: #D84F17;
    width: auto;
}

#calendar-home .calendar {
    background: #F29400;
    color: #555;
    padding: 20px;
/*    height: 180px; NO, ci possono essere SEI righe di settimane */
    height: 200px;
    box-shadow: 3px 3px 0 #ccc;
}

#calendar-home .title {
    position: relative;
    margin-bottom: 20px;
}

#calendar-home h3 {
    font-size: 18px;
    font-weight: bold;
}

#calendar-home nav {
    position: absolute;
    right: 0;
    top: 0;
    line-height: 15px;
    font-weight: 100;
    font-size: 30px;
}

#calendar-home .calendar .week {
    font-weight: bold;
    color: #fff;
}

#calendar-home .calendar .week > div {
    width: 30px;
    height: 30px;
    text-align: center;
    display: inline-block;
}

#calendar-home .calendar .day {
    width: 30px;
    height: 25px;
    text-align: center;
    display: inline-block;
}

#calendar-home .calendar .day.full {
    color: #fff;
    cursor: pointer;
}

#calendar-home .baloon {
    background: #555;
    color: #fff;
    padding: 20px;
    width: 200px;
    font-size: 13px;
    text-align: left;
    position: absolute;
    border-radius: 10px;
    margin-left: -100px;
    margin-top: 16px;
    display: none;
}

#calendar-home .baloon li {
    margin-bottom: 15px;
}

#calendar-home .baloon li:last-child {
    margin-bottom: 0;
}

#calendar-home .baloon h4 {
    font-weight: bold;
}

#calendar-home .baloon h4 a {
    color: #fff;
}

#calendar-home .baloon h4 a:hover {
    color: #F29400;
}

#calendar-home .baloon:after {
    content: "";
    position: absolute;
    top: -30px;
    left: 50%;
    margin-left: -12px;
    border-width: 16px 8px;
    border-style: solid;
    border-color: transparent transparent #555;
    width: 0;
    height: 0;
}


#home-bottom {
    background: #bbb;
    padding: 20px 30px;
}

#home-bottom .gallery {
    width: 590px;
    float: left;
    margin-right: 30px;
    position: relative;
}

#home-bottom .gallery h2 {
    background: #5C403B;
    padding: 0;
}

#home-bottom .gallery h2 a {
    color: inherit;
    padding: 10px 25px;
    display: block;
}

#home-bottom .gallery h2 a span {
    font-family: Roboto, sans-serif;
    font-weight: 100;
}

#home-bottom .gallery h2 a:hover {
    background: #F29400;
}

#home-bottom .gallery .scroll {
    height: 170px;
    overflow: hidden;
    padding: 10px;
    background: #555;
}

#home-bottom .gallery ul {
    width: 5200px;
}

#home-bottom .gallery li, #photogallery-list li {
    float: left;
    height: 170px;
    margin-right: 10px;
    position: relative;
}

#photogallery-list li {
    box-sizing: border-box;
    border: 1px solid #fff;
    margin: -1px 0 0 -1px;
    width: 240px;
}

#photogallery-list li .move {
    position: absolute;
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    top: 5px;
    left: 5px;
    background: #fff;
    z-index: 1;
    font-size: 12px;
    display: none;
    opacity: .7;
}

#photogallery-list li:hover .move {
    display: block;
}

#photogallery-list li .move:hover {
    opacity: 1;
}


#home-bottom .gallery li h3, #photogallery-list li h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 10px;
    line-height: 1.2;
    color: #fff;
    font-weight: bold;
    background: rgba(0,0,0,.6);
    font-size: 14px;
}

#home-bottom .gallery li:hover h3, #photogallery-list li:hover h3 {
    background: rgba(255,255,255,.6);
    color: #000;
}

#home-bottom .gallery .see-all {
    text-transform: uppercase;
    font-size: 13px;
    color: #fff;
    background: #D84F17;
    padding: 5px 10px;
    position: relative;
    top: -3px;
    left: -4px;
    transition: all .5s;
}

#home-bottom .gallery .see-all:hover {
    background: #f29400;
    padding: 5px 20px;
}

#home-bottom .links {
    float: left;
    width: 280px;
    margin-top: 48px;
}

#home-bottom .links a {
    font-size: 28px;
    display: block;
    width: auto;
    margin-bottom: 5px;
    padding-top: 16px;
    padding-bottom: 16px;
}

#home-bottom .links a:nth-child(1) {
    background: #BC0A26;
}
#home-bottom .links a:nth-child(2) {
    background: #9A9B94;
}
#home-bottom .links a:nth-child(3) {
    background: #F29400;
}
#home-bottom .links a:last-child {
    margin-bottom: 0;
}

/*
 * Azioni sul libro che può fare il pubblicatore
 */

.edit-actions a {
    display: block;
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    margin: 5px 0;
    background: #9A9B94;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
}

.edit-actions a:hover {
    color: #333;
}

.edit-actions a.selected {
    background: #D84F17;
}

.edit-actions a.selected:hover {
    color: #333;
}


/* Azioni sulle foto che può fare il pubblicatore */

.gallery .action {
    position: absolute;
    background: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    display: none;
}

.gallery li:hover .action {
    display: block;
}

.gallery .action.image-edit {
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 25px;
    margin-left: -20px;
    margin-top: -20px;
}

.gallery .action.image-delete {
    bottom: 10px;
    right: 10px;
}

/* Bottoni pubblicatore */

.bigbutton {
    display:block;
    font-size: 18px;
    text-align:center;
    color:#fff;
    font-weight:bold;
    background:#d84f17;
    width:200px;
    padding:8px;
    cursor:pointer;
    text-decoration:none;
    border: none;
    border-radius:5px;
    box-shadow: 1px 1px 2px #ccc;
}

.bigbutton a {
    color: #fff !important;
    display: block;
}

#content .bigbutton:hover, #content .bigbutton:hover a {
    color:#333 !important;
}

.cancelbutton {
    float: right;
    padding: 5px;
    border: none; 
    background: none;
    text-decoration: underline;
    cursor: pointer;
    top: -30px;
    position: relative;
}


/* Home page percorsi */

.template-home_percorsi .col-23 li {
    float: left;
    width: 240px;
    height: 280px;
}

.template-home_percorsi .col-23 {
    margin-left: 40px;
    width: 720px;
}

.template-home_percorsi .col-23 ul {
    margin-top: 30px;
}

.template-home_percorsi .col-23 h2 {
    font-weight: bold;
}

.template-home_percorsi .col-23 .picture {
    width: 220px;
    height: 220px;
    overflow: hidden;
}

.template-home_percorsi .col-23 li img {
    transition: all .5s;
}

.template-home_percorsi .col-23 li:hover img {
    transform: scale(1.1);
}

/* Ad Andrea non piace la turbina che gira */
/*
.template-home_percorsi .col-23 li:nth-child(6) img {
    transition: all 2s;
}

.template-home_percorsi .col-23 li:nth-child(6):hover img {
    transform: rotate(360deg);
}
*/

/* Stili per moduli (es. ricerca) */

.warning {
    background: #D84F17;
    color: #fff;
    padding: 10px 20px;
    border-bottom: 3px solid #F29400;
}

.success {
    background: #DFF0D8;
    color: #3c763d;
    padding: 10px 20px;
    border-bottom: 3px solid #3c763d;
}

.bigform {
    margin: 50px 20px 50px 0;
}

.bigform .field {
    margin: 10px 0;
    background: #f0f0f0;
    padding: 10px;
}

.bigform .field .error {
    color: #BC0A26;
    font-weight: bold;
}

.bigform .field p {
    margin: 10px 0;
}

.bigform label {
    display: block;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.bigform fieldset {
    padding: 20px;
    border: 1px solid #C11C31;
    margin-bottom: 30px;
}

.bigform input[type=text], .bigform input[type=password], .bigform input[type=textarea], .bigform input[type=number], .bigform input[type=email], .bigform input[type=tel], .bigform input[type=url], .bigform select, .bigform textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    padding: 3px;
    border-radius: 5px;
    font-weight: bold;
    color: #444;
    font-size: 16px;
    font-family: sans-serif;
}

.bigform input[type=text]:focus, .bigform input[type=password]:focus, .bigform input[type=textarea]:focus, .bigform input[type=number]:focus, .bigform input[type=email]:focus, .bigform input[type=tel]:focus, .bigform input[type=url]:focus, .bigform select:focus {
    border-color: #C11C31;
}

.bigform input.invalid_form {
    background: #F7DCE0;
    border-color: #C11C31;
}

.bigform input[type=submit] {
    background: #D84F17;
    color: #fff;
    padding: 10px 20px;
    display: inline-block;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.bigform input[type=submit]:hover, .bigform input[type=submit]:focus {
    background: #C11C31;
}

.limited-form input[type=text], .limited-forminput[type=number], .limited-form input[type=number], .limited-form input[type=password], .limited-form input[type=number], .limited-form select {
    width: 220px;
}

#search-recensioni {
    margin-top: 0;
}

#search-recensioni .field {
    clear: none;
    float: left;
    width: 220px;
    margin-right: 20px;
    height: 80px;
}

.search-eventi {
    padding-top: 60px;
}

#years-list {
    float: right;
}



#comandi-cliente {
    text-align: right;
    background: #945F4E;
    color: #fff;
    margin: -20px 0 20px;
    font-size: 0;
}

.portaltype-plone-site #comandi-cliente {
    margin: 0;
}

#comandi-cliente li {
    display: inline-block;
    font-size: 14px;
}

#comandi-cliente li.user {
    padding-right: 20px;
    font-size: 13px;
}

#comandi-cliente a {
    color: #fff;
    display: block;
    padding: 10px;
    border-left: 1px solid #fff;
}

#comandi-cliente a:hover {
    background: #7A2010;
}

/* Carrello */

.carrello {
    width: 100%;
    border-bottom: 3px solid #C11C31;
}

.carrello th {
    font-weight: bold;
    color: #999;
    text-transform: uppercase;
    border-bottom: 2px solid #ccc;
    vertical-align: middle;
}

#dettagli-ordine th {
    text-align: right;
}

.carrello td {
    border-bottom: 1px solid #ccc;
}

.carrello td, .carrello th {
    padding: 10px;
}

.carrello .right {
    text-align: right;
}

.carrello .price {
    font-family: Osp-din, sans-serif;
    font-size: 24px;
}

.carrello .cover {
    width: 110px;
    float: left;
}

.carrello .cover img {
    box-shadow: 4px 4px 0;
    color: #ccc;
}

.carrello .cover:hover img {
    color: #c11c31;
}

.carrello .libro {
    float: left;
    width: 320px;
}

.carrello h2 {
    color: #c11c31;
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    line-height: 1;
    margin-top: 5px;
}

.carrello .autore {
    color: #555;
    font-weight: bold;
    font-size: 14px;
}

.carrello form {
    display: inline;
}

.carrello .delete {
    border: none;
    cursor: pointer;
    background: none;
}

.carrello .delete:hover {
    color: #c11c31;
}

.carrello .sconto {
    color: #c11c31;
    font-weight: bold;
}

.carrello tfoot td, .carrello tfoot th {
    vertical-align: middle;
}

.carrello .note {
    color: #666;
    font-size: 12px;
    margin-top: 10px;
}

.carrello .versione-pdf {
    text-transform: uppercase;
    font-size: 14px;
    margin: 10px 0;
}

.carrello .versione-pdf img {
    vertical-align: -5px;
}

.carrello .size {
    font-size: 13px;
    color: #999;
}

/* Indirizzo di spedizione */
.address h3 {
    font-size: 18px;
    font-weight: bold;
    color: #c11c31;
    line-height: 9px;
    margin: 20px 0 0 20px;
}

.address .card {
    border-top: 2px solid #c11c31;
    background: #f8f8f8;
    padding: 20px;
    margin-bottom: 20px;
}


/* Pagine di dettaglio delle notizie in home page */

.section-notizie-home .col-1 { 
    width: 180px;
}

.section-notizie-home .col-23 {
     width: 720px;
}

.section-notizie-home .pagetext {
    width: 640px;
}

.template-notizie_listing .col-23 li, .template-gestione-notizie .col-23 li {
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
    overflow: hidden;
}

.template-notizie_listing .picture, .template-gestione-notizie .picture {
    width: 240px;
    margin-right: 20px;
    float: left;
}

.template-notizie_listing .col-23 h2, .template-gestione-notizie .col-23 h2 {
    font-weight: bold;
    font-size: 18px;
}

.template-notizie_listing .col-23 .date, .template-gestione-notizie .col-23 .date {
    margin: 5px 0;
    font-size: 12px;
    color: #444;
}

.template-notizie_listing .col-23 .info p, .template-gestione-notizie .col-23 .info p {
    margin-top: 10px;
    line-height: 1.3;
    font-size: 15px;
}

.template-gestione-notizie .col-23 li:not(.expired) {
    border-left: 3px solid #BC0A26;
    padding-left: 10px;
}

.template-gestione-notizie .col-23 li.expired {
    opacity: .7;
}

.template-gestione-notizie .col-23 li .expire-date span {
    color: #fff;
    background: #900;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    display: inline-block;
}

.template-gestione-notizie li .info {
    width: 447px;
    float: left;
}

/* Footer */

#footer {
    background: #BC0A26 url(../img/logo-footer.png) no-repeat 30px 20px;
    color: #fff;
    font-size: 12px;
    padding: 20px 0 20px 300px;
    line-height: 1.2;
    margin-top: 50px;
    clear: both;
}

#footer address {
    float: left;
    width: 350px;
}

#footer #credits {
    float: left;
}

.portaltype-plone-site #footer {
    margin-top: 0;
}

#footer a {
    color: #F2CED4;
}

#footer a:hover {
    color: #fff;
}

.extra-libro + #footer {
    margin-top: 0;
}


/* Amministrazione ordini */

.stato2, .stato12 {
	background-color: #dff191;
}

.stato1, .stato11 {
	background-color: #f6c4c5;
}

.stato0, .stato10, .stato13 {
	background-color: #fbfa91;
}

table.righe th, table.righe td {
    padding: 3px;
}

table.righe th {
    font-weight: bold;
    color: #333;
    font-size: 15px;
    border-bottom: 2px solid #333;
}

table.righe td {
    border-bottom: 1px solid #ddd;
}


/* Override Plone */
dl.portalMessage {
    margin: 10px 0;
    border: 1px solid #996;
    background-color: #ffffe3;
}
dl.portalMessage dt {
    background-color: #996;
    font-weight: bold;
    float: left;
    margin: 0 0.5em 0 0;
    padding: 0.5em 0.75em;
    color: #fff;
    line-height: 1.5;
}
dl.portalMessage dd {
    padding: 0.5em 0.5em;
    line-height: 1.5;
}
dl.warning {
    border-color: #d80;
}
dl.warning dt {
    background-color: #d80;
}
dl.error {
    border-color: #d00;
}
dl.error dt {
    background-color: #d00;
}
dl.warning {
    border-color: #d80;
}
dl.warning dd {
    background-color: #fd7;
}
dl.error {
    border-color: red;
}
dl.error dd {
    background-color: #fdc;
}