
@font-face {
    font-family: heritage;
    src: url(font/Heritage-Display.otf);
}
@font-face {
    font-family: pixel;
    src: url(font/RobotoMono-VariableFont_wght.ttf);
}

:root{
    /*#8f0d2e #890808*/
    --colore-testo: #8f0d2e;
    --colore-bordo: #101f29;
    --colore-bianco: #cccfd8;
}

body {
    background-color: black;
    background-image: url(immagini/sfondo\ cielo.webp);
    background-size: cover;
}

.container{
    display: flex;
    height: 100%;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5%;
}

.lapide {
    position: relative;
    margin-top: 40px;
    padding-top: 20px;
    width: 700px;
    height: 800px;
    background-image: url(lapide.jpg);
    border-style: solid; 
    border-color: var(--colore-bordo);
    box-shadow: 10px 10px 3px;
    .testo {
        color: var(--colore-testo);
        font-family: pixel;
        font-size: 15px;
        text-align: justify;
        line-height: 2;
        margin-top: 40px;
        margin-bottom: 40px;
        padding-left: 60px;
        padding-right: 60px;
         height: 60%;
        overflow: scroll;
        scrollbar-color: var(--colore-testo) transparent;
    }
    .piede {
        display: block;
        position: absolute;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        bottom: 10px;  
    }
    
}
#testa { /*per avere le maiuscole grandi e settare bordo*/
        height: 150px;
        margin-left: 2%;
        margin-right: 2%;
        background-image: url(cemento_blu.jpg);
        .titolo {
            display: inline-block;
            color: var(--colore-bianco);
            font-family: heritage;
            font-size: 60px;
            font-weight: normal;
            padding-left: 2%;
            letter-spacing: 5px;
            margin-top: -3vh;
            
        }
        .titolo::first-letter {
        font-size: 160px;
        margin-right: 3px;
        vertical-align: -15px;
        }
    }   
#menu_laterale {
    margin-bottom: 14%;
    width: fit-content;
    height: fit-content;
    background-image: url(lapide.jpg);
    border-style: solid;
    border-color: var(--colore-bordo);
    box-shadow: 10px 10px 3px;
    text-align: center;
    line-height: 2;
    font-family: pixel;
    font-size: 15px;
    a {display: block;} /*per avere i link a cascata*/
    a:link{
        color: var(--colore-testo);
        text-decoration: none;
    }
    a:visited{
        color: var(--colore-testo);
        text-decoration: none;
    }
    a:hover{
        color: #cccfd8;
    }
}

.imglato{
    top: 0;
    padding: 1%;
    display: block;
}

.libreria{
    table, th, td {
    table-layout: fixed;
    border: 1px solid var(--colore-bordo);
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    }
    td {
        writing-mode: vertical-lr;
        word-wrap: break-word;
        height: 140px;
        width: 40px;
        background-color: var(--colore-testo);
        color: var(--colore-bianco);
    }
    td:hover{
        color: var(--colore-testo);
        background-color: var(--colore-bordo);
    }
    button {
        background-color: transparent;
        text-align: left;
        padding-top: 20%;
        border: none;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
}

.blog {
    [id] {
    display: none;
    }
    [id]:target {
    display:block;
    }
}

.galleria{
    display: grid;  
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 5px 5px;
    border: 1px solid var(--colore-bordo);
    padding: 5px;
    div{
        border: 1px solid var(--colore-bordo);
        background-color: var(--colore-testo);
        color: var(--colore-bianco);
    }
    img{
        width: 100%;
    }
}

.topmenu {
    font-family: pixel;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/*sito responsive*/
@media only screen and (max-width: 600px) {
    .container {
        flex-direction: column;
        gap: 50px;
        justify-content: start;

    }
    .imglato {
        visibility: hidden;
        display: none;
    }
    .lapide {
        margin-top: 0;
        height: 600px;
        width: 400px;
        order: 1;
    }
    #testa{
        height: 25vw;
        .titolo{
                font-size: 10vw;
                line-height: 1;
                margin-top: -1vh;
            }
            .titolo::first-letter{
                font-size: 25vw;
            }
        }
    #menu_laterale{
        order:2;
    }
  
}