@import url("https://use.typekit.net/mke5bob.css");

html {
    font-size: 14px;
    line-height: 150%;
}
@media screen and (max-width:1000px) {
    html {
        font-size: 14px;
        line-height: 140%;
    }
}

body {
    margin: 0;
    padding: 10px;
    font-family: "cy", sans-serif;
    font-weight: 500;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

h1      {font-size: 6.8535rem;}
h2      {font-size: 4.2358rem;}
h3      {font-size: 2.6179rem;}
h4      {font-size: 1.6180rem;}
h5      {font-size: 1rem;}
p       {font-size: 1rem;}
p.small {font-size: 0.6429rem; }
p.data  {
    font-family: "bdr-mono", "BDRmono 2006", sans-serif;
}
h1,h2,h3,h4 {
    font-family: "lisbeth-display", "Lisbeth Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.font-cy-regular {
    font-family: "cy", sans-serif;
    font-weight: 500;
    font-style: normal;    
}
.font-cy-bold {
    font-family: "cy", sans-serif;
    font-weight: 700;
    font-style: normal;    
}
.font-bdr {
    font-family: "bdr-mono", "BDRmono 2006", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.font-lisbeth-light {
    font-family: "lisbeth", sans-serif;
    font-weight: 300;
    font-style: normal;
}
.font-lisbeth-display {
    font-family: "lisbeth-display", "Lisbeth Display", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.t-it {
    font-style: italic;
    color: blue;
    /* fixme se la stampante è soltanto bianco e nero */
}

spread {
    display: flex;
    border-bottom: 2px solid black;
    height: 82px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    overflow-y: hidden;
}
spread.pagina-forza-destra {
    flex-direction: row-reverse;
}
spread.pagina-ultima {
    border-bottom: none;
    border-top: 2px solid black;
}
spread.pagina-ultima page {
    border-top: none;
    border-bottom: 2px solid black;
}

page {
    display: block;
    border: 2px solid black;
    border-bottom: none;
    width: 50%;
    height: 80px;
}

page:nth-child(2n) {
    border-left: none;
}
@media screen and (max-width:1000px) {
    spread {
        flex-wrap: wrap;
        height: auto;
    }
    page {
        min-width: 400px;
        width: 100%;
        overflow-y: hidden;

    }
    page:nth-child(2n) {
        border-left: 2px solid black;
        border-bottom: 2px solid black;

    }
    spread.pagina-prima page{
        border-bottom: 2px solid black;
    }

}

colonna {
    display: block;
    border: 1px solid red;
    width: 310px;
    height: 650px;
}

segnatura {
    display: flex;
    width: 100%;
    height: 40px;
    border-bottom: 1px solid black;
    padding: 7px;
}
segnatura span.count {
    font-family: "bdr-mono", "BDRmono 2006", sans-serif;
}
segnatura.hide-number span.count {
    display: none;
}
segnatura span {
    display: block;
    border-top: 3px solid black;
    margin-right: 30px;
    white-space: nowrap;
}
@media screen and (max-width:1000px) {
    segnatura span {
        white-space: wrap;
    }
    }

segnatura span.count {
    min-width: 100px;
}

div.grid3 {
    display: flex;
}
div.grid3 div {
    width: 32%;
    margin-right: 2%;
}
div.grid3 div:last-child {
    margin-right: 0;
}

@media print {
    segnatura,
    segnaturaromana {
        break-inside: avoid;
    }
}

