/* Clearfix */

.block-group {
   zoom: 1;
}

.block-group:before,
.block-group:after {
   display: table;
   content: "";
   line-height: 0;
}

.block-group:after {
   clear: both;
}

.block-group {
   /* ul/li compatibility */
   list-style-type: none;
   padding: 0;
   margin: 0 auto;
}


/* Nested grid */

.block-group > .block-group {
   clear: none;
   float: left;
   margin: 0 !important;
}


/* Default block */

.block {
   float: left;
   width: 100%;
}


/* Box-sizing polyfill for IE6 and IE7 */

.block-group,
.block,
.block-group:after,
.block:after,
.block-group:before,
.block:before {
   *behavior: url(../js/boxsizing-pocketgrid.htc);
}


/*LAYOUT */

.container {
   margin: 0 auto 10px 14%;
   width: 80%;
}

.book_scheda .book_cover {
   width: 80%;
   margin-left: 10%;
   margin-right: 0;
}

.footer-dx {
   text-align: left;
   margin-top: 1rem;
   margin-bottom: 5rem;
}

.header1 {
   margin-bottom: .8rem;
}

.header1 .breadcrumb {
   width: 69%;
}

.header1 .trolley {
   width: 31%;
   margin-top:2px;
}

.header2 .search_mod {
   width: 60%;
}

.header2 .social {
   width: 40%;
}
.banda_sx {
   width:38px;
   padding-top: 72px;
   padding-bottom: 10px;
   height:100vh;
}
.banda_dx {
   display: none;
}
.banda_sx .menu_mobile {
   display:block;
   position:absolute;
   top:0;
   left:0;
   background: #fff;
   padding:24px 0 12px 0;
}
.banda_sx img {
      width: 60%;
      margin-left: 15%;
}
.sfondo {
   padding-top: 10px;
}

/* .blog-featured .items-row {
   margin:  1rem 0;
}
.blog-featured .items-row h2 {
   font-size: 1.4rem; 
}
.blog-featured .items-row.row-0 h2 {
   font-size: 1.8rem; 
}
.blog-featured .items-row.row-2 h2,
.blog-featured .items-row.row-1 h2 {
   font-family:'ba_rg_it';
} */

.books .book_cover,
.books .book_cover:nth-child(2n),
.books .book_cover:nth-child(3n),
.books .book_cover:nth-child(4n),
.books .book_cover:nth-child(5n) {
   width: 49%;
   margin-right: 2%;
}
.books .book_cover:nth-child(2n) {
   margin-right: 0;
}
/*
.book_scheda .book_cover .pulsanti .pulsante.digitale {
   float: left;
   width: 50%;
}
*/
.book_info {
   display: none;
}
.slideshow .cycle-prev {
   background: url(../images/f_sx.svg) 0% 50% no-repeat;
   background-size: 100px auto;
}

.slideshow .cycle-next {
   background: url(../images/f_dx.svg) 100% 50% no-repeat;
   background-size: 100px auto;
}

.container_preview > div,
.results .libro_preview {
   width: 100%;
   margin: 0 0 1rem 0;
}
.book_scheda .tabs tr.estratto td:first-child {
   width: 0;
}
.book_scheda .tabs tr.estratto td:first-child img {
   display:none
}
.book_scheda .tabs tr.estratto td:nth-child {
   width:23%;
}

table.trolley_list {
   margin-top: -1rem;
}

table.trolley_list th {
   display: none;
}

table.trolley_list td.td_formato,
table.trolley_list td.isbn,
table.trolley_list td:nth-child(3),
table.trolley_list td:nth-child(4),
table.trolley_list td:nth-child(5),
table.trolley_list td:nth-child(6) {
   width: 100%;
   display: block;
}

table.trolley_list td.td_formato {
   margin-top: 2rem;
}

table.trolley_list td:nth-child(5) {
   text-align: left;
}

table.trolley_list td.td_formato p:before {
   content: 'FORMATO: ';
   font-size: .7rem;
   font-family: 'interface_b';
   text-transform: uppercase;
   letter-spacing: .07em;
   color: #7f7e63;
}

table.trolley_list td.isbn p:before {
   content: 'CODICE: ';
   font-size: .7rem;
   font-family: 'interface_b';
   text-transform: uppercase;
   letter-spacing: .07em;
   color: #7f7e63;
}

table.trolley_list td:nth-child(3) p:before {
   content: 'ARTICOLO: ';
   font-size: .7rem;
   font-family: 'interface_b';
   text-transform: uppercase;
   letter-spacing: .07em;
   color: #7f7e63;
}

table.trolley_list td:nth-child(5) p:before {
   content: 'PREZZO: ';
   font-size: .7rem;
   font-family: 'interface_b';
   text-transform: uppercase;
   letter-spacing: .07em;
   color: #7f7e63;
}

table.trolley_list td:nth-child(6) {
   display: none;
}

table.trolley_list tr {
   border-bottom: 1px solid #7f7e63;
}

table.trolley_list tr:nth-last-child(2) td {
   border-bottom: 1px solid rgba(127, 126, 99, .2);
}

form#invia_ordine table td,
form#invia_ordine table td:first-child,
form#invia_ordine table td:nth-child(2),
form#invia_ordine table td:nth-child(3),
form#invia_ordine table td:nth-child(4) {
   display: block;
   width: 100%;
}

form#invia_ordine table td.pl_10 {
   padding-left: 0;
}

form#invia_ordine table td input,
form#invia_ordine table td textarea {
   margin-bottom: 1rem;
}

/* Tablet version */

@media (min-width: 480px) {
}


/* Desktop version */

@media (min-width: 768px) {
   .container {
      margin: 0 auto 10px auto;
      width: 70%;
   }
   .banda_sx {
      width:70px;
      padding-top: 140px;
      top: 0;
   }
   .banda_dx {
      display:block;
      width:50px;
      top:0;
      height:100vh;
      padding-top: 20px;
      padding-bottom: 20px;
   }
   .banda_sx .menu_mobile {
      display:none;
   }
   .banda_sx img {
      width: 50%;
      margin-left: 25%;
   }
   .header1 .breadcrumb {
      width: 80%;
   }
   .header1 .trolley {
      width: 20%;
      margin-top:0;
   }
   .header2 .search_mod {
      width: 70%;
   }
   .header2 .social {
      width: 30%;
   }
/*
   .items-row,
   .items-row:nth-of-type(2n),
   .items-row:nth-of-type(2n+1),
   .items-row:nth-of-type(3n),
   .items-row:nth-of-type(4n),
   .items-leading > div,
   .items-leading > div:nth-of-type(2n),
   .items-leading > div:nth-of-type(2n+1),
   .items-leading > div:nth-of-type(3n),
   .items-leading > div:nth-of-type(4n) {
      margin: 1rem 6% 1rem 0;
      width:47%; 
      clear:none;
   }
   .items-row:nth-of-type(2n) {
      margin: 1rem 0;
   }
   .items-row:nth-of-type(2n+1) {
      clear:both;
   }
*/
   .items-leading > div:nth-of-type(2n) {
      margin: 1rem 0;
   }
   .items-leading > div:nth-of-type(2n+1) {
      clear:both;
   }
   .books .book_cover,
   .books .book_cover:nth-child(2n),
   .books .book_cover:nth-child(3n),
   .books .book_cover:nth-child(4n),
   .books .book_cover:nth-child(5n){
      width: 32%;
      margin-right: 2%;
   }
   .books .book_cover:nth-child(3n) {
      margin-right: 0;
   }

  
   /* .blog-featured .items-row h2 {
    font-size: 1.5rem  
   }
   .blog-featured .items-row p {
      font-size: .9rem  
   } */
   .stream {
      width: 50%;
   }
   .footer-sx {
      width: 70%;
   }
   .footer-dx {
      width: 30%;
      text-align: right;
      margin-top: 0;
      margin-bottom: 0;
   }
   .book_scheda .book_cover {
      width: 25%;
      margin-left: 0;
      margin-right: 10%;
   }
/*
   .book_scheda .book_cover .pulsanti .pulsante.digitale {
      float: none;
      width: 100%;
   }
*/
   .book_scheda .book_detail {
      width: 65%;
   }
   .book_info {
      display: block;
   }
   .colsx,
   .coldx {
      width: 50%;
   }
   .container_preview > div,
   .results .libro_preview {
      width: 31.33%;
      margin: 0 2% 1rem 0;
   }
   .book_scheda .tabs tr.estratto td:first-child {
      width: 5%;
   }
   .book_scheda .tabs tr.estratto td:first-child img {
      width: 16px;
      display: block;
   }
   .book_scheda .tabs tr.estratto td:nth-child {
      width:18%;
   }

   #trolley_count {
      background-position: 0 0;
      min-width: 50px;
   }
   table.trolley_list {
      margin-top: .6rem;
   }
   table.trolley_list th {
      display: table-cell;
   }
   table.trolley_list td.td_formato,
   table.trolley_list td.isbn,
   table.trolley_list td:nth-child(3),
   table.trolley_list td:nth-child(4),
   table.trolley_list td:nth-child(5),
   table.trolley_list td:nth-child(6) {
      display: table-cell;
   }
   table.trolley_list td.td_formato {
      width: 10%;
      margin-top: 0;
   }
   table.trolley_list td.isbn {
      width: 15%;
   }
   table.trolley_list td:nth-child(3) {
      width: 40%;
   }
   table.trolley_list td:nth-child(4),
   table.trolley_list td:nth-child(6) {
      width: 15%
   }
   table.trolley_list td:nth-child(5) {
      width: 10%;
      text-align: right;
   }
   table.trolley_list td.td_formato p:before,
   table.trolley_list td.isbn p:before,
   table.trolley_list td:nth-child(3) p:before,
   table.trolley_list td:nth-child(5) p:before {
      content: '';
   }
   table.trolley_list td:nth-child(6) {
      display: table-cell;
   }
   table.trolley_list tr {
      border-bottom: 0;
   }
   table.trolley_list tr:nth-last-child(2) td {
      border-bottom: 0;
   }
/* 
   form#invia_ordine table td,
   form#invia_ordine table td:first-child,
   form#invia_ordine table td:nth-child(2),
   form#invia_ordine table td.nocolspan,
   form#invia_ordine table td.colspan2 {
      display: table-cell;
      width: auto;
   } */
   form#invia_ordine table td.pl_10 {
      padding-left: 10px;
   }
form#invia_ordine table td:first-child,
form#invia_ordine table td:nth-child(3) {
   width: 20%;
   display: table-cell;
}
form#invia_ordine table td:nth-child(2),
form#invia_ordine table td:nth-child(4) {
   width: 30%;
   display: table-cell;
}
   form#invia_ordine table td input,
   form#invia_ordine table td textarea {
      margin-bottom: 0;
   }
}

/* L Desktop version */

@media (min-width: 1024px) {
   .container {
      width: 73%;
   }
/*
   .items-row,
   .items-row:nth-of-type(2n),
   .items-row:nth-of-type(2n+1),
   .items-row:nth-of-type(3n),
   .items-row:nth-of-type(4n),
   .items-leading > div,
   .items-leading > div:nth-of-type(2n),
   .items-leading > div:nth-of-type(2n+1),
   .items-leading > div:nth-of-type(3n),
   .items-leading > div:nth-of-type(4n) {
      width: 31%;
      margin: 1rem 3.5% 1rem 0;
      clear:none;
   }
   .items-row:nth-of-type(3n) {
      margin: 1rem 0;
   }  
   .items-row:nth-of-type(4n) {
      clear:both;
   }
   .items-leading > div:nth-of-type(3n) {
      margin: 1rem 0;
   }  
   .items-leading > div:nth-of-type(4n) {
      clear:both;
   }
*/
/*
   .blog-featured .items-row.row-0  {
      margin: 1rem 10% 1rem 0;
      width:35%;
      padding-left:15px;
   }

   .blog-featured .items-row.row-0 h2 {
      font-size:2.5rem;
      line-height:.83;
      margin-top:-.25rem;
   }	

   .blog-featured .items-row.row-1 {
      margin: 1rem 5% 1rem 0;
      width:25%;
   }


   .blog-featured .items-row.row-1 h2 {
      font-family:'ba_rg_it';
   }


   .blog-featured .items-row.row-2 {
      width:25%;
      margin: 1rem 0;
   }

   .blog-featured .items-row.row-2 h2 {
      font-family:'ba_rg_it';
   }

   
   .blog-featured .items-row h2 {
      font-size:1.9rem  
   } 
   .blog-featured .items-row p {
      font-size:1rem  
   }
   */
   .books .book_cover,
   .books .book_cover:nth-child(2n),
   .books .book_cover:nth-child(3n),
   .books .book_cover:nth-child(4n),
   .books .book_cover:nth-child(5n) {
      width: 23.5%;
      margin-right: 2%;
   }
   .books .book_cover:nth-child(4n) {
      margin-right: 0;
   }

   .stream {
      width: 33.33%;
   }
   
   .slideshow .cycle-prev {
      background: url(../images/f_sx.svg) 0% 50% no-repeat;
      background-size: 130px auto;
   }

   .slideshow .cycle-next {
      background: url(../images/f_dx.svg) 100% 50% no-repeat;
      background-size: 130px auto;
   }
   .container_preview > div,
   .results .libro_preview {
      width: 18%;
      margin: 0 2% 1rem 0;
   }
}

/* XL Desktop version */

@media (min-width: 1280px) {
   .container {
      width: 78%;
   }
   .books .book_cover,
   .books .book_cover:nth-child(2n),
   .books .book_cover:nth-child(3n),
   .books .book_cover:nth-child(4n),
   .books .book_cover:nth-child(5n){
      width: 18.4%;
      margin-right: 2%;
   }
   .books .book_cover:nth-child(5n) {
      margin-right: 0;
   }
/*
   .book_scheda .book_cover .pulsanti .pulsante.digitale {
      float: left;
      width: 50%;
   }
*/
}

/* XXL Desktop version */

@media (min-width: 1680px) {
   .container {
      max-width: 1400px;
   }
}